diff --git a/README.md b/README.md index bced4b3972e..4fc46a8e7fa 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-spanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanner:6.58.0' +implementation 'com.google.cloud:google-cloud-spanner:6.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.59.0" ``` @@ -643,7 +643,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-spanner/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-spanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.59.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClient.java b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClient.java index 3ca0a53a94f..368b42e07df 100644 --- a/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClient.java +++ b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxySettings.java b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxySettings.java index efcd8b16d41..b8b364469fe 100644 --- a/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxySettings.java +++ b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxySettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ package com.google.cloud.spanner.executor.v1; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; @@ -116,7 +115,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return SpannerExecutorProxyStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return SpannerExecutorProxyStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/package-info.java b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/package-info.java index 20f0308977e..f76bafaa308 100644 --- a/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/package-info.java +++ b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/GrpcSpannerExecutorProxyCallableFactory.java b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/GrpcSpannerExecutorProxyCallableFactory.java index e890b9d400d..4e69db41a1e 100644 --- a/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/GrpcSpannerExecutorProxyCallableFactory.java +++ b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/GrpcSpannerExecutorProxyCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/GrpcSpannerExecutorProxyStub.java b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/GrpcSpannerExecutorProxyStub.java index fe462bbf539..0950cbc56e5 100644 --- a/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/GrpcSpannerExecutorProxyStub.java +++ b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/GrpcSpannerExecutorProxyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStub.java b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStub.java index d3823b1f67d..c23b1574b5a 100644 --- a/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStub.java +++ b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStubSettings.java b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStubSettings.java index 9ed12c6b257..cb96087cc6c 100644 --- a/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStubSettings.java +++ b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ package com.google.cloud.spanner.executor.v1.stub; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -160,7 +159,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json b/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json index 0cd72e33eae..66b9c40db43 100644 --- a/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json +++ b/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json @@ -836,6 +836,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", "queryAllDeclaredConstructors": true, @@ -971,6 +980,114 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", "queryAllDeclaredConstructors": true, @@ -1034,6 +1151,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/MockSpannerExecutorProxy.java b/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/MockSpannerExecutorProxy.java index 6321a714a72..a0c082532ff 100644 --- a/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/MockSpannerExecutorProxy.java +++ b/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/MockSpannerExecutorProxy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/MockSpannerExecutorProxyImpl.java b/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/MockSpannerExecutorProxyImpl.java index d5b135b64a2..ac283457321 100644 --- a/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/MockSpannerExecutorProxyImpl.java +++ b/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/MockSpannerExecutorProxyImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClientTest.java b/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClientTest.java index b28fed3b4d8..97d605fa770 100644 --- a/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClientTest.java +++ b/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java index b898bceedf5..a1ed958be4b 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminSettings.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminSettings.java index 01a82a54712..8cfb9c5455b 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminSettings.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -307,7 +307,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return DatabaseAdminStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return DatabaseAdminStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/package-info.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/package-info.java index d898df2e6a7..403828ab3ef 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/package-info.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStub.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStub.java index 0e85c8127d7..37fb433c3eb 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStub.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java index 08ac4062926..31da17aad8f 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -713,7 +713,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( @@ -722,7 +721,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminCallableFactory.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminCallableFactory.java index 6438decf4e5..4880098a040 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminCallableFactory.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminStub.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminStub.java index 5a267d5a5d1..875ff8443fc 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminStub.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminCallableFactory.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminCallableFactory.java index 25be54f9537..c8e151ea681 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminCallableFactory.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminStub.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminStub.java index d99345bc9de..9f30149bac6 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminStub.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java index 8ad508278ed..9461d953b87 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java index 9e4e5900f69..47b98450c25 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -249,7 +249,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return InstanceAdminStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return InstanceAdminStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/package-info.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/package-info.java index 156db464da8..c06571fbc23 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/package-info.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminCallableFactory.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminCallableFactory.java index b5f7e0aee05..b450de88a51 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminCallableFactory.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminStub.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminStub.java index 39b83be1ed9..5a34809109a 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminStub.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminCallableFactory.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminCallableFactory.java index 9781fe2448d..8858b882160 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminCallableFactory.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminStub.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminStub.java index 8acda6dfd30..47d4c7108c7 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminStub.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStub.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStub.java index ce60b285795..f9929401a68 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStub.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java index 2a9ffb20763..124c38e7adb 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -540,7 +540,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( @@ -549,7 +548,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java index 9eaacdc33ba..64ffdb0902a 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -2318,6 +2318,7 @@ public final UnaryCallable partitionRea * SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) * .setRequestOptions(RequestOptions.newBuilder().build()) * .addAllMutationGroups(new ArrayList()) + * .setExcludeTxnFromChangeStreams(true) * .build(); * ServerStream stream = spannerClient.batchWriteCallable().call(request); * for (BatchWriteResponse response : stream) { diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java index f83cee51475..d1502689d82 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -224,7 +224,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return SpannerStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return SpannerStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/package-info.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/package-info.java index 9a10323aa51..286b948aaa9 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/package-info.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerCallableFactory.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerCallableFactory.java index 34ab0590003..cd0587f6e98 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerCallableFactory.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java index 7b527bb272c..6d7cc8d0bc3 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerCallableFactory.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerCallableFactory.java index aa5f3302ac3..aa35e6adbb7 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerCallableFactory.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerStub.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerStub.java index babe01e361d..10e6962478d 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerStub.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStub.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStub.java index 3280b0b6bbd..e3e1edd3008 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStub.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java index 5b6939e7dad..dbc521b5ecb 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -358,7 +358,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(SpannerStubSettings.class)) @@ -366,7 +365,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(SpannerStubSettings.class)) diff --git a/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.database.v1/reflect-config.json b/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.database.v1/reflect-config.json index b0045af3fac..9518d8b2191 100644 --- a/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.database.v1/reflect-config.json +++ b/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.database.v1/reflect-config.json @@ -836,6 +836,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", "queryAllDeclaredConstructors": true, @@ -971,6 +980,114 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", "queryAllDeclaredConstructors": true, @@ -1034,6 +1151,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json b/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json index 46cbdef6597..feebefee603 100644 --- a/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json +++ b/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json @@ -836,6 +836,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", "queryAllDeclaredConstructors": true, @@ -971,6 +980,114 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", "queryAllDeclaredConstructors": true, @@ -1034,6 +1151,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.v1/reflect-config.json b/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.v1/reflect-config.json index 98b78b4ff22..04776be1ded 100644 --- a/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.v1/reflect-config.json +++ b/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.v1/reflect-config.json @@ -449,6 +449,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", "queryAllDeclaredConstructors": true, @@ -584,6 +593,114 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", "queryAllDeclaredConstructors": true, @@ -647,6 +764,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClientHttpJsonTest.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClientHttpJsonTest.java index e55bf0cd988..1fe968db228 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClientHttpJsonTest.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClientTest.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClientTest.java index 35936093c1c..b8f56295789 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClientTest.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/MockDatabaseAdmin.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/MockDatabaseAdmin.java index e3f036bce5e..c85497197fe 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/MockDatabaseAdmin.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/MockDatabaseAdmin.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/MockDatabaseAdminImpl.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/MockDatabaseAdminImpl.java index 9f21733e467..f77ad2edbc8 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/MockDatabaseAdminImpl.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/MockDatabaseAdminImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientHttpJsonTest.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientHttpJsonTest.java index f074c20b59c..58505c0a000 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientHttpJsonTest.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientTest.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientTest.java index f4c1a6c3555..b52443ddac7 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientTest.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/MockInstanceAdmin.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/MockInstanceAdmin.java index 0dd71fe4115..28d934fde81 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/MockInstanceAdmin.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/MockInstanceAdmin.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/MockInstanceAdminImpl.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/MockInstanceAdminImpl.java index 9fa59c9f70e..c1a9a122277 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/MockInstanceAdminImpl.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/MockInstanceAdminImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpanner.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpanner.java index 210b0ee06c3..cc2edb4651c 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpanner.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpanner.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpannerImpl.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpannerImpl.java index c806987beeb..0fa8bf2d554 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpannerImpl.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpannerImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/SpannerClientHttpJsonTest.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/SpannerClientHttpJsonTest.java index aa49c3bb8fb..3b5f106f13f 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/SpannerClientHttpJsonTest.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/SpannerClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -118,6 +118,7 @@ public void createSessionTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setApproximateLastUseTime(Timestamp.newBuilder().build()) .setCreatorRole("creatorRole-190742846") + .setMultiplexed(true) .build(); mockService.addResponse(expectedResponse); @@ -167,6 +168,7 @@ public void createSessionTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setApproximateLastUseTime(Timestamp.newBuilder().build()) .setCreatorRole("creatorRole-190742846") + .setMultiplexed(true) .build(); mockService.addResponse(expectedResponse); @@ -304,6 +306,7 @@ public void getSessionTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setApproximateLastUseTime(Timestamp.newBuilder().build()) .setCreatorRole("creatorRole-190742846") + .setMultiplexed(true) .build(); mockService.addResponse(expectedResponse); @@ -353,6 +356,7 @@ public void getSessionTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setApproximateLastUseTime(Timestamp.newBuilder().build()) .setCreatorRole("creatorRole-190742846") + .setMultiplexed(true) .build(); mockService.addResponse(expectedResponse); diff --git a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/SpannerClientTest.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/SpannerClientTest.java index 730a0636cce..24b774425f6 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/SpannerClientTest.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/SpannerClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -138,6 +138,7 @@ public void createSessionTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setApproximateLastUseTime(Timestamp.newBuilder().build()) .setCreatorRole("creatorRole-190742846") + .setMultiplexed(true) .build(); mockSpanner.addResponse(expectedResponse); @@ -181,6 +182,7 @@ public void createSessionTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setApproximateLastUseTime(Timestamp.newBuilder().build()) .setCreatorRole("creatorRole-190742846") + .setMultiplexed(true) .build(); mockSpanner.addResponse(expectedResponse); @@ -302,6 +304,7 @@ public void getSessionTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setApproximateLastUseTime(Timestamp.newBuilder().build()) .setCreatorRole("creatorRole-190742846") + .setMultiplexed(true) .build(); mockSpanner.addResponse(expectedResponse); @@ -345,6 +348,7 @@ public void getSessionTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setApproximateLastUseTime(Timestamp.newBuilder().build()) .setCreatorRole("creatorRole-190742846") + .setMultiplexed(true) .build(); mockSpanner.addResponse(expectedResponse); @@ -1388,6 +1392,7 @@ public void batchWriteTest() throws Exception { SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) .setRequestOptions(RequestOptions.newBuilder().build()) .addAllMutationGroups(new ArrayList()) + .setExcludeTxnFromChangeStreams(true) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); @@ -1411,6 +1416,7 @@ public void batchWriteExceptionTest() throws Exception { SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) .setRequestOptions(RequestOptions.newBuilder().build()) .addAllMutationGroups(new ArrayList()) + .setExcludeTxnFromChangeStreams(true) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Backup.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Backup.java index ed3d469de3e..2e53c120215 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Backup.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Backup.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -226,6 +227,7 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.spanner.admin.database.v1.Backup.State) } + private int bitField0_; public static final int DATABASE_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -303,7 +305,7 @@ public com.google.protobuf.ByteString getDatabaseBytes() { */ @java.lang.Override public boolean hasVersionTime() { - return versionTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -360,7 +362,7 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() { */ @java.lang.Override public boolean hasExpireTime() { - return expireTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -494,7 +496,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -701,7 +703,7 @@ public com.google.protobuf.ByteString getReferencingDatabasesBytes(int index) { */ @java.lang.Override public boolean hasEncryptionInfo() { - return encryptionInfo_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -898,7 +900,7 @@ public com.google.protobuf.ByteString getReferencingBackupsBytes(int index) { */ @java.lang.Override public boolean hasMaxExpireTime() { - return maxExpireTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -965,10 +967,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, database_); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getExpireTime()); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getCreateTime()); } if (sizeBytes_ != 0L) { @@ -981,10 +983,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString( output, 7, referencingDatabases_.getRaw(i)); } - if (encryptionInfo_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(8, getEncryptionInfo()); } - if (versionTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(9, getVersionTime()); } if (databaseDialect_ @@ -995,7 +997,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < referencingBackups_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, referencingBackups_.getRaw(i)); } - if (maxExpireTime_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(12, getMaxExpireTime()); } getUnknownFields().writeTo(output); @@ -1013,10 +1015,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireTime()); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (sizeBytes_ != 0L) { @@ -1033,10 +1035,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getReferencingDatabasesList().size(); } - if (encryptionInfo_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEncryptionInfo()); } - if (versionTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getVersionTime()); } if (databaseDialect_ @@ -1052,7 +1054,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getReferencingBackupsList().size(); } - if (maxExpireTime_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getMaxExpireTime()); } size += getUnknownFields().getSerializedSize(); @@ -1276,10 +1278,23 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.database.v1.Backup.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVersionTimeFieldBuilder(); + getExpireTimeFieldBuilder(); + getCreateTimeFieldBuilder(); + getEncryptionInfoFieldBuilder(); + getMaxExpireTimeFieldBuilder(); + } } @java.lang.Override @@ -1357,18 +1372,22 @@ private void buildPartial0(com.google.spanner.admin.database.v1.Backup result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.database_ = database_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.versionTime_ = versionTimeBuilder_ == null ? versionTime_ : versionTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.sizeBytes_ = sizeBytes_; @@ -1383,6 +1402,7 @@ private void buildPartial0(com.google.spanner.admin.database.v1.Backup result) { if (((from_bitField0_ & 0x00000100) != 0)) { result.encryptionInfo_ = encryptionInfoBuilder_ == null ? encryptionInfo_ : encryptionInfoBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000200) != 0)) { result.databaseDialect_ = databaseDialect_; @@ -1394,7 +1414,9 @@ private void buildPartial0(com.google.spanner.admin.database.v1.Backup result) { if (((from_bitField0_ & 0x00000800) != 0)) { result.maxExpireTime_ = maxExpireTimeBuilder_ == null ? maxExpireTime_ : maxExpireTimeBuilder_.build(); + to_bitField0_ |= 0x00000010; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1858,8 +1880,10 @@ public Builder mergeVersionTime(com.google.protobuf.Timestamp value) { } else { versionTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (versionTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -2078,8 +2102,10 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { } else { expireTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (expireTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -2467,8 +2493,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -3079,8 +3107,10 @@ public Builder mergeEncryptionInfo(com.google.spanner.admin.database.v1.Encrypti } else { encryptionInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (encryptionInfo_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** @@ -3649,8 +3679,10 @@ public Builder mergeMaxExpireTime(com.google.protobuf.Timestamp value) { } else { maxExpireTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000800; - onChanged(); + if (maxExpireTime_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfo.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfo.java index f6ce4483d08..d8c35b5b084 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfo.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.database.v1.BackupInfo.Builder.class); } + private int bitField0_; public static final int BACKUP_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -133,7 +135,7 @@ public com.google.protobuf.ByteString getBackupBytes() { */ @java.lang.Override public boolean hasVersionTime() { - return versionTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -188,7 +190,7 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() { */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -289,13 +291,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backup_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, backup_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceDatabase_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceDatabase_); } - if (versionTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getVersionTime()); } getUnknownFields().writeTo(output); @@ -310,13 +312,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backup_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, backup_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceDatabase_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceDatabase_); } - if (versionTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getVersionTime()); } size += getUnknownFields().getSerializedSize(); @@ -497,10 +499,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.database.v1.BackupInfo.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVersionTimeFieldBuilder(); + getCreateTimeFieldBuilder(); + } } @java.lang.Override @@ -558,16 +570,20 @@ private void buildPartial0(com.google.spanner.admin.database.v1.BackupInfo resul if (((from_bitField0_ & 0x00000001) != 0)) { result.backup_ = backup_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.versionTime_ = versionTimeBuilder_ == null ? versionTime_ : versionTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.sourceDatabase_ = sourceDatabase_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -929,8 +945,10 @@ public Builder mergeVersionTime(com.google.protobuf.Timestamp value) { } else { versionTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (versionTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1133,8 +1151,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfoOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfoOrBuilder.java index 6b2589ac817..6aa3731f217 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfoOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface BackupInfoOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java index 3018af54e49..8eb85db8c7a 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupOrBuilder.java index 3a228b9e222..3a51c8dbecb 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface BackupOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupProto.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupProto.java index 32abcd22825..5bc7b7041c3 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupProto.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public final class BackupProto { @@ -103,105 +104,105 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "g/operations.proto\032 google/protobuf/fiel" + "d_mask.proto\032\037google/protobuf/timestamp." + "proto\032-google/spanner/admin/database/v1/" - + "common.proto\"\313\006\n\006Backup\0226\n\010database\030\002 \001(" + + "common.proto\"\303\006\n\006Backup\0226\n\010database\030\002 \001(" + "\tB$\372A!\n\037spanner.googleapis.com/Database\022" + "0\n\014version_time\030\t \001(\0132\032.google.protobuf." + "Timestamp\022/\n\013expire_time\030\003 \001(\0132\032.google." - + "protobuf.Timestamp\022\014\n\004name\030\001 \001(\t\0225\n\013crea" + + "protobuf.Timestamp\022\014\n\004name\030\001 \001(\t\0224\n\013crea" + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" - + "pB\004\342A\001\003\022\030\n\nsize_bytes\030\005 \001(\003B\004\342A\001\003\022C\n\005sta" - + "te\030\006 \001(\0162..google.spanner.admin.database" - + ".v1.Backup.StateB\004\342A\001\003\022G\n\025referencing_da" - + "tabases\030\007 \003(\tB(\342A\001\003\372A!\n\037spanner.googleap" - + "is.com/Database\022O\n\017encryption_info\030\010 \001(\013" - + "20.google.spanner.admin.database.v1.Encr" - + "yptionInfoB\004\342A\001\003\022Q\n\020database_dialect\030\n \001" - + "(\01621.google.spanner.admin.database.v1.Da" - + "tabaseDialectB\004\342A\001\003\022C\n\023referencing_backu" - + "ps\030\013 \003(\tB&\342A\001\003\372A\037\n\035spanner.googleapis.co" - + "m/Backup\0229\n\017max_expire_time\030\014 \001(\0132\032.goog" - + "le.protobuf.TimestampB\004\342A\001\003\"7\n\005State\022\025\n\021" - + "STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005REA" - + "DY\020\002:\\\352AY\n\035spanner.googleapis.com/Backup" - + "\0228projects/{project}/instances/{instance" - + "}/backups/{backup}\"\211\002\n\023CreateBackupReque" - + "st\0228\n\006parent\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.goo" - + "gleapis.com/Instance\022\027\n\tbackup_id\030\002 \001(\tB" - + "\004\342A\001\002\022>\n\006backup\030\003 \001(\0132(.google.spanner.a" - + "dmin.database.v1.BackupB\004\342A\001\002\022_\n\021encrypt" - + "ion_config\030\004 \001(\0132>.google.spanner.admin." - + "database.v1.CreateBackupEncryptionConfig" - + "B\004\342A\001\001\"\370\001\n\024CreateBackupMetadata\0220\n\004name\030" - + "\001 \001(\tB\"\372A\037\n\035spanner.googleapis.com/Backu" - + "p\0226\n\010database\030\002 \001(\tB$\372A!\n\037spanner.google" - + "apis.com/Database\022E\n\010progress\030\003 \001(\01323.go" - + "ogle.spanner.admin.database.v1.Operation" - + "Progress\022/\n\013cancel_time\030\004 \001(\0132\032.google.p" - + "rotobuf.Timestamp\"\273\002\n\021CopyBackupRequest\022" - + "8\n\006parent\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.google" - + "apis.com/Instance\022\027\n\tbackup_id\030\002 \001(\tB\004\342A" - + "\001\002\022=\n\rsource_backup\030\003 \001(\tB&\342A\001\002\372A\037\n\035span" - + "ner.googleapis.com/Backup\0225\n\013expire_time" - + "\030\004 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\002" - + "\022]\n\021encryption_config\030\005 \001(\0132<.google.spa" - + "nner.admin.database.v1.CopyBackupEncrypt" - + "ionConfigB\004\342A\001\001\"\371\001\n\022CopyBackupMetadata\0220" - + "\n\004name\030\001 \001(\tB\"\372A\037\n\035spanner.googleapis.co" - + "m/Backup\0229\n\rsource_backup\030\002 \001(\tB\"\372A\037\n\035sp" - + "anner.googleapis.com/Backup\022E\n\010progress\030" - + "\003 \001(\01323.google.spanner.admin.database.v1" - + ".OperationProgress\022/\n\013cancel_time\030\004 \001(\0132" - + "\032.google.protobuf.Timestamp\"\214\001\n\023UpdateBa" - + "ckupRequest\022>\n\006backup\030\001 \001(\0132(.google.spa" - + "nner.admin.database.v1.BackupB\004\342A\001\002\0225\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "MaskB\004\342A\001\002\"H\n\020GetBackupRequest\0224\n\004name\030\001" - + " \001(\tB&\342A\001\002\372A\037\n\035spanner.googleapis.com/Ba" - + "ckup\"K\n\023DeleteBackupRequest\0224\n\004name\030\001 \001(" - + "\tB&\342A\001\002\372A\037\n\035spanner.googleapis.com/Backu" - + "p\"\205\001\n\022ListBackupsRequest\0228\n\006parent\030\001 \001(\t" - + "B(\342A\001\002\372A!\n\037spanner.googleapis.com/Instan" - + "ce\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n" - + "\npage_token\030\004 \001(\t\"i\n\023ListBackupsResponse" - + "\0229\n\007backups\030\001 \003(\0132(.google.spanner.admin" - + ".database.v1.Backup\022\027\n\017next_page_token\030\002" - + " \001(\t\"\216\001\n\033ListBackupOperationsRequest\0228\n\006" - + "parent\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.googleapi" - + "s.com/Instance\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_s" - + "ize\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"j\n\034ListBac" - + "kupOperationsResponse\0221\n\noperations\030\001 \003(" - + "\0132\035.google.longrunning.Operation\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\342\001\n\nBackupInfo\0222\n\006back" - + "up\030\001 \001(\tB\"\372A\037\n\035spanner.googleapis.com/Ba" - + "ckup\0220\n\014version_time\030\004 \001(\0132\032.google.prot" - + "obuf.Timestamp\022/\n\013create_time\030\002 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022=\n\017source_databa" - + "se\030\003 \001(\tB$\372A!\n\037spanner.googleapis.com/Da" - + "tabase\"\337\002\n\034CreateBackupEncryptionConfig\022" - + "l\n\017encryption_type\030\001 \001(\0162M.google.spanne" - + "r.admin.database.v1.CreateBackupEncrypti" - + "onConfig.EncryptionTypeB\004\342A\001\002\022@\n\014kms_key" - + "_name\030\002 \001(\tB*\342A\001\001\372A#\n!cloudkms.googleapi" - + "s.com/CryptoKey\"\216\001\n\016EncryptionType\022\037\n\033EN" - + "CRYPTION_TYPE_UNSPECIFIED\020\000\022\033\n\027USE_DATAB" - + "ASE_ENCRYPTION\020\001\022\035\n\031GOOGLE_DEFAULT_ENCRY" - + "PTION\020\002\022\037\n\033CUSTOMER_MANAGED_ENCRYPTION\020\003" - + "\"\353\002\n\032CopyBackupEncryptionConfig\022j\n\017encry" - + "ption_type\030\001 \001(\0162K.google.spanner.admin." - + "database.v1.CopyBackupEncryptionConfig.E" - + "ncryptionTypeB\004\342A\001\002\022@\n\014kms_key_name\030\002 \001(" - + "\tB*\342A\001\001\372A#\n!cloudkms.googleapis.com/Cryp" - + "toKey\"\236\001\n\016EncryptionType\022\037\n\033ENCRYPTION_T" - + "YPE_UNSPECIFIED\020\000\022+\n\'USE_CONFIG_DEFAULT_" - + "OR_BACKUP_ENCRYPTION\020\001\022\035\n\031GOOGLE_DEFAULT" - + "_ENCRYPTION\020\002\022\037\n\033CUSTOMER_MANAGED_ENCRYP" - + "TION\020\003B\375\001\n$com.google.spanner.admin.data" - + "base.v1B\013BackupProtoP\001ZFcloud.google.com" - + "/go/spanner/admin/database/apiv1/databas" - + "epb;databasepb\252\002&Google.Cloud.Spanner.Ad" - + "min.Database.V1\312\002&Google\\Cloud\\Spanner\\A" - + "dmin\\Database\\V1\352\002+Google::Cloud::Spanne" - + "r::Admin::Database::V1b\006proto3" + + "pB\003\340A\003\022\027\n\nsize_bytes\030\005 \001(\003B\003\340A\003\022B\n\005state" + + "\030\006 \001(\0162..google.spanner.admin.database.v" + + "1.Backup.StateB\003\340A\003\022F\n\025referencing_datab" + + "ases\030\007 \003(\tB\'\340A\003\372A!\n\037spanner.googleapis.c" + + "om/Database\022N\n\017encryption_info\030\010 \001(\01320.g" + + "oogle.spanner.admin.database.v1.Encrypti" + + "onInfoB\003\340A\003\022P\n\020database_dialect\030\n \001(\01621." + + "google.spanner.admin.database.v1.Databas" + + "eDialectB\003\340A\003\022B\n\023referencing_backups\030\013 \003" + + "(\tB%\340A\003\372A\037\n\035spanner.googleapis.com/Backu" + + "p\0228\n\017max_expire_time\030\014 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\"7\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002:\\\352A" + + "Y\n\035spanner.googleapis.com/Backup\0228projec" + + "ts/{project}/instances/{instance}/backup" + + "s/{backup}\"\205\002\n\023CreateBackupRequest\0227\n\006pa" + + "rent\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.googleapis.c" + + "om/Instance\022\026\n\tbackup_id\030\002 \001(\tB\003\340A\002\022=\n\006b" + + "ackup\030\003 \001(\0132(.google.spanner.admin.datab" + + "ase.v1.BackupB\003\340A\002\022^\n\021encryption_config\030" + + "\004 \001(\0132>.google.spanner.admin.database.v1" + + ".CreateBackupEncryptionConfigB\003\340A\001\"\370\001\n\024C" + + "reateBackupMetadata\0220\n\004name\030\001 \001(\tB\"\372A\037\n\035" + + "spanner.googleapis.com/Backup\0226\n\010databas" + + "e\030\002 \001(\tB$\372A!\n\037spanner.googleapis.com/Dat" + + "abase\022E\n\010progress\030\003 \001(\01323.google.spanner" + + ".admin.database.v1.OperationProgress\022/\n\013" + + "cancel_time\030\004 \001(\0132\032.google.protobuf.Time" + + "stamp\"\266\002\n\021CopyBackupRequest\0227\n\006parent\030\001 " + + "\001(\tB\'\340A\002\372A!\n\037spanner.googleapis.com/Inst" + + "ance\022\026\n\tbackup_id\030\002 \001(\tB\003\340A\002\022<\n\rsource_b" + + "ackup\030\003 \001(\tB%\340A\002\372A\037\n\035spanner.googleapis." + + "com/Backup\0224\n\013expire_time\030\004 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\002\022\\\n\021encryption_c" + + "onfig\030\005 \001(\0132<.google.spanner.admin.datab" + + "ase.v1.CopyBackupEncryptionConfigB\003\340A\001\"\371" + + "\001\n\022CopyBackupMetadata\0220\n\004name\030\001 \001(\tB\"\372A\037" + + "\n\035spanner.googleapis.com/Backup\0229\n\rsourc" + + "e_backup\030\002 \001(\tB\"\372A\037\n\035spanner.googleapis." + + "com/Backup\022E\n\010progress\030\003 \001(\01323.google.sp" + + "anner.admin.database.v1.OperationProgres" + + "s\022/\n\013cancel_time\030\004 \001(\0132\032.google.protobuf" + + ".Timestamp\"\212\001\n\023UpdateBackupRequest\022=\n\006ba" + + "ckup\030\001 \001(\0132(.google.spanner.admin.databa" + + "se.v1.BackupB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMaskB\003\340A\002\"G\n\020GetBa" + + "ckupRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035spann" + + "er.googleapis.com/Backup\"J\n\023DeleteBackup" + + "Request\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035spanner.g" + + "oogleapis.com/Backup\"\204\001\n\022ListBackupsRequ" + + "est\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.goo" + + "gleapis.com/Instance\022\016\n\006filter\030\002 \001(\t\022\021\n\t" + + "page_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"i\n\023L" + + "istBackupsResponse\0229\n\007backups\030\001 \003(\0132(.go" + + "ogle.spanner.admin.database.v1.Backup\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\215\001\n\033ListBackupOpe" + + "rationsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037" + + "spanner.googleapis.com/Instance\022\016\n\006filte" + + "r\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token" + + "\030\004 \001(\t\"j\n\034ListBackupOperationsResponse\0221" + + "\n\noperations\030\001 \003(\0132\035.google.longrunning." + + "Operation\022\027\n\017next_page_token\030\002 \001(\t\"\342\001\n\nB" + + "ackupInfo\0222\n\006backup\030\001 \001(\tB\"\372A\037\n\035spanner." + + "googleapis.com/Backup\0220\n\014version_time\030\004 " + + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013creat" + + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "\022=\n\017source_database\030\003 \001(\tB$\372A!\n\037spanner." + + "googleapis.com/Database\"\335\002\n\034CreateBackup" + + "EncryptionConfig\022k\n\017encryption_type\030\001 \001(" + + "\0162M.google.spanner.admin.database.v1.Cre" + + "ateBackupEncryptionConfig.EncryptionType" + + "B\003\340A\002\022?\n\014kms_key_name\030\002 \001(\tB)\340A\001\372A#\n!clo" + + "udkms.googleapis.com/CryptoKey\"\216\001\n\016Encry" + + "ptionType\022\037\n\033ENCRYPTION_TYPE_UNSPECIFIED" + + "\020\000\022\033\n\027USE_DATABASE_ENCRYPTION\020\001\022\035\n\031GOOGL" + + "E_DEFAULT_ENCRYPTION\020\002\022\037\n\033CUSTOMER_MANAG" + + "ED_ENCRYPTION\020\003\"\351\002\n\032CopyBackupEncryption" + + "Config\022i\n\017encryption_type\030\001 \001(\0162K.google" + + ".spanner.admin.database.v1.CopyBackupEnc" + + "ryptionConfig.EncryptionTypeB\003\340A\002\022?\n\014kms" + + "_key_name\030\002 \001(\tB)\340A\001\372A#\n!cloudkms.google" + + "apis.com/CryptoKey\"\236\001\n\016EncryptionType\022\037\n" + + "\033ENCRYPTION_TYPE_UNSPECIFIED\020\000\022+\n\'USE_CO" + + "NFIG_DEFAULT_OR_BACKUP_ENCRYPTION\020\001\022\035\n\031G" + + "OOGLE_DEFAULT_ENCRYPTION\020\002\022\037\n\033CUSTOMER_M" + + "ANAGED_ENCRYPTION\020\003B\375\001\n$com.google.spann" + + "er.admin.database.v1B\013BackupProtoP\001ZFclo" + + "ud.google.com/go/spanner/admin/database/" + + "apiv1/databasepb;databasepb\252\002&Google.Clo" + + "ud.Spanner.Admin.Database.V1\312\002&Google\\Cl" + + "oud\\Spanner\\Admin\\Database\\V1\352\002+Google::" + + "Cloud::Spanner::Admin::Database::V1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CommonProto.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CommonProto.java index 160c6f4e200..cb876487e5f 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CommonProto.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CommonProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/common.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public final class CommonProto { @@ -58,32 +59,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tobuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.goog" + "le.protobuf.Timestamp\"P\n\020EncryptionConfi" + "g\022<\n\014kms_key_name\030\002 \001(\tB&\372A#\n!cloudkms.g" - + "oogleapis.com/CryptoKey\"\305\002\n\016EncryptionIn" - + "fo\022T\n\017encryption_type\030\003 \001(\01625.google.spa" + + "oogleapis.com/CryptoKey\"\302\002\n\016EncryptionIn" + + "fo\022S\n\017encryption_type\030\003 \001(\01625.google.spa" + "nner.admin.database.v1.EncryptionInfo.Ty" - + "peB\004\342A\001\003\0223\n\021encryption_status\030\004 \001(\0132\022.go" - + "ogle.rpc.StatusB\004\342A\001\003\022J\n\017kms_key_version" - + "\030\002 \001(\tB1\342A\001\003\372A*\n(cloudkms.googleapis.com" - + "/CryptoKeyVersion\"\\\n\004Type\022\024\n\020TYPE_UNSPEC" - + "IFIED\020\000\022\035\n\031GOOGLE_DEFAULT_ENCRYPTION\020\001\022\037" - + "\n\033CUSTOMER_MANAGED_ENCRYPTION\020\002*\\\n\017Datab" - + "aseDialect\022 \n\034DATABASE_DIALECT_UNSPECIFI" - + "ED\020\000\022\027\n\023GOOGLE_STANDARD_SQL\020\001\022\016\n\nPOSTGRE" - + "SQL\020\002B\242\004\n$com.google.spanner.admin.datab" - + "ase.v1B\013CommonProtoP\001ZFcloud.google.com/" - + "go/spanner/admin/database/apiv1/database" - + "pb;databasepb\252\002&Google.Cloud.Spanner.Adm" - + "in.Database.V1\312\002&Google\\Cloud\\Spanner\\Ad" - + "min\\Database\\V1\352\002+Google::Cloud::Spanner" - + "::Admin::Database::V1\352Ax\n!cloudkms.googl" - + "eapis.com/CryptoKey\022Sprojects/{project}/" - + "locations/{location}/keyRings/{key_ring}" - + "/cryptoKeys/{crypto_key}\352A\246\001\n(cloudkms.g" - + "oogleapis.com/CryptoKeyVersion\022zprojects" - + "/{project}/locations/{location}/keyRings" - + "/{key_ring}/cryptoKeys/{crypto_key}/cryp" - + "toKeyVersions/{crypto_key_version}b\006prot" - + "o3" + + "peB\003\340A\003\0222\n\021encryption_status\030\004 \001(\0132\022.goo" + + "gle.rpc.StatusB\003\340A\003\022I\n\017kms_key_version\030\002" + + " \001(\tB0\340A\003\372A*\n(cloudkms.googleapis.com/Cr" + + "yptoKeyVersion\"\\\n\004Type\022\024\n\020TYPE_UNSPECIFI" + + "ED\020\000\022\035\n\031GOOGLE_DEFAULT_ENCRYPTION\020\001\022\037\n\033C" + + "USTOMER_MANAGED_ENCRYPTION\020\002*\\\n\017Database" + + "Dialect\022 \n\034DATABASE_DIALECT_UNSPECIFIED\020" + + "\000\022\027\n\023GOOGLE_STANDARD_SQL\020\001\022\016\n\nPOSTGRESQL" + + "\020\002B\242\004\n$com.google.spanner.admin.database" + + ".v1B\013CommonProtoP\001ZFcloud.google.com/go/" + + "spanner/admin/database/apiv1/databasepb;" + + "databasepb\252\002&Google.Cloud.Spanner.Admin." + + "Database.V1\312\002&Google\\Cloud\\Spanner\\Admin" + + "\\Database\\V1\352\002+Google::Cloud::Spanner::A" + + "dmin::Database::V1\352Ax\n!cloudkms.googleap" + + "is.com/CryptoKey\022Sprojects/{project}/loc" + + "ations/{location}/keyRings/{key_ring}/cr" + + "yptoKeys/{crypto_key}\352A\246\001\n(cloudkms.goog" + + "leapis.com/CryptoKeyVersion\022zprojects/{p" + + "roject}/locations/{location}/keyRings/{k" + + "ey_ring}/cryptoKeys/{crypto_key}/cryptoK" + + "eyVersions/{crypto_key_version}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfig.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfig.java index 445c4b8dccf..be4686b9636 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfig.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfigOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfigOrBuilder.java index 66137234c3a..1054af9a00c 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfigOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface CopyBackupEncryptionConfigOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadata.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadata.java index 39d29484b7e..0343cb71996 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadata.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.database.v1.CopyBackupMetadata.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -190,7 +192,7 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { */ @java.lang.Override public boolean hasProgress() { - return progress_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -253,7 +255,7 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre */ @java.lang.Override public boolean hasCancelTime() { - return cancelTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -326,10 +328,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBackup_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceBackup_); } - if (progress_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getProgress()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getCancelTime()); } getUnknownFields().writeTo(output); @@ -347,10 +349,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBackup_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceBackup_); } - if (progress_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProgress()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCancelTime()); } size += getUnknownFields().getSerializedSize(); @@ -533,10 +535,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.database.v1.CopyBackupMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProgressFieldBuilder(); + getCancelTimeFieldBuilder(); + } } @java.lang.Override @@ -597,12 +609,16 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CopyBackupMetada if (((from_bitField0_ & 0x00000002) != 0)) { result.sourceBackup_ = sourceBackup_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1077,8 +1093,10 @@ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgr } else { progressBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (progress_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -1319,8 +1337,10 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { } else { cancelTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (cancelTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadataOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadataOrBuilder.java index 143fc873851..f5cb5f5501b 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadataOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface CopyBackupMetadataOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequest.java index 9db3421dbb5..cb0a37356b8 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.database.v1.CopyBackupRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -261,7 +263,7 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { */ @java.lang.Override public boolean hasExpireTime() { - return expireTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -323,7 +325,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { */ @java.lang.Override public boolean hasEncryptionConfig() { - return encryptionConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -394,10 +396,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBackup_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceBackup_); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getExpireTime()); } - if (encryptionConfig_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getEncryptionConfig()); } getUnknownFields().writeTo(output); @@ -418,10 +420,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBackup_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceBackup_); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExpireTime()); } - if (encryptionConfig_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEncryptionConfig()); } size += getUnknownFields().getSerializedSize(); @@ -606,10 +608,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.database.v1.CopyBackupRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExpireTimeFieldBuilder(); + getEncryptionConfigFieldBuilder(); + } } @java.lang.Override @@ -674,13 +686,17 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CopyBackupReques if (((from_bitField0_ & 0x00000004) != 0)) { result.sourceBackup_ = sourceBackup_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.encryptionConfig_ = encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1331,8 +1347,10 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { } else { expireTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (expireTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -1569,8 +1587,10 @@ public Builder mergeEncryptionConfig( } else { encryptionConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (encryptionConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequestOrBuilder.java index 496a31d533e..9a2022a3e7e 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface CopyBackupRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfig.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfig.java index f3ece3e4ddc..19d1bd405a1 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfig.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfigOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfigOrBuilder.java index 3763805ad2c..d9db127641b 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfigOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface CreateBackupEncryptionConfigOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadata.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadata.java index 4ef7b1dfe40..702f5f11ebd 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadata.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.database.v1.CreateBackupMetadata.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -182,7 +184,7 @@ public com.google.protobuf.ByteString getDatabaseBytes() { */ @java.lang.Override public boolean hasProgress() { - return progress_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -245,7 +247,7 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre */ @java.lang.Override public boolean hasCancelTime() { - return cancelTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -318,10 +320,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, database_); } - if (progress_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getProgress()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getCancelTime()); } getUnknownFields().writeTo(output); @@ -339,10 +341,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); } - if (progress_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProgress()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCancelTime()); } size += getUnknownFields().getSerializedSize(); @@ -525,10 +527,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.database.v1.CreateBackupMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProgressFieldBuilder(); + getCancelTimeFieldBuilder(); + } } @java.lang.Override @@ -589,12 +601,16 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CreateBackupMeta if (((from_bitField0_ & 0x00000002) != 0)) { result.database_ = database_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1049,8 +1065,10 @@ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgr } else { progressBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (progress_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -1291,8 +1309,10 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { } else { cancelTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (cancelTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadataOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadataOrBuilder.java index c6692033bf2..c59449fe7b4 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadataOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface CreateBackupMetadataOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequest.java index 2b9a450eda5..3c20d5eaa3f 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.database.v1.CreateBackupRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -200,7 +202,7 @@ public com.google.protobuf.ByteString getBackupIdBytes() { */ @java.lang.Override public boolean hasBackup() { - return backup_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -260,7 +262,7 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder() */ @java.lang.Override public boolean hasEncryptionConfig() { - return encryptionConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -328,10 +330,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, backupId_); } - if (backup_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getBackup()); } - if (encryptionConfig_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getEncryptionConfig()); } getUnknownFields().writeTo(output); @@ -349,10 +351,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, backupId_); } - if (backup_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBackup()); } - if (encryptionConfig_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEncryptionConfig()); } size += getUnknownFields().getSerializedSize(); @@ -534,10 +536,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.database.v1.CreateBackupRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBackupFieldBuilder(); + getEncryptionConfigFieldBuilder(); + } } @java.lang.Override @@ -598,13 +610,17 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CreateBackupRequ if (((from_bitField0_ & 0x00000002) != 0)) { result.backupId_ = backupId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.backup_ = backupBuilder_ == null ? backup_ : backupBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.encryptionConfig_ = encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1108,8 +1124,10 @@ public Builder mergeBackup(com.google.spanner.admin.database.v1.Backup value) { } else { backupBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (backup_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -1334,8 +1352,10 @@ public Builder mergeEncryptionConfig( } else { encryptionConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (encryptionConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequestOrBuilder.java index ec8d6c11ff9..43381990f80 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface CreateBackupRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadata.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadata.java index f30b3907a24..968049a4ce0 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadata.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadataOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadataOrBuilder.java index 0e86443b2ba..4a74cfa4e5f 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadataOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface CreateDatabaseMetadataOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequest.java index 439e89fdfb6..8059b3ae53e 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -66,6 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.database.v1.CreateDatabaseRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -277,7 +279,7 @@ public com.google.protobuf.ByteString getExtraStatementsBytes(int index) { */ @java.lang.Override public boolean hasEncryptionConfig() { - return encryptionConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -417,7 +419,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < extraStatements_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, extraStatements_.getRaw(i)); } - if (encryptionConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getEncryptionConfig()); } if (databaseDialect_ @@ -451,7 +453,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getExtraStatementsList().size(); } - if (encryptionConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEncryptionConfig()); } if (databaseDialect_ @@ -644,10 +646,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.database.v1.CreateDatabaseRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEncryptionConfigFieldBuilder(); + } } @java.lang.Override @@ -710,9 +721,11 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CreateDatabaseRe extraStatements_.makeImmutable(); result.extraStatements_ = extraStatements_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.encryptionConfig_ = encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.databaseDialect_ = databaseDialect_; @@ -720,6 +733,7 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CreateDatabaseRe if (((from_bitField0_ & 0x00000020) != 0)) { result.protoDescriptors_ = protoDescriptors_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1454,8 +1468,10 @@ public Builder mergeEncryptionConfig( } else { encryptionConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (encryptionConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequestOrBuilder.java index aa756e03c3a..61caab08428 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface CreateDatabaseRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Database.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Database.java index 4f95d642696..2842ec2b468 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Database.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Database.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -262,6 +263,7 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.spanner.admin.database.v1.Database.State) } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -378,7 +380,7 @@ public com.google.spanner.admin.database.v1.Database.State getState() { */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -429,7 +431,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasRestoreInfo() { - return restoreInfo_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -490,7 +492,7 @@ public com.google.spanner.admin.database.v1.RestoreInfoOrBuilder getRestoreInfoO */ @java.lang.Override public boolean hasEncryptionConfig() { - return encryptionConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -739,7 +741,7 @@ public com.google.protobuf.ByteString getVersionRetentionPeriodBytes() { */ @java.lang.Override public boolean hasEarliestVersionTime() { - return earliestVersionTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -947,19 +949,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.spanner.admin.database.v1.Database.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getCreateTime()); } - if (restoreInfo_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getRestoreInfo()); } - if (encryptionConfig_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getEncryptionConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionRetentionPeriod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, versionRetentionPeriod_); } - if (earliestVersionTime_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(7, getEarliestVersionTime()); } for (int i = 0; i < encryptionInfo_.size(); i++) { @@ -995,19 +997,19 @@ public int getSerializedSize() { != com.google.spanner.admin.database.v1.Database.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } - if (restoreInfo_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRestoreInfo()); } - if (encryptionConfig_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEncryptionConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionRetentionPeriod_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, versionRetentionPeriod_); } - if (earliestVersionTime_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEarliestVersionTime()); } for (int i = 0; i < encryptionInfo_.size(); i++) { @@ -1241,10 +1243,23 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.database.v1.Database.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getRestoreInfoFieldBuilder(); + getEncryptionConfigFieldBuilder(); + getEncryptionInfoFieldBuilder(); + getEarliestVersionTimeFieldBuilder(); + } } @java.lang.Override @@ -1340,16 +1355,20 @@ private void buildPartial0(com.google.spanner.admin.database.v1.Database result) if (((from_bitField0_ & 0x00000002) != 0)) { result.state_ = state_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.restoreInfo_ = restoreInfoBuilder_ == null ? restoreInfo_ : restoreInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.encryptionConfig_ = encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { result.versionRetentionPeriod_ = versionRetentionPeriod_; @@ -1359,6 +1378,7 @@ private void buildPartial0(com.google.spanner.admin.database.v1.Database result) earliestVersionTimeBuilder_ == null ? earliestVersionTime_ : earliestVersionTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000100) != 0)) { result.defaultLeader_ = defaultLeader_; @@ -1372,6 +1392,7 @@ private void buildPartial0(com.google.spanner.admin.database.v1.Database result) if (((from_bitField0_ & 0x00000800) != 0)) { result.reconciling_ = reconciling_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1952,8 +1973,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -2160,8 +2183,10 @@ public Builder mergeRestoreInfo(com.google.spanner.admin.database.v1.RestoreInfo } else { restoreInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (restoreInfo_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -2384,8 +2409,10 @@ public Builder mergeEncryptionConfig( } else { encryptionConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (encryptionConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -3292,8 +3319,10 @@ public Builder mergeEarliestVersionTime(com.google.protobuf.Timestamp value) { } else { earliestVersionTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (earliestVersionTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseDialect.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseDialect.java index 188070a6d65..93cb88c18d1 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseDialect.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseDialect.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/common.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java index 146a438cc2a..2de1c15c9aa 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseOrBuilder.java index eb64c44abc3..72c3d2e2ba5 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface DatabaseOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRole.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRole.java index c8f58eed3cd..c3b65f4705e 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRole.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRole.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRoleOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRoleOrBuilder.java index 23a276eb710..512a0227136 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRoleOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRoleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface DatabaseRoleOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfo.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfo.java index a074693c0d6..38f1b7e775c 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfo.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfoOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfoOrBuilder.java index f9007075e50..942e6ef7374 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfoOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface DdlStatementActionInfoOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequest.java index 61ad6932973..83cad340f12 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequestOrBuilder.java index 6e741f3c9d3..cfad9f82916 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface DeleteBackupRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequest.java index 09454ce896b..d5743917233 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequestOrBuilder.java index 837a3f8aad1..fe54af60372 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface DropDatabaseRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfig.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfig.java index b50ba4d39e4..0ba0b77e092 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfig.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/common.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfigOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfigOrBuilder.java index a4225837277..8969328bfc3 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfigOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/common.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface EncryptionConfigOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfo.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfo.java index deeaa859ae1..5e9c0316ea1 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfo.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/common.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -230,6 +231,7 @@ private Type(int value) { // @@protoc_insertion_point(enum_scope:google.spanner.admin.database.v1.EncryptionInfo.Type) } + private int bitField0_; public static final int ENCRYPTION_TYPE_FIELD_NUMBER = 3; private int encryptionType_ = 0; /** @@ -289,7 +291,7 @@ public com.google.spanner.admin.database.v1.EncryptionInfo.Type getEncryptionTyp */ @java.lang.Override public boolean hasEncryptionStatus() { - return encryptionStatus_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -408,7 +410,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.spanner.admin.database.v1.EncryptionInfo.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, encryptionType_); } - if (encryptionStatus_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getEncryptionStatus()); } getUnknownFields().writeTo(output); @@ -427,7 +429,7 @@ public int getSerializedSize() { != com.google.spanner.admin.database.v1.EncryptionInfo.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, encryptionType_); } - if (encryptionStatus_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEncryptionStatus()); } size += getUnknownFields().getSerializedSize(); @@ -600,10 +602,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.database.v1.EncryptionInfo.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEncryptionStatusFieldBuilder(); + } } @java.lang.Override @@ -656,13 +667,16 @@ private void buildPartial0(com.google.spanner.admin.database.v1.EncryptionInfo r if (((from_bitField0_ & 0x00000001) != 0)) { result.encryptionType_ = encryptionType_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.encryptionStatus_ = encryptionStatusBuilder_ == null ? encryptionStatus_ : encryptionStatusBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.kmsKeyVersion_ = kmsKeyVersion_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1004,8 +1018,10 @@ public Builder mergeEncryptionStatus(com.google.rpc.Status value) { } else { encryptionStatusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (encryptionStatus_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfoOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfoOrBuilder.java index f10242165d1..caac5695fc0 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfoOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/common.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface EncryptionInfoOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequest.java index 78f179aeab9..e93406bcbe1 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequestOrBuilder.java index 93f49963ea3..2c4aa5f2c56 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface GetBackupRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequest.java index 19a564cd4dc..3113d4cbc0b 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequestOrBuilder.java index 59e9312a816..b4483afb7cd 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface GetDatabaseDdlRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponse.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponse.java index 0aaa9ab3354..dbbf4bab797 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponse.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponseOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponseOrBuilder.java index e972c5faa9d..5221e50c10b 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponseOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface GetDatabaseDdlResponseOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequest.java index d9e26ee2e63..b9442cb729f 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequestOrBuilder.java index 42524b6d2f4..d56c35bfda7 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface GetDatabaseRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java index b4ca9b58d8b..3eb8a8dd67b 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequest.java index d9cae43e3df..11a24abfe7e 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequestOrBuilder.java index 1b6e0133c34..ed19f212938 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface ListBackupOperationsRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponse.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponse.java index 69b61c9945e..8b1c9c1dc6f 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponse.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponseOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponseOrBuilder.java index 44b3bae4fb4..d88a6ee3d1c 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponseOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface ListBackupOperationsResponseOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequest.java index 84701664bec..9c2a1b016b2 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequestOrBuilder.java index 6eb63234798..d17f1b084b1 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface ListBackupsRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponse.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponse.java index c7467445ef8..f1c2272adb6 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponse.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponseOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponseOrBuilder.java index 403a90b291a..4c9b67dc197 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponseOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface ListBackupsResponseOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequest.java index 9db28bb0075..6f6a5a1e1a4 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequestOrBuilder.java index 336d9ee2918..5fc66e2edae 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface ListDatabaseOperationsRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponse.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponse.java index df3af219b98..1fb7ea2d5b0 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponse.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponseOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponseOrBuilder.java index 29aca1b67e4..7b0b82fcd23 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponseOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface ListDatabaseOperationsResponseOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequest.java index 19b5f77c5f6..201c1e081a5 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequestOrBuilder.java index 14ea0fe6c8d..29424019402 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface ListDatabaseRolesRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponse.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponse.java index e5fd4f87235..acf91c8815d 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponse.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponseOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponseOrBuilder.java index 81687250021..c5b07544438 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponseOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface ListDatabaseRolesResponseOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequest.java index 406e7eb09b9..5b150cb9216 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequestOrBuilder.java index a396c328330..af24bf191c1 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface ListDatabasesRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponse.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponse.java index 7ea3272f2f2..210b5b33d54 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponse.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponseOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponseOrBuilder.java index f8c8fe7999c..a9d6f414f2f 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponseOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface ListDatabasesResponseOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgress.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgress.java index c1b86277cf0..7b752df354b 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgress.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgress.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/common.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -61,6 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.database.v1.OperationProgress.Builder.class); } + private int bitField0_; public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1; private int progressPercent_ = 0; /** @@ -95,7 +97,7 @@ public int getProgressPercent() { */ @java.lang.Override public boolean hasStartTime() { - return startTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -142,7 +144,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { */ @java.lang.Override public boolean hasEndTime() { - return endTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -192,10 +194,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (progressPercent_ != 0) { output.writeInt32(1, progressPercent_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getEndTime()); } getUnknownFields().writeTo(output); @@ -210,10 +212,10 @@ public int getSerializedSize() { if (progressPercent_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, progressPercent_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); } size += getUnknownFields().getSerializedSize(); @@ -393,10 +395,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.database.v1.OperationProgress.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } } @java.lang.Override @@ -453,12 +465,16 @@ private void buildPartial0(com.google.spanner.admin.database.v1.OperationProgres if (((from_bitField0_ & 0x00000001) != 0)) { result.progressPercent_ = progressPercent_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -735,8 +751,10 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -919,8 +937,10 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgressOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgressOrBuilder.java index 32187fbcdc8..7e4eb1c14d5 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgressOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgressOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/common.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface OperationProgressOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadata.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadata.java index f729e5bdeef..b646b3c7a9b 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadata.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -66,6 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -132,7 +134,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasProgress() { - return progress_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -184,7 +186,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (progress_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getProgress()); } getUnknownFields().writeTo(output); @@ -199,7 +201,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (progress_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgress()); } size += getUnknownFields().getSerializedSize(); @@ -375,10 +377,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProgressFieldBuilder(); + } } @java.lang.Override @@ -433,9 +444,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -762,8 +776,10 @@ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgr } else { progressBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (progress_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadataOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadataOrBuilder.java index 7d6ffdb4a02..4002005d204 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadataOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface OptimizeRestoredDatabaseMetadataOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfig.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfig.java index 2b8ea40391f..3624217acaa 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfig.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfigOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfigOrBuilder.java index 581735dba1e..47e9875866a 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfigOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface RestoreDatabaseEncryptionConfigOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadata.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadata.java index 75b761ebe56..3a02aa08196 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadata.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.Builder.class); } + private int bitField0_; private int sourceInfoCase_ = 0; @SuppressWarnings("serial") @@ -267,7 +269,7 @@ public com.google.spanner.admin.database.v1.BackupInfoOrBuilder getBackupInfoOrB */ @java.lang.Override public boolean hasProgress() { - return progress_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -331,7 +333,7 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre */ @java.lang.Override public boolean hasCancelTime() { - return cancelTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -477,10 +479,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceInfoCase_ == 3) { output.writeMessage(3, (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_); } - if (progress_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getProgress()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getCancelTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(optimizeDatabaseOperationName_)) { @@ -507,10 +509,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_); } - if (progress_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProgress()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCancelTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(optimizeDatabaseOperationName_)) { @@ -718,10 +720,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProgressFieldBuilder(); + getCancelTimeFieldBuilder(); + } } @java.lang.Override @@ -791,15 +803,19 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.sourceType_ = sourceType_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.optimizeDatabaseOperationName_ = optimizeDatabaseOperationName_; } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs( @@ -1505,8 +1521,10 @@ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgr } else { progressBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (progress_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -1746,8 +1764,10 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { } else { cancelTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (cancelTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadataOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadataOrBuilder.java index e7c1689b4bf..879d866f9d1 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadataOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface RestoreDatabaseMetadataOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequest.java index d6760e99860..82b435229fe 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.database.v1.RestoreDatabaseRequest.Builder.class); } + private int bitField0_; private int sourceCase_ = 0; @SuppressWarnings("serial") @@ -325,7 +327,7 @@ public com.google.protobuf.ByteString getBackupBytes() { */ @java.lang.Override public boolean hasEncryptionConfig() { - return encryptionConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -399,7 +401,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); } - if (encryptionConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getEncryptionConfig()); } getUnknownFields().writeTo(output); @@ -420,7 +422,7 @@ public int getSerializedSize() { if (sourceCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); } - if (encryptionConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEncryptionConfig()); } size += getUnknownFields().getSerializedSize(); @@ -611,10 +613,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.database.v1.RestoreDatabaseRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEncryptionConfigFieldBuilder(); + } } @java.lang.Override @@ -673,10 +684,13 @@ private void buildPartial0(com.google.spanner.admin.database.v1.RestoreDatabaseR if (((from_bitField0_ & 0x00000002) != 0)) { result.databaseId_ = databaseId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.encryptionConfig_ = encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs( @@ -1384,8 +1398,10 @@ public Builder mergeEncryptionConfig( } else { encryptionConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (encryptionConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequestOrBuilder.java index 14c8cb633b7..cb6f5aa907d 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface RestoreDatabaseRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfo.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfo.java index b403ca128f3..92e337c7be0 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfo.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfoOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfoOrBuilder.java index d1021cec96a..89ecb470a78 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfoOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface RestoreInfoOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreSourceType.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreSourceType.java index 906fb06f37b..b3d863f1de2 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreSourceType.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreSourceType.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/SpannerDatabaseAdminProto.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/SpannerDatabaseAdminProto.java index 8646b50bd53..7b3af91a2d2 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/SpannerDatabaseAdminProto.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/SpannerDatabaseAdminProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public final class SpannerDatabaseAdminProto { @@ -148,256 +149,255 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ource_type\030\001 \001(\01623.google.spanner.admin." + "database.v1.RestoreSourceType\022C\n\013backup_" + "info\030\002 \001(\0132,.google.spanner.admin.databa" - + "se.v1.BackupInfoH\000B\r\n\013source_info\"\325\006\n\010Da" - + "tabase\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022E\n\005state\030\002 \001(" - + "\01620.google.spanner.admin.database.v1.Dat" - + "abase.StateB\004\342A\001\003\0225\n\013create_time\030\003 \001(\0132\032" - + ".google.protobuf.TimestampB\004\342A\001\003\022I\n\014rest" - + "ore_info\030\004 \001(\0132-.google.spanner.admin.da" - + "tabase.v1.RestoreInfoB\004\342A\001\003\022S\n\021encryptio" - + "n_config\030\005 \001(\01322.google.spanner.admin.da" - + "tabase.v1.EncryptionConfigB\004\342A\001\003\022O\n\017encr" - + "yption_info\030\010 \003(\01320.google.spanner.admin" - + ".database.v1.EncryptionInfoB\004\342A\001\003\022&\n\030ver" - + "sion_retention_period\030\006 \001(\tB\004\342A\001\003\022?\n\025ear" - + "liest_version_time\030\007 \001(\0132\032.google.protob" - + "uf.TimestampB\004\342A\001\003\022\034\n\016default_leader\030\t \001" - + "(\tB\004\342A\001\003\022Q\n\020database_dialect\030\n \001(\01621.goo" - + "gle.spanner.admin.database.v1.DatabaseDi" - + "alectB\004\342A\001\003\022\036\n\026enable_drop_protection\030\013 " - + "\001(\010\022\031\n\013reconciling\030\014 \001(\010B\004\342A\001\003\"M\n\005State\022" - + "\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005" - + "READY\020\002\022\024\n\020READY_OPTIMIZING\020\003:b\352A_\n\037span" - + "ner.googleapis.com/Database\022\332A" - + "\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/in" - + "stances/*}/databases\022\244\002\n\016CreateDatabase\022" - + "7.google.spanner.admin.database.v1.Creat" - + "eDatabaseRequest\032\035.google.longrunning.Op" - + "eration\"\271\001\312Ad\n)google.spanner.admin.data" - + "base.v1.Database\0227google.spanner.admin.d" - + "atabase.v1.CreateDatabaseMetadata\332A\027pare" - + "nt,create_statement\202\323\344\223\0022\"-/v1/{parent=p" - + "rojects/*/instances/*}/databases:\001*\022\255\001\n\013" - + "GetDatabase\0224.google.spanner.admin.datab" - + "ase.v1.GetDatabaseRequest\032*.google.spann" - + "er.admin.database.v1.Database\"<\332A\004name\202\323" - + "\344\223\002/\022-/v1/{name=projects/*/instances/*/d" - + "atabases/*}\022\357\001\n\016UpdateDatabase\0227.google." - + "spanner.admin.database.v1.UpdateDatabase" - + "Request\032\035.google.longrunning.Operation\"\204" - + "\001\312A\"\n\010Database\022\026UpdateDatabaseMetadata\332A" - + "\024database,update_mask\202\323\344\223\002B26/v1/{databa" - + "se.name=projects/*/instances/*/databases" - + "/*}:\010database\022\235\002\n\021UpdateDatabaseDdl\022:.go" + + "se.v1.BackupInfoH\000B\r\n\013source_info\"\312\006\n\010Da" + + "tabase\022\021\n\004name\030\001 \001(\tB\003\340A\002\022D\n\005state\030\002 \001(\016" + + "20.google.spanner.admin.database.v1.Data" + + "base.StateB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022H\n\014restore" + + "_info\030\004 \001(\0132-.google.spanner.admin.datab" + + "ase.v1.RestoreInfoB\003\340A\003\022R\n\021encryption_co" + + "nfig\030\005 \001(\01322.google.spanner.admin.databa" + + "se.v1.EncryptionConfigB\003\340A\003\022N\n\017encryptio" + + "n_info\030\010 \003(\01320.google.spanner.admin.data" + + "base.v1.EncryptionInfoB\003\340A\003\022%\n\030version_r" + + "etention_period\030\006 \001(\tB\003\340A\003\022>\n\025earliest_v" + + "ersion_time\030\007 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022\033\n\016default_leader\030\t \001(\tB\003\340A\003\022" + + "P\n\020database_dialect\030\n \001(\01621.google.spann" + + "er.admin.database.v1.DatabaseDialectB\003\340A" + + "\003\022\036\n\026enable_drop_protection\030\013 \001(\010\022\030\n\013rec" + + "onciling\030\014 \001(\010B\003\340A\003\"M\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\024\n\020" + + "READY_OPTIMIZING\020\003:b\352A_\n\037spanner.googlea" + + "pis.com/Database\022\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects" + + "/*/instances/*}/databases\022\244\002\n\016CreateData" + + "base\0227.google.spanner.admin.database.v1." + + "CreateDatabaseRequest\032\035.google.longrunni" + + "ng.Operation\"\271\001\312Ad\n)google.spanner.admin" + + ".database.v1.Database\0227google.spanner.ad" + + "min.database.v1.CreateDatabaseMetadata\332A" + + "\027parent,create_statement\202\323\344\223\0022\"-/v1/{par" + + "ent=projects/*/instances/*}/databases:\001*" + + "\022\255\001\n\013GetDatabase\0224.google.spanner.admin." + + "database.v1.GetDatabaseRequest\032*.google." + + "spanner.admin.database.v1.Database\"<\332A\004n" + + "ame\202\323\344\223\002/\022-/v1/{name=projects/*/instance" + + "s/*/databases/*}\022\357\001\n\016UpdateDatabase\0227.go" + "ogle.spanner.admin.database.v1.UpdateDat" - + "abaseDdlRequest\032\035.google.longrunning.Ope" - + "ration\"\254\001\312AS\n\025google.protobuf.Empty\022:goo" - + "gle.spanner.admin.database.v1.UpdateData" - + "baseDdlMetadata\332A\023database,statements\202\323\344" - + "\223\002:25/v1/{database=projects/*/instances/" - + "*/databases/*}/ddl:\001*\022\243\001\n\014DropDatabase\0225" - + ".google.spanner.admin.database.v1.DropDa" - + "tabaseRequest\032\026.google.protobuf.Empty\"D\332" - + "A\010database\202\323\344\223\0023*1/v1/{database=projects" - + "/*/instances/*/databases/*}\022\315\001\n\016GetDatab" - + "aseDdl\0227.google.spanner.admin.database.v" - + "1.GetDatabaseDdlRequest\0328.google.spanner" - + ".admin.database.v1.GetDatabaseDdlRespons" - + "e\"H\332A\010database\202\323\344\223\0027\0225/v1/{database=proj" - + "ects/*/instances/*/databases/*}/ddl\022\353\001\n\014" - + "SetIamPolicy\022\".google.iam.v1.SetIamPolic" - + "yRequest\032\025.google.iam.v1.Policy\"\237\001\332A\017res" - + "ource,policy\202\323\344\223\002\206\001\">/v1/{resource=proje" - + "cts/*/instances/*/databases/*}:setIamPol" - + "icy:\001*ZA\"/v1/{resource=projects/*/ins" - + "tances/*/databases/*}:getIamPolicy:\001*ZA\"" - + ".google.spanner.admin." - + "database.v1.ListBackupOperationsResponse" - + "\"E\332A\006parent\202\323\344\223\0026\0224/v1/{parent=projects/" - + "*/instances/*}/backupOperations\022\334\001\n\021List" - + "DatabaseRoles\022:.google.spanner.admin.dat" - + "abase.v1.ListDatabaseRolesRequest\032;.goog" - + "le.spanner.admin.database.v1.ListDatabas" - + "eRolesResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{pa" - + "rent=projects/*/instances/*/databases/*}" - + "/databaseRoles\032x\312A\026spanner.googleapis.co" - + "m\322A\\https://www.googleapis.com/auth/clou" - + "d-platform,https://www.googleapis.com/au" - + "th/spanner.adminB\330\002\n$com.google.spanner." - + "admin.database.v1B\031SpannerDatabaseAdminP" - + "rotoP\001ZFcloud.google.com/go/spanner/admi" - + "n/database/apiv1/databasepb;databasepb\252\002" - + "&Google.Cloud.Spanner.Admin.Database.V1\312" - + "\002&Google\\Cloud\\Spanner\\Admin\\Database\\V1" - + "\352\002+Google::Cloud::Spanner::Admin::Databa" - + "se::V1\352AJ\n\037spanner.googleapis.com/Instan" - + "ce\022\'projects/{project}/instances/{instan" - + "ce}b\006proto3" + + "abaseRequest\032\035.google.longrunning.Operat" + + "ion\"\204\001\312A\"\n\010Database\022\026UpdateDatabaseMetad" + + "ata\332A\024database,update_mask\202\323\344\223\002B26/v1/{d" + + "atabase.name=projects/*/instances/*/data" + + "bases/*}:\010database\022\235\002\n\021UpdateDatabaseDdl" + + "\022:.google.spanner.admin.database.v1.Upda" + + "teDatabaseDdlRequest\032\035.google.longrunnin" + + "g.Operation\"\254\001\312AS\n\025google.protobuf.Empty" + + "\022:google.spanner.admin.database.v1.Updat" + + "eDatabaseDdlMetadata\332A\023database,statemen" + + "ts\202\323\344\223\002:25/v1/{database=projects/*/insta" + + "nces/*/databases/*}/ddl:\001*\022\243\001\n\014DropDatab" + + "ase\0225.google.spanner.admin.database.v1.D" + + "ropDatabaseRequest\032\026.google.protobuf.Emp" + + "ty\"D\332A\010database\202\323\344\223\0023*1/v1/{database=pro" + + "jects/*/instances/*/databases/*}\022\315\001\n\016Get" + + "DatabaseDdl\0227.google.spanner.admin.datab" + + "ase.v1.GetDatabaseDdlRequest\0328.google.sp" + + "anner.admin.database.v1.GetDatabaseDdlRe" + + "sponse\"H\332A\010database\202\323\344\223\0027\0225/v1/{database" + + "=projects/*/instances/*/databases/*}/ddl" + + "\022\353\001\n\014SetIamPolicy\022\".google.iam.v1.SetIam" + + "PolicyRequest\032\025.google.iam.v1.Policy\"\237\001\332" + + "A\017resource,policy\202\323\344\223\002\206\001\">/v1/{resource=" + + "projects/*/instances/*/databases/*}:setI" + + "amPolicy:\001*ZA\"/v1/{resource=projects/" + + "*/instances/*/databases/*}:getIamPolicy:" + + "\001*ZA\".google.spanner.a" + + "dmin.database.v1.ListBackupOperationsRes" + + "ponse\"E\332A\006parent\202\323\344\223\0026\0224/v1/{parent=proj" + + "ects/*/instances/*}/backupOperations\022\334\001\n" + + "\021ListDatabaseRoles\022:.google.spanner.admi" + + "n.database.v1.ListDatabaseRolesRequest\032;" + + ".google.spanner.admin.database.v1.ListDa" + + "tabaseRolesResponse\"N\332A\006parent\202\323\344\223\002?\022=/v" + + "1/{parent=projects/*/instances/*/databas" + + "es/*}/databaseRoles\032x\312A\026spanner.googleap" + + "is.com\322A\\https://www.googleapis.com/auth" + + "/cloud-platform,https://www.googleapis.c" + + "om/auth/spanner.adminB\330\002\n$com.google.spa" + + "nner.admin.database.v1B\031SpannerDatabaseA" + + "dminProtoP\001ZFcloud.google.com/go/spanner" + + "/admin/database/apiv1/databasepb;databas" + + "epb\252\002&Google.Cloud.Spanner.Admin.Databas" + + "e.V1\312\002&Google\\Cloud\\Spanner\\Admin\\Databa" + + "se\\V1\352\002+Google::Cloud::Spanner::Admin::D" + + "atabase::V1\352AJ\n\037spanner.googleapis.com/I" + + "nstance\022\'projects/{project}/instances/{i" + + "nstance}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequest.java index 5645f3e03e7..7c9e9fa5031 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.database.v1.UpdateBackupRequest.Builder.class); } + private int bitField0_; public static final int BACKUP_FIELD_NUMBER = 1; private com.google.spanner.admin.database.v1.Backup backup_; /** @@ -80,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasBackup() { - return backup_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -145,7 +147,7 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder() */ @java.lang.Override public boolean hasUpdateMask() { - return updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -200,10 +202,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (backup_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getBackup()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getUpdateMask()); } getUnknownFields().writeTo(output); @@ -215,10 +217,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (backup_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBackup()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); @@ -394,10 +396,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.database.v1.UpdateBackupRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBackupFieldBuilder(); + getUpdateMaskFieldBuilder(); + } } @java.lang.Override @@ -450,12 +462,16 @@ public com.google.spanner.admin.database.v1.UpdateBackupRequest buildPartial() { private void buildPartial0(com.google.spanner.admin.database.v1.UpdateBackupRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.backup_ = backupBuilder_ == null ? backup_ : backupBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -694,8 +710,10 @@ public Builder mergeBackup(com.google.spanner.admin.database.v1.Backup value) { } else { backupBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (backup_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -922,8 +940,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } else { updateMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequestOrBuilder.java index 0339bd06fc6..919136018f7 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/backup.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface UpdateBackupRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadata.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadata.java index c8956be4985..43c22ecea51 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadata.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadataOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadataOrBuilder.java index 8e6315bcfec..f1002ace388 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadataOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface UpdateDatabaseDdlMetadataOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequest.java index 075dcbbd7b4..e9b25fa464b 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequestOrBuilder.java index a618ebf9779..a68e547bf21 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface UpdateDatabaseDdlRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadata.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadata.java index 81b6adec5f7..6f7b9c82d8c 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadata.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -61,6 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.database.v1.UpdateDatabaseMetadata.Builder.class); } + private int bitField0_; public static final int REQUEST_FIELD_NUMBER = 1; private com.google.spanner.admin.database.v1.UpdateDatabaseRequest request_; /** @@ -77,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasRequest() { - return request_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -131,7 +133,7 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseRequestOrBuilder getRe */ @java.lang.Override public boolean hasProgress() { - return progress_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -186,7 +188,7 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre */ @java.lang.Override public boolean hasCancelTime() { - return cancelTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -233,13 +235,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (request_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRequest()); } - if (progress_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getProgress()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getCancelTime()); } getUnknownFields().writeTo(output); @@ -251,13 +253,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (request_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRequest()); } - if (progress_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgress()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCancelTime()); } size += getUnknownFields().getSerializedSize(); @@ -442,10 +444,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.database.v1.UpdateDatabaseMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRequestFieldBuilder(); + getProgressFieldBuilder(); + getCancelTimeFieldBuilder(); + } } @java.lang.Override @@ -503,15 +516,20 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseMetadata buildPartial( private void buildPartial0(com.google.spanner.admin.database.v1.UpdateDatabaseMetadata result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.request_ = requestBuilder_ == null ? request_ : requestBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -742,8 +760,10 @@ public Builder mergeRequest(com.google.spanner.admin.database.v1.UpdateDatabaseR } else { requestBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (request_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -942,8 +962,10 @@ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgr } else { progressBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (progress_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1138,8 +1160,10 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { } else { cancelTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (cancelTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadataOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadataOrBuilder.java index e4480f1e014..6f04b7549cd 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadataOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface UpdateDatabaseMetadataOrBuilder diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequest.java index 0756611771c..6255150ade4 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequest.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; /** @@ -61,6 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder.class); } + private int bitField0_; public static final int DATABASE_FIELD_NUMBER = 1; private com.google.spanner.admin.database.v1.Database database_; /** @@ -80,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasDatabase() { - return database_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -140,7 +142,7 @@ public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabaseOrBuild */ @java.lang.Override public boolean hasUpdateMask() { - return updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -189,10 +191,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (database_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDatabase()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getUpdateMask()); } getUnknownFields().writeTo(output); @@ -204,10 +206,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (database_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDatabase()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); @@ -384,10 +386,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.database.v1.UpdateDatabaseRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDatabaseFieldBuilder(); + getUpdateMaskFieldBuilder(); + } } @java.lang.Override @@ -440,12 +452,16 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseRequest buildPartial() private void buildPartial0(com.google.spanner.admin.database.v1.UpdateDatabaseRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.database_ = databaseBuilder_ == null ? database_ : databaseBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -680,8 +696,10 @@ public Builder mergeDatabase(com.google.spanner.admin.database.v1.Database value } else { databaseBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (database_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -889,8 +907,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } else { updateMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequestOrBuilder.java index 20294f24bd8..bd5bc8ef98d 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/database/v1/spanner_database_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.database.v1; public interface UpdateDatabaseRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfig.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfig.java index fb20213f572..0e706fdefc8 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfig.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** @@ -2080,6 +2081,7 @@ public com.google.protobuf.Parser getParserForType() { } } + private int bitField0_; public static final int AUTOSCALING_LIMITS_FIELD_NUMBER = 1; private com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscalingLimits_; @@ -2098,7 +2100,7 @@ public com.google.protobuf.Parser getParserForType() { */ @java.lang.Override public boolean hasAutoscalingLimits() { - return autoscalingLimits_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -2159,7 +2161,7 @@ public boolean hasAutoscalingLimits() { */ @java.lang.Override public boolean hasAutoscalingTargets() { - return autoscalingTargets_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -2216,10 +2218,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (autoscalingLimits_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getAutoscalingLimits()); } - if (autoscalingTargets_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getAutoscalingTargets()); } getUnknownFields().writeTo(output); @@ -2231,10 +2233,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (autoscalingLimits_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAutoscalingLimits()); } - if (autoscalingTargets_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAutoscalingTargets()); } size += getUnknownFields().getSerializedSize(); @@ -2410,10 +2412,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.instance.v1.AutoscalingConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAutoscalingLimitsFieldBuilder(); + getAutoscalingTargetsFieldBuilder(); + } } @java.lang.Override @@ -2466,18 +2478,22 @@ public com.google.spanner.admin.instance.v1.AutoscalingConfig buildPartial() { private void buildPartial0(com.google.spanner.admin.instance.v1.AutoscalingConfig result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.autoscalingLimits_ = autoscalingLimitsBuilder_ == null ? autoscalingLimits_ : autoscalingLimitsBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.autoscalingTargets_ = autoscalingTargetsBuilder_ == null ? autoscalingTargets_ : autoscalingTargetsBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2712,8 +2728,10 @@ public Builder mergeAutoscalingLimits( } else { autoscalingLimitsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (autoscalingLimits_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -2925,8 +2943,10 @@ public Builder mergeAutoscalingTargets( } else { autoscalingTargetsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (autoscalingTargets_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfigOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfigOrBuilder.java index 358a5281c8b..4fb3c8a0e69 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfigOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface AutoscalingConfigOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CommonProto.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CommonProto.java index 95b9e723cf2..9872dac54c1 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CommonProto.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CommonProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/common.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public final class CommonProto { diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadata.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadata.java index 11dc2aa5fe6..90b291a6d7a 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadata.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** @@ -61,6 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata.Builder.class); } + private int bitField0_; public static final int INSTANCE_CONFIG_FIELD_NUMBER = 1; private com.google.spanner.admin.instance.v1.InstanceConfig instanceConfig_; /** @@ -76,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasInstanceConfig() { - return instanceConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -128,7 +130,7 @@ public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceC */ @java.lang.Override public boolean hasProgress() { - return progress_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -182,7 +184,7 @@ public com.google.spanner.admin.instance.v1.OperationProgressOrBuilder getProgre */ @java.lang.Override public boolean hasCancelTime() { - return cancelTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -227,13 +229,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (instanceConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInstanceConfig()); } - if (progress_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getProgress()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getCancelTime()); } getUnknownFields().writeTo(output); @@ -245,13 +247,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (instanceConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstanceConfig()); } - if (progress_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgress()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCancelTime()); } size += getUnknownFields().getSerializedSize(); @@ -438,10 +440,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInstanceConfigFieldBuilder(); + getProgressFieldBuilder(); + getCancelTimeFieldBuilder(); + } } @java.lang.Override @@ -501,16 +514,21 @@ public com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata buildPa private void buildPartial0( com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.instanceConfig_ = instanceConfigBuilder_ == null ? instanceConfig_ : instanceConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -737,8 +755,10 @@ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.Instance } else { instanceConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (instanceConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -933,8 +953,10 @@ public Builder mergeProgress(com.google.spanner.admin.instance.v1.OperationProgr } else { progressBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (progress_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1124,8 +1146,10 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { } else { cancelTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (cancelTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadataOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadataOrBuilder.java index 233a017fba4..60afae919aa 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadataOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface CreateInstanceConfigMetadataOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequest.java index def7e7476f7..9affa283aa0 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -199,7 +201,7 @@ public com.google.protobuf.ByteString getInstanceConfigIdBytes() { */ @java.lang.Override public boolean hasInstanceConfig() { - return instanceConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -285,7 +287,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceConfigId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceConfigId_); } - if (instanceConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getInstanceConfig()); } if (validateOnly_ != false) { @@ -306,7 +308,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceConfigId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceConfigId_); } - if (instanceConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstanceConfig()); } if (validateOnly_ != false) { @@ -487,10 +489,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInstanceConfigFieldBuilder(); + } } @java.lang.Override @@ -549,13 +560,16 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.instanceConfigId_ = instanceConfigId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.instanceConfig_ = instanceConfigBuilder_ == null ? instanceConfig_ : instanceConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1067,8 +1081,10 @@ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.Instance } else { instanceConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (instanceConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequestOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequestOrBuilder.java index ad187989070..43aa88a39d2 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface CreateInstanceConfigRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadata.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadata.java index 7d0e1b14f0b..0a51bdc8d48 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadata.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** @@ -61,6 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.instance.v1.CreateInstanceMetadata.Builder.class); } + private int bitField0_; public static final int INSTANCE_FIELD_NUMBER = 1; private com.google.spanner.admin.instance.v1.Instance instance_; /** @@ -76,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasInstance() { - return instance_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -128,7 +130,7 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild */ @java.lang.Override public boolean hasStartTime() { - return startTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -180,7 +182,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { */ @java.lang.Override public boolean hasCancelTime() { - return cancelTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -230,7 +232,7 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { */ @java.lang.Override public boolean hasEndTime() { - return endTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -275,16 +277,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (instance_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInstance()); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getStartTime()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getCancelTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getEndTime()); } getUnknownFields().writeTo(output); @@ -296,16 +298,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (instance_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstance()); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCancelTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndTime()); } size += getUnknownFields().getSerializedSize(); @@ -498,10 +500,22 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.instance.v1.CreateInstanceMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInstanceFieldBuilder(); + getStartTimeFieldBuilder(); + getCancelTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } } @java.lang.Override @@ -564,18 +578,24 @@ public com.google.spanner.admin.instance.v1.CreateInstanceMetadata buildPartial( private void buildPartial0(com.google.spanner.admin.instance.v1.CreateInstanceMetadata result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.instance_ = instanceBuilder_ == null ? instance_ : instanceBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -808,8 +828,10 @@ public Builder mergeInstance(com.google.spanner.admin.instance.v1.Instance value } else { instanceBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (instance_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -999,8 +1021,10 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1198,8 +1222,10 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { } else { cancelTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (cancelTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -1387,8 +1413,10 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (endTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadataOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadataOrBuilder.java index cd3fe91d321..36b6e8ef001 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadataOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface CreateInstanceMetadataOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequest.java index 5b2719a04ea..08c8730eff5 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.instance.v1.CreateInstanceRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -194,7 +196,7 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { */ @java.lang.Override public boolean hasInstance() { - return instance_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -255,7 +257,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_); } - if (instance_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getInstance()); } getUnknownFields().writeTo(output); @@ -273,7 +275,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } - if (instance_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance()); } size += getUnknownFields().getSerializedSize(); @@ -448,10 +450,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.instance.v1.CreateInstanceRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInstanceFieldBuilder(); + } } @java.lang.Override @@ -507,9 +518,12 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.CreateInstanceRe if (((from_bitField0_ & 0x00000002) != 0)) { result.instanceId_ = instanceId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.instance_ = instanceBuilder_ == null ? instance_ : instanceBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -989,8 +1003,10 @@ public Builder mergeInstance(com.google.spanner.admin.instance.v1.Instance value } else { instanceBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (instance_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequestOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequestOrBuilder.java index a89c49804eb..94c29d1eeca 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface CreateInstanceRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequest.java index 67f46b56ace..d1712540674 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequestOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequestOrBuilder.java index 0657b4b9c2a..2e52cd21234 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface DeleteInstanceConfigRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequest.java index 594fde31b58..d3ab4d260d9 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequestOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequestOrBuilder.java index f31c322641e..7f0f12b71ea 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface DeleteInstanceRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequest.java index bdfa0d8bb0c..6427160ee95 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequestOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequestOrBuilder.java index cec59d4a80a..fac241e23dc 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface GetInstanceConfigRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequest.java index ba09001f47f..78cbfa579a2 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.instance.v1.GetInstanceRequest.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -138,7 +140,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasFieldMask() { - return fieldMask_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -192,7 +194,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (fieldMask_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getFieldMask()); } getUnknownFields().writeTo(output); @@ -207,7 +209,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (fieldMask_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); } size += getUnknownFields().getSerializedSize(); @@ -379,10 +381,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.instance.v1.GetInstanceRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFieldMaskFieldBuilder(); + } } @java.lang.Override @@ -434,9 +445,12 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.GetInstanceReque if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.fieldMask_ = fieldMaskBuilder_ == null ? fieldMask_ : fieldMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -786,8 +800,10 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { } else { fieldMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (fieldMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequestOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequestOrBuilder.java index ad5fd65c9d6..d46308742c9 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface GetInstanceRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java index 2140d88bc24..94d3654af77 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** @@ -58,7 +59,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 7: return internalGetLabels(); @@ -240,6 +242,7 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.spanner.admin.instance.v1.Instance.State) } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -489,7 +492,7 @@ public int getProcessingUnits() { */ @java.lang.Override public boolean hasAutoscalingConfig() { - return autoscalingConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -846,7 +849,7 @@ public com.google.protobuf.ByteString getEndpointUrisBytes(int index) { */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -895,7 +898,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasUpdateTime() { - return updateTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -966,13 +969,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (processingUnits_ != 0) { output.writeInt32(9, processingUnits_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(11, getCreateTime()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(12, getUpdateTime()); } - if (autoscalingConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(17, getAutoscalingConfig()); } getUnknownFields().writeTo(output); @@ -1021,13 +1024,13 @@ public int getSerializedSize() { if (processingUnits_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, processingUnits_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); } - if (autoscalingConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getAutoscalingConfig()); } size += getUnknownFields().getSerializedSize(); @@ -1228,7 +1231,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 7: return internalGetLabels(); @@ -1238,7 +1242,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 7: return internalGetMutableLabels(); @@ -1258,10 +1263,21 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.spanner.admin.instance.v1.Instance.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAutoscalingConfigFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } } @java.lang.Override @@ -1342,11 +1358,13 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.Instance result) if (((from_bitField0_ & 0x00000010) != 0)) { result.processingUnits_ = processingUnits_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { result.autoscalingConfig_ = autoscalingConfigBuilder_ == null ? autoscalingConfig_ : autoscalingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { result.state_ = state_; @@ -1361,10 +1379,13 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.Instance result) } if (((from_bitField0_ & 0x00000200) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000400) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2242,8 +2263,10 @@ public Builder mergeAutoscalingConfig( } else { autoscalingConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (autoscalingConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** @@ -3056,8 +3079,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } /** @@ -3257,8 +3282,10 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000400; - onChanged(); + if (updateTime_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java index ef83dd4a1f4..83b55e315a9 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** @@ -63,7 +64,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 8: return internalGetLabels(); @@ -1445,7 +1447,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 8: return internalGetLabels(); @@ -1455,7 +1458,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 8: return internalGetMutableLabels(); diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigName.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigName.java index 2069fd6b900..6f09a08aa77 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigName.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java index 3a2a3629377..b7f4c4cf5a3 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface InstanceConfigOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceName.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceName.java index 559fa5f6c17..3abd2a01993 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceName.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java index b2d4f2ba3f0..3db4ec97076 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface InstanceOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequest.java index 9068c1d1686..ae3eb2679b6 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequestOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequestOrBuilder.java index ac6be607e17..32099b3c731 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface ListInstanceConfigOperationsRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponse.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponse.java index 9ac6ecc3b4f..6d23169d773 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponse.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponseOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponseOrBuilder.java index c0bd54d5020..ae8e52e6062 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponseOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface ListInstanceConfigOperationsResponseOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequest.java index ee90cbd02e3..0311a7d86d7 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequestOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequestOrBuilder.java index 30ac4de8e19..a9d9ad22d89 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface ListInstanceConfigsRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponse.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponse.java index cd540ab9172..1833cc83c12 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponse.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponseOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponseOrBuilder.java index dec55bfe4fc..61cc6b2a436 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponseOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface ListInstanceConfigsResponseOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequest.java index 7597a8863ce..7eab505208a 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequestOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequestOrBuilder.java index 9ef5fb3958c..d419a1b4772 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface ListInstancesRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponse.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponse.java index f43b0ea91c2..5e34fe8c598 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponse.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponseOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponseOrBuilder.java index b0d689128b9..c28533c7c01 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponseOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface ListInstancesResponseOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgress.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgress.java index 5afada05c75..828eab461de 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgress.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgress.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/common.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** @@ -61,6 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.instance.v1.OperationProgress.Builder.class); } + private int bitField0_; public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1; private int progressPercent_ = 0; /** @@ -95,7 +97,7 @@ public int getProgressPercent() { */ @java.lang.Override public boolean hasStartTime() { - return startTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -142,7 +144,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { */ @java.lang.Override public boolean hasEndTime() { - return endTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -192,10 +194,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (progressPercent_ != 0) { output.writeInt32(1, progressPercent_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getEndTime()); } getUnknownFields().writeTo(output); @@ -210,10 +212,10 @@ public int getSerializedSize() { if (progressPercent_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, progressPercent_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); } size += getUnknownFields().getSerializedSize(); @@ -393,10 +395,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.instance.v1.OperationProgress.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } } @java.lang.Override @@ -453,12 +465,16 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.OperationProgres if (((from_bitField0_ & 0x00000001) != 0)) { result.progressPercent_ = progressPercent_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -735,8 +751,10 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -919,8 +937,10 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgressOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgressOrBuilder.java index 9bf5fea69f1..e0855d53677 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgressOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgressOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/common.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface OperationProgressOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ProjectName.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ProjectName.java index 20e263c45aa..b9d57160f0a 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ProjectName.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfo.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfo.java index 97612776a2f..98ead9cec9d 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfo.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** Protobuf type {@code google.spanner.admin.instance.v1.ReplicaInfo} */ diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfoOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfoOrBuilder.java index 3abaeac5336..3018d01a0bf 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfoOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface ReplicaInfoOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java index a7dde50d2e0..0a85957e123 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public final class SpannerInstanceAdminProto { @@ -156,219 +157,218 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "min.instance.v1.ReplicaInfo.ReplicaType\022" + "\037\n\027default_leader_location\030\003 \001(\010\"O\n\013Repl" + "icaType\022\024\n\020TYPE_UNSPECIFIED\020\000\022\016\n\nREAD_WR" - + "ITE\020\001\022\r\n\tREAD_ONLY\020\002\022\013\n\007WITNESS\020\003\"\302\006\n\016In" + + "ITE\020\001\022\r\n\tREAD_ONLY\020\002\022\013\n\007WITNESS\020\003\"\276\006\n\016In" + "stanceConfig\022\014\n\004name\030\001 \001(\t\022\024\n\014display_na" - + "me\030\002 \001(\t\022P\n\013config_type\030\005 \001(\01625.google.s" + + "me\030\002 \001(\t\022O\n\013config_type\030\005 \001(\01625.google.s" + "panner.admin.instance.v1.InstanceConfig." - + "TypeB\004\342A\001\003\022?\n\010replicas\030\003 \003(\0132-.google.sp" - + "anner.admin.instance.v1.ReplicaInfo\022N\n\021o" - + "ptional_replicas\030\006 \003(\0132-.google.spanner." - + "admin.instance.v1.ReplicaInfoB\004\342A\001\003\022?\n\013b" - + "ase_config\030\007 \001(\tB*\372A\'\n%spanner.googleapi" - + "s.com/InstanceConfig\022L\n\006labels\030\010 \003(\0132<.g" - + "oogle.spanner.admin.instance.v1.Instance" - + "Config.LabelsEntry\022\014\n\004etag\030\t \001(\t\022\026\n\016lead" - + "er_options\030\004 \003(\t\022\031\n\013reconciling\030\n \001(\010B\004\342" - + "A\001\003\022K\n\005state\030\013 \001(\01626.google.spanner.admi" - + "n.instance.v1.InstanceConfig.StateB\004\342A\001\003" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\"B\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n" - + "\016GOOGLE_MANAGED\020\001\022\020\n\014USER_MANAGED\020\002\"7\n\005S" - + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020" - + "\001\022\t\n\005READY\020\002:`\352A]\n%spanner.googleapis.co" - + "m/InstanceConfig\0224projects/{project}/ins" - + "tanceConfigs/{instance_config}\"\367\003\n\021Autos" - + "calingConfig\022g\n\022autoscaling_limits\030\001 \001(\013" - + "2E.google.spanner.admin.instance.v1.Auto" - + "scalingConfig.AutoscalingLimitsB\004\342A\001\002\022i\n" - + "\023autoscaling_targets\030\002 \001(\0132F.google.span" - + "ner.admin.instance.v1.AutoscalingConfig." - + "AutoscalingTargetsB\004\342A\001\002\032\227\001\n\021Autoscaling" - + "Limits\022\023\n\tmin_nodes\030\001 \001(\005H\000\022\036\n\024min_proce" - + "ssing_units\030\002 \001(\005H\000\022\023\n\tmax_nodes\030\003 \001(\005H\001" - + "\022\036\n\024max_processing_units\030\004 \001(\005H\001B\013\n\tmin_" - + "limitB\013\n\tmax_limit\032t\n\022AutoscalingTargets" - + "\0223\n%high_priority_cpu_utilization_percen" - + "t\030\001 \001(\005B\004\342A\001\002\022)\n\033storage_utilization_per" - + "cent\030\002 \001(\005B\004\342A\001\002\"\312\005\n\010Instance\022\022\n\004name\030\001 " - + "\001(\tB\004\342A\001\002\022>\n\006config\030\002 \001(\tB.\342A\001\002\372A\'\n%span" - + "ner.googleapis.com/InstanceConfig\022\032\n\014dis" - + "play_name\030\003 \001(\tB\004\342A\001\002\022\022\n\nnode_count\030\005 \001(" - + "\005\022\030\n\020processing_units\030\t \001(\005\022U\n\022autoscali" - + "ng_config\030\021 \001(\01323.google.spanner.admin.i" - + "nstance.v1.AutoscalingConfigB\004\342A\001\001\022E\n\005st" - + "ate\030\006 \001(\01620.google.spanner.admin.instanc" - + "e.v1.Instance.StateB\004\342A\001\003\022F\n\006labels\030\007 \003(" - + "\01326.google.spanner.admin.instance.v1.Ins" - + "tance.LabelsEntry\022\025\n\rendpoint_uris\030\010 \003(\t" - + "\0225\n\013create_time\030\013 \001(\0132\032.google.protobuf." - + "TimestampB\004\342A\001\003\0225\n\013update_time\030\014 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\004\342A\001\003\032-\n\013Labels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n" - + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATIN" - + "G\020\001\022\t\n\005READY\020\002:M\352AJ\n\037spanner.googleapis." - + "com/Instance\022\'projects/{project}/instanc" - + "es/{instance}\"\211\001\n\032ListInstanceConfigsReq" - + "uest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudreso" - + "urcemanager.googleapis.com/Project\022\021\n\tpa" - + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n\033Li" - + "stInstanceConfigsResponse\022J\n\020instance_co" - + "nfigs\030\001 \003(\01320.google.spanner.admin.insta" - + "nce.v1.InstanceConfig\022\027\n\017next_page_token" - + "\030\002 \001(\t\"X\n\030GetInstanceConfigRequest\022<\n\004na" - + "me\030\001 \001(\tB.\342A\001\002\372A\'\n%spanner.googleapis.co" - + "m/InstanceConfig\"\355\001\n\033CreateInstanceConfi" - + "gRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloud" - + "resourcemanager.googleapis.com/Project\022 " - + "\n\022instance_config_id\030\002 \001(\tB\004\342A\001\002\022O\n\017inst" - + "ance_config\030\003 \001(\01320.google.spanner.admin" - + ".instance.v1.InstanceConfigB\004\342A\001\002\022\025\n\rval" - + "idate_only\030\004 \001(\010\"\274\001\n\033UpdateInstanceConfi" - + "gRequest\022O\n\017instance_config\030\001 \001(\01320.goog" - + "le.spanner.admin.instance.v1.InstanceCon" - + "figB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMaskB\004\342A\001\002\022\025\n\rvalidate_onl" - + "y\030\003 \001(\010\"\200\001\n\033DeleteInstanceConfigRequest\022" - + "<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%spanner.googleap" - + "is.com/InstanceConfig\022\014\n\004etag\030\002 \001(\t\022\025\n\rv" - + "alidate_only\030\003 \001(\010\"\242\001\n#ListInstanceConfi" - + "gOperationsRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002" - + "\372A-\n+cloudresourcemanager.googleapis.com" - + "/Project\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 " - + "\001(\005\022\022\n\npage_token\030\004 \001(\t\"r\n$ListInstanceC" - + "onfigOperationsResponse\0221\n\noperations\030\001 " - + "\003(\0132\035.google.longrunning.Operation\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"|\n\022GetInstanceReques" - + "t\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.google" - + "apis.com/Instance\022.\n\nfield_mask\030\002 \001(\0132\032." - + "google.protobuf.FieldMask\"\274\001\n\025CreateInst" - + "anceRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cl" + + "TypeB\003\340A\003\022?\n\010replicas\030\003 \003(\0132-.google.spa" + + "nner.admin.instance.v1.ReplicaInfo\022M\n\021op" + + "tional_replicas\030\006 \003(\0132-.google.spanner.a" + + "dmin.instance.v1.ReplicaInfoB\003\340A\003\022?\n\013bas" + + "e_config\030\007 \001(\tB*\372A\'\n%spanner.googleapis." + + "com/InstanceConfig\022L\n\006labels\030\010 \003(\0132<.goo" + + "gle.spanner.admin.instance.v1.InstanceCo" + + "nfig.LabelsEntry\022\014\n\004etag\030\t \001(\t\022\026\n\016leader" + + "_options\030\004 \003(\t\022\030\n\013reconciling\030\n \001(\010B\003\340A\003" + + "\022J\n\005state\030\013 \001(\01626.google.spanner.admin.i" + + "nstance.v1.InstanceConfig.StateB\003\340A\003\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"B\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016GOO" + + "GLE_MANAGED\020\001\022\020\n\014USER_MANAGED\020\002\"7\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n" + + "\005READY\020\002:`\352A]\n%spanner.googleapis.com/In" + + "stanceConfig\0224projects/{project}/instanc" + + "eConfigs/{instance_config}\"\363\003\n\021Autoscali" + + "ngConfig\022f\n\022autoscaling_limits\030\001 \001(\0132E.g" + + "oogle.spanner.admin.instance.v1.Autoscal" + + "ingConfig.AutoscalingLimitsB\003\340A\002\022h\n\023auto" + + "scaling_targets\030\002 \001(\0132F.google.spanner.a" + + "dmin.instance.v1.AutoscalingConfig.Autos" + + "calingTargetsB\003\340A\002\032\227\001\n\021AutoscalingLimits" + + "\022\023\n\tmin_nodes\030\001 \001(\005H\000\022\036\n\024min_processing_" + + "units\030\002 \001(\005H\000\022\023\n\tmax_nodes\030\003 \001(\005H\001\022\036\n\024ma" + + "x_processing_units\030\004 \001(\005H\001B\013\n\tmin_limitB" + + "\013\n\tmax_limit\032r\n\022AutoscalingTargets\0222\n%hi" + + "gh_priority_cpu_utilization_percent\030\001 \001(" + + "\005B\003\340A\002\022(\n\033storage_utilization_percent\030\002 " + + "\001(\005B\003\340A\002\"\303\005\n\010Instance\022\021\n\004name\030\001 \001(\tB\003\340A\002" + + "\022=\n\006config\030\002 \001(\tB-\340A\002\372A\'\n%spanner.google" + + "apis.com/InstanceConfig\022\031\n\014display_name\030" + + "\003 \001(\tB\003\340A\002\022\022\n\nnode_count\030\005 \001(\005\022\030\n\020proces" + + "sing_units\030\t \001(\005\022T\n\022autoscaling_config\030\021" + + " \001(\01323.google.spanner.admin.instance.v1." + + "AutoscalingConfigB\003\340A\001\022D\n\005state\030\006 \001(\01620." + + "google.spanner.admin.instance.v1.Instanc" + + "e.StateB\003\340A\003\022F\n\006labels\030\007 \003(\01326.google.sp" + + "anner.admin.instance.v1.Instance.LabelsE" + + "ntry\022\025\n\rendpoint_uris\030\010 \003(\t\0224\n\013create_ti" + + "me\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0224\n\013update_time\030\014 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002:" + + "M\352AJ\n\037spanner.googleapis.com/Instance\022\'p" + + "rojects/{project}/instances/{instance}\"\210" + + "\001\n\032ListInstanceConfigsRequest\022C\n\006parent\030" + + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" + + "leapis.com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n" + + "\npage_token\030\003 \001(\t\"\202\001\n\033ListInstanceConfig" + + "sResponse\022J\n\020instance_configs\030\001 \003(\01320.go" + + "ogle.spanner.admin.instance.v1.InstanceC" + + "onfig\022\027\n\017next_page_token\030\002 \001(\t\"W\n\030GetIns" + + "tanceConfigRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'" + + "\n%spanner.googleapis.com/InstanceConfig\"" + + "\352\001\n\033CreateInstanceConfigRequest\022C\n\006paren" + + "t\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.go" + + "ogleapis.com/Project\022\037\n\022instance_config_" + + "id\030\002 \001(\tB\003\340A\002\022N\n\017instance_config\030\003 \001(\01320" + + ".google.spanner.admin.instance.v1.Instan" + + "ceConfigB\003\340A\002\022\025\n\rvalidate_only\030\004 \001(\010\"\272\001\n" + + "\033UpdateInstanceConfigRequest\022N\n\017instance" + + "_config\030\001 \001(\01320.google.spanner.admin.ins" + + "tance.v1.InstanceConfigB\003\340A\002\0224\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" + + "A\002\022\025\n\rvalidate_only\030\003 \001(\010\"\177\n\033DeleteInsta" + + "nceConfigRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%" + + "spanner.googleapis.com/InstanceConfig\022\014\n" + + "\004etag\030\002 \001(\t\022\025\n\rvalidate_only\030\003 \001(\010\"\241\001\n#L" + + "istInstanceConfigOperationsRequest\022C\n\006pa" + + "rent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager" + + ".googleapis.com/Project\022\016\n\006filter\030\002 \001(\t\022" + + "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"r" + + "\n$ListInstanceConfigOperationsResponse\0221" + + "\n\noperations\030\001 \003(\0132\035.google.longrunning." + + "Operation\022\027\n\017next_page_token\030\002 \001(\t\"{\n\022Ge" + + "tInstanceRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037" + + "spanner.googleapis.com/Instance\022.\n\nfield" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"" + + "\271\001\n\025CreateInstanceRequest\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap" + + "is.com/Project\022\030\n\013instance_id\030\002 \001(\tB\003\340A\002" + + "\022A\n\010instance\030\003 \001(\0132*.google.spanner.admi" + + "n.instance.v1.InstanceB\003\340A\002\"\222\001\n\024ListInst" + + "ancesRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cl" + "oudresourcemanager.googleapis.com/Projec" - + "t\022\031\n\013instance_id\030\002 \001(\tB\004\342A\001\002\022B\n\010instance" - + "\030\003 \001(\0132*.google.spanner.admin.instance.v" - + "1.InstanceB\004\342A\001\002\"\223\001\n\024ListInstancesReques" - + "t\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourc" - + "emanager.googleapis.com/Project\022\021\n\tpage_" - + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter" - + "\030\004 \001(\t\"o\n\025ListInstancesResponse\022=\n\tinsta" - + "nces\030\001 \003(\0132*.google.spanner.admin.instan" - + "ce.v1.Instance\022\027\n\017next_page_token\030\002 \001(\t\"" - + "\221\001\n\025UpdateInstanceRequest\022B\n\010instance\030\001 " - + "\001(\0132*.google.spanner.admin.instance.v1.I" - + "nstanceB\004\342A\001\002\0224\n\nfield_mask\030\002 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\004\342A\001\002\"O\n\025DeleteIns" - + "tanceRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n\037spa" - + "nner.googleapis.com/Instance\"\345\001\n\026CreateI" - + "nstanceMetadata\022<\n\010instance\030\001 \001(\0132*.goog" - + "le.spanner.admin.instance.v1.Instance\022.\n" - + "\nstart_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stamp\022/\n\013cancel_time\030\003 \001(\0132\032.google.prot" - + "obuf.Timestamp\022,\n\010end_time\030\004 \001(\0132\032.googl" - + "e.protobuf.Timestamp\"\345\001\n\026UpdateInstanceM" - + "etadata\022<\n\010instance\030\001 \001(\0132*.google.spann" - + "er.admin.instance.v1.Instance\022.\n\nstart_t" - + "ime\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n" - + "\013cancel_time\030\003 \001(\0132\032.google.protobuf.Tim" - + "estamp\022,\n\010end_time\030\004 \001(\0132\032.google.protob" - + "uf.Timestamp\"\341\001\n\034CreateInstanceConfigMet" - + "adata\022I\n\017instance_config\030\001 \001(\01320.google." - + "spanner.admin.instance.v1.InstanceConfig" - + "\022E\n\010progress\030\002 \001(\01323.google.spanner.admi" - + "n.instance.v1.OperationProgress\022/\n\013cance" - + "l_time\030\003 \001(\0132\032.google.protobuf.Timestamp" - + "\"\341\001\n\034UpdateInstanceConfigMetadata\022I\n\017ins" - + "tance_config\030\001 \001(\01320.google.spanner.admi" - + "n.instance.v1.InstanceConfig\022E\n\010progress" - + "\030\002 \001(\01323.google.spanner.admin.instance.v" - + "1.OperationProgress\022/\n\013cancel_time\030\003 \001(\013" - + "2\032.google.protobuf.Timestamp2\362\030\n\rInstanc" - + "eAdmin\022\314\001\n\023ListInstanceConfigs\022<.google." - + "spanner.admin.instance.v1.ListInstanceCo" - + "nfigsRequest\032=.google.spanner.admin.inst" - + "ance.v1.ListInstanceConfigsResponse\"8\332A\006" - + "parent\202\323\344\223\002)\022\'/v1/{parent=projects/*}/in" - + "stanceConfigs\022\271\001\n\021GetInstanceConfig\022:.go" - + "ogle.spanner.admin.instance.v1.GetInstan" - + "ceConfigRequest\0320.google.spanner.admin.i" - + "nstance.v1.InstanceConfig\"6\332A\004name\202\323\344\223\002)" - + "\022\'/v1/{name=projects/*/instanceConfigs/*" - + "}\022\310\002\n\024CreateInstanceConfig\022=.google.span" - + "ner.admin.instance.v1.CreateInstanceConf" - + "igRequest\032\035.google.longrunning.Operation" - + "\"\321\001\312Ap\n/google.spanner.admin.instance.v1" - + ".InstanceConfig\022=google.spanner.admin.in" - + "stance.v1.CreateInstanceConfigMetadata\332A" - + ")parent,instance_config,instance_config_" - + "id\202\323\344\223\002,\"\'/v1/{parent=projects/*}/instan" - + "ceConfigs:\001*\022\312\002\n\024UpdateInstanceConfig\022=." - + "google.spanner.admin.instance.v1.UpdateI" - + "nstanceConfigRequest\032\035.google.longrunnin" - + "g.Operation\"\323\001\312Ap\n/google.spanner.admin." - + "instance.v1.InstanceConfig\022=google.spann" - + "er.admin.instance.v1.UpdateInstanceConfi" - + "gMetadata\332A\033instance_config,update_mask\202" - + "\323\344\223\002<27/v1/{instance_config.name=project" - + "s/*/instanceConfigs/*}:\001*\022\245\001\n\024DeleteInst" - + "anceConfig\022=.google.spanner.admin.instan" - + "ce.v1.DeleteInstanceConfigRequest\032\026.goog" - + "le.protobuf.Empty\"6\332A\004name\202\323\344\223\002)*\'/v1/{n" - + "ame=projects/*/instanceConfigs/*}\022\360\001\n\034Li" - + "stInstanceConfigOperations\022E.google.span" - + "ner.admin.instance.v1.ListInstanceConfig" - + "OperationsRequest\032F.google.spanner.admin" - + ".instance.v1.ListInstanceConfigOperation" - + "sResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=" - + "projects/*}/instanceConfigOperations\022\264\001\n" - + "\rListInstances\0226.google.spanner.admin.in" - + "stance.v1.ListInstancesRequest\0327.google." - + "spanner.admin.instance.v1.ListInstancesR" - + "esponse\"2\332A\006parent\202\323\344\223\002#\022!/v1/{parent=pr" - + "ojects/*}/instances\022\241\001\n\013GetInstance\0224.go" - + "ogle.spanner.admin.instance.v1.GetInstan" - + "ceRequest\032*.google.spanner.admin.instanc" - + "e.v1.Instance\"0\332A\004name\202\323\344\223\002#\022!/v1/{name=" - + "projects/*/instances/*}\022\234\002\n\016CreateInstan" - + "ce\0227.google.spanner.admin.instance.v1.Cr" - + "eateInstanceRequest\032\035.google.longrunning" - + ".Operation\"\261\001\312Ad\n)google.spanner.admin.i" - + "nstance.v1.Instance\0227google.spanner.admi" - + "n.instance.v1.CreateInstanceMetadata\332A\033p" - + "arent,instance_id,instance\202\323\344\223\002&\"!/v1/{p" - + "arent=projects/*}/instances:\001*\022\235\002\n\016Updat" + + "t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + + "\022\016\n\006filter\030\004 \001(\t\"o\n\025ListInstancesRespons" + + "e\022=\n\tinstances\030\001 \003(\0132*.google.spanner.ad" + + "min.instance.v1.Instance\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"\217\001\n\025UpdateInstanceRequest\022A\n\010i" + + "nstance\030\001 \001(\0132*.google.spanner.admin.ins" + + "tance.v1.InstanceB\003\340A\002\0223\n\nfield_mask\030\002 \001" + + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"N\n\025D" + + "eleteInstanceRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372" + + "A!\n\037spanner.googleapis.com/Instance\"\345\001\n\026" + + "CreateInstanceMetadata\022<\n\010instance\030\001 \001(\013" + + "2*.google.spanner.admin.instance.v1.Inst" + + "ance\022.\n\nstart_time\030\002 \001(\0132\032.google.protob" + + "uf.Timestamp\022/\n\013cancel_time\030\003 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022,\n\010end_time\030\004 \001(\0132" + + "\032.google.protobuf.Timestamp\"\345\001\n\026UpdateIn" + + "stanceMetadata\022<\n\010instance\030\001 \001(\0132*.googl" + + "e.spanner.admin.instance.v1.Instance\022.\n\n" + + "start_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tamp\022/\n\013cancel_time\030\003 \001(\0132\032.google.proto" + + "buf.Timestamp\022,\n\010end_time\030\004 \001(\0132\032.google" + + ".protobuf.Timestamp\"\341\001\n\034CreateInstanceCo" + + "nfigMetadata\022I\n\017instance_config\030\001 \001(\01320." + + "google.spanner.admin.instance.v1.Instanc" + + "eConfig\022E\n\010progress\030\002 \001(\01323.google.spann" + + "er.admin.instance.v1.OperationProgress\022/" + + "\n\013cancel_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestamp\"\341\001\n\034UpdateInstanceConfigMetadata" + + "\022I\n\017instance_config\030\001 \001(\01320.google.spann" + + "er.admin.instance.v1.InstanceConfig\022E\n\010p" + + "rogress\030\002 \001(\01323.google.spanner.admin.ins" + + "tance.v1.OperationProgress\022/\n\013cancel_tim" + + "e\030\003 \001(\0132\032.google.protobuf.Timestamp2\362\030\n\r" + + "InstanceAdmin\022\314\001\n\023ListInstanceConfigs\022<." + + "google.spanner.admin.instance.v1.ListIns" + + "tanceConfigsRequest\032=.google.spanner.adm" + + "in.instance.v1.ListInstanceConfigsRespon" + + "se\"8\332A\006parent\202\323\344\223\002)\022\'/v1/{parent=project" + + "s/*}/instanceConfigs\022\271\001\n\021GetInstanceConf" + + "ig\022:.google.spanner.admin.instance.v1.Ge" + + "tInstanceConfigRequest\0320.google.spanner." + + "admin.instance.v1.InstanceConfig\"6\332A\004nam" + + "e\202\323\344\223\002)\022\'/v1/{name=projects/*/instanceCo" + + "nfigs/*}\022\310\002\n\024CreateInstanceConfig\022=.goog" + + "le.spanner.admin.instance.v1.CreateInsta" + + "nceConfigRequest\032\035.google.longrunning.Op" + + "eration\"\321\001\312Ap\n/google.spanner.admin.inst" + + "ance.v1.InstanceConfig\022=google.spanner.a" + + "dmin.instance.v1.CreateInstanceConfigMet" + + "adata\332A)parent,instance_config,instance_" + + "config_id\202\323\344\223\002,\"\'/v1/{parent=projects/*}" + + "/instanceConfigs:\001*\022\312\002\n\024UpdateInstanceCo" + + "nfig\022=.google.spanner.admin.instance.v1." + + "UpdateInstanceConfigRequest\032\035.google.lon" + + "grunning.Operation\"\323\001\312Ap\n/google.spanner" + + ".admin.instance.v1.InstanceConfig\022=googl" + + "e.spanner.admin.instance.v1.UpdateInstan" + + "ceConfigMetadata\332A\033instance_config,updat" + + "e_mask\202\323\344\223\002<27/v1/{instance_config.name=" + + "projects/*/instanceConfigs/*}:\001*\022\245\001\n\024Del" + + "eteInstanceConfig\022=.google.spanner.admin" + + ".instance.v1.DeleteInstanceConfigRequest" + + "\032\026.google.protobuf.Empty\"6\332A\004name\202\323\344\223\002)*" + + "\'/v1/{name=projects/*/instanceConfigs/*}" + + "\022\360\001\n\034ListInstanceConfigOperations\022E.goog" + + "le.spanner.admin.instance.v1.ListInstanc" + + "eConfigOperationsRequest\032F.google.spanne" + + "r.admin.instance.v1.ListInstanceConfigOp" + + "erationsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{" + + "parent=projects/*}/instanceConfigOperati" + + "ons\022\264\001\n\rListInstances\0226.google.spanner.a" + + "dmin.instance.v1.ListInstancesRequest\0327." + + "google.spanner.admin.instance.v1.ListIns" + + "tancesResponse\"2\332A\006parent\202\323\344\223\002#\022!/v1/{pa" + + "rent=projects/*}/instances\022\241\001\n\013GetInstan" + + "ce\0224.google.spanner.admin.instance.v1.Ge" + + "tInstanceRequest\032*.google.spanner.admin." + + "instance.v1.Instance\"0\332A\004name\202\323\344\223\002#\022!/v1" + + "/{name=projects/*/instances/*}\022\234\002\n\016Creat" + "eInstance\0227.google.spanner.admin.instanc" - + "e.v1.UpdateInstanceRequest\032\035.google.long" - + "running.Operation\"\262\001\312Ad\n)google.spanner." + + "e.v1.CreateInstanceRequest\032\035.google.long" + + "running.Operation\"\261\001\312Ad\n)google.spanner." + "admin.instance.v1.Instance\0227google.spann" - + "er.admin.instance.v1.UpdateInstanceMetad" - + "ata\332A\023instance,field_mask\202\323\344\223\002/2*/v1/{in" - + "stance.name=projects/*/instances/*}:\001*\022\223" - + "\001\n\016DeleteInstance\0227.google.spanner.admin" - + ".instance.v1.DeleteInstanceRequest\032\026.goo" - + "gle.protobuf.Empty\"0\332A\004name\202\323\344\223\002#*!/v1/{" - + "name=projects/*/instances/*}\022\232\001\n\014SetIamP" - + "olicy\022\".google.iam.v1.SetIamPolicyReques" - + "t\032\025.google.iam.v1.Policy\"O\332A\017resource,po" - + "licy\202\323\344\223\0027\"2/v1/{resource=projects/*/ins" - + "tances/*}:setIamPolicy:\001*\022\223\001\n\014GetIamPoli" - + "cy\022\".google.iam.v1.GetIamPolicyRequest\032\025" - + ".google.iam.v1.Policy\"H\332A\010resource\202\323\344\223\0027" - + "\"2/v1/{resource=projects/*/instances/*}:" - + "getIamPolicy:\001*\022\305\001\n\022TestIamPermissions\022(" - + ".google.iam.v1.TestIamPermissionsRequest" - + "\032).google.iam.v1.TestIamPermissionsRespo" - + "nse\"Z\332A\024resource,permissions\202\323\344\223\002=\"8/v1/" - + "{resource=projects/*/instances/*}:testIa" - + "mPermissions:\001*\032x\312A\026spanner.googleapis.c" - + "om\322A\\https://www.googleapis.com/auth/clo" - + "ud-platform,https://www.googleapis.com/a" - + "uth/spanner.adminB\213\002\n$com.google.spanner" - + ".admin.instance.v1B\031SpannerInstanceAdmin" - + "ProtoP\001ZFcloud.google.com/go/spanner/adm" - + "in/instance/apiv1/instancepb;instancepb\252" - + "\002&Google.Cloud.Spanner.Admin.Instance.V1" - + "\312\002&Google\\Cloud\\Spanner\\Admin\\Instance\\V" - + "1\352\002+Google::Cloud::Spanner::Admin::Insta" - + "nce::V1b\006proto3" + + "er.admin.instance.v1.CreateInstanceMetad" + + "ata\332A\033parent,instance_id,instance\202\323\344\223\002&\"" + + "!/v1/{parent=projects/*}/instances:\001*\022\235\002" + + "\n\016UpdateInstance\0227.google.spanner.admin." + + "instance.v1.UpdateInstanceRequest\032\035.goog" + + "le.longrunning.Operation\"\262\001\312Ad\n)google.s" + + "panner.admin.instance.v1.Instance\0227googl" + + "e.spanner.admin.instance.v1.UpdateInstan" + + "ceMetadata\332A\023instance,field_mask\202\323\344\223\002/2*" + + "/v1/{instance.name=projects/*/instances/" + + "*}:\001*\022\223\001\n\016DeleteInstance\0227.google.spanne" + + "r.admin.instance.v1.DeleteInstanceReques" + + "t\032\026.google.protobuf.Empty\"0\332A\004name\202\323\344\223\002#" + + "*!/v1/{name=projects/*/instances/*}\022\232\001\n\014" + + "SetIamPolicy\022\".google.iam.v1.SetIamPolic" + + "yRequest\032\025.google.iam.v1.Policy\"O\332A\017reso" + + "urce,policy\202\323\344\223\0027\"2/v1/{resource=project" + + "s/*/instances/*}:setIamPolicy:\001*\022\223\001\n\014Get" + + "IamPolicy\022\".google.iam.v1.GetIamPolicyRe" + + "quest\032\025.google.iam.v1.Policy\"H\332A\010resourc" + + "e\202\323\344\223\0027\"2/v1/{resource=projects/*/instan" + + "ces/*}:getIamPolicy:\001*\022\305\001\n\022TestIamPermis" + + "sions\022(.google.iam.v1.TestIamPermissions" + + "Request\032).google.iam.v1.TestIamPermissio" + + "nsResponse\"Z\332A\024resource,permissions\202\323\344\223\002" + + "=\"8/v1/{resource=projects/*/instances/*}" + + ":testIamPermissions:\001*\032x\312A\026spanner.googl" + + "eapis.com\322A\\https://www.googleapis.com/a" + + "uth/cloud-platform,https://www.googleapi" + + "s.com/auth/spanner.adminB\213\002\n$com.google." + + "spanner.admin.instance.v1B\031SpannerInstan" + + "ceAdminProtoP\001ZFcloud.google.com/go/span" + + "ner/admin/instance/apiv1/instancepb;inst" + + "ancepb\252\002&Google.Cloud.Spanner.Admin.Inst" + + "ance.V1\312\002&Google\\Cloud\\Spanner\\Admin\\Ins" + + "tance\\V1\352\002+Google::Cloud::Spanner::Admin" + + "::Instance::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadata.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadata.java index 474d58cfc6a..772a067e62b 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadata.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** @@ -61,6 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.Builder.class); } + private int bitField0_; public static final int INSTANCE_CONFIG_FIELD_NUMBER = 1; private com.google.spanner.admin.instance.v1.InstanceConfig instanceConfig_; /** @@ -76,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasInstanceConfig() { - return instanceConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -128,7 +130,7 @@ public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceC */ @java.lang.Override public boolean hasProgress() { - return progress_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -182,7 +184,7 @@ public com.google.spanner.admin.instance.v1.OperationProgressOrBuilder getProgre */ @java.lang.Override public boolean hasCancelTime() { - return cancelTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -227,13 +229,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (instanceConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInstanceConfig()); } - if (progress_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getProgress()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getCancelTime()); } getUnknownFields().writeTo(output); @@ -245,13 +247,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (instanceConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstanceConfig()); } - if (progress_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgress()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCancelTime()); } size += getUnknownFields().getSerializedSize(); @@ -438,10 +440,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInstanceConfigFieldBuilder(); + getProgressFieldBuilder(); + getCancelTimeFieldBuilder(); + } } @java.lang.Override @@ -501,16 +514,21 @@ public com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata buildPa private void buildPartial0( com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.instanceConfig_ = instanceConfigBuilder_ == null ? instanceConfig_ : instanceConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -737,8 +755,10 @@ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.Instance } else { instanceConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (instanceConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -933,8 +953,10 @@ public Builder mergeProgress(com.google.spanner.admin.instance.v1.OperationProgr } else { progressBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (progress_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1124,8 +1146,10 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { } else { cancelTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (cancelTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadataOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadataOrBuilder.java index 4d25b350f9d..cd65f9262cb 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadataOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface UpdateInstanceConfigMetadataOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequest.java index 90bc2be6dbb..46f771b2be2 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** @@ -61,6 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.Builder.class); } + private int bitField0_; public static final int INSTANCE_CONFIG_FIELD_NUMBER = 1; private com.google.spanner.admin.instance.v1.InstanceConfig instanceConfig_; /** @@ -83,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasInstanceConfig() { - return instanceConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -153,7 +155,7 @@ public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceC */ @java.lang.Override public boolean hasUpdateMask() { - return updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -229,10 +231,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (instanceConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInstanceConfig()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getUpdateMask()); } if (validateOnly_ != false) { @@ -247,10 +249,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (instanceConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstanceConfig()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { @@ -433,10 +435,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInstanceConfigFieldBuilder(); + getUpdateMaskFieldBuilder(); + } } @java.lang.Override @@ -492,16 +504,20 @@ public com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest buildPar private void buildPartial0( com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.instanceConfig_ = instanceConfigBuilder_ == null ? instanceConfig_ : instanceConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -763,8 +779,10 @@ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.Instance } else { instanceConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (instanceConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -1005,8 +1023,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } else { updateMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequestOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequestOrBuilder.java index 42fe6edb719..31c2b95daff 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface UpdateInstanceConfigRequestOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadata.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadata.java index 96de4f4b9d7..a059f9bd7f2 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadata.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** @@ -61,6 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.Builder.class); } + private int bitField0_; public static final int INSTANCE_FIELD_NUMBER = 1; private com.google.spanner.admin.instance.v1.Instance instance_; /** @@ -76,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasInstance() { - return instance_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -128,7 +130,7 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild */ @java.lang.Override public boolean hasStartTime() { - return startTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -180,7 +182,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { */ @java.lang.Override public boolean hasCancelTime() { - return cancelTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -230,7 +232,7 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { */ @java.lang.Override public boolean hasEndTime() { - return endTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -275,16 +277,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (instance_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInstance()); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getStartTime()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getCancelTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getEndTime()); } getUnknownFields().writeTo(output); @@ -296,16 +298,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (instance_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstance()); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } - if (cancelTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCancelTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndTime()); } size += getUnknownFields().getSerializedSize(); @@ -498,10 +500,22 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInstanceFieldBuilder(); + getStartTimeFieldBuilder(); + getCancelTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } } @java.lang.Override @@ -564,18 +578,24 @@ public com.google.spanner.admin.instance.v1.UpdateInstanceMetadata buildPartial( private void buildPartial0(com.google.spanner.admin.instance.v1.UpdateInstanceMetadata result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.instance_ = instanceBuilder_ == null ? instance_ : instanceBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -808,8 +828,10 @@ public Builder mergeInstance(com.google.spanner.admin.instance.v1.Instance value } else { instanceBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (instance_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -999,8 +1021,10 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1198,8 +1222,10 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { } else { cancelTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (cancelTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -1387,8 +1413,10 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (endTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadataOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadataOrBuilder.java index 403a22419c7..f35b53a8ad3 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadataOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface UpdateInstanceMetadataOrBuilder diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequest.java index 071251a3442..9ba5f0e2939 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; /** @@ -61,6 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.admin.instance.v1.UpdateInstanceRequest.Builder.class); } + private int bitField0_; public static final int INSTANCE_FIELD_NUMBER = 1; private com.google.spanner.admin.instance.v1.Instance instance_; /** @@ -81,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasInstance() { - return instance_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -146,7 +148,7 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild */ @java.lang.Override public boolean hasFieldMask() { - return fieldMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -201,10 +203,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (instance_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInstance()); } - if (fieldMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getFieldMask()); } getUnknownFields().writeTo(output); @@ -216,10 +218,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (instance_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstance()); } - if (fieldMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); } size += getUnknownFields().getSerializedSize(); @@ -396,10 +398,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.admin.instance.v1.UpdateInstanceRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInstanceFieldBuilder(); + getFieldMaskFieldBuilder(); + } } @java.lang.Override @@ -452,12 +464,16 @@ public com.google.spanner.admin.instance.v1.UpdateInstanceRequest buildPartial() private void buildPartial0(com.google.spanner.admin.instance.v1.UpdateInstanceRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.instance_ = instanceBuilder_ == null ? instance_ : instanceBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.fieldMask_ = fieldMaskBuilder_ == null ? fieldMask_ : fieldMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -697,8 +713,10 @@ public Builder mergeInstance(com.google.spanner.admin.instance.v1.Instance value } else { instanceBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (instance_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -923,8 +941,10 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { } else { fieldMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (fieldMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequestOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequestOrBuilder.java index eac3c8584a6..20f4f4729bd 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.admin.instance.v1; public interface UpdateInstanceRequestOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminAction.java index d5aef54c8b9..4f3bcefbdb2 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminActionOrBuilder.java index df2560195c5..123e08d1635 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface AdminActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResult.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResult.java index f6872a1144f..c3a54e90482 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResult.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResult.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.AdminResult.Builder.class); } + private int bitField0_; public static final int BACKUP_RESPONSE_FIELD_NUMBER = 1; private com.google.spanner.executor.v1.CloudBackupResponse backupResponse_; /** @@ -75,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasBackupResponse() { - return backupResponse_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -125,7 +127,7 @@ public com.google.spanner.executor.v1.CloudBackupResponseOrBuilder getBackupResp */ @java.lang.Override public boolean hasOperationResponse() { - return operationResponse_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -175,7 +177,7 @@ public com.google.spanner.executor.v1.OperationResponseOrBuilder getOperationRes */ @java.lang.Override public boolean hasDatabaseResponse() { - return databaseResponse_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -226,7 +228,7 @@ public com.google.spanner.executor.v1.CloudDatabaseResponse getDatabaseResponse( */ @java.lang.Override public boolean hasInstanceResponse() { - return instanceResponse_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -278,7 +280,7 @@ public com.google.spanner.executor.v1.CloudInstanceResponse getInstanceResponse( */ @java.lang.Override public boolean hasInstanceConfigResponse() { - return instanceConfigResponse_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -330,19 +332,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (backupResponse_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getBackupResponse()); } - if (operationResponse_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getOperationResponse()); } - if (databaseResponse_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getDatabaseResponse()); } - if (instanceResponse_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getInstanceResponse()); } - if (instanceConfigResponse_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(5, getInstanceConfigResponse()); } getUnknownFields().writeTo(output); @@ -354,19 +356,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (backupResponse_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBackupResponse()); } - if (operationResponse_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOperationResponse()); } - if (databaseResponse_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDatabaseResponse()); } - if (instanceResponse_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInstanceResponse()); } - if (instanceConfigResponse_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInstanceConfigResponse()); } @@ -566,10 +568,23 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.AdminResult.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBackupResponseFieldBuilder(); + getOperationResponseFieldBuilder(); + getDatabaseResponseFieldBuilder(); + getInstanceResponseFieldBuilder(); + getInstanceConfigResponseFieldBuilder(); + } } @java.lang.Override @@ -637,30 +652,37 @@ public com.google.spanner.executor.v1.AdminResult buildPartial() { private void buildPartial0(com.google.spanner.executor.v1.AdminResult result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.backupResponse_ = backupResponseBuilder_ == null ? backupResponse_ : backupResponseBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.operationResponse_ = operationResponseBuilder_ == null ? operationResponse_ : operationResponseBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.databaseResponse_ = databaseResponseBuilder_ == null ? databaseResponse_ : databaseResponseBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.instanceResponse_ = instanceResponseBuilder_ == null ? instanceResponse_ : instanceResponseBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.instanceConfigResponse_ = instanceConfigResponseBuilder_ == null ? instanceConfigResponse_ : instanceConfigResponseBuilder_.build(); + to_bitField0_ |= 0x00000010; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -906,8 +928,10 @@ public Builder mergeBackupResponse(com.google.spanner.executor.v1.CloudBackupRes } else { backupResponseBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (backupResponse_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -1092,8 +1116,10 @@ public Builder mergeOperationResponse(com.google.spanner.executor.v1.OperationRe } else { operationResponseBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (operationResponse_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1279,8 +1305,10 @@ public Builder mergeDatabaseResponse( } else { databaseResponseBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (databaseResponse_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -1467,8 +1495,10 @@ public Builder mergeInstanceResponse( } else { instanceResponseBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (instanceResponse_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -1662,8 +1692,10 @@ public Builder mergeInstanceConfigResponse( } else { instanceConfigResponseBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (instanceConfigResponse_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResultOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResultOrBuilder.java index bcc51df88d2..a1b85912884 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResultOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResultOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface AdminResultOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlAction.java index 2b6c605cd4e..b4649d75064 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlActionOrBuilder.java index a6fe62f7c62..12d77f73acc 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface BatchDmlActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartition.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartition.java index f1db4c3a632..1735e190d64 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartition.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartition.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartitionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartitionOrBuilder.java index 685b11e8bff..3d27e245ec7 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartitionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartitionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface BatchPartitionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationAction.java index 6990c640710..9b15a5bbbb9 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationActionOrBuilder.java index c54975f6947..ba6955f38bd 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface CancelOperationActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecord.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecord.java index 3e200a82272..e142ee1500d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecord.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecord.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecordOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecordOrBuilder.java index 97e7ce956be..a58934b0382 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecordOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecordOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ChangeStreamRecordOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecord.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecord.java index 617c3682527..cc1d56ce098 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecord.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecord.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -1047,6 +1048,7 @@ public com.google.protobuf.Parser getParserForType() { } } + private int bitField0_; public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** @@ -1063,7 +1065,7 @@ public com.google.protobuf.Parser getParserForType() { */ @java.lang.Override public boolean hasStartTime() { - return startTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1253,7 +1255,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStartTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordSequence_)) { @@ -1271,7 +1273,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordSequence_)) { @@ -1452,10 +1454,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.ChildPartitionsRecord.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getChildPartitionsFieldBuilder(); + } } @java.lang.Override @@ -1525,12 +1537,15 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.spanner.executor.v1.ChildPartitionsRecord result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.recordSequence_ = recordSequence_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1791,8 +1806,10 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecordOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecordOrBuilder.java index 223d78b1783..c56af564e0e 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecordOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecordOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ChildPartitionsRecordOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionAction.java index 55cfd04958e..bd88a95d961 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionActionOrBuilder.java index bd0d25a644c..a339542402d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface CloseBatchTransactionActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponse.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponse.java index d0a00188131..090a93d4d71 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponse.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.CloudBackupResponse.Builder.class); } + private int bitField0_; public static final int LISTED_BACKUPS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -275,7 +277,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { */ @java.lang.Override public boolean hasBackup() { - return backup_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -333,7 +335,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); } - if (backup_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getBackup()); } getUnknownFields().writeTo(output); @@ -356,7 +358,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } - if (backup_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBackup()); } size += getUnknownFields().getSerializedSize(); @@ -538,10 +540,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.CloudBackupResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getListedBackupsFieldBuilder(); + getListedBackupOperationsFieldBuilder(); + getBackupFieldBuilder(); + } } @java.lang.Override @@ -630,9 +643,12 @@ private void buildPartial0(com.google.spanner.executor.v1.CloudBackupResponse re if (((from_bitField0_ & 0x00000004) != 0)) { result.nextPageToken_ = nextPageToken_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.backup_ = backupBuilder_ == null ? backup_ : backupBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1747,8 +1763,10 @@ public Builder mergeBackup(com.google.spanner.admin.database.v1.Backup value) { } else { backupBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (backup_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponseOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponseOrBuilder.java index c8036dbf040..48e5355556b 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponseOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface CloudBackupResponseOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponse.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponse.java index 0484d3adaf7..f4195931d62 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponse.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.CloudDatabaseResponse.Builder.class); } + private int bitField0_; public static final int LISTED_DATABASES_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -276,7 +278,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { */ @java.lang.Override public boolean hasDatabase() { - return database_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -334,7 +336,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); } - if (database_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getDatabase()); } getUnknownFields().writeTo(output); @@ -357,7 +359,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } - if (database_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDatabase()); } size += getUnknownFields().getSerializedSize(); @@ -539,10 +541,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.CloudDatabaseResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getListedDatabasesFieldBuilder(); + getListedDatabaseOperationsFieldBuilder(); + getDatabaseFieldBuilder(); + } } @java.lang.Override @@ -632,9 +645,12 @@ private void buildPartial0(com.google.spanner.executor.v1.CloudDatabaseResponse if (((from_bitField0_ & 0x00000004) != 0)) { result.nextPageToken_ = nextPageToken_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.database_ = databaseBuilder_ == null ? database_ : databaseBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1756,8 +1772,10 @@ public Builder mergeDatabase(com.google.spanner.admin.database.v1.Database value } else { databaseBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (database_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponseOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponseOrBuilder.java index bbf9c84acaa..81ba2ed6798 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponseOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface CloudDatabaseResponseOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudExecutorProto.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudExecutorProto.java index e58ca5e2747..67a4167e504 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudExecutorProto.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudExecutorProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public final class CloudExecutorProto { @@ -639,165 +640,165 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\t\022\034\n\024database_instance_id\030\004 \001(\t\022\023\n\013da" + "tabase_id\030\005 \001(\t\"V\n\026GetCloudDatabaseActio" + "n\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013instance_id\030\002 \001" - + "(\t\022\023\n\013database_id\030\003 \001(\t\"\351\001\n\027CreateCloudB" + + "(\t\022\023\n\013database_id\030\003 \001(\t\"\350\001\n\027CreateCloudB" + "ackupAction\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013insta" + "nce_id\030\002 \001(\t\022\021\n\tbackup_id\030\003 \001(\t\022\023\n\013datab" - + "ase_id\030\004 \001(\t\0225\n\013expire_time\030\005 \001(\0132\032.goog" - + "le.protobuf.TimestampB\004\342A\001\003\0225\n\014version_t" - + "ime\030\006 \001(\0132\032.google.protobuf.TimestampH\000\210" - + "\001\001B\017\n\r_version_time\"\241\001\n\025CopyCloudBackupA" + + "ase_id\030\004 \001(\t\0224\n\013expire_time\030\005 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\0225\n\014version_ti" + + "me\030\006 \001(\0132\032.google.protobuf.TimestampH\000\210\001" + + "\001B\017\n\r_version_time\"\240\001\n\025CopyCloudBackupAc" + + "tion\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013instance_id\030" + + "\002 \001(\t\022\021\n\tbackup_id\030\003 \001(\t\022\025\n\rsource_backu" + + "p\030\004 \001(\t\0224\n\013expire_time\030\005 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\"R\n\024GetCloudBackupA" + "ction\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013instance_id" - + "\030\002 \001(\t\022\021\n\tbackup_id\030\003 \001(\t\022\025\n\rsource_back" - + "up\030\004 \001(\t\0225\n\013expire_time\030\005 \001(\0132\032.google.p" - + "rotobuf.TimestampB\004\342A\001\003\"R\n\024GetCloudBacku" - + "pAction\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013instance_" - + "id\030\002 \001(\t\022\021\n\tbackup_id\030\003 \001(\t\"\214\001\n\027UpdateCl" - + "oudBackupAction\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013i" - + "nstance_id\030\002 \001(\t\022\021\n\tbackup_id\030\003 \001(\t\0225\n\013e" - + "xpire_time\030\004 \001(\0132\032.google.protobuf.Times" - + "tampB\004\342A\001\003\"U\n\027DeleteCloudBackupAction\022\022\n" - + "\nproject_id\030\001 \001(\t\022\023\n\013instance_id\030\002 \001(\t\022\021" - + "\n\tbackup_id\030\003 \001(\t\"x\n\026ListCloudBackupsAct" - + "ion\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013instance_id\030\002" - + " \001(\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022" - + "\022\n\npage_token\030\005 \001(\t\"\201\001\n\037ListCloudBackupO" - + "perationsAction\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013i" - + "nstance_id\030\002 \001(\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage" - + "_size\030\004 \001(\005\022\022\n\npage_token\030\005 \001(\t\"\'\n\022GetOp" - + "erationAction\022\021\n\toperation\030\001 \001(\t\"*\n\025Canc" - + "elOperationAction\022\021\n\toperation\030\001 \001(\t\"\210\001\n" - + "\033StartBatchTransactionAction\0224\n\016batch_tx" - + "n_time\030\001 \001(\0132\032.google.protobuf.Timestamp" - + "H\000\022\r\n\003tid\030\002 \001(\014H\000\022\033\n\023cloud_database_role" - + "\030\003 \001(\tB\007\n\005param\".\n\033CloseBatchTransaction" - + "Action\022\017\n\007cleanup\030\001 \001(\010\"\227\002\n!GenerateDbPa" - + "rtitionsForReadAction\0224\n\004read\030\001 \001(\0132&.go" - + "ogle.spanner.executor.v1.ReadAction\0228\n\005t" - + "able\030\002 \003(\0132).google.spanner.executor.v1." - + "TableMetadata\022(\n\033desired_bytes_per_parti" - + "tion\030\003 \001(\003H\000\210\001\001\022 \n\023max_partition_count\030\004" - + " \001(\003H\001\210\001\001B\036\n\034_desired_bytes_per_partitio" - + "nB\026\n\024_max_partition_count\"\246\001\n\"GenerateDb" - + "PartitionsForQueryAction\0226\n\005query\030\001 \001(\0132" - + "\'.google.spanner.executor.v1.QueryAction" - + "\022(\n\033desired_bytes_per_partition\030\002 \001(\003H\000\210" - + "\001\001B\036\n\034_desired_bytes_per_partition\"x\n\016Ba" - + "tchPartition\022\021\n\tpartition\030\001 \001(\014\022\027\n\017parti" - + "tion_token\030\002 \001(\014\022\022\n\005table\030\003 \001(\tH\000\210\001\001\022\022\n\005" - + "index\030\004 \001(\tH\001\210\001\001B\010\n\006_tableB\010\n\006_index\"W\n\026" - + "ExecutePartitionAction\022=\n\tpartition\030\001 \001(" - + "\0132*.google.spanner.executor.v1.BatchPart" - + "ition\"\216\003\n\030ExecuteChangeStreamQuery\022\014\n\004na" - + "me\030\001 \001(\t\022.\n\nstart_time\030\002 \001(\0132\032.google.pr" - + "otobuf.Timestamp\0221\n\010end_time\030\003 \001(\0132\032.goo" - + "gle.protobuf.TimestampH\000\210\001\001\022\034\n\017partition" - + "_token\030\004 \001(\tH\001\210\001\001\022\024\n\014read_options\030\005 \003(\t\022" - + "#\n\026heartbeat_milliseconds\030\006 \001(\005H\002\210\001\001\022\035\n\020" - + "deadline_seconds\030\007 \001(\003H\003\210\001\001\022 \n\023cloud_dat" - + "abase_role\030\010 \001(\tH\004\210\001\001B\013\n\t_end_timeB\022\n\020_p" - + "artition_tokenB\031\n\027_heartbeat_millisecond" - + "sB\023\n\021_deadline_secondsB\026\n\024_cloud_databas" - + "e_role\"\242\005\n\024SpannerActionOutcome\022\'\n\006statu" - + "s\030\001 \001(\0132\022.google.rpc.StatusH\000\210\001\001\0224\n\013comm" - + "it_time\030\002 \001(\0132\032.google.protobuf.Timestam" - + "pH\001\210\001\001\022@\n\013read_result\030\003 \001(\0132&.google.spa" - + "nner.executor.v1.ReadResultH\002\210\001\001\022B\n\014quer" - + "y_result\030\004 \001(\0132\'.google.spanner.executor" - + ".v1.QueryResultH\003\210\001\001\022\"\n\025transaction_rest" - + "arted\030\005 \001(\010H\004\210\001\001\022\031\n\014batch_txn_id\030\006 \001(\014H\005" - + "\210\001\001\022@\n\014db_partition\030\007 \003(\0132*.google.spann" - + "er.executor.v1.BatchPartition\022B\n\014admin_r" - + "esult\030\010 \001(\0132\'.google.spanner.executor.v1" - + ".AdminResultH\006\210\001\001\022\031\n\021dml_rows_modified\030\t" - + " \003(\003\022M\n\025change_stream_records\030\n \003(\0132..go" - + "ogle.spanner.executor.v1.ChangeStreamRec" - + "ordB\t\n\007_statusB\016\n\014_commit_timeB\016\n\014_read_" - + "resultB\017\n\r_query_resultB\030\n\026_transaction_" - + "restartedB\017\n\r_batch_txn_idB\017\n\r_admin_res" - + "ult\"\231\003\n\013AdminResult\022H\n\017backup_response\030\001" - + " \001(\0132/.google.spanner.executor.v1.CloudB" - + "ackupResponse\022I\n\022operation_response\030\002 \001(" - + "\0132-.google.spanner.executor.v1.Operation" - + "Response\022L\n\021database_response\030\003 \001(\01321.go" - + "ogle.spanner.executor.v1.CloudDatabaseRe" - + "sponse\022L\n\021instance_response\030\004 \001(\01321.goog" - + "le.spanner.executor.v1.CloudInstanceResp" - + "onse\022Y\n\030instance_config_response\030\005 \001(\01327" - + ".google.spanner.executor.v1.CloudInstanc" - + "eConfigResponse\"\353\001\n\023CloudBackupResponse\022" - + "@\n\016listed_backups\030\001 \003(\0132(.google.spanner" - + ".admin.database.v1.Backup\022?\n\030listed_back" - + "up_operations\030\002 \003(\0132\035.google.longrunning" - + ".Operation\022\027\n\017next_page_token\030\003 \001(\t\0228\n\006b" - + "ackup\030\004 \001(\0132(.google.spanner.admin.datab" - + "ase.v1.Backup\"\230\001\n\021OperationResponse\0228\n\021l" - + "isted_operations\030\001 \003(\0132\035.google.longrunn" - + "ing.Operation\022\027\n\017next_page_token\030\002 \001(\t\0220" - + "\n\toperation\030\003 \001(\0132\035.google.longrunning.O" - + "peration\"\264\001\n\025CloudInstanceResponse\022D\n\020li" - + "sted_instances\030\001 \003(\0132*.google.spanner.ad" - + "min.instance.v1.Instance\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\022<\n\010instance\030\003 \001(\0132*.google.spa" - + "nner.admin.instance.v1.Instance\"\324\001\n\033Clou" - + "dInstanceConfigResponse\022Q\n\027listed_instan" - + "ce_configs\030\001 \003(\01320.google.spanner.admin." - + "instance.v1.InstanceConfig\022\027\n\017next_page_" - + "token\030\002 \001(\t\022I\n\017instance_config\030\003 \001(\01320.g" - + "oogle.spanner.admin.instance.v1.Instance" - + "Config\"\367\001\n\025CloudDatabaseResponse\022D\n\020list" - + "ed_databases\030\001 \003(\0132*.google.spanner.admi" - + "n.database.v1.Database\022A\n\032listed_databas" - + "e_operations\030\002 \003(\0132\035.google.longrunning." - + "Operation\022\027\n\017next_page_token\030\003 \001(\t\022<\n\010da" - + "tabase\030\004 \001(\0132*.google.spanner.admin.data" - + "base.v1.Database\"\336\001\n\nReadResult\022\r\n\005table" - + "\030\001 \001(\t\022\022\n\005index\030\002 \001(\tH\000\210\001\001\022\032\n\rrequest_in" - + "dex\030\003 \001(\005H\001\210\001\001\0222\n\003row\030\004 \003(\0132%.google.spa" - + "nner.executor.v1.ValueList\0224\n\010row_type\030\005" - + " \001(\0132\035.google.spanner.v1.StructTypeH\002\210\001\001" - + "B\010\n\006_indexB\020\n\016_request_indexB\013\n\t_row_typ", - "e\"\204\001\n\013QueryResult\0222\n\003row\030\001 \003(\0132%.google." - + "spanner.executor.v1.ValueList\0224\n\010row_typ" - + "e\030\002 \001(\0132\035.google.spanner.v1.StructTypeH\000" - + "\210\001\001B\013\n\t_row_type\"\363\001\n\022ChangeStreamRecord\022" - + "C\n\013data_change\030\001 \001(\0132,.google.spanner.ex" - + "ecutor.v1.DataChangeRecordH\000\022L\n\017child_pa" - + "rtition\030\002 \001(\01321.google.spanner.executor." - + "v1.ChildPartitionsRecordH\000\022@\n\theartbeat\030" - + "\003 \001(\0132+.google.spanner.executor.v1.Heart" - + "beatRecordH\000B\010\n\006record\"\330\004\n\020DataChangeRec" - + "ord\022/\n\013commit_time\030\001 \001(\0132\032.google.protob" - + "uf.Timestamp\022\027\n\017record_sequence\030\002 \001(\t\022\026\n" - + "\016transaction_id\030\003 \001(\t\022\026\n\016is_last_record\030" - + "\004 \001(\010\022\r\n\005table\030\005 \001(\t\022M\n\014column_types\030\006 \003" - + "(\01327.google.spanner.executor.v1.DataChan" - + "geRecord.ColumnType\022>\n\004mods\030\007 \003(\01320.goog" - + "le.spanner.executor.v1.DataChangeRecord." - + "Mod\022\020\n\010mod_type\030\010 \001(\t\022\032\n\022value_capture_t" - + "ype\030\t \001(\t\022\024\n\014record_count\030\n \001(\003\022\027\n\017parti" - + "tion_count\030\013 \001(\003\022\027\n\017transaction_tag\030\014 \001(" - + "\t\022\035\n\025is_system_transaction\030\r \001(\010\032Z\n\nColu" - + "mnType\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\026\n\016is" - + "_primary_key\030\003 \001(\010\022\030\n\020ordinal_position\030\004" - + " \001(\003\032;\n\003Mod\022\014\n\004keys\030\001 \001(\t\022\022\n\nnew_values\030" - + "\002 \001(\t\022\022\n\nold_values\030\003 \001(\t\"\376\001\n\025ChildParti" - + "tionsRecord\022.\n\nstart_time\030\001 \001(\0132\032.google" - + ".protobuf.Timestamp\022\027\n\017record_sequence\030\002" - + " \001(\t\022Z\n\020child_partitions\030\003 \003(\0132@.google." - + "spanner.executor.v1.ChildPartitionsRecor" - + "d.ChildPartition\032@\n\016ChildPartition\022\r\n\005to" - + "ken\030\001 \001(\t\022\037\n\027parent_partition_tokens\030\002 \003" - + "(\t\"E\n\017HeartbeatRecord\0222\n\016heartbeat_time\030" - + "\001 \001(\0132\032.google.protobuf.Timestamp2\314\001\n\024Sp" - + "annerExecutorProxy\022\211\001\n\022ExecuteActionAsyn" - + "c\0225.google.spanner.executor.v1.SpannerAs" - + "yncActionRequest\0326.google.spanner.execut" - + "or.v1.SpannerAsyncActionResponse\"\000(\0010\001\032(" - + "\312A%spanner-cloud-executor.googleapis.com" - + "Bx\n\036com.google.spanner.executor.v1B\022Clou" - + "dExecutorProtoP\001Z@cloud.google.com/go/sp" - + "anner/executor/apiv1/executorpb;executor" - + "pbb\006proto3" + + "\030\002 \001(\t\022\021\n\tbackup_id\030\003 \001(\t\"\213\001\n\027UpdateClou" + + "dBackupAction\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013ins" + + "tance_id\030\002 \001(\t\022\021\n\tbackup_id\030\003 \001(\t\0224\n\013exp" + + "ire_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\"U\n\027DeleteCloudBackupAction\022\022\n\npr" + + "oject_id\030\001 \001(\t\022\023\n\013instance_id\030\002 \001(\t\022\021\n\tb" + + "ackup_id\030\003 \001(\t\"x\n\026ListCloudBackupsAction" + + "\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013instance_id\030\002 \001(" + + "\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\n" + + "page_token\030\005 \001(\t\"\201\001\n\037ListCloudBackupOper" + + "ationsAction\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013inst" + + "ance_id\030\002 \001(\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_si" + + "ze\030\004 \001(\005\022\022\n\npage_token\030\005 \001(\t\"\'\n\022GetOpera" + + "tionAction\022\021\n\toperation\030\001 \001(\t\"*\n\025CancelO" + + "perationAction\022\021\n\toperation\030\001 \001(\t\"\210\001\n\033St" + + "artBatchTransactionAction\0224\n\016batch_txn_t" + + "ime\030\001 \001(\0132\032.google.protobuf.TimestampH\000\022" + + "\r\n\003tid\030\002 \001(\014H\000\022\033\n\023cloud_database_role\030\003 " + + "\001(\tB\007\n\005param\".\n\033CloseBatchTransactionAct" + + "ion\022\017\n\007cleanup\030\001 \001(\010\"\227\002\n!GenerateDbParti" + + "tionsForReadAction\0224\n\004read\030\001 \001(\0132&.googl" + + "e.spanner.executor.v1.ReadAction\0228\n\005tabl" + + "e\030\002 \003(\0132).google.spanner.executor.v1.Tab" + + "leMetadata\022(\n\033desired_bytes_per_partitio" + + "n\030\003 \001(\003H\000\210\001\001\022 \n\023max_partition_count\030\004 \001(" + + "\003H\001\210\001\001B\036\n\034_desired_bytes_per_partitionB\026" + + "\n\024_max_partition_count\"\246\001\n\"GenerateDbPar" + + "titionsForQueryAction\0226\n\005query\030\001 \001(\0132\'.g" + + "oogle.spanner.executor.v1.QueryAction\022(\n" + + "\033desired_bytes_per_partition\030\002 \001(\003H\000\210\001\001B" + + "\036\n\034_desired_bytes_per_partition\"x\n\016Batch" + + "Partition\022\021\n\tpartition\030\001 \001(\014\022\027\n\017partitio" + + "n_token\030\002 \001(\014\022\022\n\005table\030\003 \001(\tH\000\210\001\001\022\022\n\005ind" + + "ex\030\004 \001(\tH\001\210\001\001B\010\n\006_tableB\010\n\006_index\"W\n\026Exe" + + "cutePartitionAction\022=\n\tpartition\030\001 \001(\0132*" + + ".google.spanner.executor.v1.BatchPartiti" + + "on\"\216\003\n\030ExecuteChangeStreamQuery\022\014\n\004name\030" + + "\001 \001(\t\022.\n\nstart_time\030\002 \001(\0132\032.google.proto" + + "buf.Timestamp\0221\n\010end_time\030\003 \001(\0132\032.google" + + ".protobuf.TimestampH\000\210\001\001\022\034\n\017partition_to" + + "ken\030\004 \001(\tH\001\210\001\001\022\024\n\014read_options\030\005 \003(\t\022#\n\026" + + "heartbeat_milliseconds\030\006 \001(\005H\002\210\001\001\022\035\n\020dea" + + "dline_seconds\030\007 \001(\003H\003\210\001\001\022 \n\023cloud_databa" + + "se_role\030\010 \001(\tH\004\210\001\001B\013\n\t_end_timeB\022\n\020_part" + + "ition_tokenB\031\n\027_heartbeat_millisecondsB\023" + + "\n\021_deadline_secondsB\026\n\024_cloud_database_r" + + "ole\"\242\005\n\024SpannerActionOutcome\022\'\n\006status\030\001" + + " \001(\0132\022.google.rpc.StatusH\000\210\001\001\0224\n\013commit_" + + "time\030\002 \001(\0132\032.google.protobuf.TimestampH\001" + + "\210\001\001\022@\n\013read_result\030\003 \001(\0132&.google.spanne" + + "r.executor.v1.ReadResultH\002\210\001\001\022B\n\014query_r" + + "esult\030\004 \001(\0132\'.google.spanner.executor.v1" + + ".QueryResultH\003\210\001\001\022\"\n\025transaction_restart" + + "ed\030\005 \001(\010H\004\210\001\001\022\031\n\014batch_txn_id\030\006 \001(\014H\005\210\001\001" + + "\022@\n\014db_partition\030\007 \003(\0132*.google.spanner." + + "executor.v1.BatchPartition\022B\n\014admin_resu" + + "lt\030\010 \001(\0132\'.google.spanner.executor.v1.Ad" + + "minResultH\006\210\001\001\022\031\n\021dml_rows_modified\030\t \003(" + + "\003\022M\n\025change_stream_records\030\n \003(\0132..googl" + + "e.spanner.executor.v1.ChangeStreamRecord" + + "B\t\n\007_statusB\016\n\014_commit_timeB\016\n\014_read_res" + + "ultB\017\n\r_query_resultB\030\n\026_transaction_res" + + "tartedB\017\n\r_batch_txn_idB\017\n\r_admin_result" + + "\"\231\003\n\013AdminResult\022H\n\017backup_response\030\001 \001(" + + "\0132/.google.spanner.executor.v1.CloudBack" + + "upResponse\022I\n\022operation_response\030\002 \001(\0132-" + + ".google.spanner.executor.v1.OperationRes" + + "ponse\022L\n\021database_response\030\003 \001(\01321.googl" + + "e.spanner.executor.v1.CloudDatabaseRespo" + + "nse\022L\n\021instance_response\030\004 \001(\01321.google." + + "spanner.executor.v1.CloudInstanceRespons" + + "e\022Y\n\030instance_config_response\030\005 \001(\01327.go" + + "ogle.spanner.executor.v1.CloudInstanceCo" + + "nfigResponse\"\353\001\n\023CloudBackupResponse\022@\n\016" + + "listed_backups\030\001 \003(\0132(.google.spanner.ad" + + "min.database.v1.Backup\022?\n\030listed_backup_" + + "operations\030\002 \003(\0132\035.google.longrunning.Op" + + "eration\022\027\n\017next_page_token\030\003 \001(\t\0228\n\006back" + + "up\030\004 \001(\0132(.google.spanner.admin.database" + + ".v1.Backup\"\230\001\n\021OperationResponse\0228\n\021list" + + "ed_operations\030\001 \003(\0132\035.google.longrunning" + + ".Operation\022\027\n\017next_page_token\030\002 \001(\t\0220\n\to" + + "peration\030\003 \001(\0132\035.google.longrunning.Oper" + + "ation\"\264\001\n\025CloudInstanceResponse\022D\n\020liste" + + "d_instances\030\001 \003(\0132*.google.spanner.admin" + + ".instance.v1.Instance\022\027\n\017next_page_token" + + "\030\002 \001(\t\022<\n\010instance\030\003 \001(\0132*.google.spanne" + + "r.admin.instance.v1.Instance\"\324\001\n\033CloudIn" + + "stanceConfigResponse\022Q\n\027listed_instance_" + + "configs\030\001 \003(\01320.google.spanner.admin.ins" + + "tance.v1.InstanceConfig\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022I\n\017instance_config\030\003 \001(\01320.goog" + + "le.spanner.admin.instance.v1.InstanceCon" + + "fig\"\367\001\n\025CloudDatabaseResponse\022D\n\020listed_" + + "databases\030\001 \003(\0132*.google.spanner.admin.d" + + "atabase.v1.Database\022A\n\032listed_database_o" + + "perations\030\002 \003(\0132\035.google.longrunning.Ope" + + "ration\022\027\n\017next_page_token\030\003 \001(\t\022<\n\010datab" + + "ase\030\004 \001(\0132*.google.spanner.admin.databas" + + "e.v1.Database\"\336\001\n\nReadResult\022\r\n\005table\030\001 " + + "\001(\t\022\022\n\005index\030\002 \001(\tH\000\210\001\001\022\032\n\rrequest_index" + + "\030\003 \001(\005H\001\210\001\001\0222\n\003row\030\004 \003(\0132%.google.spanne" + + "r.executor.v1.ValueList\0224\n\010row_type\030\005 \001(" + + "\0132\035.google.spanner.v1.StructTypeH\002\210\001\001B\010\n" + + "\006_indexB\020\n\016_request_indexB\013\n\t_row_type\"\204", + "\001\n\013QueryResult\0222\n\003row\030\001 \003(\0132%.google.spa" + + "nner.executor.v1.ValueList\0224\n\010row_type\030\002" + + " \001(\0132\035.google.spanner.v1.StructTypeH\000\210\001\001" + + "B\013\n\t_row_type\"\363\001\n\022ChangeStreamRecord\022C\n\013" + + "data_change\030\001 \001(\0132,.google.spanner.execu" + + "tor.v1.DataChangeRecordH\000\022L\n\017child_parti" + + "tion\030\002 \001(\01321.google.spanner.executor.v1." + + "ChildPartitionsRecordH\000\022@\n\theartbeat\030\003 \001" + + "(\0132+.google.spanner.executor.v1.Heartbea" + + "tRecordH\000B\010\n\006record\"\330\004\n\020DataChangeRecord" + + "\022/\n\013commit_time\030\001 \001(\0132\032.google.protobuf." + + "Timestamp\022\027\n\017record_sequence\030\002 \001(\t\022\026\n\016tr" + + "ansaction_id\030\003 \001(\t\022\026\n\016is_last_record\030\004 \001" + + "(\010\022\r\n\005table\030\005 \001(\t\022M\n\014column_types\030\006 \003(\0132" + + "7.google.spanner.executor.v1.DataChangeR" + + "ecord.ColumnType\022>\n\004mods\030\007 \003(\01320.google." + + "spanner.executor.v1.DataChangeRecord.Mod" + + "\022\020\n\010mod_type\030\010 \001(\t\022\032\n\022value_capture_type" + + "\030\t \001(\t\022\024\n\014record_count\030\n \001(\003\022\027\n\017partitio" + + "n_count\030\013 \001(\003\022\027\n\017transaction_tag\030\014 \001(\t\022\035" + + "\n\025is_system_transaction\030\r \001(\010\032Z\n\nColumnT" + + "ype\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\026\n\016is_pr" + + "imary_key\030\003 \001(\010\022\030\n\020ordinal_position\030\004 \001(" + + "\003\032;\n\003Mod\022\014\n\004keys\030\001 \001(\t\022\022\n\nnew_values\030\002 \001" + + "(\t\022\022\n\nold_values\030\003 \001(\t\"\376\001\n\025ChildPartitio" + + "nsRecord\022.\n\nstart_time\030\001 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\027\n\017record_sequence\030\002 \001(" + + "\t\022Z\n\020child_partitions\030\003 \003(\0132@.google.spa" + + "nner.executor.v1.ChildPartitionsRecord.C" + + "hildPartition\032@\n\016ChildPartition\022\r\n\005token" + + "\030\001 \001(\t\022\037\n\027parent_partition_tokens\030\002 \003(\t\"" + + "E\n\017HeartbeatRecord\0222\n\016heartbeat_time\030\001 \001" + + "(\0132\032.google.protobuf.Timestamp2\314\001\n\024Spann" + + "erExecutorProxy\022\211\001\n\022ExecuteActionAsync\0225" + + ".google.spanner.executor.v1.SpannerAsync" + + "ActionRequest\0326.google.spanner.executor." + + "v1.SpannerAsyncActionResponse\"\000(\0010\001\032(\312A%" + + "spanner-cloud-executor.googleapis.comBx\n" + + "\036com.google.spanner.executor.v1B\022CloudEx" + + "ecutorProtoP\001Z@cloud.google.com/go/spann" + + "er/executor/apiv1/executorpb;executorpbb" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -862,7 +863,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_ReadAction_descriptor, new java.lang.String[] { - "Table", "Index", "Column", "Keys", "Limit", "Index", + "Table", "Index", "Column", "Keys", "Limit", }); internal_static_google_spanner_executor_v1_QueryAction_descriptor = getDescriptor().getMessageTypes().get(4); @@ -886,7 +887,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_DmlAction_descriptor, new java.lang.String[] { - "Update", "AutocommitIfSupported", "AutocommitIfSupported", + "Update", "AutocommitIfSupported", }); internal_static_google_spanner_executor_v1_BatchDmlAction_descriptor = getDescriptor().getMessageTypes().get(6); @@ -915,7 +916,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ArrayValue", "ArrayType", "ValueType", - "ArrayType", }); internal_static_google_spanner_executor_v1_KeyRange_descriptor = getDescriptor().getMessageTypes().get(8); @@ -923,7 +923,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_KeyRange_descriptor, new java.lang.String[] { - "Start", "Limit", "Type", "Type", + "Start", "Limit", "Type", }); internal_static_google_spanner_executor_v1_KeySet_descriptor = getDescriptor().getMessageTypes().get(9); @@ -993,7 +993,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_PartitionedUpdateAction_descriptor, new java.lang.String[] { - "Options", "Update", "Options", + "Options", "Update", }); internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_descriptor = internal_static_google_spanner_executor_v1_PartitionedUpdateAction_descriptor @@ -1003,7 +1003,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_descriptor, new java.lang.String[] { - "RpcPriority", "Tag", "RpcPriority", "Tag", + "RpcPriority", "Tag", }); internal_static_google_spanner_executor_v1_StartTransactionAction_descriptor = getDescriptor().getMessageTypes().get(14); @@ -1011,12 +1011,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_StartTransactionAction_descriptor, new java.lang.String[] { - "Concurrency", - "Table", - "TransactionSeed", - "ExecutionOptions", - "Concurrency", - "ExecutionOptions", + "Concurrency", "Table", "TransactionSeed", "ExecutionOptions", }); internal_static_google_spanner_executor_v1_Concurrency_descriptor = getDescriptor().getMessageTypes().get(15); @@ -1117,7 +1112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_UpdateUserInstanceConfigAction_descriptor, new java.lang.String[] { - "UserConfigId", "ProjectId", "DisplayName", "Labels", "DisplayName", + "UserConfigId", "ProjectId", "DisplayName", "Labels", }); internal_static_google_spanner_executor_v1_UpdateUserInstanceConfigAction_LabelsEntry_descriptor = internal_static_google_spanner_executor_v1_UpdateUserInstanceConfigAction_descriptor @@ -1151,7 +1146,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_descriptor, new java.lang.String[] { - "ProjectId", "PageSize", "PageToken", "PageSize", "PageToken", + "ProjectId", "PageSize", "PageToken", }); internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_descriptor = getDescriptor().getMessageTypes().get(26); @@ -1166,9 +1161,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProcessingUnits", "AutoscalingConfig", "Labels", - "NodeCount", - "ProcessingUnits", - "AutoscalingConfig", }); internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_LabelsEntry_descriptor = internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_descriptor @@ -1193,10 +1185,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProcessingUnits", "AutoscalingConfig", "Labels", - "DisplayName", - "NodeCount", - "ProcessingUnits", - "AutoscalingConfig", }); internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_LabelsEntry_descriptor = internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_descriptor @@ -1229,8 +1217,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EncryptionConfig", "Dialect", "ProtoDescriptors", - "Dialect", - "ProtoDescriptors", }); internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_descriptor = getDescriptor().getMessageTypes().get(30); @@ -1244,7 +1230,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SdlStatement", "OperationId", "ProtoDescriptors", - "ProtoDescriptors", }); internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_descriptor = getDescriptor().getMessageTypes().get(31); @@ -1268,7 +1253,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_descriptor, new java.lang.String[] { - "DatabaseUri", "ServingLocations", "DatabaseUri", + "DatabaseUri", "ServingLocations", }); internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_descriptor = getDescriptor().getMessageTypes().get(34); @@ -1284,7 +1269,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_ListCloudInstancesAction_descriptor, new java.lang.String[] { - "ProjectId", "Filter", "PageSize", "PageToken", "Filter", "PageSize", "PageToken", + "ProjectId", "Filter", "PageSize", "PageToken", }); internal_static_google_spanner_executor_v1_GetCloudInstanceAction_descriptor = getDescriptor().getMessageTypes().get(36); @@ -1324,13 +1309,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_CreateCloudBackupAction_descriptor, new java.lang.String[] { - "ProjectId", - "InstanceId", - "BackupId", - "DatabaseId", - "ExpireTime", - "VersionTime", - "VersionTime", + "ProjectId", "InstanceId", "BackupId", "DatabaseId", "ExpireTime", "VersionTime", }); internal_static_google_spanner_executor_v1_CopyCloudBackupAction_descriptor = getDescriptor().getMessageTypes().get(41); @@ -1418,12 +1397,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_descriptor, new java.lang.String[] { - "Read", - "Table", - "DesiredBytesPerPartition", - "MaxPartitionCount", - "DesiredBytesPerPartition", - "MaxPartitionCount", + "Read", "Table", "DesiredBytesPerPartition", "MaxPartitionCount", }); internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_descriptor = getDescriptor().getMessageTypes().get(52); @@ -1431,7 +1405,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_descriptor, new java.lang.String[] { - "Query", "DesiredBytesPerPartition", "DesiredBytesPerPartition", + "Query", "DesiredBytesPerPartition", }); internal_static_google_spanner_executor_v1_BatchPartition_descriptor = getDescriptor().getMessageTypes().get(53); @@ -1439,7 +1413,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_BatchPartition_descriptor, new java.lang.String[] { - "Partition", "PartitionToken", "Table", "Index", "Table", "Index", + "Partition", "PartitionToken", "Table", "Index", }); internal_static_google_spanner_executor_v1_ExecutePartitionAction_descriptor = getDescriptor().getMessageTypes().get(54); @@ -1463,11 +1437,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HeartbeatMilliseconds", "DeadlineSeconds", "CloudDatabaseRole", - "EndTime", - "PartitionToken", - "HeartbeatMilliseconds", - "DeadlineSeconds", - "CloudDatabaseRole", }); internal_static_google_spanner_executor_v1_SpannerActionOutcome_descriptor = getDescriptor().getMessageTypes().get(56); @@ -1485,13 +1454,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AdminResult", "DmlRowsModified", "ChangeStreamRecords", - "Status", - "CommitTime", - "ReadResult", - "QueryResult", - "TransactionRestarted", - "BatchTxnId", - "AdminResult", }); internal_static_google_spanner_executor_v1_AdminResult_descriptor = getDescriptor().getMessageTypes().get(57); @@ -1551,14 +1513,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_ReadResult_descriptor, new java.lang.String[] { - "Table", - "Index", - "RequestIndex", - "Row", - "RowType", - "Index", - "RequestIndex", - "RowType", + "Table", "Index", "RequestIndex", "Row", "RowType", }); internal_static_google_spanner_executor_v1_QueryResult_descriptor = getDescriptor().getMessageTypes().get(64); @@ -1566,7 +1521,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_executor_v1_QueryResult_descriptor, new java.lang.String[] { - "Row", "RowType", "RowType", + "Row", "RowType", }); internal_static_google_spanner_executor_v1_ChangeStreamRecord_descriptor = getDescriptor().getMessageTypes().get(65); diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponse.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponse.java index 911b2dc28c5..5e0076c56ab 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponse.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.CloudInstanceConfigResponse.Builder.class); } + private int bitField0_; public static final int LISTED_INSTANCE_CONFIGS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -211,7 +213,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { */ @java.lang.Override public boolean hasInstanceConfig() { - return instanceConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -266,7 +268,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - if (instanceConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getInstanceConfig()); } getUnknownFields().writeTo(output); @@ -286,7 +288,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - if (instanceConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstanceConfig()); } size += getUnknownFields().getSerializedSize(); @@ -463,10 +465,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.CloudInstanceConfigResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getListedInstanceConfigsFieldBuilder(); + getInstanceConfigFieldBuilder(); + } } @java.lang.Override @@ -539,10 +551,13 @@ private void buildPartial0(com.google.spanner.executor.v1.CloudInstanceConfigRes if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.instanceConfig_ = instanceConfigBuilder_ == null ? instanceConfig_ : instanceConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1294,8 +1309,10 @@ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.Instance } else { instanceConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (instanceConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponseOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponseOrBuilder.java index 137e83c2f8f..64c629ef60f 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponseOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface CloudInstanceConfigResponseOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponse.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponse.java index c2f3e8e73ac..ba13279dee2 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponse.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.CloudInstanceResponse.Builder.class); } + private int bitField0_; public static final int LISTED_INSTANCES_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -204,7 +206,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { */ @java.lang.Override public boolean hasInstance() { - return instance_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -259,7 +261,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - if (instance_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getInstance()); } getUnknownFields().writeTo(output); @@ -277,7 +279,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - if (instance_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance()); } size += getUnknownFields().getSerializedSize(); @@ -453,10 +455,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.CloudInstanceResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getListedInstancesFieldBuilder(); + getInstanceFieldBuilder(); + } } @java.lang.Override @@ -529,9 +541,12 @@ private void buildPartial0(com.google.spanner.executor.v1.CloudInstanceResponse if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.instance_ = instanceBuilder_ == null ? instance_ : instanceBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1259,8 +1274,10 @@ public Builder mergeInstance(com.google.spanner.admin.instance.v1.Instance value } else { instanceBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (instance_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponseOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponseOrBuilder.java index bd771f2d74b..b87671d70c4 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponseOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface CloudInstanceResponseOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadata.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadata.java index 5d51e2c7180..9f47bead3cc 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadata.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.ColumnMetadata.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -128,7 +130,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasType() { - return type_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -176,7 +178,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getType()); } getUnknownFields().writeTo(output); @@ -191,7 +193,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getType()); } size += getUnknownFields().getSerializedSize(); @@ -361,10 +363,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.ColumnMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTypeFieldBuilder(); + } } @java.lang.Override @@ -416,9 +427,12 @@ private void buildPartial0(com.google.spanner.executor.v1.ColumnMetadata result) if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -737,8 +751,10 @@ public Builder mergeType(com.google.spanner.v1.Type value) { } else { typeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (type_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadataOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadataOrBuilder.java index 53d4dbdfd82..4326c89a2b1 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadataOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ColumnMetadataOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Concurrency.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Concurrency.java index b078fdc4b8d..86ca81ed827 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Concurrency.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Concurrency.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ConcurrencyOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ConcurrencyOrBuilder.java index 0c84680cec9..fc8e9dd8f43 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ConcurrencyOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ConcurrencyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ConcurrencyOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupAction.java index 7e90da4a653..6980009bfb0 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.CopyCloudBackupAction.Builder.class); } + private int bitField0_; public static final int PROJECT_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -290,7 +292,7 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { */ @java.lang.Override public boolean hasExpireTime() { - return expireTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -351,7 +353,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBackup_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceBackup_); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getExpireTime()); } getUnknownFields().writeTo(output); @@ -375,7 +377,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBackup_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceBackup_); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExpireTime()); } size += getUnknownFields().getSerializedSize(); @@ -554,10 +556,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.CopyCloudBackupAction.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExpireTimeFieldBuilder(); + } } @java.lang.Override @@ -621,9 +632,12 @@ private void buildPartial0(com.google.spanner.executor.v1.CopyCloudBackupAction if (((from_bitField0_ & 0x00000008) != 0)) { result.sourceBackup_ = sourceBackup_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1321,8 +1335,10 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { } else { expireTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (expireTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupActionOrBuilder.java index 1a45aa91bfb..03c659bea49 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface CopyCloudBackupActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupAction.java index c789c6f0b32..f972e1a3e4e 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -291,7 +292,7 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { */ @java.lang.Override public boolean hasExpireTime() { - return expireTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -343,7 +344,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { */ @java.lang.Override public boolean hasVersionTime() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -404,10 +405,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, databaseId_); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getExpireTime()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getVersionTime()); } getUnknownFields().writeTo(output); @@ -431,10 +432,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, databaseId_); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExpireTime()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getVersionTime()); } size += getUnknownFields().getSerializedSize(); @@ -704,14 +705,15 @@ private void buildPartial0(com.google.spanner.executor.v1.CreateCloudBackupActio if (((from_bitField0_ & 0x00000008) != 0)) { result.databaseId_ = databaseId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { result.versionTime_ = versionTimeBuilder_ == null ? versionTime_ : versionTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -1420,8 +1422,10 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { } else { expireTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (expireTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -1625,8 +1629,10 @@ public Builder mergeVersionTime(com.google.protobuf.Timestamp value) { } else { versionTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (versionTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupActionOrBuilder.java index c91cd5a410e..1059f9cf08c 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface CreateCloudBackupActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseAction.java index d8aab2498e6..3f17917a664 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -301,7 +302,7 @@ public com.google.protobuf.ByteString getSdlStatementBytes(int index) { */ @java.lang.Override public boolean hasEncryptionConfig() { - return encryptionConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -356,7 +357,7 @@ public com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig */ @java.lang.Override public boolean hasDialect() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -414,7 +415,7 @@ public com.google.protobuf.ByteString getDialectBytes() { */ @java.lang.Override public boolean hasProtoDescriptors() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bytes proto_descriptors = 7; @@ -452,13 +453,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < sdlStatement_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sdlStatement_.getRaw(i)); } - if (encryptionConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getEncryptionConfig()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, dialect_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBytes(7, protoDescriptors_); } getUnknownFields().writeTo(output); @@ -487,13 +488,13 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSdlStatementList().size(); } - if (encryptionConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEncryptionConfig()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dialect_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, protoDescriptors_); } size += getUnknownFields().getSerializedSize(); @@ -691,10 +692,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.CreateCloudDatabaseAction.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEncryptionConfigFieldBuilder(); + } } @java.lang.Override @@ -761,18 +771,19 @@ private void buildPartial0(com.google.spanner.executor.v1.CreateCloudDatabaseAct sdlStatement_.makeImmutable(); result.sdlStatement_ = sdlStatement_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.encryptionConfig_ = encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { result.dialect_ = dialect_; - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { result.protoDescriptors_ = protoDescriptors_; - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @@ -1551,8 +1562,10 @@ public Builder mergeEncryptionConfig( } else { encryptionConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (encryptionConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseActionOrBuilder.java index fa2d08522e2..45e88f0ad26 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface CreateCloudDatabaseActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceAction.java index 116adf58145..4ea02b4fea1 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -56,7 +57,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 5: return internalGetLabels(); @@ -713,7 +715,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 5: return internalGetLabels(); @@ -723,7 +726,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 5: return internalGetMutableLabels(); @@ -1582,8 +1586,10 @@ public Builder mergeAutoscalingConfig( } else { autoscalingConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (autoscalingConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceActionOrBuilder.java index 02b8849911c..fddb9230bd9 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface CreateCloudInstanceActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigAction.java index 6bd929cbae2..bce0f5f511d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigActionOrBuilder.java index aa468a1ff3d..ffa1f5b8a8a 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface CreateUserInstanceConfigActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecord.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecord.java index a95d4b3cd02..5aa9a5d9a58 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecord.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecord.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -2208,6 +2209,7 @@ public com.google.spanner.executor.v1.DataChangeRecord.Mod getDefaultInstanceFor } } + private int bitField0_; public static final int COMMIT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp commitTime_; /** @@ -2223,7 +2225,7 @@ public com.google.spanner.executor.v1.DataChangeRecord.Mod getDefaultInstanceFor */ @java.lang.Override public boolean hasCommitTime() { - return commitTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -2794,7 +2796,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (commitTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCommitTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordSequence_)) { @@ -2842,7 +2844,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (commitTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommitTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordSequence_)) { @@ -3085,10 +3087,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.DataChangeRecord.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCommitTimeFieldBuilder(); + getColumnTypesFieldBuilder(); + getModsFieldBuilder(); + } } @java.lang.Override @@ -3183,8 +3196,10 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.spanner.executor.v1.DataChangeRecord result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.commitTime_ = commitTimeBuilder_ == null ? commitTime_ : commitTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.recordSequence_ = recordSequence_; @@ -3216,6 +3231,7 @@ private void buildPartial0(com.google.spanner.executor.v1.DataChangeRecord resul if (((from_bitField0_ & 0x00001000) != 0)) { result.isSystemTransaction_ = isSystemTransaction_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -3604,8 +3620,10 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { } else { commitTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (commitTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecordOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecordOrBuilder.java index 57fc31058b5..19a708c546d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecordOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecordOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface DataChangeRecordOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupAction.java index a8a4e8e2cca..dd91b01e387 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupActionOrBuilder.java index deef4f5268a..0fe780e81c3 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface DeleteCloudBackupActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceAction.java index 36d0c421a3b..b51b285e469 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceActionOrBuilder.java index 0fd46ae70cf..51e0037165a 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface DeleteCloudInstanceActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigAction.java index e9450e53a10..e25dc61e7e0 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigActionOrBuilder.java index 04f36caf837..0af0ab956bb 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface DeleteUserInstanceConfigActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlAction.java index 4ae847ee6bc..08a3f01ad48 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -76,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasUpdate() { - return update_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -127,7 +128,7 @@ public com.google.spanner.executor.v1.QueryActionOrBuilder getUpdateOrBuilder() */ @java.lang.Override public boolean hasAutocommitIfSupported() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -160,10 +161,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (update_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getUpdate()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, autocommitIfSupported_); } getUnknownFields().writeTo(output); @@ -175,10 +176,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (update_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdate()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, autocommitIfSupported_); } size += getUnknownFields().getSerializedSize(); @@ -352,10 +353,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.DmlAction.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateFieldBuilder(); + } } @java.lang.Override @@ -404,13 +414,14 @@ public com.google.spanner.executor.v1.DmlAction buildPartial() { private void buildPartial0(com.google.spanner.executor.v1.DmlAction result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build(); + to_bitField0_ |= 0x00000001; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.autocommitIfSupported_ = autocommitIfSupported_; - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -625,8 +636,10 @@ public Builder mergeUpdate(com.google.spanner.executor.v1.QueryAction value) { } else { updateBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (update_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlActionOrBuilder.java index 5e75d04028b..33198f0591d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface DmlActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseAction.java index c97f898f66a..6b52ea3f0ac 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseActionOrBuilder.java index 5132a22c0f7..8c6e9055910 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface DropCloudDatabaseActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQuery.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQuery.java index 29abc5b64d3..079f9088dbd 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQuery.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQuery.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -133,7 +134,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasStartTime() { - return startTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -182,7 +183,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { */ @java.lang.Override public boolean hasEndTime() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -233,7 +234,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { */ @java.lang.Override public boolean hasPartitionToken() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -364,7 +365,7 @@ public com.google.protobuf.ByteString getReadOptionsBytes(int index) { */ @java.lang.Override public boolean hasHeartbeatMilliseconds() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -398,7 +399,7 @@ public int getHeartbeatMilliseconds() { */ @java.lang.Override public boolean hasDeadlineSeconds() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -435,7 +436,7 @@ public long getDeadlineSeconds() { */ @java.lang.Override public boolean hasCloudDatabaseRole() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -505,25 +506,25 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getStartTime()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getEndTime()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, partitionToken_); } for (int i = 0; i < readOptions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, readOptions_.getRaw(i)); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(6, heartbeatMilliseconds_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeInt64(7, deadlineSeconds_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, cloudDatabaseRole_); } getUnknownFields().writeTo(output); @@ -538,13 +539,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, partitionToken_); } { @@ -555,13 +556,13 @@ public int getSerializedSize() { size += dataSize; size += 1 * getReadOptionsList().size(); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, heartbeatMilliseconds_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, deadlineSeconds_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cloudDatabaseRole_); } size += getUnknownFields().getSerializedSize(); @@ -852,17 +853,18 @@ private void buildPartial0(com.google.spanner.executor.v1.ExecuteChangeStreamQue if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.partitionToken_ = partitionToken_; - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { readOptions_.makeImmutable(); @@ -870,15 +872,15 @@ private void buildPartial0(com.google.spanner.executor.v1.ExecuteChangeStreamQue } if (((from_bitField0_ & 0x00000020) != 0)) { result.heartbeatMilliseconds_ = heartbeatMilliseconds_; - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { result.deadlineSeconds_ = deadlineSeconds_; - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { result.cloudDatabaseRole_ = cloudDatabaseRole_; - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @@ -1271,8 +1273,10 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1459,8 +1463,10 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQueryOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQueryOrBuilder.java index 44a50603237..5b140383142 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQueryOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQueryOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ExecuteChangeStreamQueryOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionAction.java index ebb8c78c1da..9acbcea6546 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.ExecutePartitionAction.Builder.class); } + private int bitField0_; public static final int PARTITION_FIELD_NUMBER = 1; private com.google.spanner.executor.v1.BatchPartition partition_; /** @@ -77,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasPartition() { - return partition_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -126,7 +128,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (partition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getPartition()); } getUnknownFields().writeTo(output); @@ -138,7 +140,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (partition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPartition()); } size += getUnknownFields().getSerializedSize(); @@ -308,10 +310,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.ExecutePartitionAction.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPartitionFieldBuilder(); + } } @java.lang.Override @@ -359,9 +370,12 @@ public com.google.spanner.executor.v1.ExecutePartitionAction buildPartial() { private void buildPartial0(com.google.spanner.executor.v1.ExecutePartitionAction result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.partition_ = partitionBuilder_ == null ? partition_ : partitionBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -567,8 +581,10 @@ public Builder mergePartition(com.google.spanner.executor.v1.BatchPartition valu } else { partitionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (partition_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionActionOrBuilder.java index d10640206d1..44c1a3d93df 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ExecutePartitionActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionAction.java index e9842ecdef9..daeb03a9637 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionActionOrBuilder.java index fe1b168f73b..1281a913d35 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface FinishTransactionActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryAction.java index 1b902bcbb8e..06bc998672f 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -78,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasQuery() { - return query_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -129,7 +130,7 @@ public com.google.spanner.executor.v1.QueryActionOrBuilder getQueryOrBuilder() { */ @java.lang.Override public boolean hasDesiredBytesPerPartition() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -162,10 +163,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (query_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getQuery()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, desiredBytesPerPartition_); } getUnknownFields().writeTo(output); @@ -177,10 +178,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (query_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getQuery()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, desiredBytesPerPartition_); } size += getUnknownFields().getSerializedSize(); @@ -359,10 +360,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getQueryFieldBuilder(); + } } @java.lang.Override @@ -413,13 +423,14 @@ public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction buildPa private void buildPartial0( com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.query_ = queryBuilder_ == null ? query_ : queryBuilder_.build(); + to_bitField0_ |= 0x00000001; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.desiredBytesPerPartition_ = desiredBytesPerPartition_; - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -637,8 +648,10 @@ public Builder mergeQuery(com.google.spanner.executor.v1.QueryAction value) { } else { queryBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (query_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryActionOrBuilder.java index aec1a29344d..197443620c3 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface GenerateDbPartitionsForQueryActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadAction.java index 869ae0eb1cb..29d4008069c 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -80,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasRead() { - return read_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -198,7 +199,7 @@ public com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder(i */ @java.lang.Override public boolean hasDesiredBytesPerPartition() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -233,7 +234,7 @@ public long getDesiredBytesPerPartition() { */ @java.lang.Override public boolean hasMaxPartitionCount() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -266,16 +267,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (read_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRead()); } for (int i = 0; i < table_.size(); i++) { output.writeMessage(2, table_.get(i)); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(3, desiredBytesPerPartition_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(4, maxPartitionCount_); } getUnknownFields().writeTo(output); @@ -287,16 +288,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (read_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRead()); } for (int i = 0; i < table_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, table_.get(i)); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, desiredBytesPerPartition_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, maxPartitionCount_); } size += getUnknownFields().getSerializedSize(); @@ -486,10 +487,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReadFieldBuilder(); + getTableFieldBuilder(); + } } @java.lang.Override @@ -562,17 +573,18 @@ private void buildPartialRepeatedFields( private void buildPartial0( com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.read_ = readBuilder_ == null ? read_ : readBuilder_.build(); + to_bitField0_ |= 0x00000001; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.desiredBytesPerPartition_ = desiredBytesPerPartition_; - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.maxPartitionCount_ = maxPartitionCount_; - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @@ -839,8 +851,10 @@ public Builder mergeRead(com.google.spanner.executor.v1.ReadAction value) { } else { readBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (read_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadActionOrBuilder.java index 3905e44fb73..d415029950f 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface GenerateDbPartitionsForReadActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupAction.java index 2cdb1e3b641..1ad8a59980f 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupActionOrBuilder.java index ff3b57d82cd..67cac4420ef 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface GetCloudBackupActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseAction.java index 544f7e751f8..eae1bb45199 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseActionOrBuilder.java index 0ca91c26175..ec6a9b3bca1 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface GetCloudDatabaseActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceAction.java index aee8372c9ea..cf7e774fe54 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceActionOrBuilder.java index 41ea5db664b..016fb31a4fc 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface GetCloudInstanceActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigAction.java index 1cb45e0ba90..bc25ab24966 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigActionOrBuilder.java index 1886d88e9d9..f5092ed316d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface GetCloudInstanceConfigActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationAction.java index 7ff9277e82a..0d3cebe92a0 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationActionOrBuilder.java index a8fd39772e5..55c89853679 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface GetOperationActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecord.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecord.java index 41240ae5b57..6344099b56b 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecord.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecord.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.HeartbeatRecord.Builder.class); } + private int bitField0_; public static final int HEARTBEAT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp heartbeatTime_; /** @@ -75,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasHeartbeatTime() { - return heartbeatTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -124,7 +126,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (heartbeatTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getHeartbeatTime()); } getUnknownFields().writeTo(output); @@ -136,7 +138,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (heartbeatTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHeartbeatTime()); } size += getUnknownFields().getSerializedSize(); @@ -303,10 +305,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.HeartbeatRecord.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHeartbeatTimeFieldBuilder(); + } } @java.lang.Override @@ -354,10 +365,13 @@ public com.google.spanner.executor.v1.HeartbeatRecord buildPartial() { private void buildPartial0(com.google.spanner.executor.v1.HeartbeatRecord result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.heartbeatTime_ = heartbeatTimeBuilder_ == null ? heartbeatTime_ : heartbeatTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -561,8 +575,10 @@ public Builder mergeHeartbeatTime(com.google.protobuf.Timestamp value) { } else { heartbeatTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (heartbeatTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecordOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecordOrBuilder.java index 92334fe3ae2..2fd58d8829e 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecordOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecordOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface HeartbeatRecordOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRange.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRange.java index 71eb93a201f..c27ddbcb302 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRange.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRange.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -288,7 +289,7 @@ private Type(int value) { */ @java.lang.Override public boolean hasStart() { - return start_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -338,7 +339,7 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getStartOrBuilder() { */ @java.lang.Override public boolean hasLimit() { - return limit_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -384,7 +385,7 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getLimitOrBuilder() { */ @java.lang.Override public boolean hasType() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -433,13 +434,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (start_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStart()); } - if (limit_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getLimit()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(3, type_); } getUnknownFields().writeTo(output); @@ -451,13 +452,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (start_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStart()); } - if (limit_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLimit()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); } size += getUnknownFields().getSerializedSize(); @@ -645,10 +646,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.KeyRange.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartFieldBuilder(); + getLimitFieldBuilder(); + } } @java.lang.Override @@ -702,16 +713,18 @@ public com.google.spanner.executor.v1.KeyRange buildPartial() { private void buildPartial0(com.google.spanner.executor.v1.KeyRange result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.start_ = startBuilder_ == null ? start_ : startBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.limit_ = limitBuilder_ == null ? limit_ : limitBuilder_.build(); + to_bitField0_ |= 0x00000002; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.type_ = type_; - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @@ -945,8 +958,10 @@ public Builder mergeStart(com.google.spanner.executor.v1.ValueList value) { } else { startBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (start_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -1136,8 +1151,10 @@ public Builder mergeLimit(com.google.spanner.executor.v1.ValueList value) { } else { limitBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (limit_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRangeOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRangeOrBuilder.java index 6b8cd6c47cb..427808e9718 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRangeOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRangeOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface KeyRangeOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySet.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySet.java index edd508c9b7a..4bbba0c0791 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySet.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySet.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySetOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySetOrBuilder.java index 88fae3d5494..f89b2cc62ca 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySetOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySetOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface KeySetOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsAction.java index a7cf3236781..3289e6bd380 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsActionOrBuilder.java index a2318445b5f..a7933b2957d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ListCloudBackupOperationsActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsAction.java index b9d1ff3079a..ae97978a571 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsActionOrBuilder.java index 10cfff838fa..9dc7939ddbf 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ListCloudBackupsActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsAction.java index 0673ac50085..0b06c5ee01b 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsActionOrBuilder.java index 8ef1b0c7c6f..ff9f9bc5a7a 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ListCloudDatabaseOperationsActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesAction.java index b268cc6dda9..18ac43f07fe 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesActionOrBuilder.java index 9a2844e7586..b671c39c88a 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ListCloudDatabasesActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsAction.java index 650bf1cdba0..01802e234d6 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsActionOrBuilder.java index c2f1420bff2..00661970d5f 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ListCloudInstanceConfigsActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesAction.java index d1795e5deed..56b02f4e70c 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesActionOrBuilder.java index 9c342a78160..e291af32903 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ListCloudInstancesActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationAction.java index 7b138f35ac8..7c5ce8a5d11 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -3992,6 +3993,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.MutationAction.Mod.Builder.class); } + private int bitField0_; public static final int TABLE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -4059,7 +4061,7 @@ public com.google.protobuf.ByteString getTableBytes() { */ @java.lang.Override public boolean hasInsert() { - return insert_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -4111,7 +4113,7 @@ public com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder getInse */ @java.lang.Override public boolean hasUpdate() { - return update_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -4161,7 +4163,7 @@ public com.google.spanner.executor.v1.MutationAction.UpdateArgsOrBuilder getUpda */ @java.lang.Override public boolean hasInsertOrUpdate() { - return insertOrUpdate_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -4212,7 +4214,7 @@ public com.google.spanner.executor.v1.MutationAction.InsertArgs getInsertOrUpdat */ @java.lang.Override public boolean hasReplace() { - return replace_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -4262,7 +4264,7 @@ public com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder getRepl */ @java.lang.Override public boolean hasDeleteKeys() { - return deleteKeys_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -4314,19 +4316,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_); } - if (insert_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getInsert()); } - if (update_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getUpdate()); } - if (insertOrUpdate_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getInsertOrUpdate()); } - if (replace_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(5, getReplace()); } - if (deleteKeys_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(6, getDeleteKeys()); } getUnknownFields().writeTo(output); @@ -4341,19 +4343,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_); } - if (insert_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInsert()); } - if (update_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdate()); } - if (insertOrUpdate_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInsertOrUpdate()); } - if (replace_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReplace()); } - if (deleteKeys_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDeleteKeys()); } size += getUnknownFields().getSerializedSize(); @@ -4559,10 +4561,23 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.MutationAction.Mod.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInsertFieldBuilder(); + getUpdateFieldBuilder(); + getInsertOrUpdateFieldBuilder(); + getReplaceFieldBuilder(); + getDeleteKeysFieldBuilder(); + } } @java.lang.Override @@ -4634,23 +4649,30 @@ private void buildPartial0(com.google.spanner.executor.v1.MutationAction.Mod res if (((from_bitField0_ & 0x00000001) != 0)) { result.table_ = table_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.insert_ = insertBuilder_ == null ? insert_ : insertBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.insertOrUpdate_ = insertOrUpdateBuilder_ == null ? insertOrUpdate_ : insertOrUpdateBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.replace_ = replaceBuilder_ == null ? replace_ : replaceBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.deleteKeys_ = deleteKeysBuilder_ == null ? deleteKeys_ : deleteKeysBuilder_.build(); + to_bitField0_ |= 0x00000010; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -5019,8 +5041,10 @@ public Builder mergeInsert(com.google.spanner.executor.v1.MutationAction.InsertA } else { insertBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (insert_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -5210,8 +5234,10 @@ public Builder mergeUpdate(com.google.spanner.executor.v1.MutationAction.UpdateA } else { updateBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (update_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -5399,8 +5425,10 @@ public Builder mergeInsertOrUpdate( } else { insertOrUpdateBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (insertOrUpdate_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -5587,8 +5615,10 @@ public Builder mergeReplace(com.google.spanner.executor.v1.MutationAction.Insert } else { replaceBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (replace_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -5771,8 +5801,10 @@ public Builder mergeDeleteKeys(com.google.spanner.executor.v1.KeySet value) { } else { deleteKeysBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (deleteKeys_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationActionOrBuilder.java index f5771e4851d..99fc6b22400 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface MutationActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponse.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponse.java index da4cfa9d6b7..81d6fddfdac 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponse.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.OperationResponse.Builder.class); } + private int bitField0_; public static final int LISTED_OPERATIONS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -202,7 +204,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { */ @java.lang.Override public boolean hasOperation() { - return operation_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -253,7 +255,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - if (operation_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getOperation()); } getUnknownFields().writeTo(output); @@ -271,7 +273,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - if (operation_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOperation()); } size += getUnknownFields().getSerializedSize(); @@ -446,10 +448,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.OperationResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getListedOperationsFieldBuilder(); + getOperationFieldBuilder(); + } } @java.lang.Override @@ -522,9 +534,12 @@ private void buildPartial0(com.google.spanner.executor.v1.OperationResponse resu if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1243,8 +1258,10 @@ public Builder mergeOperation(com.google.longrunning.Operation value) { } else { operationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (operation_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponseOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponseOrBuilder.java index 53bbd4466af..83af12a4afc 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponseOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface OperationResponseOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateAction.java index fa716c7a0bb..b64c131b28e 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -1097,7 +1098,7 @@ public boolean hasOptions() { */ @java.lang.Override public boolean hasUpdate() { - return update_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1149,7 +1150,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOptions()); } - if (update_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getUpdate()); } getUnknownFields().writeTo(output); @@ -1164,7 +1165,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOptions()); } - if (update_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdate()); } size += getUnknownFields().getSerializedSize(); @@ -1414,6 +1415,7 @@ private void buildPartial0(com.google.spanner.executor.v1.PartitionedUpdateActio } if (((from_bitField0_ & 0x00000002) != 0)) { result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build(); + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -1653,8 +1655,10 @@ public Builder mergeOptions( } else { optionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (options_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -1854,8 +1858,10 @@ public Builder mergeUpdate(com.google.spanner.executor.v1.QueryAction value) { } else { updateBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (update_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateActionOrBuilder.java index 9386bedfb0a..31e7a7342bc 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface PartitionedUpdateActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryAction.java index 3130a56da57..8afe79d472d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -207,6 +208,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.QueryAction.Parameter.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -273,7 +275,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasType() { - return type_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -319,7 +321,7 @@ public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder() { */ @java.lang.Override public boolean hasValue() { - return value_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -367,10 +369,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getType()); } - if (value_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getValue()); } getUnknownFields().writeTo(output); @@ -385,10 +387,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getType()); } - if (value_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getValue()); } size += getUnknownFields().getSerializedSize(); @@ -569,10 +571,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.QueryAction.Parameter.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTypeFieldBuilder(); + getValueFieldBuilder(); + } } @java.lang.Override @@ -629,12 +641,16 @@ private void buildPartial0(com.google.spanner.executor.v1.QueryAction.Parameter if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -965,8 +981,10 @@ public Builder mergeType(com.google.spanner.v1.Type value) { } else { typeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (type_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1146,8 +1164,10 @@ public Builder mergeValue(com.google.spanner.executor.v1.Value value) { } else { valueBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (value_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryActionOrBuilder.java index 2e482430166..240b2a14601 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface QueryActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResult.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResult.java index ba42dce286b..cf8a4232cd4 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResult.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResult.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -1083,8 +1084,10 @@ public Builder mergeRowType(com.google.spanner.v1.StructType value) { } else { rowTypeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (rowType_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResultOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResultOrBuilder.java index 1b48cacecf3..e88929247d8 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResultOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResultOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface QueryResultOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadAction.java index e585d521025..b8dc9e0c1bb 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -261,7 +262,7 @@ public com.google.protobuf.ByteString getColumnBytes(int index) { */ @java.lang.Override public boolean hasKeys() { - return keys_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -333,7 +334,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < column_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, column_.getRaw(i)); } - if (keys_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getKeys()); } if (limit_ != 0) { @@ -362,7 +363,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getColumnList().size(); } - if (keys_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getKeys()); } if (limit_ != 0) { @@ -551,10 +552,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.ReadAction.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getKeysFieldBuilder(); + } } @java.lang.Override @@ -620,6 +630,7 @@ private void buildPartial0(com.google.spanner.executor.v1.ReadAction result) { } if (((from_bitField0_ & 0x00000008) != 0)) { result.keys_ = keysBuilder_ == null ? keys_ : keysBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.limit_ = limit_; @@ -1274,8 +1285,10 @@ public Builder mergeKeys(com.google.spanner.executor.v1.KeySet value) { } else { keysBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (keys_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadActionOrBuilder.java index b6b3f49659c..1fc66899f56 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ReadActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResult.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResult.java index f04cb51a9ee..9330008a18e 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResult.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResult.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -1611,8 +1612,10 @@ public Builder mergeRowType(com.google.spanner.v1.StructType value) { } else { rowTypeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (rowType_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResultOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResultOrBuilder.java index c4f6ac2f657..3372ffad8ce 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResultOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResultOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ReadResultOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseAction.java index 24b31e43cd9..74a5837699d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseActionOrBuilder.java index bb01604d2ab..97a1ff2c5ef 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ReconfigureCloudDatabaseActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseAction.java index 06d12e58b6a..f511d86774e 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseActionOrBuilder.java index baf8b75ab05..478a9aa81f3 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface RestoreCloudDatabaseActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAction.java index 87db61a803d..f98b6eb2f35 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOrBuilder.java index b6985fd0202..32aaf468a27 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface SpannerActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcome.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcome.java index 7f2936808ad..6ac48df1a7c 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcome.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcome.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -470,7 +471,7 @@ public com.google.spanner.executor.v1.AdminResultOrBuilder getAdminResultOrBuild public static final int DML_ROWS_MODIFIED_FIELD_NUMBER = 9; @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList dmlRowsModified_; + private com.google.protobuf.Internal.LongList dmlRowsModified_ = emptyLongList(); /** * * @@ -1039,11 +1040,6 @@ private void buildPartialRepeatedFields( } else { result.dbPartition_ = dbPartitionBuilder_.build(); } - if (((bitField0_ & 0x00000100) != 0)) { - dmlRowsModified_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.dmlRowsModified_ = dmlRowsModified_; if (changeStreamRecordsBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0)) { changeStreamRecords_ = java.util.Collections.unmodifiableList(changeStreamRecords_); @@ -1088,6 +1084,10 @@ private void buildPartial0(com.google.spanner.executor.v1.SpannerActionOutcome r adminResultBuilder_ == null ? adminResult_ : adminResultBuilder_.build(); to_bitField0_ |= 0x00000040; } + if (((from_bitField0_ & 0x00000100) != 0)) { + dmlRowsModified_.makeImmutable(); + result.dmlRowsModified_ = dmlRowsModified_; + } result.bitField0_ |= to_bitField0_; } @@ -1188,7 +1188,8 @@ public Builder mergeFrom(com.google.spanner.executor.v1.SpannerActionOutcome oth if (!other.dmlRowsModified_.isEmpty()) { if (dmlRowsModified_.isEmpty()) { dmlRowsModified_ = other.dmlRowsModified_; - bitField0_ = (bitField0_ & ~0x00000100); + dmlRowsModified_.makeImmutable(); + bitField0_ |= 0x00000100; } else { ensureDmlRowsModifiedIsMutable(); dmlRowsModified_.addAll(other.dmlRowsModified_); @@ -1457,8 +1458,10 @@ public Builder mergeStatus(com.google.rpc.Status value) { } else { statusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (status_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -1639,8 +1642,10 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { } else { commitTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (commitTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1828,8 +1833,10 @@ public Builder mergeReadResult(com.google.spanner.executor.v1.ReadResult value) } else { readResultBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (readResult_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -2021,8 +2028,10 @@ public Builder mergeQueryResult(com.google.spanner.executor.v1.QueryResult value } else { queryResultBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (queryResult_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -2733,8 +2742,10 @@ public Builder mergeAdminResult(com.google.spanner.executor.v1.AdminResult value } else { adminResultBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (adminResult_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** @@ -2817,10 +2828,10 @@ public com.google.spanner.executor.v1.AdminResultOrBuilder getAdminResultOrBuild private com.google.protobuf.Internal.LongList dmlRowsModified_ = emptyLongList(); private void ensureDmlRowsModifiedIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { - dmlRowsModified_ = mutableCopy(dmlRowsModified_); - bitField0_ |= 0x00000100; + if (!dmlRowsModified_.isModifiable()) { + dmlRowsModified_ = makeMutableCopy(dmlRowsModified_); } + bitField0_ |= 0x00000100; } /** * @@ -2835,9 +2846,8 @@ private void ensureDmlRowsModifiedIsMutable() { * @return A list containing the dmlRowsModified. */ public java.util.List getDmlRowsModifiedList() { - return ((bitField0_ & 0x00000100) != 0) - ? java.util.Collections.unmodifiableList(dmlRowsModified_) - : dmlRowsModified_; + dmlRowsModified_.makeImmutable(); + return dmlRowsModified_; } /** * @@ -2888,6 +2898,7 @@ public Builder setDmlRowsModified(int index, long value) { ensureDmlRowsModifiedIsMutable(); dmlRowsModified_.setLong(index, value); + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2908,6 +2919,7 @@ public Builder addDmlRowsModified(long value) { ensureDmlRowsModifiedIsMutable(); dmlRowsModified_.addLong(value); + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2927,6 +2939,7 @@ public Builder addDmlRowsModified(long value) { public Builder addAllDmlRowsModified(java.lang.Iterable values) { ensureDmlRowsModifiedIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dmlRowsModified_); + bitField0_ |= 0x00000100; onChanged(); return this; } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcomeOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcomeOrBuilder.java index 81e0873dab9..c2913c63e2b 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcomeOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcomeOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface SpannerActionOutcomeOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequest.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequest.java index 650324f04f0..daad9601b0c 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequest.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.SpannerAsyncActionRequest.Builder.class); } + private int bitField0_; public static final int ACTION_ID_FIELD_NUMBER = 1; private int actionId_ = 0; /** @@ -93,7 +95,7 @@ public int getActionId() { */ @java.lang.Override public boolean hasAction() { - return action_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -145,7 +147,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (actionId_ != 0) { output.writeInt32(1, actionId_); } - if (action_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getAction()); } getUnknownFields().writeTo(output); @@ -160,7 +162,7 @@ public int getSerializedSize() { if (actionId_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, actionId_); } - if (action_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAction()); } size += getUnknownFields().getSerializedSize(); @@ -331,10 +333,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.SpannerAsyncActionRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getActionFieldBuilder(); + } } @java.lang.Override @@ -386,9 +397,12 @@ private void buildPartial0(com.google.spanner.executor.v1.SpannerAsyncActionRequ if (((from_bitField0_ & 0x00000001) != 0)) { result.actionId_ = actionId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.action_ = actionBuilder_ == null ? action_ : actionBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -655,8 +669,10 @@ public Builder mergeAction(com.google.spanner.executor.v1.SpannerAction value) { } else { actionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (action_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequestOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequestOrBuilder.java index 9c7e98f0075..6aa0f3d0ecf 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequestOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface SpannerAsyncActionRequestOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponse.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponse.java index 53f6aaa3b1c..3724c86a91a 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponse.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.SpannerAsyncActionResponse.Builder.class); } + private int bitField0_; public static final int ACTION_ID_FIELD_NUMBER = 1; private int actionId_ = 0; /** @@ -94,7 +96,7 @@ public int getActionId() { */ @java.lang.Override public boolean hasOutcome() { - return outcome_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -148,7 +150,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (actionId_ != 0) { output.writeInt32(1, actionId_); } - if (outcome_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getOutcome()); } getUnknownFields().writeTo(output); @@ -163,7 +165,7 @@ public int getSerializedSize() { if (actionId_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, actionId_); } - if (outcome_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutcome()); } size += getUnknownFields().getSerializedSize(); @@ -334,10 +336,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.SpannerAsyncActionResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOutcomeFieldBuilder(); + } } @java.lang.Override @@ -389,9 +400,12 @@ private void buildPartial0(com.google.spanner.executor.v1.SpannerAsyncActionResp if (((from_bitField0_ & 0x00000001) != 0)) { result.actionId_ = actionId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.outcome_ = outcomeBuilder_ == null ? outcome_ : outcomeBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -665,8 +679,10 @@ public Builder mergeOutcome(com.google.spanner.executor.v1.SpannerActionOutcome } else { outcomeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (outcome_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponseOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponseOrBuilder.java index e757b8f2686..52f9a62c19a 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponseOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface SpannerAsyncActionResponseOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionAction.java index bc40dbd08f1..818b2e1fe76 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionActionOrBuilder.java index 5b19898c541..8c5109e35b7 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface StartBatchTransactionActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionAction.java index 3d10545d660..64441022faa 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -903,8 +904,10 @@ public Builder mergeConcurrency(com.google.spanner.executor.v1.Concurrency value } else { concurrencyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (concurrency_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -1578,8 +1581,10 @@ public Builder mergeExecutionOptions( } else { executionOptionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (executionOptions_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionActionOrBuilder.java index ca0cdcd78fb..a0b96a21023 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface StartTransactionActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadata.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadata.java index 156d21349f6..812c92037c8 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadata.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadataOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadataOrBuilder.java index faf82e13e1a..69ff53cdfab 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadataOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface TableMetadataOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptions.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptions.java index 60b1432eeb0..99e3723da74 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptions.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptions.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptionsOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptionsOrBuilder.java index ccd889659f7..e28bd4b6d3a 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptionsOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptionsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface TransactionExecutionOptionsOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupAction.java index 26b9ba8e817..218f7d4738d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.UpdateCloudBackupAction.Builder.class); } + private int bitField0_; public static final int PROJECT_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -234,7 +236,7 @@ public com.google.protobuf.ByteString getBackupIdBytes() { */ @java.lang.Override public boolean hasExpireTime() { - return expireTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -292,7 +294,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, backupId_); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getExpireTime()); } getUnknownFields().writeTo(output); @@ -313,7 +315,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backupId_); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExpireTime()); } size += getUnknownFields().getSerializedSize(); @@ -490,10 +492,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.UpdateCloudBackupAction.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExpireTimeFieldBuilder(); + } } @java.lang.Override @@ -553,9 +564,12 @@ private void buildPartial0(com.google.spanner.executor.v1.UpdateCloudBackupActio if (((from_bitField0_ & 0x00000004) != 0)) { result.backupId_ = backupId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1126,8 +1140,10 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { } else { expireTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (expireTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupActionOrBuilder.java index 78af4416876..8c0f3a545b5 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface UpdateCloudBackupActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseAction.java index 53bbe9e2c8a..11ff862e5fc 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseActionOrBuilder.java index 38b0091a9af..f8653f2d172 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface UpdateCloudDatabaseActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlAction.java index dd68ed881e5..eaa4d8a7600 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlActionOrBuilder.java index cb4486defe1..c2aa0a8eb81 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface UpdateCloudDatabaseDdlActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudInstanceAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudInstanceAction.java index 7bdc57e1a2f..1c4490d8d57 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudInstanceAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudInstanceAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -56,7 +57,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 6: return internalGetLabels(); @@ -740,7 +742,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 6: return internalGetLabels(); @@ -750,7 +753,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 6: return internalGetMutableLabels(); @@ -1638,8 +1642,10 @@ public Builder mergeAutoscalingConfig( } else { autoscalingConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (autoscalingConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudInstanceActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudInstanceActionOrBuilder.java index 4f7c1b1c3b2..fb55cf6a1eb 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudInstanceActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudInstanceActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface UpdateCloudInstanceActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateUserInstanceConfigAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateUserInstanceConfigAction.java index 688d1058a7a..c501fe38d27 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateUserInstanceConfigAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateUserInstanceConfigAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -57,7 +58,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 4: return internalGetLabels(); @@ -566,7 +568,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 4: return internalGetLabels(); @@ -576,7 +579,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 4: return internalGetMutableLabels(); diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateUserInstanceConfigActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateUserInstanceConfigActionOrBuilder.java index 8f0ba4454d8..b9681f46019 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateUserInstanceConfigActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateUserInstanceConfigActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface UpdateUserInstanceConfigActionOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Value.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Value.java index 6960bd47d48..7d09e149cb5 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Value.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Value.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -2740,8 +2741,10 @@ public Builder mergeArrayType(com.google.spanner.v1.Type value) { } else { arrayTypeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000800; - onChanged(); + if (arrayType_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ValueList.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ValueList.java index 1f7243061ae..403511a4647 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ValueList.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ValueList.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ValueListOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ValueListOrBuilder.java index 84d25b45614..00ec11bdffe 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ValueListOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ValueListOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ValueListOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ValueOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ValueOrBuilder.java index b52def016e1..49e0a28b933 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ValueOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ValueOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface ValueOrBuilder diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/WriteMutationsAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/WriteMutationsAction.java index 4a05d270422..0701ceb948a 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/WriteMutationsAction.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/WriteMutationsAction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; /** @@ -61,6 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.executor.v1.WriteMutationsAction.Builder.class); } + private int bitField0_; public static final int MUTATION_FIELD_NUMBER = 1; private com.google.spanner.executor.v1.MutationAction mutation_; /** @@ -76,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasMutation() { - return mutation_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -125,7 +127,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (mutation_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMutation()); } getUnknownFields().writeTo(output); @@ -137,7 +139,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (mutation_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMutation()); } size += getUnknownFields().getSerializedSize(); @@ -305,10 +307,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.executor.v1.WriteMutationsAction.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMutationFieldBuilder(); + } } @java.lang.Override @@ -356,9 +367,12 @@ public com.google.spanner.executor.v1.WriteMutationsAction buildPartial() { private void buildPartial0(com.google.spanner.executor.v1.WriteMutationsAction result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.mutation_ = mutationBuilder_ == null ? mutation_ : mutationBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -564,8 +578,10 @@ public Builder mergeMutation(com.google.spanner.executor.v1.MutationAction value } else { mutationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (mutation_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/WriteMutationsActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/WriteMutationsActionOrBuilder.java index eb15709e015..c623ec323e9 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/WriteMutationsActionOrBuilder.java +++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/WriteMutationsActionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.executor.v1; public interface WriteMutationsActionOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsRequest.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsRequest.java index a05b036eb56..b282ac196e6 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsRequest.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.v1.BatchCreateSessionsRequest.Builder.class); } + private int bitField0_; public static final int DATABASE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -133,7 +135,7 @@ public com.google.protobuf.ByteString getDatabaseBytes() { */ @java.lang.Override public boolean hasSessionTemplate() { - return sessionTemplate_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -208,7 +210,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } - if (sessionTemplate_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSessionTemplate()); } if (sessionCount_ != 0) { @@ -226,7 +228,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_); } - if (sessionTemplate_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSessionTemplate()); } if (sessionCount_ != 0) { @@ -403,10 +405,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.v1.BatchCreateSessionsRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSessionTemplateFieldBuilder(); + } } @java.lang.Override @@ -459,13 +470,16 @@ private void buildPartial0(com.google.spanner.v1.BatchCreateSessionsRequest resu if (((from_bitField0_ & 0x00000001) != 0)) { result.database_ = database_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.sessionTemplate_ = sessionTemplateBuilder_ == null ? sessionTemplate_ : sessionTemplateBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.sessionCount_ = sessionCount_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -806,8 +820,10 @@ public Builder mergeSessionTemplate(com.google.spanner.v1.Session value) { } else { sessionTemplateBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (sessionTemplate_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsRequestOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsRequestOrBuilder.java index ba05e28a79c..8adf4dd6fc3 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsRequestOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface BatchCreateSessionsRequestOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsResponse.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsResponse.java index 5981571de28..3e396720e92 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsResponse.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsResponseOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsResponseOrBuilder.java index 2bc45d986b3..299c4335830 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsResponseOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchCreateSessionsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface BatchCreateSessionsResponseOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteRequest.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteRequest.java index 5f6c3a2165e..3135dd0e10b 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteRequest.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** @@ -1100,6 +1101,7 @@ public com.google.spanner.v1.BatchWriteRequest.MutationGroup getDefaultInstanceF } } + private int bitField0_; public static final int SESSION_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1170,7 +1172,7 @@ public com.google.protobuf.ByteString getSessionBytes() { */ @java.lang.Override public boolean hasRequestOptions() { - return requestOptions_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1288,6 +1290,36 @@ public com.google.spanner.v1.BatchWriteRequest.MutationGroupOrBuilder getMutatio return mutationGroups_.get(index); } + public static final int EXCLUDE_TXN_FROM_CHANGE_STREAMS_FIELD_NUMBER = 5; + private boolean excludeTxnFromChangeStreams_ = false; + /** + * + * + *
+   * Optional. When `exclude_txn_from_change_streams` is set to `true`:
+   *  * Mutations from all transactions in this batch write operation will not
+   *  be recorded in change streams with DDL option `allow_txn_exclusion=true`
+   *  that are tracking columns modified by these transactions.
+   *  * Mutations from all transactions in this batch write operation will be
+   *  recorded in change streams with DDL option `allow_txn_exclusion=false or
+   *  not set` that are tracking columns modified by these transactions.
+   *
+   * When `exclude_txn_from_change_streams` is set to `false` or not set,
+   * mutations from all transactions in this batch write operation will be
+   * recorded in all change streams that are tracking columns modified by these
+   * transactions.
+   * 
+ * + * bool exclude_txn_from_change_streams = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeTxnFromChangeStreams. + */ + @java.lang.Override + public boolean getExcludeTxnFromChangeStreams() { + return excludeTxnFromChangeStreams_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1305,12 +1337,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_); } - if (requestOptions_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getRequestOptions()); } for (int i = 0; i < mutationGroups_.size(); i++) { output.writeMessage(4, mutationGroups_.get(i)); } + if (excludeTxnFromChangeStreams_ != false) { + output.writeBool(5, excludeTxnFromChangeStreams_); + } getUnknownFields().writeTo(output); } @@ -1323,12 +1358,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_); } - if (requestOptions_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestOptions()); } for (int i = 0; i < mutationGroups_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, mutationGroups_.get(i)); } + if (excludeTxnFromChangeStreams_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(5, excludeTxnFromChangeStreams_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1350,6 +1389,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRequestOptions().equals(other.getRequestOptions())) return false; } if (!getMutationGroupsList().equals(other.getMutationGroupsList())) return false; + if (getExcludeTxnFromChangeStreams() != other.getExcludeTxnFromChangeStreams()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1371,6 +1411,8 @@ public int hashCode() { hash = (37 * hash) + MUTATION_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getMutationGroupsList().hashCode(); } + hash = (37 * hash) + EXCLUDE_TXN_FROM_CHANGE_STREAMS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExcludeTxnFromChangeStreams()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1500,10 +1542,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.v1.BatchWriteRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRequestOptionsFieldBuilder(); + getMutationGroupsFieldBuilder(); + } } @java.lang.Override @@ -1523,6 +1575,7 @@ public Builder clear() { mutationGroupsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); + excludeTxnFromChangeStreams_ = false; return this; } @@ -1575,10 +1628,16 @@ private void buildPartial0(com.google.spanner.v1.BatchWriteRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.session_ = session_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.requestOptions_ = requestOptionsBuilder_ == null ? requestOptions_ : requestOptionsBuilder_.build(); + to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.excludeTxnFromChangeStreams_ = excludeTxnFromChangeStreams_; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1661,6 +1720,9 @@ public Builder mergeFrom(com.google.spanner.v1.BatchWriteRequest other) { } } } + if (other.getExcludeTxnFromChangeStreams() != false) { + setExcludeTxnFromChangeStreams(other.getExcludeTxnFromChangeStreams()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1713,6 +1775,12 @@ public Builder mergeFrom( } break; } // case 34 + case 40: + { + excludeTxnFromChangeStreams_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1950,8 +2018,10 @@ public Builder mergeRequestOptions(com.google.spanner.v1.RequestOptions value) { } else { requestOptionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (requestOptions_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -2431,6 +2501,95 @@ public com.google.spanner.v1.BatchWriteRequest.MutationGroup.Builder addMutation return mutationGroupsBuilder_; } + private boolean excludeTxnFromChangeStreams_; + /** + * + * + *
+     * Optional. When `exclude_txn_from_change_streams` is set to `true`:
+     *  * Mutations from all transactions in this batch write operation will not
+     *  be recorded in change streams with DDL option `allow_txn_exclusion=true`
+     *  that are tracking columns modified by these transactions.
+     *  * Mutations from all transactions in this batch write operation will be
+     *  recorded in change streams with DDL option `allow_txn_exclusion=false or
+     *  not set` that are tracking columns modified by these transactions.
+     *
+     * When `exclude_txn_from_change_streams` is set to `false` or not set,
+     * mutations from all transactions in this batch write operation will be
+     * recorded in all change streams that are tracking columns modified by these
+     * transactions.
+     * 
+ * + * bool exclude_txn_from_change_streams = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeTxnFromChangeStreams. + */ + @java.lang.Override + public boolean getExcludeTxnFromChangeStreams() { + return excludeTxnFromChangeStreams_; + } + /** + * + * + *
+     * Optional. When `exclude_txn_from_change_streams` is set to `true`:
+     *  * Mutations from all transactions in this batch write operation will not
+     *  be recorded in change streams with DDL option `allow_txn_exclusion=true`
+     *  that are tracking columns modified by these transactions.
+     *  * Mutations from all transactions in this batch write operation will be
+     *  recorded in change streams with DDL option `allow_txn_exclusion=false or
+     *  not set` that are tracking columns modified by these transactions.
+     *
+     * When `exclude_txn_from_change_streams` is set to `false` or not set,
+     * mutations from all transactions in this batch write operation will be
+     * recorded in all change streams that are tracking columns modified by these
+     * transactions.
+     * 
+ * + * bool exclude_txn_from_change_streams = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludeTxnFromChangeStreams to set. + * @return This builder for chaining. + */ + public Builder setExcludeTxnFromChangeStreams(boolean value) { + + excludeTxnFromChangeStreams_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. When `exclude_txn_from_change_streams` is set to `true`:
+     *  * Mutations from all transactions in this batch write operation will not
+     *  be recorded in change streams with DDL option `allow_txn_exclusion=true`
+     *  that are tracking columns modified by these transactions.
+     *  * Mutations from all transactions in this batch write operation will be
+     *  recorded in change streams with DDL option `allow_txn_exclusion=false or
+     *  not set` that are tracking columns modified by these transactions.
+     *
+     * When `exclude_txn_from_change_streams` is set to `false` or not set,
+     * mutations from all transactions in this batch write operation will be
+     * recorded in all change streams that are tracking columns modified by these
+     * transactions.
+     * 
+ * + * bool exclude_txn_from_change_streams = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludeTxnFromChangeStreams() { + bitField0_ = (bitField0_ & ~0x00000008); + excludeTxnFromChangeStreams_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteRequestOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteRequestOrBuilder.java index 614ef426948..4dedf95afbf 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteRequestOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface BatchWriteRequestOrBuilder @@ -149,4 +150,29 @@ public interface BatchWriteRequestOrBuilder */ com.google.spanner.v1.BatchWriteRequest.MutationGroupOrBuilder getMutationGroupsOrBuilder( int index); + + /** + * + * + *
+   * Optional. When `exclude_txn_from_change_streams` is set to `true`:
+   *  * Mutations from all transactions in this batch write operation will not
+   *  be recorded in change streams with DDL option `allow_txn_exclusion=true`
+   *  that are tracking columns modified by these transactions.
+   *  * Mutations from all transactions in this batch write operation will be
+   *  recorded in change streams with DDL option `allow_txn_exclusion=false or
+   *  not set` that are tracking columns modified by these transactions.
+   *
+   * When `exclude_txn_from_change_streams` is set to `false` or not set,
+   * mutations from all transactions in this batch write operation will be
+   * recorded in all change streams that are tracking columns modified by these
+   * transactions.
+   * 
+ * + * bool exclude_txn_from_change_streams = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludeTxnFromChangeStreams. + */ + boolean getExcludeTxnFromChangeStreams(); } diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteResponse.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteResponse.java index d65a0676c69..e85c5cc46e7 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteResponse.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** @@ -62,10 +63,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.v1.BatchWriteResponse.Builder.class); } + private int bitField0_; public static final int INDEXES_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList indexes_; + private com.google.protobuf.Internal.IntList indexes_ = emptyIntList(); /** * * @@ -131,7 +133,7 @@ public int getIndexes(int index) { */ @java.lang.Override public boolean hasStatus() { - return status_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -178,7 +180,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { */ @java.lang.Override public boolean hasCommitTimestamp() { - return commitTimestamp_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -237,10 +239,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < indexes_.size(); i++) { output.writeInt32NoTag(indexes_.getInt(i)); } - if (status_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getStatus()); } - if (commitTimestamp_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getCommitTimestamp()); } getUnknownFields().writeTo(output); @@ -264,10 +266,10 @@ public int getSerializedSize() { } indexesMemoizedSerializedSize = dataSize; } - if (status_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); } - if (commitTimestamp_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCommitTimestamp()); } size += getUnknownFields().getSerializedSize(); @@ -446,10 +448,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.v1.BatchWriteResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + getCommitTimestampFieldBuilder(); + } } @java.lang.Override @@ -494,7 +506,6 @@ public com.google.spanner.v1.BatchWriteResponse build() { public com.google.spanner.v1.BatchWriteResponse buildPartial() { com.google.spanner.v1.BatchWriteResponse result = new com.google.spanner.v1.BatchWriteResponse(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -502,23 +513,23 @@ public com.google.spanner.v1.BatchWriteResponse buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.spanner.v1.BatchWriteResponse result) { - if (((bitField0_ & 0x00000001) != 0)) { - indexes_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.indexes_ = indexes_; - } - private void buildPartial0(com.google.spanner.v1.BatchWriteResponse result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + indexes_.makeImmutable(); + result.indexes_ = indexes_; + } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.commitTimestamp_ = commitTimestampBuilder_ == null ? commitTimestamp_ : commitTimestampBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -569,7 +580,8 @@ public Builder mergeFrom(com.google.spanner.v1.BatchWriteResponse other) { if (!other.indexes_.isEmpty()) { if (indexes_.isEmpty()) { indexes_ = other.indexes_; - bitField0_ = (bitField0_ & ~0x00000001); + indexes_.makeImmutable(); + bitField0_ |= 0x00000001; } else { ensureIndexesIsMutable(); indexes_.addAll(other.indexes_); @@ -660,10 +672,10 @@ public Builder mergeFrom( private com.google.protobuf.Internal.IntList indexes_ = emptyIntList(); private void ensureIndexesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - indexes_ = mutableCopy(indexes_); - bitField0_ |= 0x00000001; + if (!indexes_.isModifiable()) { + indexes_ = makeMutableCopy(indexes_); } + bitField0_ |= 0x00000001; } /** * @@ -678,9 +690,8 @@ private void ensureIndexesIsMutable() { * @return A list containing the indexes. */ public java.util.List getIndexesList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(indexes_) - : indexes_; + indexes_.makeImmutable(); + return indexes_; } /** * @@ -731,6 +742,7 @@ public Builder setIndexes(int index, int value) { ensureIndexesIsMutable(); indexes_.setInt(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -751,6 +763,7 @@ public Builder addIndexes(int value) { ensureIndexesIsMutable(); indexes_.addInt(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -770,6 +783,7 @@ public Builder addIndexes(int value) { public Builder addAllIndexes(java.lang.Iterable values) { ensureIndexesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indexes_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -890,8 +904,10 @@ public Builder mergeStatus(com.google.rpc.Status value) { } else { statusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (status_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1073,8 +1089,10 @@ public Builder mergeCommitTimestamp(com.google.protobuf.Timestamp value) { } else { commitTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (commitTimestamp_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteResponseOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteResponseOrBuilder.java index baff5215516..02b7a9286bd 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteResponseOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BatchWriteResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface BatchWriteResponseOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BeginTransactionRequest.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BeginTransactionRequest.java index 452acfa3064..d1d71bf700c 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BeginTransactionRequest.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BeginTransactionRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.v1.BeginTransactionRequest.Builder.class); } + private int bitField0_; public static final int SESSION_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -135,7 +137,7 @@ public com.google.protobuf.ByteString getSessionBytes() { */ @java.lang.Override public boolean hasOptions() { - return options_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -193,7 +195,7 @@ public com.google.spanner.v1.TransactionOptionsOrBuilder getOptionsOrBuilder() { */ @java.lang.Override public boolean hasRequestOptions() { - return requestOptions_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -253,10 +255,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_); } - if (options_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getOptions()); } - if (requestOptions_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getRequestOptions()); } getUnknownFields().writeTo(output); @@ -271,10 +273,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_); } - if (options_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOptions()); } - if (requestOptions_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestOptions()); } size += getUnknownFields().getSerializedSize(); @@ -453,10 +455,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.v1.BeginTransactionRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOptionsFieldBuilder(); + getRequestOptionsFieldBuilder(); + } } @java.lang.Override @@ -513,13 +525,17 @@ private void buildPartial0(com.google.spanner.v1.BeginTransactionRequest result) if (((from_bitField0_ & 0x00000001) != 0)) { result.session_ = session_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.options_ = optionsBuilder_ == null ? options_ : optionsBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestOptions_ = requestOptionsBuilder_ == null ? requestOptions_ : requestOptionsBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -869,8 +885,10 @@ public Builder mergeOptions(com.google.spanner.v1.TransactionOptions value) { } else { optionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (options_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1080,8 +1098,10 @@ public Builder mergeRequestOptions(com.google.spanner.v1.RequestOptions value) { } else { requestOptionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (requestOptions_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BeginTransactionRequestOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BeginTransactionRequestOrBuilder.java index 1e2e2529e6e..a77b0f7d4d5 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BeginTransactionRequestOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BeginTransactionRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface BeginTransactionRequestOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitRequest.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitRequest.java index 8aa04b7474b..2f4de4a4f46 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitRequest.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.v1.CommitRequest.Builder.class); } + private int bitField0_; private int transactionCase_ = 0; @SuppressWarnings("serial") @@ -398,7 +400,7 @@ public boolean getReturnCommitStats() { */ @java.lang.Override public boolean hasMaxCommitDelay() { - return maxCommitDelay_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -458,7 +460,7 @@ public com.google.protobuf.DurationOrBuilder getMaxCommitDelayOrBuilder() { */ @java.lang.Override public boolean hasRequestOptions() { - return requestOptions_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -522,10 +524,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (returnCommitStats_ != false) { output.writeBool(5, returnCommitStats_); } - if (requestOptions_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getRequestOptions()); } - if (maxCommitDelay_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(8, getMaxCommitDelay()); } getUnknownFields().writeTo(output); @@ -556,10 +558,10 @@ public int getSerializedSize() { if (returnCommitStats_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, returnCommitStats_); } - if (requestOptions_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRequestOptions()); } - if (maxCommitDelay_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getMaxCommitDelay()); } size += getUnknownFields().getSerializedSize(); @@ -766,10 +768,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.v1.CommitRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMutationsFieldBuilder(); + getMaxCommitDelayFieldBuilder(); + getRequestOptionsFieldBuilder(); + } } @java.lang.Override @@ -855,14 +868,18 @@ private void buildPartial0(com.google.spanner.v1.CommitRequest result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.returnCommitStats_ = returnCommitStats_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { result.maxCommitDelay_ = maxCommitDelayBuilder_ == null ? maxCommitDelay_ : maxCommitDelayBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { result.requestOptions_ = requestOptionsBuilder_ == null ? requestOptions_ : requestOptionsBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.spanner.v1.CommitRequest result) { @@ -2125,8 +2142,10 @@ public Builder mergeMaxCommitDelay(com.google.protobuf.Duration value) { } else { maxCommitDelayBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (maxCommitDelay_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** @@ -2332,8 +2351,10 @@ public Builder mergeRequestOptions(com.google.spanner.v1.RequestOptions value) { } else { requestOptionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; - onChanged(); + if (requestOptions_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitRequestOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitRequestOrBuilder.java index 7ae8b1d841d..30b844c195f 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitRequestOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface CommitRequestOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitResponse.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitResponse.java index 079eb168933..b04a6b9825e 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitResponse.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/commit_response.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** @@ -629,6 +630,7 @@ public com.google.spanner.v1.CommitResponse.CommitStats getDefaultInstanceForTyp } } + private int bitField0_; public static final int COMMIT_TIMESTAMP_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp commitTimestamp_; /** @@ -644,7 +646,7 @@ public com.google.spanner.v1.CommitResponse.CommitStats getDefaultInstanceForTyp */ @java.lang.Override public boolean hasCommitTimestamp() { - return commitTimestamp_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -696,7 +698,7 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimestampOrBuilder() { */ @java.lang.Override public boolean hasCommitStats() { - return commitStats_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -749,10 +751,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (commitTimestamp_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCommitTimestamp()); } - if (commitStats_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getCommitStats()); } getUnknownFields().writeTo(output); @@ -764,10 +766,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (commitTimestamp_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommitTimestamp()); } - if (commitStats_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCommitStats()); } size += getUnknownFields().getSerializedSize(); @@ -940,10 +942,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.v1.CommitResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCommitTimestampFieldBuilder(); + getCommitStatsFieldBuilder(); + } } @java.lang.Override @@ -995,14 +1007,18 @@ public com.google.spanner.v1.CommitResponse buildPartial() { private void buildPartial0(com.google.spanner.v1.CommitResponse result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.commitTimestamp_ = commitTimestampBuilder_ == null ? commitTimestamp_ : commitTimestampBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.commitStats_ = commitStatsBuilder_ == null ? commitStats_ : commitStatsBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1215,8 +1231,10 @@ public Builder mergeCommitTimestamp(com.google.protobuf.Timestamp value) { } else { commitTimestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (commitTimestamp_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -1410,8 +1428,10 @@ public Builder mergeCommitStats(com.google.spanner.v1.CommitResponse.CommitStats } else { commitStatsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (commitStats_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitResponseOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitResponseOrBuilder.java index e8de2e60ea6..3057af243c3 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitResponseOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/commit_response.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface CommitResponseOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitResponseProto.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitResponseProto.java index c1382f78d32..47b0c28e6a1 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitResponseProto.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitResponseProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/commit_response.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public final class CommitResponseProto { diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CreateSessionRequest.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CreateSessionRequest.java index 3a5fbeb1363..710971c2464 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CreateSessionRequest.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CreateSessionRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.v1.CreateSessionRequest.Builder.class); } + private int bitField0_; public static final int DATABASE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -132,7 +134,7 @@ public com.google.protobuf.ByteString getDatabaseBytes() { */ @java.lang.Override public boolean hasSession() { - return session_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -180,7 +182,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } - if (session_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSession()); } getUnknownFields().writeTo(output); @@ -195,7 +197,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_); } - if (session_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSession()); } size += getUnknownFields().getSerializedSize(); @@ -365,10 +367,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.v1.CreateSessionRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSessionFieldBuilder(); + } } @java.lang.Override @@ -420,9 +431,12 @@ private void buildPartial0(com.google.spanner.v1.CreateSessionRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.database_ = database_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.session_ = sessionBuilder_ == null ? session_ : sessionBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -756,8 +770,10 @@ public Builder mergeSession(com.google.spanner.v1.Session value) { } else { sessionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (session_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CreateSessionRequestOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CreateSessionRequestOrBuilder.java index 23d956f3103..2c6e1e16d99 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CreateSessionRequestOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CreateSessionRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface CreateSessionRequestOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DatabaseName.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DatabaseName.java index d4cce686cce..b0f46c23f4d 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DatabaseName.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DatabaseName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DeleteSessionRequest.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DeleteSessionRequest.java index 17bfb7641e4..7be12c31fda 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DeleteSessionRequest.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DeleteSessionRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DeleteSessionRequestOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DeleteSessionRequestOrBuilder.java index e1f31d051bb..d1b9c15b662 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DeleteSessionRequestOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DeleteSessionRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface DeleteSessionRequestOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DirectedReadOptions.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DirectedReadOptions.java index 6d75ace7a8b..859715c962f 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DirectedReadOptions.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DirectedReadOptions.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** @@ -136,7 +137,7 @@ public interface ReplicaSelectionOrBuilder * * `location:us-east1` --> The "us-east1" replica(s) of any available type * will be used to process the request. * * `type:READ_ONLY` --> The "READ_ONLY" type replica(s) in nearest - * . available location will be used to process the + * available location will be used to process the * request. * * `location:us-east1 type:READ_ONLY` --> The "READ_ONLY" type replica(s) * in location "us-east1" will be used to process @@ -619,7 +620,7 @@ protected Builder newBuilderForType( * * `location:us-east1` --> The "us-east1" replica(s) of any available type * will be used to process the request. * * `type:READ_ONLY` --> The "READ_ONLY" type replica(s) in nearest - * . available location will be used to process the + * available location will be used to process the * request. * * `location:us-east1 type:READ_ONLY` --> The "READ_ONLY" type replica(s) * in location "us-east1" will be used to process @@ -3457,8 +3458,9 @@ public com.google.spanner.v1.DirectedReadOptions.IncludeReplicas getIncludeRepli * * *
-   * Exclude_replicas indicates that should be excluded from serving
-   * requests. Spanner will not route requests to the replicas in this list.
+   * Exclude_replicas indicates that specified replicas should be excluded
+   * from serving requests. Spanner will not route requests to the replicas
+   * in this list.
    * 
* * .google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; @@ -3473,8 +3475,9 @@ public boolean hasExcludeReplicas() { * * *
-   * Exclude_replicas indicates that should be excluded from serving
-   * requests. Spanner will not route requests to the replicas in this list.
+   * Exclude_replicas indicates that specified replicas should be excluded
+   * from serving requests. Spanner will not route requests to the replicas
+   * in this list.
    * 
* * .google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; @@ -3492,8 +3495,9 @@ public com.google.spanner.v1.DirectedReadOptions.ExcludeReplicas getExcludeRepli * * *
-   * Exclude_replicas indicates that should be excluded from serving
-   * requests. Spanner will not route requests to the replicas in this list.
+   * Exclude_replicas indicates that specified replicas should be excluded
+   * from serving requests. Spanner will not route requests to the replicas
+   * in this list.
    * 
* * .google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; @@ -4189,8 +4193,9 @@ public Builder clearIncludeReplicas() { * * *
-     * Exclude_replicas indicates that should be excluded from serving
-     * requests. Spanner will not route requests to the replicas in this list.
+     * Exclude_replicas indicates that specified replicas should be excluded
+     * from serving requests. Spanner will not route requests to the replicas
+     * in this list.
      * 
* * .google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; @@ -4205,8 +4210,9 @@ public boolean hasExcludeReplicas() { * * *
-     * Exclude_replicas indicates that should be excluded from serving
-     * requests. Spanner will not route requests to the replicas in this list.
+     * Exclude_replicas indicates that specified replicas should be excluded
+     * from serving requests. Spanner will not route requests to the replicas
+     * in this list.
      * 
* * .google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; @@ -4231,8 +4237,9 @@ public com.google.spanner.v1.DirectedReadOptions.ExcludeReplicas getExcludeRepli * * *
-     * Exclude_replicas indicates that should be excluded from serving
-     * requests. Spanner will not route requests to the replicas in this list.
+     * Exclude_replicas indicates that specified replicas should be excluded
+     * from serving requests. Spanner will not route requests to the replicas
+     * in this list.
      * 
* * .google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; @@ -4255,8 +4262,9 @@ public Builder setExcludeReplicas( * * *
-     * Exclude_replicas indicates that should be excluded from serving
-     * requests. Spanner will not route requests to the replicas in this list.
+     * Exclude_replicas indicates that specified replicas should be excluded
+     * from serving requests. Spanner will not route requests to the replicas
+     * in this list.
      * 
* * .google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; @@ -4276,8 +4284,9 @@ public Builder setExcludeReplicas( * * *
-     * Exclude_replicas indicates that should be excluded from serving
-     * requests. Spanner will not route requests to the replicas in this list.
+     * Exclude_replicas indicates that specified replicas should be excluded
+     * from serving requests. Spanner will not route requests to the replicas
+     * in this list.
      * 
* * .google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; @@ -4311,8 +4320,9 @@ public Builder mergeExcludeReplicas( * * *
-     * Exclude_replicas indicates that should be excluded from serving
-     * requests. Spanner will not route requests to the replicas in this list.
+     * Exclude_replicas indicates that specified replicas should be excluded
+     * from serving requests. Spanner will not route requests to the replicas
+     * in this list.
      * 
* * .google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; @@ -4337,8 +4347,9 @@ public Builder clearExcludeReplicas() { * * *
-     * Exclude_replicas indicates that should be excluded from serving
-     * requests. Spanner will not route requests to the replicas in this list.
+     * Exclude_replicas indicates that specified replicas should be excluded
+     * from serving requests. Spanner will not route requests to the replicas
+     * in this list.
      * 
* * .google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; @@ -4351,8 +4362,9 @@ public Builder clearExcludeReplicas() { * * *
-     * Exclude_replicas indicates that should be excluded from serving
-     * requests. Spanner will not route requests to the replicas in this list.
+     * Exclude_replicas indicates that specified replicas should be excluded
+     * from serving requests. Spanner will not route requests to the replicas
+     * in this list.
      * 
* * .google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; @@ -4373,8 +4385,9 @@ public Builder clearExcludeReplicas() { * * *
-     * Exclude_replicas indicates that should be excluded from serving
-     * requests. Spanner will not route requests to the replicas in this list.
+     * Exclude_replicas indicates that specified replicas should be excluded
+     * from serving requests. Spanner will not route requests to the replicas
+     * in this list.
      * 
* * .google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DirectedReadOptionsOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DirectedReadOptionsOrBuilder.java index df1488d5e62..2b94c3cac7f 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DirectedReadOptionsOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DirectedReadOptionsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface DirectedReadOptionsOrBuilder @@ -74,8 +75,9 @@ public interface DirectedReadOptionsOrBuilder * * *
-   * Exclude_replicas indicates that should be excluded from serving
-   * requests. Spanner will not route requests to the replicas in this list.
+   * Exclude_replicas indicates that specified replicas should be excluded
+   * from serving requests. Spanner will not route requests to the replicas
+   * in this list.
    * 
* * .google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; @@ -87,8 +89,9 @@ public interface DirectedReadOptionsOrBuilder * * *
-   * Exclude_replicas indicates that should be excluded from serving
-   * requests. Spanner will not route requests to the replicas in this list.
+   * Exclude_replicas indicates that specified replicas should be excluded
+   * from serving requests. Spanner will not route requests to the replicas
+   * in this list.
    * 
* * .google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; @@ -100,8 +103,9 @@ public interface DirectedReadOptionsOrBuilder * * *
-   * Exclude_replicas indicates that should be excluded from serving
-   * requests. Spanner will not route requests to the replicas in this list.
+   * Exclude_replicas indicates that specified replicas should be excluded
+   * from serving requests. Spanner will not route requests to the replicas
+   * in this list.
    * 
* * .google.spanner.v1.DirectedReadOptions.ExcludeReplicas exclude_replicas = 2; diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequest.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequest.java index 2b735cb4367..ea1b056a0b1 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequest.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** @@ -300,7 +301,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetParamTypes(); @@ -319,6 +321,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.Builder.class); } + private int bitField0_; public static final int SQL_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -396,7 +399,7 @@ public com.google.protobuf.ByteString getSqlBytes() { */ @java.lang.Override public boolean hasParams() { - return params_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -610,7 +613,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sql_); } - if (params_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getParams()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -627,7 +630,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sql_); } - if (params_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getParams()); } for (java.util.Map.Entry entry : @@ -805,7 +808,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetParamTypes(); @@ -815,7 +819,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 3: return internalGetMutableParamTypes(); @@ -835,10 +840,19 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getParamsFieldBuilder(); + } } @java.lang.Override @@ -891,13 +905,16 @@ private void buildPartial0(com.google.spanner.v1.ExecuteBatchDmlRequest.Statemen if (((from_bitField0_ & 0x00000001) != 0)) { result.sql_ = sql_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.paramTypes_ = internalGetParamTypes(); - result.paramTypes_.makeImmutable(); + result.paramTypes_ = + internalGetParamTypes().build(ParamTypesDefaultEntryHolder.defaultEntry); } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1004,7 +1021,7 @@ public Builder mergeFrom( ParamTypesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableParamTypes() - .getMutableMap() + .ensureBuilderMap() .put(paramTypes__.getKey(), paramTypes__.getValue()); bitField0_ |= 0x00000004; break; @@ -1289,8 +1306,10 @@ public Builder mergeParams(com.google.protobuf.Struct value) { } else { paramsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (params_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1412,26 +1431,53 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() { return paramsBuilder_; } - private com.google.protobuf.MapField + private static final class ParamTypesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, com.google.spanner.v1.TypeOrBuilder, com.google.spanner.v1.Type> { + @java.lang.Override + public com.google.spanner.v1.Type build(com.google.spanner.v1.TypeOrBuilder val) { + if (val instanceof com.google.spanner.v1.Type) { + return (com.google.spanner.v1.Type) val; + } + return ((com.google.spanner.v1.Type.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry + defaultEntry() { + return ParamTypesDefaultEntryHolder.defaultEntry; + } + }; + + private static final ParamTypesConverter paramTypesConverter = new ParamTypesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.spanner.v1.TypeOrBuilder, + com.google.spanner.v1.Type, + com.google.spanner.v1.Type.Builder> paramTypes_; - private com.google.protobuf.MapField + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.spanner.v1.TypeOrBuilder, + com.google.spanner.v1.Type, + com.google.spanner.v1.Type.Builder> internalGetParamTypes() { if (paramTypes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamTypesDefaultEntryHolder.defaultEntry); + return new com.google.protobuf.MapFieldBuilder<>(paramTypesConverter); } return paramTypes_; } - private com.google.protobuf.MapField + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.spanner.v1.TypeOrBuilder, + com.google.spanner.v1.Type, + com.google.spanner.v1.Type.Builder> internalGetMutableParamTypes() { if (paramTypes_ == null) { - paramTypes_ = - com.google.protobuf.MapField.newMapField(ParamTypesDefaultEntryHolder.defaultEntry); - } - if (!paramTypes_.isMutable()) { - paramTypes_ = paramTypes_.copy(); + paramTypes_ = new com.google.protobuf.MapFieldBuilder<>(paramTypesConverter); } bitField0_ |= 0x00000004; onChanged(); @@ -1439,7 +1485,7 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() { } public int getParamTypesCount() { - return internalGetParamTypes().getMap().size(); + return internalGetParamTypes().ensureBuilderMap().size(); } /** * @@ -1464,7 +1510,7 @@ public boolean containsParamTypes(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - return internalGetParamTypes().getMap().containsKey(key); + return internalGetParamTypes().ensureBuilderMap().containsKey(key); } /** Use {@link #getParamTypesMap()} instead. */ @java.lang.Override @@ -1492,7 +1538,7 @@ public java.util.Map getParamTypes */ @java.lang.Override public java.util.Map getParamTypesMap() { - return internalGetParamTypes().getMap(); + return internalGetParamTypes().getImmutableMap(); } /** * @@ -1520,9 +1566,9 @@ public java.util.Map getParamTypes if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParamTypes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + java.util.Map map = + internalGetMutableParamTypes().ensureBuilderMap(); + return map.containsKey(key) ? paramTypesConverter.build(map.get(key)) : defaultValue; } /** * @@ -1547,17 +1593,17 @@ public com.google.spanner.v1.Type getParamTypesOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParamTypes().getMap(); + java.util.Map map = + internalGetMutableParamTypes().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } - return map.get(key); + return paramTypesConverter.build(map.get(key)); } public Builder clearParamTypes() { bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableParamTypes().getMutableMap().clear(); + internalGetMutableParamTypes().clear(); return this; } /** @@ -1582,14 +1628,14 @@ public Builder removeParamTypes(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableParamTypes().getMutableMap().remove(key); + internalGetMutableParamTypes().ensureBuilderMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParamTypes() { bitField0_ |= 0x00000004; - return internalGetMutableParamTypes().getMutableMap(); + return internalGetMutableParamTypes().ensureMessageMap(); } /** * @@ -1616,7 +1662,7 @@ public Builder putParamTypes(java.lang.String key, com.google.spanner.v1.Type va if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableParamTypes().getMutableMap().put(key, value); + internalGetMutableParamTypes().ensureBuilderMap().put(key, value); bitField0_ |= 0x00000004; return this; } @@ -1640,10 +1686,48 @@ public Builder putParamTypes(java.lang.String key, com.google.spanner.v1.Type va */ public Builder putAllParamTypes( java.util.Map values) { - internalGetMutableParamTypes().getMutableMap().putAll(values); + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableParamTypes().ensureBuilderMap().putAll(values); bitField0_ |= 0x00000004; return this; } + /** + * + * + *
+       * It is not always possible for Cloud Spanner to infer the right SQL type
+       * from a JSON value.  For example, values of type `BYTES` and values
+       * of type `STRING` both appear in
+       * [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as
+       * JSON strings.
+       *
+       * In these cases, `param_types` can be used to specify the exact
+       * SQL type for some or all of the SQL statement parameters. See the
+       * definition of [Type][google.spanner.v1.Type] for more information
+       * about SQL types.
+       * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + public com.google.spanner.v1.Type.Builder putParamTypesBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = + internalGetMutableParamTypes().ensureBuilderMap(); + com.google.spanner.v1.TypeOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.spanner.v1.Type.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.spanner.v1.Type) { + entry = ((com.google.spanner.v1.Type) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.spanner.v1.Type.Builder) entry; + } @java.lang.Override public final Builder setUnknownFields( @@ -1709,6 +1793,7 @@ public com.google.spanner.v1.ExecuteBatchDmlRequest.Statement getDefaultInstance } } + private int bitField0_; public static final int SESSION_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1785,7 +1870,7 @@ public com.google.protobuf.ByteString getSessionBytes() { */ @java.lang.Override public boolean hasTransaction() { - return transaction_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1980,7 +2065,7 @@ public long getSeqno() { */ @java.lang.Override public boolean hasRequestOptions() { - return requestOptions_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -2032,7 +2117,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_); } - if (transaction_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTransaction()); } for (int i = 0; i < statements_.size(); i++) { @@ -2041,7 +2126,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (seqno_ != 0L) { output.writeInt64(4, seqno_); } - if (requestOptions_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getRequestOptions()); } getUnknownFields().writeTo(output); @@ -2056,7 +2141,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_); } - if (transaction_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTransaction()); } for (int i = 0; i < statements_.size(); i++) { @@ -2065,7 +2150,7 @@ public int getSerializedSize() { if (seqno_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, seqno_); } - if (requestOptions_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRequestOptions()); } size += getUnknownFields().getSerializedSize(); @@ -2251,10 +2336,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.v1.ExecuteBatchDmlRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTransactionFieldBuilder(); + getStatementsFieldBuilder(); + getRequestOptionsFieldBuilder(); + } } @java.lang.Override @@ -2332,9 +2428,11 @@ private void buildPartial0(com.google.spanner.v1.ExecuteBatchDmlRequest result) if (((from_bitField0_ & 0x00000001) != 0)) { result.session_ = session_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.transaction_ = transactionBuilder_ == null ? transaction_ : transactionBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.seqno_ = seqno_; @@ -2342,7 +2440,9 @@ private void buildPartial0(com.google.spanner.v1.ExecuteBatchDmlRequest result) if (((from_bitField0_ & 0x00000010) != 0)) { result.requestOptions_ = requestOptionsBuilder_ == null ? requestOptions_ : requestOptionsBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2763,8 +2863,10 @@ public Builder mergeTransaction(com.google.spanner.v1.TransactionSelector value) } else { transactionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (transaction_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -3530,8 +3632,10 @@ public Builder mergeRequestOptions(com.google.spanner.v1.RequestOptions value) { } else { requestOptionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (requestOptions_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequestOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequestOrBuilder.java index d6370c8148b..7efd8f3d875 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequestOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface ExecuteBatchDmlRequestOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponse.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponse.java index 1453b8c7995..9a496542f87 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponse.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** @@ -92,6 +93,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.v1.ExecuteBatchDmlResponse.Builder.class); } + private int bitField0_; public static final int RESULT_SETS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -219,7 +221,7 @@ public com.google.spanner.v1.ResultSetOrBuilder getResultSetsOrBuilder(int index */ @java.lang.Override public boolean hasStatus() { - return status_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -269,7 +271,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < resultSets_.size(); i++) { output.writeMessage(1, resultSets_.get(i)); } - if (status_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getStatus()); } getUnknownFields().writeTo(output); @@ -284,7 +286,7 @@ public int getSerializedSize() { for (int i = 0; i < resultSets_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resultSets_.get(i)); } - if (status_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); } size += getUnknownFields().getSerializedSize(); @@ -486,10 +488,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.v1.ExecuteBatchDmlResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getResultSetsFieldBuilder(); + getStatusFieldBuilder(); + } } @java.lang.Override @@ -557,9 +569,12 @@ private void buildPartialRepeatedFields(com.google.spanner.v1.ExecuteBatchDmlRes private void buildPartial0(com.google.spanner.v1.ExecuteBatchDmlResponse result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1295,8 +1310,10 @@ public Builder mergeStatus(com.google.rpc.Status value) { } else { statusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (status_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponseOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponseOrBuilder.java index 8c764b5139b..c63e8364b07 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponseOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface ExecuteBatchDmlResponseOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteSqlRequest.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteSqlRequest.java index b287c4db6d3..b24ad8077d4 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteSqlRequest.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteSqlRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** @@ -59,7 +60,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 5: return internalGetParamTypes(); @@ -1487,6 +1489,7 @@ public com.google.spanner.v1.ExecuteSqlRequest.QueryOptions getDefaultInstanceFo } } + private int bitField0_; public static final int SESSION_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1566,7 +1569,7 @@ public com.google.protobuf.ByteString getSessionBytes() { */ @java.lang.Override public boolean hasTransaction() { - return transaction_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1697,7 +1700,7 @@ public com.google.protobuf.ByteString getSqlBytes() { */ @java.lang.Override public boolean hasParams() { - return params_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -2022,7 +2025,7 @@ public long getSeqno() { */ @java.lang.Override public boolean hasQueryOptions() { - return queryOptions_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -2072,7 +2075,7 @@ public com.google.spanner.v1.ExecuteSqlRequest.QueryOptionsOrBuilder getQueryOpt */ @java.lang.Override public boolean hasRequestOptions() { - return requestOptions_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2122,7 +2125,7 @@ public com.google.spanner.v1.RequestOptionsOrBuilder getRequestOptionsOrBuilder( */ @java.lang.Override public boolean hasDirectedReadOptions() { - return directedReadOptions_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2196,13 +2199,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_); } - if (transaction_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTransaction()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sql_); } - if (params_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getParams()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -2219,13 +2222,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (seqno_ != 0L) { output.writeInt64(9, seqno_); } - if (queryOptions_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(10, getQueryOptions()); } - if (requestOptions_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(11, getRequestOptions()); } - if (directedReadOptions_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(15, getDirectedReadOptions()); } if (dataBoostEnabled_ != false) { @@ -2243,13 +2246,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_); } - if (transaction_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTransaction()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sql_); } - if (params_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getParams()); } for (java.util.Map.Entry entry : @@ -2274,13 +2277,13 @@ public int getSerializedSize() { if (seqno_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, seqno_); } - if (queryOptions_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getQueryOptions()); } - if (requestOptions_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getRequestOptions()); } - if (directedReadOptions_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getDirectedReadOptions()); } @@ -2499,7 +2502,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 5: return internalGetParamTypes(); @@ -2509,7 +2513,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 5: return internalGetMutableParamTypes(); @@ -2529,10 +2534,23 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.spanner.v1.ExecuteSqlRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTransactionFieldBuilder(); + getParamsFieldBuilder(); + getQueryOptionsFieldBuilder(); + getRequestOptionsFieldBuilder(); + getDirectedReadOptionsFieldBuilder(); + } } @java.lang.Override @@ -2611,19 +2629,22 @@ private void buildPartial0(com.google.spanner.v1.ExecuteSqlRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.session_ = session_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.transaction_ = transactionBuilder_ == null ? transaction_ : transactionBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.sql_ = sql_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.paramTypes_ = internalGetParamTypes(); - result.paramTypes_.makeImmutable(); + result.paramTypes_ = + internalGetParamTypes().build(ParamTypesDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000020) != 0)) { result.resumeToken_ = resumeToken_; @@ -2640,20 +2661,24 @@ private void buildPartial0(com.google.spanner.v1.ExecuteSqlRequest result) { if (((from_bitField0_ & 0x00000200) != 0)) { result.queryOptions_ = queryOptionsBuilder_ == null ? queryOptions_ : queryOptionsBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000400) != 0)) { result.requestOptions_ = requestOptionsBuilder_ == null ? requestOptions_ : requestOptionsBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000800) != 0)) { result.directedReadOptions_ = directedReadOptionsBuilder_ == null ? directedReadOptions_ : directedReadOptionsBuilder_.build(); + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00001000) != 0)) { result.dataBoostEnabled_ = dataBoostEnabled_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2801,7 +2826,7 @@ public Builder mergeFrom( ParamTypesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableParamTypes() - .getMutableMap() + .ensureBuilderMap() .put(paramTypes__.getKey(), paramTypes__.getValue()); bitField0_ |= 0x00000010; break; @@ -3138,8 +3163,10 @@ public Builder mergeTransaction(com.google.spanner.v1.TransactionSelector value) } else { transactionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (transaction_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -3521,8 +3548,10 @@ public Builder mergeParams(com.google.protobuf.Struct value) { } else { paramsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (params_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -3648,25 +3677,53 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() { return paramsBuilder_; } - private com.google.protobuf.MapField paramTypes_; + private static final class ParamTypesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, com.google.spanner.v1.TypeOrBuilder, com.google.spanner.v1.Type> { + @java.lang.Override + public com.google.spanner.v1.Type build(com.google.spanner.v1.TypeOrBuilder val) { + if (val instanceof com.google.spanner.v1.Type) { + return (com.google.spanner.v1.Type) val; + } + return ((com.google.spanner.v1.Type.Builder) val).build(); + } - private com.google.protobuf.MapField + @java.lang.Override + public com.google.protobuf.MapEntry + defaultEntry() { + return ParamTypesDefaultEntryHolder.defaultEntry; + } + }; + + private static final ParamTypesConverter paramTypesConverter = new ParamTypesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.spanner.v1.TypeOrBuilder, + com.google.spanner.v1.Type, + com.google.spanner.v1.Type.Builder> + paramTypes_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.spanner.v1.TypeOrBuilder, + com.google.spanner.v1.Type, + com.google.spanner.v1.Type.Builder> internalGetParamTypes() { if (paramTypes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamTypesDefaultEntryHolder.defaultEntry); + return new com.google.protobuf.MapFieldBuilder<>(paramTypesConverter); } return paramTypes_; } - private com.google.protobuf.MapField + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.spanner.v1.TypeOrBuilder, + com.google.spanner.v1.Type, + com.google.spanner.v1.Type.Builder> internalGetMutableParamTypes() { if (paramTypes_ == null) { - paramTypes_ = - com.google.protobuf.MapField.newMapField(ParamTypesDefaultEntryHolder.defaultEntry); - } - if (!paramTypes_.isMutable()) { - paramTypes_ = paramTypes_.copy(); + paramTypes_ = new com.google.protobuf.MapFieldBuilder<>(paramTypesConverter); } bitField0_ |= 0x00000010; onChanged(); @@ -3674,7 +3731,7 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() { } public int getParamTypesCount() { - return internalGetParamTypes().getMap().size(); + return internalGetParamTypes().ensureBuilderMap().size(); } /** * @@ -3698,7 +3755,7 @@ public boolean containsParamTypes(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - return internalGetParamTypes().getMap().containsKey(key); + return internalGetParamTypes().ensureBuilderMap().containsKey(key); } /** Use {@link #getParamTypesMap()} instead. */ @java.lang.Override @@ -3725,7 +3782,7 @@ public java.util.Map getParamTypes */ @java.lang.Override public java.util.Map getParamTypesMap() { - return internalGetParamTypes().getMap(); + return internalGetParamTypes().getImmutableMap(); } /** * @@ -3752,9 +3809,9 @@ public java.util.Map getParamTypes if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParamTypes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + java.util.Map map = + internalGetMutableParamTypes().ensureBuilderMap(); + return map.containsKey(key) ? paramTypesConverter.build(map.get(key)) : defaultValue; } /** * @@ -3778,17 +3835,17 @@ public com.google.spanner.v1.Type getParamTypesOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParamTypes().getMap(); + java.util.Map map = + internalGetMutableParamTypes().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } - return map.get(key); + return paramTypesConverter.build(map.get(key)); } public Builder clearParamTypes() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableParamTypes().getMutableMap().clear(); + internalGetMutableParamTypes().clear(); return this; } /** @@ -3812,14 +3869,14 @@ public Builder removeParamTypes(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableParamTypes().getMutableMap().remove(key); + internalGetMutableParamTypes().ensureBuilderMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParamTypes() { bitField0_ |= 0x00000010; - return internalGetMutableParamTypes().getMutableMap(); + return internalGetMutableParamTypes().ensureMessageMap(); } /** * @@ -3845,7 +3902,7 @@ public Builder putParamTypes(java.lang.String key, com.google.spanner.v1.Type va if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableParamTypes().getMutableMap().put(key, value); + internalGetMutableParamTypes().ensureBuilderMap().put(key, value); bitField0_ |= 0x00000010; return this; } @@ -3868,10 +3925,47 @@ public Builder putParamTypes(java.lang.String key, com.google.spanner.v1.Type va */ public Builder putAllParamTypes( java.util.Map values) { - internalGetMutableParamTypes().getMutableMap().putAll(values); + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableParamTypes().ensureBuilderMap().putAll(values); bitField0_ |= 0x00000010; return this; } + /** + * + * + *
+     * It is not always possible for Cloud Spanner to infer the right SQL type
+     * from a JSON value.  For example, values of type `BYTES` and values
+     * of type `STRING` both appear in
+     * [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings.
+     *
+     * In these cases, `param_types` can be used to specify the exact
+     * SQL type for some or all of the SQL statement parameters. See the
+     * definition of [Type][google.spanner.v1.Type] for more information
+     * about SQL types.
+     * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 5; + */ + public com.google.spanner.v1.Type.Builder putParamTypesBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = + internalGetMutableParamTypes().ensureBuilderMap(); + com.google.spanner.v1.TypeOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.spanner.v1.Type.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.spanner.v1.Type) { + entry = ((com.google.spanner.v1.Type) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.spanner.v1.Type.Builder) entry; + } private com.google.protobuf.ByteString resumeToken_ = com.google.protobuf.ByteString.EMPTY; /** @@ -4308,8 +4402,10 @@ public Builder mergeQueryOptions(com.google.spanner.v1.ExecuteSqlRequest.QueryOp } else { queryOptionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; - onChanged(); + if (queryOptions_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } /** @@ -4492,8 +4588,10 @@ public Builder mergeRequestOptions(com.google.spanner.v1.RequestOptions value) { } else { requestOptionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000400; - onChanged(); + if (requestOptions_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } return this; } /** @@ -4677,8 +4775,10 @@ public Builder mergeDirectedReadOptions(com.google.spanner.v1.DirectedReadOption } else { directedReadOptionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000800; - onChanged(); + if (directedReadOptions_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteSqlRequestOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteSqlRequestOrBuilder.java index cd78fa0b36f..f31dac6857a 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteSqlRequestOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteSqlRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface ExecuteSqlRequestOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/GetSessionRequest.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/GetSessionRequest.java index 4da3701235d..5a4cd1d8891 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/GetSessionRequest.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/GetSessionRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/GetSessionRequestOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/GetSessionRequestOrBuilder.java index cb9e8e11e47..4d6667d99f2 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/GetSessionRequestOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/GetSessionRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface GetSessionRequestOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeyRange.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeyRange.java index f1ed673a74a..7293e5c15c8 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeyRange.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeyRange.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/keys.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeyRangeOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeyRangeOrBuilder.java index f417d881369..eb46485f9ff 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeyRangeOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeyRangeOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/keys.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface KeyRangeOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeySet.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeySet.java index 7bc3c382a9b..9d7db7337a4 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeySet.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeySet.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/keys.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeySetOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeySetOrBuilder.java index 9465c3c1558..68c35c14a7b 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeySetOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeySetOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/keys.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface KeySetOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeysProto.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeysProto.java index 1eaf784655a..9bfb4697b1e 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeysProto.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/KeysProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/keys.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public final class KeysProto { diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsRequest.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsRequest.java index 7bfd6d58aca..ee629e3b76d 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsRequest.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsRequestOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsRequestOrBuilder.java index c51a674ccc2..7a5971cd15e 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsRequestOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface ListSessionsRequestOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsResponse.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsResponse.java index 22a5e8d157a..3f0f9ba467e 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsResponse.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsResponseOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsResponseOrBuilder.java index 9b7679883fc..bd57be27dfa 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsResponseOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ListSessionsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface ListSessionsResponseOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Mutation.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Mutation.java index 45ec79dca78..ef756891433 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Mutation.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Mutation.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/mutation.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** @@ -1957,6 +1958,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.v1.Mutation.Delete.Builder.class); } + private int bitField0_; public static final int TABLE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -2028,7 +2030,7 @@ public com.google.protobuf.ByteString getTableBytes() { */ @java.lang.Override public boolean hasKeySet() { - return keySet_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -2086,7 +2088,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_); } - if (keySet_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getKeySet()); } getUnknownFields().writeTo(output); @@ -2101,7 +2103,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_); } - if (keySet_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getKeySet()); } size += getUnknownFields().getSerializedSize(); @@ -2272,10 +2274,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.v1.Mutation.Delete.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getKeySetFieldBuilder(); + } } @java.lang.Override @@ -2327,9 +2338,12 @@ private void buildPartial0(com.google.spanner.v1.Mutation.Delete result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.table_ = table_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.keySet_ = keySetBuilder_ == null ? keySet_ : keySetBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2680,8 +2694,10 @@ public Builder mergeKeySet(com.google.spanner.v1.KeySet value) { } else { keySetBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (keySet_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/MutationOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/MutationOrBuilder.java index 70254ca757d..b596d1adf6c 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/MutationOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/MutationOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/mutation.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface MutationOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/MutationProto.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/MutationProto.java index 947d33fa1ee..3913bc2a97c 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/MutationProto.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/MutationProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/mutation.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public final class MutationProto { @@ -51,24 +52,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n google/spanner/v1/mutation.proto\022\021goog" + "le.spanner.v1\032\037google/api/field_behavior" + ".proto\032\034google/protobuf/struct.proto\032\034go" - + "ogle/spanner/v1/keys.proto\"\330\003\n\010Mutation\022" + + "ogle/spanner/v1/keys.proto\"\325\003\n\010Mutation\022" + "3\n\006insert\030\001 \001(\0132!.google.spanner.v1.Muta" + "tion.WriteH\000\0223\n\006update\030\002 \001(\0132!.google.sp" + "anner.v1.Mutation.WriteH\000\022=\n\020insert_or_u" + "pdate\030\003 \001(\0132!.google.spanner.v1.Mutation" + ".WriteH\000\0224\n\007replace\030\004 \001(\0132!.google.spann" + "er.v1.Mutation.WriteH\000\0224\n\006delete\030\005 \001(\0132\"" - + ".google.spanner.v1.Mutation.DeleteH\000\032Y\n\005" - + "Write\022\023\n\005table\030\001 \001(\tB\004\342A\001\002\022\017\n\007columns\030\002 " - + "\003(\t\022*\n\006values\030\003 \003(\0132\032.google.protobuf.Li" - + "stValue\032O\n\006Delete\022\023\n\005table\030\001 \001(\tB\004\342A\001\002\0220" - + "\n\007key_set\030\002 \001(\0132\031.google.spanner.v1.KeyS" - + "etB\004\342A\001\002B\013\n\toperationB\260\001\n\025com.google.spa" - + "nner.v1B\rMutationProtoP\001Z5cloud.google.c" - + "om/go/spanner/apiv1/spannerpb;spannerpb\252" - + "\002\027Google.Cloud.Spanner.V1\312\002\027Google\\Cloud" - + "\\Spanner\\V1\352\002\032Google::Cloud::Spanner::V1" - + "b\006proto3" + + ".google.spanner.v1.Mutation.DeleteH\000\032X\n\005" + + "Write\022\022\n\005table\030\001 \001(\tB\003\340A\002\022\017\n\007columns\030\002 \003" + + "(\t\022*\n\006values\030\003 \003(\0132\032.google.protobuf.Lis" + + "tValue\032M\n\006Delete\022\022\n\005table\030\001 \001(\tB\003\340A\002\022/\n\007" + + "key_set\030\002 \001(\0132\031.google.spanner.v1.KeySet" + + "B\003\340A\002B\013\n\toperationB\260\001\n\025com.google.spanne" + + "r.v1B\rMutationProtoP\001Z5cloud.google.com/" + + "go/spanner/apiv1/spannerpb;spannerpb\252\002\027G" + + "oogle.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Sp" + + "anner\\V1\352\002\032Google::Cloud::Spanner::V1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartialResultSet.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartialResultSet.java index f54d024bc26..8c863af7e0e 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartialResultSet.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartialResultSet.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/result_set.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** @@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.v1.PartialResultSet.Builder.class); } + private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private com.google.spanner.v1.ResultSetMetadata metadata_; /** @@ -81,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasMetadata() { - return metadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -610,7 +612,7 @@ public com.google.protobuf.ByteString getResumeToken() { */ @java.lang.Override public boolean hasStats() { - return stats_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -665,7 +667,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (metadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMetadata()); } for (int i = 0; i < values_.size(); i++) { @@ -677,7 +679,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!resumeToken_.isEmpty()) { output.writeBytes(4, resumeToken_); } - if (stats_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getStats()); } getUnknownFields().writeTo(output); @@ -689,7 +691,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (metadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata()); } for (int i = 0; i < values_.size(); i++) { @@ -701,7 +703,7 @@ public int getSerializedSize() { if (!resumeToken_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, resumeToken_); } - if (stats_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStats()); } size += getUnknownFields().getSerializedSize(); @@ -888,10 +890,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.v1.PartialResultSet.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getValuesFieldBuilder(); + getStatsFieldBuilder(); + } } @java.lang.Override @@ -966,8 +979,10 @@ private void buildPartialRepeatedFields(com.google.spanner.v1.PartialResultSet r private void buildPartial0(com.google.spanner.v1.PartialResultSet result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.chunkedValue_ = chunkedValue_; @@ -977,7 +992,9 @@ private void buildPartial0(com.google.spanner.v1.PartialResultSet result) { } if (((from_bitField0_ & 0x00000010) != 0)) { result.stats_ = statsBuilder_ == null ? stats_ : statsBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1252,8 +1269,10 @@ public Builder mergeMetadata(com.google.spanner.v1.ResultSetMetadata value) { } else { metadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (metadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -3226,8 +3245,10 @@ public Builder mergeStats(com.google.spanner.v1.ResultSetStats value) { } else { statsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (stats_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartialResultSetOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartialResultSetOrBuilder.java index 287a8fab009..88eb3e33e12 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartialResultSetOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartialResultSetOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/result_set.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface PartialResultSetOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Partition.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Partition.java index 74608dab6b0..82d0a2ca846 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Partition.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Partition.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionOptions.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionOptions.java index 6b7aeb4d577..af665946256 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionOptions.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionOptions.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionOptionsOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionOptionsOrBuilder.java index 35e4d67c2df..4d894a0bbcf 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionOptionsOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionOptionsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface PartitionOptionsOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionOrBuilder.java index be92636ee54..2196558c675 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface PartitionOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionQueryRequest.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionQueryRequest.java index 3a78ca9046a..b370ca2f6b3 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionQueryRequest.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionQueryRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** @@ -55,7 +56,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 5: return internalGetParamTypes(); @@ -74,6 +76,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.spanner.v1.PartitionQueryRequest.Builder.class); } + private int bitField0_; public static final int SESSION_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -145,7 +148,7 @@ public com.google.protobuf.ByteString getSessionBytes() { */ @java.lang.Override public boolean hasTransaction() { - return transaction_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -192,9 +195,10 @@ public com.google.spanner.v1.TransactionSelectorOrBuilder getTransactionOrBuilde *
    * Required. The query request to generate partitions for. The request will
    * fail if the query is not root partitionable. For a query to be root
-   * partitionable, it needs to satisfy a few conditions. For example, the first
-   * operator in the query execution plan must be a distributed union operator.
-   * For more information about other conditions, see [Read data in
+   * partitionable, it needs to satisfy a few conditions. For example, if the
+   * query execution plan contains a distributed union operator, then it must be
+   * the first operator in the plan. For more information about other
+   * conditions, see [Read data in
    * parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel).
    *
    * The query request must not contain DML commands, such as INSERT, UPDATE, or
@@ -225,9 +229,10 @@ public java.lang.String getSql() {
    * 
    * Required. The query request to generate partitions for. The request will
    * fail if the query is not root partitionable. For a query to be root
-   * partitionable, it needs to satisfy a few conditions. For example, the first
-   * operator in the query execution plan must be a distributed union operator.
-   * For more information about other conditions, see [Read data in
+   * partitionable, it needs to satisfy a few conditions. For example, if the
+   * query execution plan contains a distributed union operator, then it must be
+   * the first operator in the plan. For more information about other
+   * conditions, see [Read data in
    * parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel).
    *
    * The query request must not contain DML commands, such as INSERT, UPDATE, or
@@ -279,7 +284,7 @@ public com.google.protobuf.ByteString getSqlBytes() {
    */
   @java.lang.Override
   public boolean hasParams() {
-    return params_ != null;
+    return ((bitField0_ & 0x00000002) != 0);
   }
   /**
    *
@@ -486,7 +491,7 @@ public com.google.spanner.v1.Type getParamTypesOrThrow(java.lang.String key) {
    */
   @java.lang.Override
   public boolean hasPartitionOptions() {
-    return partitionOptions_ != null;
+    return ((bitField0_ & 0x00000004) != 0);
   }
   /**
    *
@@ -538,18 +543,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_);
     }
-    if (transaction_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(2, getTransaction());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sql_);
     }
-    if (params_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       output.writeMessage(4, getParams());
     }
     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
         output, internalGetParamTypes(), ParamTypesDefaultEntryHolder.defaultEntry, 5);
-    if (partitionOptions_ != null) {
+    if (((bitField0_ & 0x00000004) != 0)) {
       output.writeMessage(6, getPartitionOptions());
     }
     getUnknownFields().writeTo(output);
@@ -564,13 +569,13 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_);
     }
-    if (transaction_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTransaction());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sql_);
     }
-    if (params_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getParams());
     }
     for (java.util.Map.Entry entry :
@@ -583,7 +588,7 @@ public int getSerializedSize() {
               .build();
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, paramTypes__);
     }
-    if (partitionOptions_ != null) {
+    if (((bitField0_ & 0x00000004) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPartitionOptions());
     }
     size += getUnknownFields().getSerializedSize();
@@ -767,7 +772,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+        int number) {
       switch (number) {
         case 5:
           return internalGetParamTypes();
@@ -777,7 +783,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableParamTypes();
@@ -797,10 +804,21 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
     }
 
     // Construct using com.google.spanner.v1.PartitionQueryRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
 
     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
+      maybeForceBuilderInitialization();
+    }
+
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        getTransactionFieldBuilder();
+        getParamsFieldBuilder();
+        getPartitionOptionsFieldBuilder();
+      }
     }
 
     @java.lang.Override
@@ -864,24 +882,29 @@ private void buildPartial0(com.google.spanner.v1.PartitionQueryRequest result) {
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.session_ = session_;
       }
+      int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.transaction_ =
             transactionBuilder_ == null ? transaction_ : transactionBuilder_.build();
+        to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.sql_ = sql_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build();
+        to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.paramTypes_ = internalGetParamTypes();
-        result.paramTypes_.makeImmutable();
+        result.paramTypes_ =
+            internalGetParamTypes().build(ParamTypesDefaultEntryHolder.defaultEntry);
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.partitionOptions_ =
             partitionOptionsBuilder_ == null ? partitionOptions_ : partitionOptionsBuilder_.build();
+        to_bitField0_ |= 0x00000004;
       }
+      result.bitField0_ |= to_bitField0_;
     }
 
     @java.lang.Override
@@ -1008,7 +1031,7 @@ public Builder mergeFrom(
                             ParamTypesDefaultEntryHolder.defaultEntry.getParserForType(),
                             extensionRegistry);
                 internalGetMutableParamTypes()
-                    .getMutableMap()
+                    .ensureBuilderMap()
                     .put(paramTypes__.getKey(), paramTypes__.getValue());
                 bitField0_ |= 0x00000010;
                 break;
@@ -1263,8 +1286,10 @@ public Builder mergeTransaction(com.google.spanner.v1.TransactionSelector value)
       } else {
         transactionBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000002;
-      onChanged();
+      if (transaction_ != null) {
+        bitField0_ |= 0x00000002;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1355,9 +1380,10 @@ public com.google.spanner.v1.TransactionSelectorOrBuilder getTransactionOrBuilde
      * 
      * Required. The query request to generate partitions for. The request will
      * fail if the query is not root partitionable. For a query to be root
-     * partitionable, it needs to satisfy a few conditions. For example, the first
-     * operator in the query execution plan must be a distributed union operator.
-     * For more information about other conditions, see [Read data in
+     * partitionable, it needs to satisfy a few conditions. For example, if the
+     * query execution plan contains a distributed union operator, then it must be
+     * the first operator in the plan. For more information about other
+     * conditions, see [Read data in
      * parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel).
      *
      * The query request must not contain DML commands, such as INSERT, UPDATE, or
@@ -1387,9 +1413,10 @@ public java.lang.String getSql() {
      * 
      * Required. The query request to generate partitions for. The request will
      * fail if the query is not root partitionable. For a query to be root
-     * partitionable, it needs to satisfy a few conditions. For example, the first
-     * operator in the query execution plan must be a distributed union operator.
-     * For more information about other conditions, see [Read data in
+     * partitionable, it needs to satisfy a few conditions. For example, if the
+     * query execution plan contains a distributed union operator, then it must be
+     * the first operator in the plan. For more information about other
+     * conditions, see [Read data in
      * parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel).
      *
      * The query request must not contain DML commands, such as INSERT, UPDATE, or
@@ -1419,9 +1446,10 @@ public com.google.protobuf.ByteString getSqlBytes() {
      * 
      * Required. The query request to generate partitions for. The request will
      * fail if the query is not root partitionable. For a query to be root
-     * partitionable, it needs to satisfy a few conditions. For example, the first
-     * operator in the query execution plan must be a distributed union operator.
-     * For more information about other conditions, see [Read data in
+     * partitionable, it needs to satisfy a few conditions. For example, if the
+     * query execution plan contains a distributed union operator, then it must be
+     * the first operator in the plan. For more information about other
+     * conditions, see [Read data in
      * parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel).
      *
      * The query request must not contain DML commands, such as INSERT, UPDATE, or
@@ -1450,9 +1478,10 @@ public Builder setSql(java.lang.String value) {
      * 
      * Required. The query request to generate partitions for. The request will
      * fail if the query is not root partitionable. For a query to be root
-     * partitionable, it needs to satisfy a few conditions. For example, the first
-     * operator in the query execution plan must be a distributed union operator.
-     * For more information about other conditions, see [Read data in
+     * partitionable, it needs to satisfy a few conditions. For example, if the
+     * query execution plan contains a distributed union operator, then it must be
+     * the first operator in the plan. For more information about other
+     * conditions, see [Read data in
      * parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel).
      *
      * The query request must not contain DML commands, such as INSERT, UPDATE, or
@@ -1477,9 +1506,10 @@ public Builder clearSql() {
      * 
      * Required. The query request to generate partitions for. The request will
      * fail if the query is not root partitionable. For a query to be root
-     * partitionable, it needs to satisfy a few conditions. For example, the first
-     * operator in the query execution plan must be a distributed union operator.
-     * For more information about other conditions, see [Read data in
+     * partitionable, it needs to satisfy a few conditions. For example, if the
+     * query execution plan contains a distributed union operator, then it must be
+     * the first operator in the plan. For more information about other
+     * conditions, see [Read data in
      * parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel).
      *
      * The query request must not contain DML commands, such as INSERT, UPDATE, or
@@ -1659,8 +1689,10 @@ public Builder mergeParams(com.google.protobuf.Struct value) {
       } else {
         paramsBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000008;
-      onChanged();
+      if (params_ != null) {
+        bitField0_ |= 0x00000008;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1782,25 +1814,53 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
       return paramsBuilder_;
     }
 
-    private com.google.protobuf.MapField paramTypes_;
+    private static final class ParamTypesConverter
+        implements com.google.protobuf.MapFieldBuilder.Converter<
+            java.lang.String, com.google.spanner.v1.TypeOrBuilder, com.google.spanner.v1.Type> {
+      @java.lang.Override
+      public com.google.spanner.v1.Type build(com.google.spanner.v1.TypeOrBuilder val) {
+        if (val instanceof com.google.spanner.v1.Type) {
+          return (com.google.spanner.v1.Type) val;
+        }
+        return ((com.google.spanner.v1.Type.Builder) val).build();
+      }
 
-    private com.google.protobuf.MapField
+      @java.lang.Override
+      public com.google.protobuf.MapEntry
+          defaultEntry() {
+        return ParamTypesDefaultEntryHolder.defaultEntry;
+      }
+    };
+
+    private static final ParamTypesConverter paramTypesConverter = new ParamTypesConverter();
+
+    private com.google.protobuf.MapFieldBuilder<
+            java.lang.String,
+            com.google.spanner.v1.TypeOrBuilder,
+            com.google.spanner.v1.Type,
+            com.google.spanner.v1.Type.Builder>
+        paramTypes_;
+
+    private com.google.protobuf.MapFieldBuilder<
+            java.lang.String,
+            com.google.spanner.v1.TypeOrBuilder,
+            com.google.spanner.v1.Type,
+            com.google.spanner.v1.Type.Builder>
         internalGetParamTypes() {
       if (paramTypes_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            ParamTypesDefaultEntryHolder.defaultEntry);
+        return new com.google.protobuf.MapFieldBuilder<>(paramTypesConverter);
       }
       return paramTypes_;
     }
 
-    private com.google.protobuf.MapField
+    private com.google.protobuf.MapFieldBuilder<
+            java.lang.String,
+            com.google.spanner.v1.TypeOrBuilder,
+            com.google.spanner.v1.Type,
+            com.google.spanner.v1.Type.Builder>
         internalGetMutableParamTypes() {
       if (paramTypes_ == null) {
-        paramTypes_ =
-            com.google.protobuf.MapField.newMapField(ParamTypesDefaultEntryHolder.defaultEntry);
-      }
-      if (!paramTypes_.isMutable()) {
-        paramTypes_ = paramTypes_.copy();
+        paramTypes_ = new com.google.protobuf.MapFieldBuilder<>(paramTypesConverter);
       }
       bitField0_ |= 0x00000010;
       onChanged();
@@ -1808,7 +1868,7 @@ public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
     }
 
     public int getParamTypesCount() {
-      return internalGetParamTypes().getMap().size();
+      return internalGetParamTypes().ensureBuilderMap().size();
     }
     /**
      *
@@ -1832,7 +1892,7 @@ public boolean containsParamTypes(java.lang.String key) {
       if (key == null) {
         throw new NullPointerException("map key");
       }
-      return internalGetParamTypes().getMap().containsKey(key);
+      return internalGetParamTypes().ensureBuilderMap().containsKey(key);
     }
     /** Use {@link #getParamTypesMap()} instead. */
     @java.lang.Override
@@ -1859,7 +1919,7 @@ public java.util.Map getParamTypes
      */
     @java.lang.Override
     public java.util.Map getParamTypesMap() {
-      return internalGetParamTypes().getMap();
+      return internalGetParamTypes().getImmutableMap();
     }
     /**
      *
@@ -1886,9 +1946,9 @@ public java.util.Map getParamTypes
       if (key == null) {
         throw new NullPointerException("map key");
       }
-      java.util.Map map =
-          internalGetParamTypes().getMap();
-      return map.containsKey(key) ? map.get(key) : defaultValue;
+      java.util.Map map =
+          internalGetMutableParamTypes().ensureBuilderMap();
+      return map.containsKey(key) ? paramTypesConverter.build(map.get(key)) : defaultValue;
     }
     /**
      *
@@ -1912,17 +1972,17 @@ public com.google.spanner.v1.Type getParamTypesOrThrow(java.lang.String key) {
       if (key == null) {
         throw new NullPointerException("map key");
       }
-      java.util.Map map =
-          internalGetParamTypes().getMap();
+      java.util.Map map =
+          internalGetMutableParamTypes().ensureBuilderMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
-      return map.get(key);
+      return paramTypesConverter.build(map.get(key));
     }
 
     public Builder clearParamTypes() {
       bitField0_ = (bitField0_ & ~0x00000010);
-      internalGetMutableParamTypes().getMutableMap().clear();
+      internalGetMutableParamTypes().clear();
       return this;
     }
     /**
@@ -1946,14 +2006,14 @@ public Builder removeParamTypes(java.lang.String key) {
       if (key == null) {
         throw new NullPointerException("map key");
       }
-      internalGetMutableParamTypes().getMutableMap().remove(key);
+      internalGetMutableParamTypes().ensureBuilderMap().remove(key);
       return this;
     }
     /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
     public java.util.Map getMutableParamTypes() {
       bitField0_ |= 0x00000010;
-      return internalGetMutableParamTypes().getMutableMap();
+      return internalGetMutableParamTypes().ensureMessageMap();
     }
     /**
      *
@@ -1979,7 +2039,7 @@ public Builder putParamTypes(java.lang.String key, com.google.spanner.v1.Type va
       if (value == null) {
         throw new NullPointerException("map value");
       }
-      internalGetMutableParamTypes().getMutableMap().put(key, value);
+      internalGetMutableParamTypes().ensureBuilderMap().put(key, value);
       bitField0_ |= 0x00000010;
       return this;
     }
@@ -2002,10 +2062,47 @@ public Builder putParamTypes(java.lang.String key, com.google.spanner.v1.Type va
      */
     public Builder putAllParamTypes(
         java.util.Map values) {
-      internalGetMutableParamTypes().getMutableMap().putAll(values);
+      for (java.util.Map.Entry e :
+          values.entrySet()) {
+        if (e.getKey() == null || e.getValue() == null) {
+          throw new NullPointerException();
+        }
+      }
+      internalGetMutableParamTypes().ensureBuilderMap().putAll(values);
       bitField0_ |= 0x00000010;
       return this;
     }
+    /**
+     *
+     *
+     * 
+     * It is not always possible for Cloud Spanner to infer the right SQL type
+     * from a JSON value.  For example, values of type `BYTES` and values
+     * of type `STRING` both appear in
+     * [params][google.spanner.v1.PartitionQueryRequest.params] as JSON strings.
+     *
+     * In these cases, `param_types` can be used to specify the exact
+     * SQL type for some or all of the SQL query parameters. See the
+     * definition of [Type][google.spanner.v1.Type] for more information
+     * about SQL types.
+     * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 5; + */ + public com.google.spanner.v1.Type.Builder putParamTypesBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = + internalGetMutableParamTypes().ensureBuilderMap(); + com.google.spanner.v1.TypeOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.spanner.v1.Type.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.spanner.v1.Type) { + entry = ((com.google.spanner.v1.Type) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.spanner.v1.Type.Builder) entry; + } private com.google.spanner.v1.PartitionOptions partitionOptions_; private com.google.protobuf.SingleFieldBuilderV3< @@ -2110,8 +2207,10 @@ public Builder mergePartitionOptions(com.google.spanner.v1.PartitionOptions valu } else { partitionOptionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (partitionOptions_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionQueryRequestOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionQueryRequestOrBuilder.java index 3f84655dc95..7e03e8981d5 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionQueryRequestOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionQueryRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface PartitionQueryRequestOrBuilder @@ -96,9 +97,10 @@ public interface PartitionQueryRequestOrBuilder *
    * Required. The query request to generate partitions for. The request will
    * fail if the query is not root partitionable. For a query to be root
-   * partitionable, it needs to satisfy a few conditions. For example, the first
-   * operator in the query execution plan must be a distributed union operator.
-   * For more information about other conditions, see [Read data in
+   * partitionable, it needs to satisfy a few conditions. For example, if the
+   * query execution plan contains a distributed union operator, then it must be
+   * the first operator in the plan. For more information about other
+   * conditions, see [Read data in
    * parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel).
    *
    * The query request must not contain DML commands, such as INSERT, UPDATE, or
@@ -118,9 +120,10 @@ public interface PartitionQueryRequestOrBuilder
    * 
    * Required. The query request to generate partitions for. The request will
    * fail if the query is not root partitionable. For a query to be root
-   * partitionable, it needs to satisfy a few conditions. For example, the first
-   * operator in the query execution plan must be a distributed union operator.
-   * For more information about other conditions, see [Read data in
+   * partitionable, it needs to satisfy a few conditions. For example, if the
+   * query execution plan contains a distributed union operator, then it must be
+   * the first operator in the plan. For more information about other
+   * conditions, see [Read data in
    * parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel).
    *
    * The query request must not contain DML commands, such as INSERT, UPDATE, or
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionReadRequest.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionReadRequest.java
index 06fbea7caf8..ccf2667687c 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionReadRequest.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionReadRequest.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/spanner.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 /**
@@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
             com.google.spanner.v1.PartitionReadRequest.Builder.class);
   }
 
+  private int bitField0_;
   public static final int SESSION_FIELD_NUMBER = 1;
 
   @SuppressWarnings("serial")
@@ -136,7 +138,7 @@ public com.google.protobuf.ByteString getSessionBytes() {
    */
   @java.lang.Override
   public boolean hasTransaction() {
-    return transaction_ != null;
+    return ((bitField0_ & 0x00000001) != 0);
   }
   /**
    *
@@ -377,7 +379,7 @@ public com.google.protobuf.ByteString getColumnsBytes(int index) {
    */
   @java.lang.Override
   public boolean hasKeySet() {
-    return keySet_ != null;
+    return ((bitField0_ & 0x00000002) != 0);
   }
   /**
    *
@@ -441,7 +443,7 @@ public com.google.spanner.v1.KeySetOrBuilder getKeySetOrBuilder() {
    */
   @java.lang.Override
   public boolean hasPartitionOptions() {
-    return partitionOptions_ != null;
+    return ((bitField0_ & 0x00000004) != 0);
   }
   /**
    *
@@ -493,7 +495,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_);
     }
-    if (transaction_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(2, getTransaction());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
@@ -505,10 +507,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     for (int i = 0; i < columns_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, columns_.getRaw(i));
     }
-    if (keySet_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       output.writeMessage(6, getKeySet());
     }
-    if (partitionOptions_ != null) {
+    if (((bitField0_ & 0x00000004) != 0)) {
       output.writeMessage(9, getPartitionOptions());
     }
     getUnknownFields().writeTo(output);
@@ -523,7 +525,7 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_);
     }
-    if (transaction_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTransaction());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
@@ -540,10 +542,10 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getColumnsList().size();
     }
-    if (keySet_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getKeySet());
     }
-    if (partitionOptions_ != null) {
+    if (((bitField0_ & 0x00000004) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getPartitionOptions());
     }
     size += getUnknownFields().getSerializedSize();
@@ -740,10 +742,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     }
 
     // Construct using com.google.spanner.v1.PartitionReadRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
 
     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
+      maybeForceBuilderInitialization();
+    }
+
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        getTransactionFieldBuilder();
+        getKeySetFieldBuilder();
+        getPartitionOptionsFieldBuilder();
+      }
     }
 
     @java.lang.Override
@@ -808,9 +821,11 @@ private void buildPartial0(com.google.spanner.v1.PartitionReadRequest result) {
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.session_ = session_;
       }
+      int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.transaction_ =
             transactionBuilder_ == null ? transaction_ : transactionBuilder_.build();
+        to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.table_ = table_;
@@ -824,11 +839,14 @@ private void buildPartial0(com.google.spanner.v1.PartitionReadRequest result) {
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.keySet_ = keySetBuilder_ == null ? keySet_ : keySetBuilder_.build();
+        to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.partitionOptions_ =
             partitionOptionsBuilder_ == null ? partitionOptions_ : partitionOptionsBuilder_.build();
+        to_bitField0_ |= 0x00000004;
       }
+      result.bitField0_ |= to_bitField0_;
     }
 
     @java.lang.Override
@@ -1223,8 +1241,10 @@ public Builder mergeTransaction(com.google.spanner.v1.TransactionSelector value)
       } else {
         transactionBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000002;
-      onChanged();
+      if (transaction_ != null) {
+        bitField0_ |= 0x00000002;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1873,8 +1893,10 @@ public Builder mergeKeySet(com.google.spanner.v1.KeySet value) {
       } else {
         keySetBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000020;
-      onChanged();
+      if (keySet_ != null) {
+        bitField0_ |= 0x00000020;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -2091,8 +2113,10 @@ public Builder mergePartitionOptions(com.google.spanner.v1.PartitionOptions valu
       } else {
         partitionOptionsBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000040;
-      onChanged();
+      if (partitionOptions_ != null) {
+        bitField0_ |= 0x00000040;
+        onChanged();
+      }
       return this;
     }
     /**
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionReadRequestOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionReadRequestOrBuilder.java
index dff07390bf3..8a0f5215469 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionReadRequestOrBuilder.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionReadRequestOrBuilder.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/spanner.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 public interface PartitionReadRequestOrBuilder
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionResponse.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionResponse.java
index fc4278dd616..70cb408c1c8 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionResponse.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionResponse.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/spanner.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 /**
@@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
             com.google.spanner.v1.PartitionResponse.Builder.class);
   }
 
+  private int bitField0_;
   public static final int PARTITIONS_FIELD_NUMBER = 1;
 
   @SuppressWarnings("serial")
@@ -149,7 +151,7 @@ public com.google.spanner.v1.PartitionOrBuilder getPartitionsOrBuilder(int index
    */
   @java.lang.Override
   public boolean hasTransaction() {
-    return transaction_ != null;
+    return ((bitField0_ & 0x00000001) != 0);
   }
   /**
    *
@@ -201,7 +203,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     for (int i = 0; i < partitions_.size(); i++) {
       output.writeMessage(1, partitions_.get(i));
     }
-    if (transaction_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(2, getTransaction());
     }
     getUnknownFields().writeTo(output);
@@ -216,7 +218,7 @@ public int getSerializedSize() {
     for (int i = 0; i < partitions_.size(); i++) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, partitions_.get(i));
     }
-    if (transaction_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTransaction());
     }
     size += getUnknownFields().getSerializedSize();
@@ -388,10 +390,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     }
 
     // Construct using com.google.spanner.v1.PartitionResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
 
     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
+      maybeForceBuilderInitialization();
+    }
+
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        getPartitionsFieldBuilder();
+        getTransactionFieldBuilder();
+      }
     }
 
     @java.lang.Override
@@ -459,10 +471,13 @@ private void buildPartialRepeatedFields(com.google.spanner.v1.PartitionResponse
 
     private void buildPartial0(com.google.spanner.v1.PartitionResponse result) {
       int from_bitField0_ = bitField0_;
+      int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.transaction_ =
             transactionBuilder_ == null ? transaction_ : transactionBuilder_.build();
+        to_bitField0_ |= 0x00000001;
       }
+      result.bitField0_ |= to_bitField0_;
     }
 
     @java.lang.Override
@@ -1053,8 +1068,10 @@ public Builder mergeTransaction(com.google.spanner.v1.Transaction value) {
       } else {
         transactionBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000002;
-      onChanged();
+      if (transaction_ != null) {
+        bitField0_ |= 0x00000002;
+        onChanged();
+      }
       return this;
     }
     /**
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionResponseOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionResponseOrBuilder.java
index 2cfeba230ed..7076f9f25ac 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionResponseOrBuilder.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PartitionResponseOrBuilder.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/spanner.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 public interface PartitionResponseOrBuilder
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PlanNode.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PlanNode.java
index 708d2a74021..fcfd85d6919 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PlanNode.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PlanNode.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/query_plan.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 /**
@@ -1417,7 +1418,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
 
     @SuppressWarnings({"rawtypes"})
     @java.lang.Override
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+        int number) {
       switch (number) {
         case 2:
           return internalGetSubqueries();
@@ -1802,7 +1804,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       }
 
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(int number) {
+      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+          int number) {
         switch (number) {
           case 2:
             return internalGetSubqueries();
@@ -1812,7 +1815,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
       }
 
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
+          int number) {
         switch (number) {
           case 2:
             return internalGetMutableSubqueries();
@@ -2366,6 +2370,7 @@ public com.google.spanner.v1.PlanNode.ShortRepresentation getDefaultInstanceForT
     }
   }
 
+  private int bitField0_;
   public static final int INDEX_FIELD_NUMBER = 1;
   private int index_ = 0;
   /**
@@ -2564,7 +2569,7 @@ public com.google.spanner.v1.PlanNode.ChildLinkOrBuilder getChildLinksOrBuilder(
    */
   @java.lang.Override
   public boolean hasShortRepresentation() {
-    return shortRepresentation_ != null;
+    return ((bitField0_ & 0x00000001) != 0);
   }
   /**
    *
@@ -2622,7 +2627,7 @@ public com.google.spanner.v1.PlanNode.ShortRepresentation getShortRepresentation
    */
   @java.lang.Override
   public boolean hasMetadata() {
-    return metadata_ != null;
+    return ((bitField0_ & 0x00000002) != 0);
   }
   /**
    *
@@ -2685,7 +2690,7 @@ public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
    */
   @java.lang.Override
   public boolean hasExecutionStats() {
-    return executionStats_ != null;
+    return ((bitField0_ & 0x00000004) != 0);
   }
   /**
    *
@@ -2752,13 +2757,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     for (int i = 0; i < childLinks_.size(); i++) {
       output.writeMessage(4, childLinks_.get(i));
     }
-    if (shortRepresentation_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(5, getShortRepresentation());
     }
-    if (metadata_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       output.writeMessage(6, getMetadata());
     }
-    if (executionStats_ != null) {
+    if (((bitField0_ & 0x00000004) != 0)) {
       output.writeMessage(7, getExecutionStats());
     }
     getUnknownFields().writeTo(output);
@@ -2782,13 +2787,13 @@ public int getSerializedSize() {
     for (int i = 0; i < childLinks_.size(); i++) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, childLinks_.get(i));
     }
-    if (shortRepresentation_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getShortRepresentation());
     }
-    if (metadata_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetadata());
     }
-    if (executionStats_ != null) {
+    if (((bitField0_ & 0x00000004) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getExecutionStats());
     }
     size += getUnknownFields().getSerializedSize();
@@ -2982,10 +2987,22 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     }
 
     // Construct using com.google.spanner.v1.PlanNode.newBuilder()
-    private Builder() {}
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
 
     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
+      maybeForceBuilderInitialization();
+    }
+
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        getChildLinksFieldBuilder();
+        getShortRepresentationFieldBuilder();
+        getMetadataFieldBuilder();
+        getExecutionStatsFieldBuilder();
+      }
     }
 
     @java.lang.Override
@@ -3074,19 +3091,24 @@ private void buildPartial0(com.google.spanner.v1.PlanNode result) {
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.displayName_ = displayName_;
       }
+      int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.shortRepresentation_ =
             shortRepresentationBuilder_ == null
                 ? shortRepresentation_
                 : shortRepresentationBuilder_.build();
+        to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+        to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.executionStats_ =
             executionStatsBuilder_ == null ? executionStats_ : executionStatsBuilder_.build();
+        to_bitField0_ |= 0x00000004;
       }
+      result.bitField0_ |= to_bitField0_;
     }
 
     @java.lang.Override
@@ -4001,8 +4023,10 @@ public Builder mergeShortRepresentation(
       } else {
         shortRepresentationBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000010;
-      onChanged();
+      if (shortRepresentation_ != null) {
+        bitField0_ |= 0x00000010;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -4219,8 +4243,10 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) {
       } else {
         metadataBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000020;
-      onChanged();
+      if (metadata_ != null) {
+        bitField0_ |= 0x00000020;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -4443,8 +4469,10 @@ public Builder mergeExecutionStats(com.google.protobuf.Struct value) {
       } else {
         executionStatsBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000040;
-      onChanged();
+      if (executionStats_ != null) {
+        bitField0_ |= 0x00000040;
+        onChanged();
+      }
       return this;
     }
     /**
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PlanNodeOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PlanNodeOrBuilder.java
index 7a0521e5013..5a4a8d0e666 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PlanNodeOrBuilder.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/PlanNodeOrBuilder.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/query_plan.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 public interface PlanNodeOrBuilder
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/QueryPlan.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/QueryPlan.java
index 3a32a15d36c..41f7d168bf0 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/QueryPlan.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/QueryPlan.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/query_plan.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 /**
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/QueryPlanOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/QueryPlanOrBuilder.java
index 29ddb7fbbc1..97cedd45737 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/QueryPlanOrBuilder.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/QueryPlanOrBuilder.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/query_plan.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 public interface QueryPlanOrBuilder
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/QueryPlanProto.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/QueryPlanProto.java
index 26cd4907b55..141b164d3f9 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/QueryPlanProto.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/QueryPlanProto.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/query_plan.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 public final class QueryPlanProto {
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequest.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequest.java
index d063b3f5338..b503a686741 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequest.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequest.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/spanner.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 /**
@@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
             com.google.spanner.v1.ReadRequest.Builder.class);
   }
 
+  private int bitField0_;
   public static final int SESSION_FIELD_NUMBER = 1;
 
   @SuppressWarnings("serial")
@@ -139,7 +141,7 @@ public com.google.protobuf.ByteString getSessionBytes() {
    */
   @java.lang.Override
   public boolean hasTransaction() {
-    return transaction_ != null;
+    return ((bitField0_ & 0x00000001) != 0);
   }
   /**
    *
@@ -386,7 +388,7 @@ public com.google.protobuf.ByteString getColumnsBytes(int index) {
    */
   @java.lang.Override
   public boolean hasKeySet() {
-    return keySet_ != null;
+    return ((bitField0_ & 0x00000002) != 0);
   }
   /**
    *
@@ -526,7 +528,7 @@ public com.google.protobuf.ByteString getPartitionToken() {
    */
   @java.lang.Override
   public boolean hasRequestOptions() {
-    return requestOptions_ != null;
+    return ((bitField0_ & 0x00000004) != 0);
   }
   /**
    *
@@ -576,7 +578,7 @@ public com.google.spanner.v1.RequestOptionsOrBuilder getRequestOptionsOrBuilder(
    */
   @java.lang.Override
   public boolean hasDirectedReadOptions() {
-    return directedReadOptions_ != null;
+    return ((bitField0_ & 0x00000008) != 0);
   }
   /**
    *
@@ -650,7 +652,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_);
     }
-    if (transaction_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(2, getTransaction());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
@@ -662,7 +664,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     for (int i = 0; i < columns_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, columns_.getRaw(i));
     }
-    if (keySet_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       output.writeMessage(6, getKeySet());
     }
     if (limit_ != 0L) {
@@ -674,10 +676,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!partitionToken_.isEmpty()) {
       output.writeBytes(10, partitionToken_);
     }
-    if (requestOptions_ != null) {
+    if (((bitField0_ & 0x00000004) != 0)) {
       output.writeMessage(11, getRequestOptions());
     }
-    if (directedReadOptions_ != null) {
+    if (((bitField0_ & 0x00000008) != 0)) {
       output.writeMessage(14, getDirectedReadOptions());
     }
     if (dataBoostEnabled_ != false) {
@@ -695,7 +697,7 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_);
     }
-    if (transaction_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTransaction());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
@@ -712,7 +714,7 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getColumnsList().size();
     }
-    if (keySet_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getKeySet());
     }
     if (limit_ != 0L) {
@@ -724,10 +726,10 @@ public int getSerializedSize() {
     if (!partitionToken_.isEmpty()) {
       size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, partitionToken_);
     }
-    if (requestOptions_ != null) {
+    if (((bitField0_ & 0x00000004) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getRequestOptions());
     }
-    if (directedReadOptions_ != null) {
+    if (((bitField0_ & 0x00000008) != 0)) {
       size +=
           com.google.protobuf.CodedOutputStream.computeMessageSize(14, getDirectedReadOptions());
     }
@@ -947,10 +949,22 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     }
 
     // Construct using com.google.spanner.v1.ReadRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
 
     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
+      maybeForceBuilderInitialization();
+    }
+
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        getTransactionFieldBuilder();
+        getKeySetFieldBuilder();
+        getRequestOptionsFieldBuilder();
+        getDirectedReadOptionsFieldBuilder();
+      }
     }
 
     @java.lang.Override
@@ -1023,9 +1037,11 @@ private void buildPartial0(com.google.spanner.v1.ReadRequest result) {
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.session_ = session_;
       }
+      int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.transaction_ =
             transactionBuilder_ == null ? transaction_ : transactionBuilder_.build();
+        to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.table_ = table_;
@@ -1039,6 +1055,7 @@ private void buildPartial0(com.google.spanner.v1.ReadRequest result) {
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.keySet_ = keySetBuilder_ == null ? keySet_ : keySetBuilder_.build();
+        to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.limit_ = limit_;
@@ -1052,16 +1069,19 @@ private void buildPartial0(com.google.spanner.v1.ReadRequest result) {
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.requestOptions_ =
             requestOptionsBuilder_ == null ? requestOptions_ : requestOptionsBuilder_.build();
+        to_bitField0_ |= 0x00000004;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.directedReadOptions_ =
             directedReadOptionsBuilder_ == null
                 ? directedReadOptions_
                 : directedReadOptionsBuilder_.build();
+        to_bitField0_ |= 0x00000008;
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
         result.dataBoostEnabled_ = dataBoostEnabled_;
       }
+      result.bitField0_ |= to_bitField0_;
     }
 
     @java.lang.Override
@@ -1501,8 +1521,10 @@ public Builder mergeTransaction(com.google.spanner.v1.TransactionSelector value)
       } else {
         transactionBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000002;
-      onChanged();
+      if (transaction_ != null) {
+        bitField0_ |= 0x00000002;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -2181,8 +2203,10 @@ public Builder mergeKeySet(com.google.spanner.v1.KeySet value) {
       } else {
         keySetBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000020;
-      onChanged();
+      if (keySet_ != null) {
+        bitField0_ |= 0x00000020;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -2615,8 +2639,10 @@ public Builder mergeRequestOptions(com.google.spanner.v1.RequestOptions value) {
       } else {
         requestOptionsBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000200;
-      onChanged();
+      if (requestOptions_ != null) {
+        bitField0_ |= 0x00000200;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -2800,8 +2826,10 @@ public Builder mergeDirectedReadOptions(com.google.spanner.v1.DirectedReadOption
       } else {
         directedReadOptionsBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000400;
-      onChanged();
+      if (directedReadOptions_ != null) {
+        bitField0_ |= 0x00000400;
+        onChanged();
+      }
       return this;
     }
     /**
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequestOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequestOrBuilder.java
index 9954ab1d609..da87d4db876 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequestOrBuilder.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequestOrBuilder.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/spanner.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 public interface ReadRequestOrBuilder
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RequestOptions.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RequestOptions.java
index fe57a86722c..ae316b92eaf 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RequestOptions.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RequestOptions.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/spanner.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 /**
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RequestOptionsOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RequestOptionsOrBuilder.java
index d7a64132f90..abbc17924dc 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RequestOptionsOrBuilder.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RequestOptionsOrBuilder.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/spanner.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 public interface RequestOptionsOrBuilder
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSet.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSet.java
index 01a9a629734..bbf2cac9a81 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSet.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSet.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/result_set.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 /**
@@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
             com.google.spanner.v1.ResultSet.class, com.google.spanner.v1.ResultSet.Builder.class);
   }
 
+  private int bitField0_;
   public static final int METADATA_FIELD_NUMBER = 1;
   private com.google.spanner.v1.ResultSetMetadata metadata_;
   /**
@@ -77,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    */
   @java.lang.Override
   public boolean hasMetadata() {
-    return metadata_ != null;
+    return ((bitField0_ & 0x00000001) != 0);
   }
   /**
    *
@@ -229,7 +231,7 @@ public com.google.protobuf.ListValueOrBuilder getRowsOrBuilder(int index) {
    */
   @java.lang.Override
   public boolean hasStats() {
-    return stats_ != null;
+    return ((bitField0_ & 0x00000002) != 0);
   }
   /**
    *
@@ -288,13 +290,13 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (metadata_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getMetadata());
     }
     for (int i = 0; i < rows_.size(); i++) {
       output.writeMessage(2, rows_.get(i));
     }
-    if (stats_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       output.writeMessage(3, getStats());
     }
     getUnknownFields().writeTo(output);
@@ -306,13 +308,13 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (metadata_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata());
     }
     for (int i = 0; i < rows_.size(); i++) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, rows_.get(i));
     }
-    if (stats_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStats());
     }
     size += getUnknownFields().getSerializedSize();
@@ -490,10 +492,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     }
 
     // Construct using com.google.spanner.v1.ResultSet.newBuilder()
-    private Builder() {}
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
 
     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
+      maybeForceBuilderInitialization();
+    }
+
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        getMetadataFieldBuilder();
+        getRowsFieldBuilder();
+        getStatsFieldBuilder();
+      }
     }
 
     @java.lang.Override
@@ -565,12 +578,16 @@ private void buildPartialRepeatedFields(com.google.spanner.v1.ResultSet result)
 
     private void buildPartial0(com.google.spanner.v1.ResultSet result) {
       int from_bitField0_ = bitField0_;
+      int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+        to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.stats_ = statsBuilder_ == null ? stats_ : statsBuilder_.build();
+        to_bitField0_ |= 0x00000002;
       }
+      result.bitField0_ |= to_bitField0_;
     }
 
     @java.lang.Override
@@ -822,8 +839,10 @@ public Builder mergeMetadata(com.google.spanner.v1.ResultSetMetadata value) {
       } else {
         metadataBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000001;
-      onChanged();
+      if (metadata_ != null) {
+        bitField0_ |= 0x00000001;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1470,8 +1489,10 @@ public Builder mergeStats(com.google.spanner.v1.ResultSetStats value) {
       } else {
         statsBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000004;
-      onChanged();
+      if (stats_ != null) {
+        bitField0_ |= 0x00000004;
+        onChanged();
+      }
       return this;
     }
     /**
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetMetadata.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetMetadata.java
index 6351c1a5a64..bddb81ea45d 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetMetadata.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetMetadata.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/result_set.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 /**
@@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
             com.google.spanner.v1.ResultSetMetadata.Builder.class);
   }
 
+  private int bitField0_;
   public static final int ROW_TYPE_FIELD_NUMBER = 1;
   private com.google.spanner.v1.StructType rowType_;
   /**
@@ -82,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    */
   @java.lang.Override
   public boolean hasRowType() {
-    return rowType_ != null;
+    return ((bitField0_ & 0x00000001) != 0);
   }
   /**
    *
@@ -143,7 +145,7 @@ public com.google.spanner.v1.StructTypeOrBuilder getRowTypeOrBuilder() {
    */
   @java.lang.Override
   public boolean hasTransaction() {
-    return transaction_ != null;
+    return ((bitField0_ & 0x00000002) != 0);
   }
   /**
    *
@@ -204,7 +206,7 @@ public com.google.spanner.v1.TransactionOrBuilder getTransactionOrBuilder() {
    */
   @java.lang.Override
   public boolean hasUndeclaredParameters() {
-    return undeclaredParameters_ != null;
+    return ((bitField0_ & 0x00000004) != 0);
   }
   /**
    *
@@ -271,13 +273,13 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (rowType_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getRowType());
     }
-    if (transaction_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       output.writeMessage(2, getTransaction());
     }
-    if (undeclaredParameters_ != null) {
+    if (((bitField0_ & 0x00000004) != 0)) {
       output.writeMessage(3, getUndeclaredParameters());
     }
     getUnknownFields().writeTo(output);
@@ -289,13 +291,13 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (rowType_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRowType());
     }
-    if (transaction_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTransaction());
     }
-    if (undeclaredParameters_ != null) {
+    if (((bitField0_ & 0x00000004) != 0)) {
       size +=
           com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUndeclaredParameters());
     }
@@ -478,10 +480,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     }
 
     // Construct using com.google.spanner.v1.ResultSetMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
 
     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
+      maybeForceBuilderInitialization();
+    }
+
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        getRowTypeFieldBuilder();
+        getTransactionFieldBuilder();
+        getUndeclaredParametersFieldBuilder();
+      }
     }
 
     @java.lang.Override
@@ -539,19 +552,24 @@ public com.google.spanner.v1.ResultSetMetadata buildPartial() {
 
     private void buildPartial0(com.google.spanner.v1.ResultSetMetadata result) {
       int from_bitField0_ = bitField0_;
+      int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.rowType_ = rowTypeBuilder_ == null ? rowType_ : rowTypeBuilder_.build();
+        to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.transaction_ =
             transactionBuilder_ == null ? transaction_ : transactionBuilder_.build();
+        to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.undeclaredParameters_ =
             undeclaredParametersBuilder_ == null
                 ? undeclaredParameters_
                 : undeclaredParametersBuilder_.build();
+        to_bitField0_ |= 0x00000004;
       }
+      result.bitField0_ |= to_bitField0_;
     }
 
     @java.lang.Override
@@ -807,8 +825,10 @@ public Builder mergeRowType(com.google.spanner.v1.StructType value) {
       } else {
         rowTypeBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000001;
-      onChanged();
+      if (rowType_ != null) {
+        bitField0_ |= 0x00000001;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1021,8 +1041,10 @@ public Builder mergeTransaction(com.google.spanner.v1.Transaction value) {
       } else {
         transactionBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000002;
-      onChanged();
+      if (transaction_ != null) {
+        bitField0_ |= 0x00000002;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1254,8 +1276,10 @@ public Builder mergeUndeclaredParameters(com.google.spanner.v1.StructType value)
       } else {
         undeclaredParametersBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000004;
-      onChanged();
+      if (undeclaredParameters_ != null) {
+        bitField0_ |= 0x00000004;
+        onChanged();
+      }
       return this;
     }
     /**
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetMetadataOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetMetadataOrBuilder.java
index d8c5f239c77..8d80a5274aa 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetMetadataOrBuilder.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetMetadataOrBuilder.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/result_set.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 public interface ResultSetMetadataOrBuilder
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetOrBuilder.java
index fdff9180d1b..feda8daaaee 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetOrBuilder.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetOrBuilder.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/result_set.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 public interface ResultSetOrBuilder
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetProto.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetProto.java
index 8502d336ef9..e22b1a2e4f3 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetProto.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetProto.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/result_set.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 public final class ResultSetProto {
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetStats.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetStats.java
index 80a08682ca9..3353fca6f38 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetStats.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetStats.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/result_set.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 /**
@@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
             com.google.spanner.v1.ResultSetStats.Builder.class);
   }
 
+  private int bitField0_;
   private int rowCountCase_ = 0;
 
   @SuppressWarnings("serial")
@@ -124,7 +126,7 @@ public RowCountCase getRowCountCase() {
    */
   @java.lang.Override
   public boolean hasQueryPlan() {
-    return queryPlan_ != null;
+    return ((bitField0_ & 0x00000001) != 0);
   }
   /**
    *
@@ -178,7 +180,7 @@ public com.google.spanner.v1.QueryPlanOrBuilder getQueryPlanOrBuilder() {
    */
   @java.lang.Override
   public boolean hasQueryStats() {
-    return queryStats_ != null;
+    return ((bitField0_ & 0x00000002) != 0);
   }
   /**
    *
@@ -311,10 +313,10 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (queryPlan_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getQueryPlan());
     }
-    if (queryStats_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       output.writeMessage(2, getQueryStats());
     }
     if (rowCountCase_ == 3) {
@@ -332,10 +334,10 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (queryPlan_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getQueryPlan());
     }
-    if (queryStats_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQueryStats());
     }
     if (rowCountCase_ == 3) {
@@ -541,10 +543,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     }
 
     // Construct using com.google.spanner.v1.ResultSetStats.newBuilder()
-    private Builder() {}
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
 
     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
+      maybeForceBuilderInitialization();
+    }
+
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        getQueryPlanFieldBuilder();
+        getQueryStatsFieldBuilder();
+      }
     }
 
     @java.lang.Override
@@ -599,12 +611,16 @@ public com.google.spanner.v1.ResultSetStats buildPartial() {
 
     private void buildPartial0(com.google.spanner.v1.ResultSetStats result) {
       int from_bitField0_ = bitField0_;
+      int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.queryPlan_ = queryPlanBuilder_ == null ? queryPlan_ : queryPlanBuilder_.build();
+        to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.queryStats_ = queryStatsBuilder_ == null ? queryStats_ : queryStatsBuilder_.build();
+        to_bitField0_ |= 0x00000002;
       }
+      result.bitField0_ |= to_bitField0_;
     }
 
     private void buildPartialOneofs(com.google.spanner.v1.ResultSetStats result) {
@@ -864,8 +880,10 @@ public Builder mergeQueryPlan(com.google.spanner.v1.QueryPlan value) {
       } else {
         queryPlanBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000001;
-      onChanged();
+      if (queryPlan_ != null) {
+        bitField0_ |= 0x00000001;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1085,8 +1103,10 @@ public Builder mergeQueryStats(com.google.protobuf.Struct value) {
       } else {
         queryStatsBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000002;
-      onChanged();
+      if (queryStats_ != null) {
+        bitField0_ |= 0x00000002;
+        onChanged();
+      }
       return this;
     }
     /**
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetStatsOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetStatsOrBuilder.java
index 04d371b2e3c..687f56a5d42 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetStatsOrBuilder.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ResultSetStatsOrBuilder.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/result_set.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 public interface ResultSetStatsOrBuilder
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RollbackRequest.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RollbackRequest.java
index 7e1dee1e6e5..765b082ef60 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RollbackRequest.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RollbackRequest.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/spanner.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 /**
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RollbackRequestOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RollbackRequestOrBuilder.java
index 980880ba996..e3f93b78616 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RollbackRequestOrBuilder.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RollbackRequestOrBuilder.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/spanner.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 public interface RollbackRequestOrBuilder
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Session.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Session.java
index 1479dcb5d1f..ed8e95fec82 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Session.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Session.java
@@ -16,6 +16,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/spanner/v1/spanner.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.spanner.v1;
 
 /**
@@ -54,7 +55,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+      int number) {
     switch (number) {
       case 2:
         return internalGetLabels();
@@ -72,6 +74,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
             com.google.spanner.v1.Session.class, com.google.spanner.v1.Session.Builder.class);
   }
 
+  private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
 
   @SuppressWarnings("serial")
@@ -273,7 +276,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    */
   @java.lang.Override
   public boolean hasCreateTime() {
-    return createTime_ != null;
+    return ((bitField0_ & 0x00000001) != 0);
   }
   /**
    *
@@ -324,7 +327,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    */
   @java.lang.Override
   public boolean hasApproximateLastUseTime() {
-    return approximateLastUseTime_ != null;
+    return ((bitField0_ & 0x00000002) != 0);
   }
   /**
    *
@@ -416,6 +419,30 @@ public com.google.protobuf.ByteString getCreatorRoleBytes() {
     }
   }
 
+  public static final int MULTIPLEXED_FIELD_NUMBER = 6;
+  private boolean multiplexed_ = false;
+  /**
+   *
+   *
+   * 
+   * Optional. If true, specifies a multiplexed session. A multiplexed session
+   * may be used for multiple, concurrent read-only operations but can not be
+   * used for read-write transactions, partitioned reads, or partitioned
+   * queries. Multiplexed sessions can be created via
+   * [CreateSession][google.spanner.v1.Spanner.CreateSession] but not via
+   * [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions].
+   * Multiplexed sessions may not be deleted nor listed.
+   * 
+ * + * bool multiplexed = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The multiplexed. + */ + @java.lang.Override + public boolean getMultiplexed() { + return multiplexed_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -435,15 +462,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getCreateTime()); } - if (approximateLastUseTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getApproximateLastUseTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creatorRole_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, creatorRole_); } + if (multiplexed_ != false) { + output.writeBool(6, multiplexed_); + } getUnknownFields().writeTo(output); } @@ -466,16 +496,19 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } - if (approximateLastUseTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getApproximateLastUseTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creatorRole_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, creatorRole_); } + if (multiplexed_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, multiplexed_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -502,6 +535,7 @@ public boolean equals(final java.lang.Object obj) { if (!getApproximateLastUseTime().equals(other.getApproximateLastUseTime())) return false; } if (!getCreatorRole().equals(other.getCreatorRole())) return false; + if (getMultiplexed() != other.getMultiplexed()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -529,6 +563,8 @@ public int hashCode() { } hash = (37 * hash) + CREATOR_ROLE_FIELD_NUMBER; hash = (53 * hash) + getCreatorRole().hashCode(); + hash = (37 * hash) + MULTIPLEXED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMultiplexed()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -647,7 +683,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -657,7 +694,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMutableLabels(); @@ -676,10 +714,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.spanner.v1.Session.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getApproximateLastUseTimeFieldBuilder(); + } } @java.lang.Override @@ -699,6 +747,7 @@ public Builder clear() { approximateLastUseTimeBuilder_ = null; } creatorRole_ = ""; + multiplexed_ = false; return this; } @@ -741,18 +790,25 @@ private void buildPartial0(com.google.spanner.v1.Session result) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.approximateLastUseTime_ = approximateLastUseTimeBuilder_ == null ? approximateLastUseTime_ : approximateLastUseTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.creatorRole_ = creatorRole_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.multiplexed_ = multiplexed_; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -818,6 +874,9 @@ public Builder mergeFrom(com.google.spanner.v1.Session other) { bitField0_ |= 0x00000010; onChanged(); } + if (other.getMultiplexed() != false) { + setMultiplexed(other.getMultiplexed()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -881,6 +940,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 48: + { + multiplexed_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1337,8 +1402,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -1544,8 +1611,10 @@ public Builder mergeApproximateLastUseTime(com.google.protobuf.Timestamp value) } else { approximateLastUseTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (approximateLastUseTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -1743,6 +1812,77 @@ public Builder setCreatorRoleBytes(com.google.protobuf.ByteString value) { return this; } + private boolean multiplexed_; + /** + * + * + *
+     * Optional. If true, specifies a multiplexed session. A multiplexed session
+     * may be used for multiple, concurrent read-only operations but can not be
+     * used for read-write transactions, partitioned reads, or partitioned
+     * queries. Multiplexed sessions can be created via
+     * [CreateSession][google.spanner.v1.Spanner.CreateSession] but not via
+     * [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions].
+     * Multiplexed sessions may not be deleted nor listed.
+     * 
+ * + * bool multiplexed = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The multiplexed. + */ + @java.lang.Override + public boolean getMultiplexed() { + return multiplexed_; + } + /** + * + * + *
+     * Optional. If true, specifies a multiplexed session. A multiplexed session
+     * may be used for multiple, concurrent read-only operations but can not be
+     * used for read-write transactions, partitioned reads, or partitioned
+     * queries. Multiplexed sessions can be created via
+     * [CreateSession][google.spanner.v1.Spanner.CreateSession] but not via
+     * [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions].
+     * Multiplexed sessions may not be deleted nor listed.
+     * 
+ * + * bool multiplexed = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The multiplexed to set. + * @return This builder for chaining. + */ + public Builder setMultiplexed(boolean value) { + + multiplexed_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If true, specifies a multiplexed session. A multiplexed session
+     * may be used for multiple, concurrent read-only operations but can not be
+     * used for read-write transactions, partitioned reads, or partitioned
+     * queries. Multiplexed sessions can be created via
+     * [CreateSession][google.spanner.v1.Spanner.CreateSession] but not via
+     * [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions].
+     * Multiplexed sessions may not be deleted nor listed.
+     * 
+ * + * bool multiplexed = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMultiplexed() { + bitField0_ = (bitField0_ & ~0x00000020); + multiplexed_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SessionName.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SessionName.java index 14023e7fcea..6fd690eb101 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SessionName.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SessionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 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/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SessionOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SessionOrBuilder.java index 016b6aeb71a..01220a4a316 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SessionOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SessionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface SessionOrBuilder @@ -252,4 +253,23 @@ java.lang.String getLabelsOrDefault( * @return The bytes for creatorRole. */ com.google.protobuf.ByteString getCreatorRoleBytes(); + + /** + * + * + *
+   * Optional. If true, specifies a multiplexed session. A multiplexed session
+   * may be used for multiple, concurrent read-only operations but can not be
+   * used for read-write transactions, partitioned reads, or partitioned
+   * queries. Multiplexed sessions can be created via
+   * [CreateSession][google.spanner.v1.Spanner.CreateSession] but not via
+   * [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions].
+   * Multiplexed sessions may not be deleted nor listed.
+   * 
+ * + * bool multiplexed = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The multiplexed. + */ + boolean getMultiplexed(); } diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java index a70082261b4..b5f80e4a9d2 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public final class SpannerProto { @@ -185,243 +186,244 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ner/v1/mutation.proto\032\"google/spanner/v1" + "/result_set.proto\032#google/spanner/v1/tra" + "nsaction.proto\032\034google/spanner/v1/type.p" - + "roto\"\205\001\n\024CreateSessionRequest\022:\n\010databas" - + "e\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.googleapis.com" - + "/Database\0221\n\007session\030\002 \001(\0132\032.google.span" - + "ner.v1.SessionB\004\342A\001\002\"\253\001\n\032BatchCreateSess" - + "ionsRequest\022:\n\010database\030\001 \001(\tB(\342A\001\002\372A!\n\037" - + "spanner.googleapis.com/Database\0224\n\020sessi" - + "on_template\030\002 \001(\0132\032.google.spanner.v1.Se" - + "ssion\022\033\n\rsession_count\030\003 \001(\005B\004\342A\001\002\"J\n\033Ba" - + "tchCreateSessionsResponse\022+\n\007session\030\001 \003" - + "(\0132\032.google.spanner.v1.Session\"\214\003\n\007Sessi" - + "on\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0226\n\006labels\030\002 \003(\0132&" - + ".google.spanner.v1.Session.LabelsEntry\0225" - + "\n\013create_time\030\003 \001(\0132\032.google.protobuf.Ti" - + "mestampB\004\342A\001\003\022C\n\031approximate_last_use_ti" - + "me\030\004 \001(\0132\032.google.protobuf.TimestampB\004\342A" - + "\001\003\022\024\n\014creator_role\030\005 \001(\t\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:t\352Aq\n\036sp" - + "anner.googleapis.com/Session\022Oprojects/{" - + "project}/instances/{instance}/databases/" - + "{database}/sessions/{session}\"J\n\021GetSess" - + "ionRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036spann" - + "er.googleapis.com/Session\"\210\001\n\023ListSessio" - + "nsRequest\022:\n\010database\030\001 \001(\tB(\342A\001\002\372A!\n\037sp" - + "anner.googleapis.com/Database\022\021\n\tpage_si" - + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004" - + " \001(\t\"]\n\024ListSessionsResponse\022,\n\010sessions" - + "\030\001 \003(\0132\032.google.spanner.v1.Session\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"M\n\024DeleteSessionRequ" - + "est\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036spanner.goog" - + "leapis.com/Session\"\334\001\n\016RequestOptions\022<\n" - + "\010priority\030\001 \001(\0162*.google.spanner.v1.Requ" - + "estOptions.Priority\022\023\n\013request_tag\030\002 \001(\t" - + "\022\027\n\017transaction_tag\030\003 \001(\t\"^\n\010Priority\022\030\n" - + "\024PRIORITY_UNSPECIFIED\020\000\022\020\n\014PRIORITY_LOW\020" - + "\001\022\023\n\017PRIORITY_MEDIUM\020\002\022\021\n\rPRIORITY_HIGH\020" - + "\003\"\352\004\n\023DirectedReadOptions\022R\n\020include_rep" - + "licas\030\001 \001(\01326.google.spanner.v1.Directed" - + "ReadOptions.IncludeReplicasH\000\022R\n\020exclude" - + "_replicas\030\002 \001(\01326.google.spanner.v1.Dire" - + "ctedReadOptions.ExcludeReplicasH\000\032\255\001\n\020Re" - + "plicaSelection\022\020\n\010location\030\001 \001(\t\022J\n\004type" - + "\030\002 \001(\0162<.google.spanner.v1.DirectedReadO" - + "ptions.ReplicaSelection.Type\";\n\004Type\022\024\n\020" - + "TYPE_UNSPECIFIED\020\000\022\016\n\nREAD_WRITE\020\001\022\r\n\tRE" - + "AD_ONLY\020\002\032\206\001\n\017IncludeReplicas\022S\n\022replica" - + "_selections\030\001 \003(\01327.google.spanner.v1.Di" - + "rectedReadOptions.ReplicaSelection\022\036\n\026au" - + "to_failover_disabled\030\002 \001(\010\032f\n\017ExcludeRep" + + "roto\"\203\001\n\024CreateSessionRequest\0229\n\010databas" + + "e\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.googleapis.com/" + + "Database\0220\n\007session\030\002 \001(\0132\032.google.spann" + + "er.v1.SessionB\003\340A\002\"\251\001\n\032BatchCreateSessio" + + "nsRequest\0229\n\010database\030\001 \001(\tB\'\340A\002\372A!\n\037spa" + + "nner.googleapis.com/Database\0224\n\020session_" + + "template\030\002 \001(\0132\032.google.spanner.v1.Sessi" + + "on\022\032\n\rsession_count\030\003 \001(\005B\003\340A\002\"J\n\033BatchC" + + "reateSessionsResponse\022+\n\007session\030\001 \003(\0132\032" + + ".google.spanner.v1.Session\"\243\003\n\007Session\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\003\0226\n\006labels\030\002 \003(\0132&.goog" + + "le.spanner.v1.Session.LabelsEntry\0224\n\013cre" + + "ate_time\030\003 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022B\n\031approximate_last_use_time\030\004 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\024\n\014c" + + "reator_role\030\005 \001(\t\022\030\n\013multiplexed\030\006 \001(\010B\003" + + "\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001:t\352Aq\n\036spanner.googleapis.com/" + + "Session\022Oprojects/{project}/instances/{i" + + "nstance}/databases/{database}/sessions/{" + + "session}\"I\n\021GetSessionRequest\0224\n\004name\030\001 " + + "\001(\tB&\340A\002\372A \n\036spanner.googleapis.com/Sess" + + "ion\"\207\001\n\023ListSessionsRequest\0229\n\010database\030" + + "\001 \001(\tB\'\340A\002\372A!\n\037spanner.googleapis.com/Da" + + "tabase\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" + + "\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"]\n\024ListSessionsRes" + + "ponse\022,\n\010sessions\030\001 \003(\0132\032.google.spanner" + + ".v1.Session\022\027\n\017next_page_token\030\002 \001(\t\"L\n\024" + + "DeleteSessionRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372" + + "A \n\036spanner.googleapis.com/Session\"\334\001\n\016R" + + "equestOptions\022<\n\010priority\030\001 \001(\0162*.google" + + ".spanner.v1.RequestOptions.Priority\022\023\n\013r" + + "equest_tag\030\002 \001(\t\022\027\n\017transaction_tag\030\003 \001(" + + "\t\"^\n\010Priority\022\030\n\024PRIORITY_UNSPECIFIED\020\000\022" + + "\020\n\014PRIORITY_LOW\020\001\022\023\n\017PRIORITY_MEDIUM\020\002\022\021" + + "\n\rPRIORITY_HIGH\020\003\"\352\004\n\023DirectedReadOption" + + "s\022R\n\020include_replicas\030\001 \001(\01326.google.spa" + + "nner.v1.DirectedReadOptions.IncludeRepli" + + "casH\000\022R\n\020exclude_replicas\030\002 \001(\01326.google" + + ".spanner.v1.DirectedReadOptions.ExcludeR" + + "eplicasH\000\032\255\001\n\020ReplicaSelection\022\020\n\010locati" + + "on\030\001 \001(\t\022J\n\004type\030\002 \001(\0162<.google.spanner." + + "v1.DirectedReadOptions.ReplicaSelection." + + "Type\";\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\016\n\nRE" + + "AD_WRITE\020\001\022\r\n\tREAD_ONLY\020\002\032\206\001\n\017IncludeRep" + "licas\022S\n\022replica_selections\030\001 \003(\01327.goog" + "le.spanner.v1.DirectedReadOptions.Replic" - + "aSelectionB\n\n\010replicas\"\311\006\n\021ExecuteSqlReq" - + "uest\0228\n\007session\030\001 \001(\tB\'\342A\001\002\372A \n\036spanner." - + "googleapis.com/Session\022;\n\013transaction\030\002 " - + "\001(\0132&.google.spanner.v1.TransactionSelec" - + "tor\022\021\n\003sql\030\003 \001(\tB\004\342A\001\002\022\'\n\006params\030\004 \001(\0132\027" - + ".google.protobuf.Struct\022I\n\013param_types\030\005" - + " \003(\01324.google.spanner.v1.ExecuteSqlReque" - + "st.ParamTypesEntry\022\024\n\014resume_token\030\006 \001(\014" - + "\022B\n\nquery_mode\030\007 \001(\0162..google.spanner.v1" - + ".ExecuteSqlRequest.QueryMode\022\027\n\017partitio" - + "n_token\030\010 \001(\014\022\r\n\005seqno\030\t \001(\003\022H\n\rquery_op" - + "tions\030\n \001(\01321.google.spanner.v1.ExecuteS" - + "qlRequest.QueryOptions\022:\n\017request_option" - + "s\030\013 \001(\0132!.google.spanner.v1.RequestOptio" - + "ns\022E\n\025directed_read_options\030\017 \001(\0132&.goog" - + "le.spanner.v1.DirectedReadOptions\022\032\n\022dat" - + "a_boost_enabled\030\020 \001(\010\032O\n\014QueryOptions\022\031\n" - + "\021optimizer_version\030\001 \001(\t\022$\n\034optimizer_st" - + "atistics_package\030\002 \001(\t\032J\n\017ParamTypesEntr" - + "y\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027.google.s" - + "panner.v1.Type:\0028\001\".\n\tQueryMode\022\n\n\006NORMA" - + "L\020\000\022\010\n\004PLAN\020\001\022\013\n\007PROFILE\020\002\"\245\004\n\026ExecuteBa" - + "tchDmlRequest\0228\n\007session\030\001 \001(\tB\'\342A\001\002\372A \n" - + "\036spanner.googleapis.com/Session\022A\n\013trans" - + "action\030\002 \001(\0132&.google.spanner.v1.Transac" - + "tionSelectorB\004\342A\001\002\022M\n\nstatements\030\003 \003(\01323" - + ".google.spanner.v1.ExecuteBatchDmlReques" - + "t.StatementB\004\342A\001\002\022\023\n\005seqno\030\004 \001(\003B\004\342A\001\002\022:" - + "\n\017request_options\030\005 \001(\0132!.google.spanner" - + ".v1.RequestOptions\032\355\001\n\tStatement\022\021\n\003sql\030" - + "\001 \001(\tB\004\342A\001\002\022\'\n\006params\030\002 \001(\0132\027.google.pro" - + "tobuf.Struct\022X\n\013param_types\030\003 \003(\0132C.goog" - + "le.spanner.v1.ExecuteBatchDmlRequest.Sta" - + "tement.ParamTypesEntry\032J\n\017ParamTypesEntr" - + "y\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027.google.s" - + "panner.v1.Type:\0028\001\"p\n\027ExecuteBatchDmlRes" - + "ponse\0221\n\013result_sets\030\001 \003(\0132\034.google.span" - + "ner.v1.ResultSet\022\"\n\006status\030\002 \001(\0132\022.googl" - + "e.rpc.Status\"H\n\020PartitionOptions\022\034\n\024part" - + "ition_size_bytes\030\001 \001(\003\022\026\n\016max_partitions" - + "\030\002 \001(\003\"\245\003\n\025PartitionQueryRequest\0228\n\007sess" - + "ion\030\001 \001(\tB\'\342A\001\002\372A \n\036spanner.googleapis.c" - + "om/Session\022;\n\013transaction\030\002 \001(\0132&.google" - + ".spanner.v1.TransactionSelector\022\021\n\003sql\030\003" - + " \001(\tB\004\342A\001\002\022\'\n\006params\030\004 \001(\0132\027.google.prot" - + "obuf.Struct\022M\n\013param_types\030\005 \003(\01328.googl" - + "e.spanner.v1.PartitionQueryRequest.Param" - + "TypesEntry\022>\n\021partition_options\030\006 \001(\0132#." - + "google.spanner.v1.PartitionOptions\032J\n\017Pa" - + "ramTypesEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 \001(" - + "\0132\027.google.spanner.v1.Type:\0028\001\"\264\002\n\024Parti" - + "tionReadRequest\0228\n\007session\030\001 \001(\tB\'\342A\001\002\372A" - + " \n\036spanner.googleapis.com/Session\022;\n\013tra" - + "nsaction\030\002 \001(\0132&.google.spanner.v1.Trans" - + "actionSelector\022\023\n\005table\030\003 \001(\tB\004\342A\001\002\022\r\n\005i" - + "ndex\030\004 \001(\t\022\017\n\007columns\030\005 \003(\t\0220\n\007key_set\030\006" - + " \001(\0132\031.google.spanner.v1.KeySetB\004\342A\001\002\022>\n" - + "\021partition_options\030\t \001(\0132#.google.spanne" - + "r.v1.PartitionOptions\"$\n\tPartition\022\027\n\017pa" - + "rtition_token\030\001 \001(\014\"z\n\021PartitionResponse" - + "\0220\n\npartitions\030\001 \003(\0132\034.google.spanner.v1" - + ".Partition\0223\n\013transaction\030\002 \001(\0132\036.google" - + ".spanner.v1.Transaction\"\316\003\n\013ReadRequest\022" - + "8\n\007session\030\001 \001(\tB\'\342A\001\002\372A \n\036spanner.googl" - + "eapis.com/Session\022;\n\013transaction\030\002 \001(\0132&" - + ".google.spanner.v1.TransactionSelector\022\023" - + "\n\005table\030\003 \001(\tB\004\342A\001\002\022\r\n\005index\030\004 \001(\t\022\025\n\007co" - + "lumns\030\005 \003(\tB\004\342A\001\002\0220\n\007key_set\030\006 \001(\0132\031.goo" - + "gle.spanner.v1.KeySetB\004\342A\001\002\022\r\n\005limit\030\010 \001" + + "aSelection\022\036\n\026auto_failover_disabled\030\002 \001" + + "(\010\032f\n\017ExcludeReplicas\022S\n\022replica_selecti" + + "ons\030\001 \003(\01327.google.spanner.v1.DirectedRe" + + "adOptions.ReplicaSelectionB\n\n\010replicas\"\307" + + "\006\n\021ExecuteSqlRequest\0227\n\007session\030\001 \001(\tB&\340" + + "A\002\372A \n\036spanner.googleapis.com/Session\022;\n" + + "\013transaction\030\002 \001(\0132&.google.spanner.v1.T" + + "ransactionSelector\022\020\n\003sql\030\003 \001(\tB\003\340A\002\022\'\n\006" + + "params\030\004 \001(\0132\027.google.protobuf.Struct\022I\n" + + "\013param_types\030\005 \003(\01324.google.spanner.v1.E" + + "xecuteSqlRequest.ParamTypesEntry\022\024\n\014resu" + + "me_token\030\006 \001(\014\022B\n\nquery_mode\030\007 \001(\0162..goo" + + "gle.spanner.v1.ExecuteSqlRequest.QueryMo" + + "de\022\027\n\017partition_token\030\010 \001(\014\022\r\n\005seqno\030\t \001" + + "(\003\022H\n\rquery_options\030\n \001(\01321.google.spann" + + "er.v1.ExecuteSqlRequest.QueryOptions\022:\n\017" + + "request_options\030\013 \001(\0132!.google.spanner.v" + + "1.RequestOptions\022E\n\025directed_read_option" + + "s\030\017 \001(\0132&.google.spanner.v1.DirectedRead" + + "Options\022\032\n\022data_boost_enabled\030\020 \001(\010\032O\n\014Q" + + "ueryOptions\022\031\n\021optimizer_version\030\001 \001(\t\022$" + + "\n\034optimizer_statistics_package\030\002 \001(\t\032J\n\017" + + "ParamTypesEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 " + + "\001(\0132\027.google.spanner.v1.Type:\0028\001\".\n\tQuer" + + "yMode\022\n\n\006NORMAL\020\000\022\010\n\004PLAN\020\001\022\013\n\007PROFILE\020\002" + + "\"\240\004\n\026ExecuteBatchDmlRequest\0227\n\007session\030\001" + + " \001(\tB&\340A\002\372A \n\036spanner.googleapis.com/Ses" + + "sion\022@\n\013transaction\030\002 \001(\0132&.google.spann" + + "er.v1.TransactionSelectorB\003\340A\002\022L\n\nstatem" + + "ents\030\003 \003(\01323.google.spanner.v1.ExecuteBa" + + "tchDmlRequest.StatementB\003\340A\002\022\022\n\005seqno\030\004 " + + "\001(\003B\003\340A\002\022:\n\017request_options\030\005 \001(\0132!.goog" + + "le.spanner.v1.RequestOptions\032\354\001\n\tStateme" + + "nt\022\020\n\003sql\030\001 \001(\tB\003\340A\002\022\'\n\006params\030\002 \001(\0132\027.g" + + "oogle.protobuf.Struct\022X\n\013param_types\030\003 \003" + + "(\0132C.google.spanner.v1.ExecuteBatchDmlRe" + + "quest.Statement.ParamTypesEntry\032J\n\017Param" + + "TypesEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027" + + ".google.spanner.v1.Type:\0028\001\"p\n\027ExecuteBa" + + "tchDmlResponse\0221\n\013result_sets\030\001 \003(\0132\034.go" + + "ogle.spanner.v1.ResultSet\022\"\n\006status\030\002 \001(" + + "\0132\022.google.rpc.Status\"H\n\020PartitionOption" + + "s\022\034\n\024partition_size_bytes\030\001 \001(\003\022\026\n\016max_p" + + "artitions\030\002 \001(\003\"\243\003\n\025PartitionQueryReques" + + "t\0227\n\007session\030\001 \001(\tB&\340A\002\372A \n\036spanner.goog" + + "leapis.com/Session\022;\n\013transaction\030\002 \001(\0132" + + "&.google.spanner.v1.TransactionSelector\022" + + "\020\n\003sql\030\003 \001(\tB\003\340A\002\022\'\n\006params\030\004 \001(\0132\027.goog" + + "le.protobuf.Struct\022M\n\013param_types\030\005 \003(\0132" + + "8.google.spanner.v1.PartitionQueryReques" + + "t.ParamTypesEntry\022>\n\021partition_options\030\006" + + " \001(\0132#.google.spanner.v1.PartitionOption" + + "s\032J\n\017ParamTypesEntry\022\013\n\003key\030\001 \001(\t\022&\n\005val" + + "ue\030\002 \001(\0132\027.google.spanner.v1.Type:\0028\001\"\261\002" + + "\n\024PartitionReadRequest\0227\n\007session\030\001 \001(\tB" + + "&\340A\002\372A \n\036spanner.googleapis.com/Session\022" + + ";\n\013transaction\030\002 \001(\0132&.google.spanner.v1" + + ".TransactionSelector\022\022\n\005table\030\003 \001(\tB\003\340A\002" + + "\022\r\n\005index\030\004 \001(\t\022\017\n\007columns\030\005 \003(\t\022/\n\007key_" + + "set\030\006 \001(\0132\031.google.spanner.v1.KeySetB\003\340A" + + "\002\022>\n\021partition_options\030\t \001(\0132#.google.sp" + + "anner.v1.PartitionOptions\"$\n\tPartition\022\027" + + "\n\017partition_token\030\001 \001(\014\"z\n\021PartitionResp" + + "onse\0220\n\npartitions\030\001 \003(\0132\034.google.spanne" + + "r.v1.Partition\0223\n\013transaction\030\002 \001(\0132\036.go" + + "ogle.spanner.v1.Transaction\"\312\003\n\013ReadRequ" + + "est\0227\n\007session\030\001 \001(\tB&\340A\002\372A \n\036spanner.go" + + "ogleapis.com/Session\022;\n\013transaction\030\002 \001(" + + "\0132&.google.spanner.v1.TransactionSelecto" + + "r\022\022\n\005table\030\003 \001(\tB\003\340A\002\022\r\n\005index\030\004 \001(\t\022\024\n\007" + + "columns\030\005 \003(\tB\003\340A\002\022/\n\007key_set\030\006 \001(\0132\031.go" + + "ogle.spanner.v1.KeySetB\003\340A\002\022\r\n\005limit\030\010 \001" + "(\003\022\024\n\014resume_token\030\t \001(\014\022\027\n\017partition_to" + "ken\030\n \001(\014\022:\n\017request_options\030\013 \001(\0132!.goo" + "gle.spanner.v1.RequestOptions\022E\n\025directe" + "d_read_options\030\016 \001(\0132&.google.spanner.v1" + ".DirectedReadOptions\022\032\n\022data_boost_enabl" - + "ed\030\017 \001(\010\"\315\001\n\027BeginTransactionRequest\0228\n\007" - + "session\030\001 \001(\tB\'\342A\001\002\372A \n\036spanner.googleap" - + "is.com/Session\022<\n\007options\030\002 \001(\0132%.google" - + ".spanner.v1.TransactionOptionsB\004\342A\001\002\022:\n\017" - + "request_options\030\003 \001(\0132!.google.spanner.v" - + "1.RequestOptions\"\377\002\n\rCommitRequest\0228\n\007se" - + "ssion\030\001 \001(\tB\'\342A\001\002\372A \n\036spanner.googleapis" - + ".com/Session\022\030\n\016transaction_id\030\002 \001(\014H\000\022G" - + "\n\026single_use_transaction\030\003 \001(\0132%.google." - + "spanner.v1.TransactionOptionsH\000\022.\n\tmutat" - + "ions\030\004 \003(\0132\033.google.spanner.v1.Mutation\022" - + "\033\n\023return_commit_stats\030\005 \001(\010\0229\n\020max_comm" - + "it_delay\030\010 \001(\0132\031.google.protobuf.Duratio" - + "nB\004\342A\001\001\022:\n\017request_options\030\006 \001(\0132!.googl" - + "e.spanner.v1.RequestOptionsB\r\n\013transacti" - + "on\"i\n\017RollbackRequest\0228\n\007session\030\001 \001(\tB\'" - + "\342A\001\002\372A \n\036spanner.googleapis.com/Session\022" - + "\034\n\016transaction_id\030\002 \001(\014B\004\342A\001\002\"\243\002\n\021BatchW" - + "riteRequest\0228\n\007session\030\001 \001(\tB\'\342A\001\002\372A \n\036s" - + "panner.googleapis.com/Session\022:\n\017request" - + "_options\030\003 \001(\0132!.google.spanner.v1.Reque" - + "stOptions\022Q\n\017mutation_groups\030\004 \003(\01322.goo" - + "gle.spanner.v1.BatchWriteRequest.Mutatio" - + "nGroupB\004\342A\001\002\032E\n\rMutationGroup\0224\n\tmutatio" - + "ns\030\001 \003(\0132\033.google.spanner.v1.MutationB\004\342" - + "A\001\002\"\177\n\022BatchWriteResponse\022\017\n\007indexes\030\001 \003" - + "(\005\022\"\n\006status\030\002 \001(\0132\022.google.rpc.Status\0224" - + "\n\020commit_timestamp\030\003 \001(\0132\032.google.protob" - + "uf.Timestamp2\213\030\n\007Spanner\022\246\001\n\rCreateSessi" - + "on\022\'.google.spanner.v1.CreateSessionRequ" - + "est\032\032.google.spanner.v1.Session\"P\332A\010data" - + "base\202\323\344\223\002?\":/v1/{database=projects/*/ins" - + "tances/*/databases/*}/sessions:\001*\022\340\001\n\023Ba" - + "tchCreateSessions\022-.google.spanner.v1.Ba" - + "tchCreateSessionsRequest\032..google.spanne" - + "r.v1.BatchCreateSessionsResponse\"j\332A\026dat" - + "abase,session_count\202\323\344\223\002K\"F/v1/{database" - + "=projects/*/instances/*/databases/*}/ses" - + "sions:batchCreate:\001*\022\227\001\n\nGetSession\022$.go" - + "ogle.spanner.v1.GetSessionRequest\032\032.goog" - + "le.spanner.v1.Session\"G\332A\004name\202\323\344\223\002:\0228/v" - + "1/{name=projects/*/instances/*/databases" - + "/*/sessions/*}\022\256\001\n\014ListSessions\022&.google" - + ".spanner.v1.ListSessionsRequest\032\'.google" - + ".spanner.v1.ListSessionsResponse\"M\332A\010dat" - + "abase\202\323\344\223\002<\022:/v1/{database=projects/*/in" - + "stances/*/databases/*}/sessions\022\231\001\n\rDele" - + "teSession\022\'.google.spanner.v1.DeleteSess" - + "ionRequest\032\026.google.protobuf.Empty\"G\332A\004n" - + "ame\202\323\344\223\002:*8/v1/{name=projects/*/instance" - + "s/*/databases/*/sessions/*}\022\243\001\n\nExecuteS" - + "ql\022$.google.spanner.v1.ExecuteSqlRequest" - + "\032\034.google.spanner.v1.ResultSet\"Q\202\323\344\223\002K\"F" - + "/v1/{session=projects/*/instances/*/data" - + "bases/*/sessions/*}:executeSql:\001*\022\276\001\n\023Ex" - + "ecuteStreamingSql\022$.google.spanner.v1.Ex" - + "ecuteSqlRequest\032#.google.spanner.v1.Part" - + "ialResultSet\"Z\202\323\344\223\002T\"O/v1/{session=proje" - + "cts/*/instances/*/databases/*/sessions/*" - + "}:executeStreamingSql:\001*0\001\022\300\001\n\017ExecuteBa" - + "tchDml\022).google.spanner.v1.ExecuteBatchD" - + "mlRequest\032*.google.spanner.v1.ExecuteBat" - + "chDmlResponse\"V\202\323\344\223\002P\"K/v1/{session=proj" + + "ed\030\017 \001(\010\"\313\001\n\027BeginTransactionRequest\0227\n\007" + + "session\030\001 \001(\tB&\340A\002\372A \n\036spanner.googleapi" + + "s.com/Session\022;\n\007options\030\002 \001(\0132%.google." + + "spanner.v1.TransactionOptionsB\003\340A\002\022:\n\017re" + + "quest_options\030\003 \001(\0132!.google.spanner.v1." + + "RequestOptions\"\375\002\n\rCommitRequest\0227\n\007sess" + + "ion\030\001 \001(\tB&\340A\002\372A \n\036spanner.googleapis.co" + + "m/Session\022\030\n\016transaction_id\030\002 \001(\014H\000\022G\n\026s" + + "ingle_use_transaction\030\003 \001(\0132%.google.spa" + + "nner.v1.TransactionOptionsH\000\022.\n\tmutation" + + "s\030\004 \003(\0132\033.google.spanner.v1.Mutation\022\033\n\023" + + "return_commit_stats\030\005 \001(\010\0228\n\020max_commit_" + + "delay\030\010 \001(\0132\031.google.protobuf.DurationB\003" + + "\340A\001\022:\n\017request_options\030\006 \001(\0132!.google.sp" + + "anner.v1.RequestOptionsB\r\n\013transaction\"g" + + "\n\017RollbackRequest\0227\n\007session\030\001 \001(\tB&\340A\002\372" + + "A \n\036spanner.googleapis.com/Session\022\033\n\016tr" + + "ansaction_id\030\002 \001(\014B\003\340A\002\"\316\002\n\021BatchWriteRe" + + "quest\0227\n\007session\030\001 \001(\tB&\340A\002\372A \n\036spanner." + + "googleapis.com/Session\022:\n\017request_option" + + "s\030\003 \001(\0132!.google.spanner.v1.RequestOptio" + + "ns\022P\n\017mutation_groups\030\004 \003(\01322.google.spa" + + "nner.v1.BatchWriteRequest.MutationGroupB" + + "\003\340A\002\022,\n\037exclude_txn_from_change_streams\030" + + "\005 \001(\010B\003\340A\001\032D\n\rMutationGroup\0223\n\tmutations" + + "\030\001 \003(\0132\033.google.spanner.v1.MutationB\003\340A\002" + + "\"\177\n\022BatchWriteResponse\022\017\n\007indexes\030\001 \003(\005\022" + + "\"\n\006status\030\002 \001(\0132\022.google.rpc.Status\0224\n\020c" + + "ommit_timestamp\030\003 \001(\0132\032.google.protobuf." + + "Timestamp2\213\030\n\007Spanner\022\246\001\n\rCreateSession\022" + + "\'.google.spanner.v1.CreateSessionRequest" + + "\032\032.google.spanner.v1.Session\"P\332A\010databas" + + "e\202\323\344\223\002?\":/v1/{database=projects/*/instan" + + "ces/*/databases/*}/sessions:\001*\022\340\001\n\023Batch" + + "CreateSessions\022-.google.spanner.v1.Batch" + + "CreateSessionsRequest\032..google.spanner.v" + + "1.BatchCreateSessionsResponse\"j\332A\026databa" + + "se,session_count\202\323\344\223\002K\"F/v1/{database=pr" + + "ojects/*/instances/*/databases/*}/sessio" + + "ns:batchCreate:\001*\022\227\001\n\nGetSession\022$.googl" + + "e.spanner.v1.GetSessionRequest\032\032.google." + + "spanner.v1.Session\"G\332A\004name\202\323\344\223\002:\0228/v1/{" + + "name=projects/*/instances/*/databases/*/" + + "sessions/*}\022\256\001\n\014ListSessions\022&.google.sp" + + "anner.v1.ListSessionsRequest\032\'.google.sp" + + "anner.v1.ListSessionsResponse\"M\332A\010databa" + + "se\202\323\344\223\002<\022:/v1/{database=projects/*/insta" + + "nces/*/databases/*}/sessions\022\231\001\n\rDeleteS" + + "ession\022\'.google.spanner.v1.DeleteSession" + + "Request\032\026.google.protobuf.Empty\"G\332A\004name" + + "\202\323\344\223\002:*8/v1/{name=projects/*/instances/*" + + "/databases/*/sessions/*}\022\243\001\n\nExecuteSql\022" + + "$.google.spanner.v1.ExecuteSqlRequest\032\034." + + "google.spanner.v1.ResultSet\"Q\202\323\344\223\002K\"F/v1" + + "/{session=projects/*/instances/*/databas" + + "es/*/sessions/*}:executeSql:\001*\022\276\001\n\023Execu" + + "teStreamingSql\022$.google.spanner.v1.Execu" + + "teSqlRequest\032#.google.spanner.v1.Partial" + + "ResultSet\"Z\202\323\344\223\002T\"O/v1/{session=projects" + + "/*/instances/*/databases/*/sessions/*}:e" + + "xecuteStreamingSql:\001*0\001\022\300\001\n\017ExecuteBatch" + + "Dml\022).google.spanner.v1.ExecuteBatchDmlR" + + "equest\032*.google.spanner.v1.ExecuteBatchD" + + "mlResponse\"V\202\323\344\223\002P\"K/v1/{session=project" + + "s/*/instances/*/databases/*/sessions/*}:" + + "executeBatchDml:\001*\022\221\001\n\004Read\022\036.google.spa" + + "nner.v1.ReadRequest\032\034.google.spanner.v1." + + "ResultSet\"K\202\323\344\223\002E\"@/v1/{session=projects" + + "/*/instances/*/databases/*/sessions/*}:r" + + "ead:\001*\022\254\001\n\rStreamingRead\022\036.google.spanne" + + "r.v1.ReadRequest\032#.google.spanner.v1.Par" + + "tialResultSet\"T\202\323\344\223\002N\"I/v1/{session=proj" + "ects/*/instances/*/databases/*/sessions/" - + "*}:executeBatchDml:\001*\022\221\001\n\004Read\022\036.google." - + "spanner.v1.ReadRequest\032\034.google.spanner." - + "v1.ResultSet\"K\202\323\344\223\002E\"@/v1/{session=proje" - + "cts/*/instances/*/databases/*/sessions/*" - + "}:read:\001*\022\254\001\n\rStreamingRead\022\036.google.spa" - + "nner.v1.ReadRequest\032#.google.spanner.v1." - + "PartialResultSet\"T\202\323\344\223\002N\"I/v1/{session=p" + + "*}:streamingRead:\001*0\001\022\311\001\n\020BeginTransacti" + + "on\022*.google.spanner.v1.BeginTransactionR" + + "equest\032\036.google.spanner.v1.Transaction\"i" + + "\332A\017session,options\202\323\344\223\002Q\"L/v1/{session=p" + "rojects/*/instances/*/databases/*/sessio" - + "ns/*}:streamingRead:\001*0\001\022\311\001\n\020BeginTransa" - + "ction\022*.google.spanner.v1.BeginTransacti" - + "onRequest\032\036.google.spanner.v1.Transactio" - + "n\"i\332A\017session,options\202\323\344\223\002Q\"L/v1/{sessio" - + "n=projects/*/instances/*/databases/*/ses" - + "sions/*}:beginTransaction:\001*\022\353\001\n\006Commit\022" - + " .google.spanner.v1.CommitRequest\032!.goog" - + "le.spanner.v1.CommitResponse\"\233\001\332A sessio" - + "n,transaction_id,mutations\332A(session,sin" - + "gle_use_transaction,mutations\202\323\344\223\002G\"B/v1" - + "/{session=projects/*/instances/*/databas" - + "es/*/sessions/*}:commit:\001*\022\260\001\n\010Rollback\022" - + "\".google.spanner.v1.RollbackRequest\032\026.go" - + "ogle.protobuf.Empty\"h\332A\026session,transact" - + "ion_id\202\323\344\223\002I\"D/v1/{session=projects/*/in" - + "stances/*/databases/*/sessions/*}:rollba" - + "ck:\001*\022\267\001\n\016PartitionQuery\022(.google.spanne" - + "r.v1.PartitionQueryRequest\032$.google.span" - + "ner.v1.PartitionResponse\"U\202\323\344\223\002O\"J/v1/{s" + + "ns/*}:beginTransaction:\001*\022\353\001\n\006Commit\022 .g" + + "oogle.spanner.v1.CommitRequest\032!.google." + + "spanner.v1.CommitResponse\"\233\001\332A session,t" + + "ransaction_id,mutations\332A(session,single" + + "_use_transaction,mutations\202\323\344\223\002G\"B/v1/{s" + "ession=projects/*/instances/*/databases/" - + "*/sessions/*}:partitionQuery:\001*\022\264\001\n\rPart" - + "itionRead\022\'.google.spanner.v1.PartitionR" - + "eadRequest\032$.google.spanner.v1.Partition" - + "Response\"T\202\323\344\223\002N\"I/v1/{session=projects/" - + "*/instances/*/databases/*/sessions/*}:pa" - + "rtitionRead:\001*\022\310\001\n\nBatchWrite\022$.google.s" - + "panner.v1.BatchWriteRequest\032%.google.spa" - + "nner.v1.BatchWriteResponse\"k\332A\027session,m" - + "utation_groups\202\323\344\223\002K\"F/v1/{session=proje" - + "cts/*/instances/*/databases/*/sessions/*" - + "}:batchWrite:\001*0\001\032w\312A\026spanner.googleapis" - + ".com\322A[https://www.googleapis.com/auth/c" - + "loud-platform,https://www.googleapis.com" - + "/auth/spanner.dataB\221\002\n\025com.google.spanne" - + "r.v1B\014SpannerProtoP\001Z5cloud.google.com/g" - + "o/spanner/apiv1/spannerpb;spannerpb\252\002\027Go" - + "ogle.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spa" - + "nner\\V1\352\002\032Google::Cloud::Spanner::V1\352A_\n" - + "\037spanner.googleapis.com/Database\022 + * When `exclude_txn_from_change_streams` is set to `true`: + * * Mutations from this transaction will not be recorded in change streams + * with DDL option `allow_txn_exclusion=true` that are tracking columns + * modified by these transactions. + * * Mutations from this transaction will be recorded in change streams with + * DDL option `allow_txn_exclusion=false or not set` that are tracking + * columns modified by these transactions. + * + * When `exclude_txn_from_change_streams` is set to `false` or not set, + * mutations from this transaction will be recorded in all change streams that + * are tracking columns modified by these transactions. + * `exclude_txn_from_change_streams` may only be specified for read-write or + * partitioned-dml transactions, otherwise the API will return an + * `INVALID_ARGUMENT` error. + *
+ * + * bool exclude_txn_from_change_streams = 5; + * + * @return The excludeTxnFromChangeStreams. + */ + @java.lang.Override + public boolean getExcludeTxnFromChangeStreams() { + return excludeTxnFromChangeStreams_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4619,6 +4651,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (modeCase_ == 3) { output.writeMessage(3, (com.google.spanner.v1.TransactionOptions.PartitionedDml) mode_); } + if (excludeTxnFromChangeStreams_ != false) { + output.writeBool(5, excludeTxnFromChangeStreams_); + } getUnknownFields().writeTo(output); } @@ -4643,6 +4678,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.spanner.v1.TransactionOptions.PartitionedDml) mode_); } + if (excludeTxnFromChangeStreams_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(5, excludeTxnFromChangeStreams_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4658,6 +4697,7 @@ public boolean equals(final java.lang.Object obj) { } com.google.spanner.v1.TransactionOptions other = (com.google.spanner.v1.TransactionOptions) obj; + if (getExcludeTxnFromChangeStreams() != other.getExcludeTxnFromChangeStreams()) return false; if (!getModeCase().equals(other.getModeCase())) return false; switch (modeCase_) { case 1: @@ -4683,6 +4723,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXCLUDE_TXN_FROM_CHANGE_STREAMS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExcludeTxnFromChangeStreams()); switch (modeCase_) { case 1: hash = (37 * hash) + READ_WRITE_FIELD_NUMBER; @@ -5170,6 +5212,7 @@ public Builder clear() { if (readOnlyBuilder_ != null) { readOnlyBuilder_.clear(); } + excludeTxnFromChangeStreams_ = false; modeCase_ = 0; mode_ = null; return this; @@ -5209,6 +5252,9 @@ public com.google.spanner.v1.TransactionOptions buildPartial() { private void buildPartial0(com.google.spanner.v1.TransactionOptions result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.excludeTxnFromChangeStreams_ = excludeTxnFromChangeStreams_; + } } private void buildPartialOneofs(com.google.spanner.v1.TransactionOptions result) { @@ -5270,6 +5316,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.spanner.v1.TransactionOptions other) { if (other == com.google.spanner.v1.TransactionOptions.getDefaultInstance()) return this; + if (other.getExcludeTxnFromChangeStreams() != false) { + setExcludeTxnFromChangeStreams(other.getExcludeTxnFromChangeStreams()); + } switch (other.getModeCase()) { case READ_WRITE: { @@ -5335,6 +5384,12 @@ public Builder mergeFrom( modeCase_ = 3; break; } // case 26 + case 40: + { + excludeTxnFromChangeStreams_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6108,6 +6163,98 @@ public com.google.spanner.v1.TransactionOptions.ReadOnlyOrBuilder getReadOnlyOrB return readOnlyBuilder_; } + private boolean excludeTxnFromChangeStreams_; + /** + * + * + *
+     * When `exclude_txn_from_change_streams` is set to `true`:
+     *  * Mutations from this transaction will not be recorded in change streams
+     *  with DDL option `allow_txn_exclusion=true` that are tracking columns
+     *  modified by these transactions.
+     *  * Mutations from this transaction will be recorded in change streams with
+     *  DDL option `allow_txn_exclusion=false or not set` that are tracking
+     *  columns modified by these transactions.
+     *
+     * When `exclude_txn_from_change_streams` is set to `false` or not set,
+     * mutations from this transaction will be recorded in all change streams that
+     * are tracking columns modified by these transactions.
+     * `exclude_txn_from_change_streams` may only be specified for read-write or
+     * partitioned-dml transactions, otherwise the API will return an
+     * `INVALID_ARGUMENT` error.
+     * 
+ * + * bool exclude_txn_from_change_streams = 5; + * + * @return The excludeTxnFromChangeStreams. + */ + @java.lang.Override + public boolean getExcludeTxnFromChangeStreams() { + return excludeTxnFromChangeStreams_; + } + /** + * + * + *
+     * When `exclude_txn_from_change_streams` is set to `true`:
+     *  * Mutations from this transaction will not be recorded in change streams
+     *  with DDL option `allow_txn_exclusion=true` that are tracking columns
+     *  modified by these transactions.
+     *  * Mutations from this transaction will be recorded in change streams with
+     *  DDL option `allow_txn_exclusion=false or not set` that are tracking
+     *  columns modified by these transactions.
+     *
+     * When `exclude_txn_from_change_streams` is set to `false` or not set,
+     * mutations from this transaction will be recorded in all change streams that
+     * are tracking columns modified by these transactions.
+     * `exclude_txn_from_change_streams` may only be specified for read-write or
+     * partitioned-dml transactions, otherwise the API will return an
+     * `INVALID_ARGUMENT` error.
+     * 
+ * + * bool exclude_txn_from_change_streams = 5; + * + * @param value The excludeTxnFromChangeStreams to set. + * @return This builder for chaining. + */ + public Builder setExcludeTxnFromChangeStreams(boolean value) { + + excludeTxnFromChangeStreams_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * When `exclude_txn_from_change_streams` is set to `true`:
+     *  * Mutations from this transaction will not be recorded in change streams
+     *  with DDL option `allow_txn_exclusion=true` that are tracking columns
+     *  modified by these transactions.
+     *  * Mutations from this transaction will be recorded in change streams with
+     *  DDL option `allow_txn_exclusion=false or not set` that are tracking
+     *  columns modified by these transactions.
+     *
+     * When `exclude_txn_from_change_streams` is set to `false` or not set,
+     * mutations from this transaction will be recorded in all change streams that
+     * are tracking columns modified by these transactions.
+     * `exclude_txn_from_change_streams` may only be specified for read-write or
+     * partitioned-dml transactions, otherwise the API will return an
+     * `INVALID_ARGUMENT` error.
+     * 
+ * + * bool exclude_txn_from_change_streams = 5; + * + * @return This builder for chaining. + */ + public Builder clearExcludeTxnFromChangeStreams() { + bitField0_ = (bitField0_ & ~0x00000008); + excludeTxnFromChangeStreams_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionOptionsOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionOptionsOrBuilder.java index 664342882d7..4e5c8092881 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionOptionsOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionOptionsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/transaction.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface TransactionOptionsOrBuilder @@ -164,5 +165,31 @@ public interface TransactionOptionsOrBuilder */ com.google.spanner.v1.TransactionOptions.ReadOnlyOrBuilder getReadOnlyOrBuilder(); + /** + * + * + *
+   * When `exclude_txn_from_change_streams` is set to `true`:
+   *  * Mutations from this transaction will not be recorded in change streams
+   *  with DDL option `allow_txn_exclusion=true` that are tracking columns
+   *  modified by these transactions.
+   *  * Mutations from this transaction will be recorded in change streams with
+   *  DDL option `allow_txn_exclusion=false or not set` that are tracking
+   *  columns modified by these transactions.
+   *
+   * When `exclude_txn_from_change_streams` is set to `false` or not set,
+   * mutations from this transaction will be recorded in all change streams that
+   * are tracking columns modified by these transactions.
+   * `exclude_txn_from_change_streams` may only be specified for read-write or
+   * partitioned-dml transactions, otherwise the API will return an
+   * `INVALID_ARGUMENT` error.
+   * 
+ * + * bool exclude_txn_from_change_streams = 5; + * + * @return The excludeTxnFromChangeStreams. + */ + boolean getExcludeTxnFromChangeStreams(); + com.google.spanner.v1.TransactionOptions.ModeCase getModeCase(); } diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionOrBuilder.java index 6be2098c5a5..6cca06a7b39 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/transaction.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface TransactionOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionProto.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionProto.java index 64345550705..567a7fa3e12 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionProto.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/transaction.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public final class TransactionProto { @@ -63,36 +64,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n#google/spanner/v1/transaction.proto\022\021g" + "oogle.spanner.v1\032\036google/protobuf/durati" + "on.proto\032\037google/protobuf/timestamp.prot" - + "o\"\353\005\n\022TransactionOptions\022E\n\nread_write\030\001" + + "o\"\224\006\n\022TransactionOptions\022E\n\nread_write\030\001" + " \001(\0132/.google.spanner.v1.TransactionOpti" + "ons.ReadWriteH\000\022O\n\017partitioned_dml\030\003 \001(\013" + "24.google.spanner.v1.TransactionOptions." + "PartitionedDmlH\000\022C\n\tread_only\030\002 \001(\0132..go" + "ogle.spanner.v1.TransactionOptions.ReadO" - + "nlyH\000\032\262\001\n\tReadWrite\022T\n\016read_lock_mode\030\001 " - + "\001(\0162<.google.spanner.v1.TransactionOptio" - + "ns.ReadWrite.ReadLockMode\"O\n\014ReadLockMod" - + "e\022\036\n\032READ_LOCK_MODE_UNSPECIFIED\020\000\022\017\n\013PES" - + "SIMISTIC\020\001\022\016\n\nOPTIMISTIC\020\002\032\020\n\016Partitione" - + "dDml\032\250\002\n\010ReadOnly\022\020\n\006strong\030\001 \001(\010H\000\0228\n\022m" - + "in_read_timestamp\030\002 \001(\0132\032.google.protobu" - + "f.TimestampH\000\0222\n\rmax_staleness\030\003 \001(\0132\031.g" - + "oogle.protobuf.DurationH\000\0224\n\016read_timest" - + "amp\030\004 \001(\0132\032.google.protobuf.TimestampH\000\022" - + "4\n\017exact_staleness\030\005 \001(\0132\031.google.protob" - + "uf.DurationH\000\022\035\n\025return_read_timestamp\030\006" - + " \001(\010B\021\n\017timestamp_boundB\006\n\004mode\"M\n\013Trans" - + "action\022\n\n\002id\030\001 \001(\014\0222\n\016read_timestamp\030\002 \001" - + "(\0132\032.google.protobuf.Timestamp\"\244\001\n\023Trans" - + "actionSelector\022;\n\nsingle_use\030\001 \001(\0132%.goo" - + "gle.spanner.v1.TransactionOptionsH\000\022\014\n\002i" - + "d\030\002 \001(\014H\000\0226\n\005begin\030\003 \001(\0132%.google.spanne" - + "r.v1.TransactionOptionsH\000B\n\n\010selectorB\263\001" - + "\n\025com.google.spanner.v1B\020TransactionProt" - + "oP\001Z5cloud.google.com/go/spanner/apiv1/s" - + "pannerpb;spannerpb\252\002\027Google.Cloud.Spanne" - + "r.V1\312\002\027Google\\Cloud\\Spanner\\V1\352\002\032Google:" - + ":Cloud::Spanner::V1b\006proto3" + + "nlyH\000\022\'\n\037exclude_txn_from_change_streams" + + "\030\005 \001(\010\032\262\001\n\tReadWrite\022T\n\016read_lock_mode\030\001" + + " \001(\0162<.google.spanner.v1.TransactionOpti" + + "ons.ReadWrite.ReadLockMode\"O\n\014ReadLockMo" + + "de\022\036\n\032READ_LOCK_MODE_UNSPECIFIED\020\000\022\017\n\013PE" + + "SSIMISTIC\020\001\022\016\n\nOPTIMISTIC\020\002\032\020\n\016Partition" + + "edDml\032\250\002\n\010ReadOnly\022\020\n\006strong\030\001 \001(\010H\000\0228\n\022" + + "min_read_timestamp\030\002 \001(\0132\032.google.protob" + + "uf.TimestampH\000\0222\n\rmax_staleness\030\003 \001(\0132\031." + + "google.protobuf.DurationH\000\0224\n\016read_times" + + "tamp\030\004 \001(\0132\032.google.protobuf.TimestampH\000" + + "\0224\n\017exact_staleness\030\005 \001(\0132\031.google.proto" + + "buf.DurationH\000\022\035\n\025return_read_timestamp\030" + + "\006 \001(\010B\021\n\017timestamp_boundB\006\n\004mode\"M\n\013Tran" + + "saction\022\n\n\002id\030\001 \001(\014\0222\n\016read_timestamp\030\002 " + + "\001(\0132\032.google.protobuf.Timestamp\"\244\001\n\023Tran" + + "sactionSelector\022;\n\nsingle_use\030\001 \001(\0132%.go" + + "ogle.spanner.v1.TransactionOptionsH\000\022\014\n\002" + + "id\030\002 \001(\014H\000\0226\n\005begin\030\003 \001(\0132%.google.spann" + + "er.v1.TransactionOptionsH\000B\n\n\010selectorB\263" + + "\001\n\025com.google.spanner.v1B\020TransactionPro" + + "toP\001Z5cloud.google.com/go/spanner/apiv1/" + + "spannerpb;spannerpb\252\002\027Google.Cloud.Spann" + + "er.V1\312\002\027Google\\Cloud\\Spanner\\V1\352\002\032Google" + + "::Cloud::Spanner::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -107,7 +109,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_v1_TransactionOptions_descriptor, new java.lang.String[] { - "ReadWrite", "PartitionedDml", "ReadOnly", "Mode", + "ReadWrite", "PartitionedDml", "ReadOnly", "ExcludeTxnFromChangeStreams", "Mode", }); internal_static_google_spanner_v1_TransactionOptions_ReadWrite_descriptor = internal_static_google_spanner_v1_TransactionOptions_descriptor.getNestedTypes().get(0); diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionSelector.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionSelector.java index bc5eb512bf0..ae725f56d17 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionSelector.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionSelector.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/transaction.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionSelectorOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionSelectorOrBuilder.java index 9f29f994607..34885ebb801 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionSelectorOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TransactionSelectorOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/transaction.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface TransactionSelectorOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Type.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Type.java index e51a9282f0a..76f8fd8d3a6 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Type.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/Type.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/type.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.spanner.v1.Type.class, com.google.spanner.v1.Type.Builder.class); } + private int bitField0_; public static final int CODE_FIELD_NUMBER = 1; private int code_ = 0; /** @@ -112,7 +114,7 @@ public com.google.spanner.v1.TypeCode getCode() { */ @java.lang.Override public boolean hasArrayElementType() { - return arrayElementType_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -165,7 +167,7 @@ public com.google.spanner.v1.TypeOrBuilder getArrayElementTypeOrBuilder() { */ @java.lang.Override public boolean hasStructType() { - return structType_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -323,10 +325,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (code_ != com.google.spanner.v1.TypeCode.TYPE_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } - if (arrayElementType_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getArrayElementType()); } - if (structType_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getStructType()); } if (typeAnnotation_ @@ -348,10 +350,10 @@ public int getSerializedSize() { if (code_ != com.google.spanner.v1.TypeCode.TYPE_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } - if (arrayElementType_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getArrayElementType()); } - if (structType_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStructType()); } if (typeAnnotation_ @@ -539,10 +541,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.spanner.v1.Type.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getArrayElementTypeFieldBuilder(); + getStructTypeFieldBuilder(); + } } @java.lang.Override @@ -599,12 +611,15 @@ private void buildPartial0(com.google.spanner.v1.Type result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.code_ = code_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.arrayElementType_ = arrayElementTypeBuilder_ == null ? arrayElementType_ : arrayElementTypeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.structType_ = structTypeBuilder_ == null ? structType_ : structTypeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.typeAnnotation_ = typeAnnotation_; @@ -612,6 +627,7 @@ private void buildPartial0(com.google.spanner.v1.Type result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.protoTypeFqn_ = protoTypeFqn_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -948,8 +964,10 @@ public Builder mergeArrayElementType(com.google.spanner.v1.Type value) { } else { arrayElementTypeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (arrayElementType_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1140,8 +1158,10 @@ public Builder mergeStructType(com.google.spanner.v1.StructType value) { } else { structTypeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (structType_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeAnnotationCode.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeAnnotationCode.java index 2a74f743be4..fa62d273262 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeAnnotationCode.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeAnnotationCode.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/type.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeCode.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeCode.java index 0af42e8582f..5ae3db905be 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeCode.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeCode.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/type.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; /** diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeOrBuilder.java index 79c2028861f..7c26fec6a77 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeOrBuilder.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/type.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public interface TypeOrBuilder diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeProto.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeProto.java index fdd1c65338c..7863f76bfbc 100644 --- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeProto.java +++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/type.proto +// Protobuf Java Version: 3.25.2 package com.google.spanner.v1; public final class TypeProto { @@ -50,28 +51,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n\034google/spanner/v1/type.proto\022\021google.s" + "panner.v1\032\037google/api/field_behavior.pro" - + "to\"\370\001\n\004Type\022/\n\004code\030\001 \001(\0162\033.google.spann" - + "er.v1.TypeCodeB\004\342A\001\002\0223\n\022array_element_ty" - + "pe\030\002 \001(\0132\027.google.spanner.v1.Type\0222\n\013str" - + "uct_type\030\003 \001(\0132\035.google.spanner.v1.Struc" - + "tType\022>\n\017type_annotation\030\004 \001(\0162%.google." - + "spanner.v1.TypeAnnotationCode\022\026\n\016proto_t" - + "ype_fqn\030\005 \001(\t\"\177\n\nStructType\0223\n\006fields\030\001 " - + "\003(\0132#.google.spanner.v1.StructType.Field" - + "\032<\n\005Field\022\014\n\004name\030\001 \001(\t\022%\n\004type\030\002 \001(\0132\027." - + "google.spanner.v1.Type*\307\001\n\010TypeCode\022\031\n\025T" - + "YPE_CODE_UNSPECIFIED\020\000\022\010\n\004BOOL\020\001\022\t\n\005INT6" - + "4\020\002\022\013\n\007FLOAT64\020\003\022\013\n\007FLOAT32\020\017\022\r\n\tTIMESTA" - + "MP\020\004\022\010\n\004DATE\020\005\022\n\n\006STRING\020\006\022\t\n\005BYTES\020\007\022\t\n" - + "\005ARRAY\020\010\022\n\n\006STRUCT\020\t\022\013\n\007NUMERIC\020\n\022\010\n\004JSO" - + "N\020\013\022\t\n\005PROTO\020\r\022\010\n\004ENUM\020\016*d\n\022TypeAnnotati" - + "onCode\022$\n TYPE_ANNOTATION_CODE_UNSPECIFI" - + "ED\020\000\022\016\n\nPG_NUMERIC\020\002\022\014\n\010PG_JSONB\020\003\022\n\n\006PG" - + "_OID\020\004B\254\001\n\025com.google.spanner.v1B\tTypePr" - + "otoP\001Z5cloud.google.com/go/spanner/apiv1" - + "/spannerpb;spannerpb\252\002\027Google.Cloud.Span" - + "ner.V1\312\002\027Google\\Cloud\\Spanner\\V1\352\002\032Googl" - + "e::Cloud::Spanner::V1b\006proto3" + + "to\"\367\001\n\004Type\022.\n\004code\030\001 \001(\0162\033.google.spann" + + "er.v1.TypeCodeB\003\340A\002\0223\n\022array_element_typ" + + "e\030\002 \001(\0132\027.google.spanner.v1.Type\0222\n\013stru" + + "ct_type\030\003 \001(\0132\035.google.spanner.v1.Struct" + + "Type\022>\n\017type_annotation\030\004 \001(\0162%.google.s" + + "panner.v1.TypeAnnotationCode\022\026\n\016proto_ty" + + "pe_fqn\030\005 \001(\t\"\177\n\nStructType\0223\n\006fields\030\001 \003" + + "(\0132#.google.spanner.v1.StructType.Field\032" + + "<\n\005Field\022\014\n\004name\030\001 \001(\t\022%\n\004type\030\002 \001(\0132\027.g" + + "oogle.spanner.v1.Type*\307\001\n\010TypeCode\022\031\n\025TY" + + "PE_CODE_UNSPECIFIED\020\000\022\010\n\004BOOL\020\001\022\t\n\005INT64" + + "\020\002\022\013\n\007FLOAT64\020\003\022\013\n\007FLOAT32\020\017\022\r\n\tTIMESTAM" + + "P\020\004\022\010\n\004DATE\020\005\022\n\n\006STRING\020\006\022\t\n\005BYTES\020\007\022\t\n\005" + + "ARRAY\020\010\022\n\n\006STRUCT\020\t\022\013\n\007NUMERIC\020\n\022\010\n\004JSON" + + "\020\013\022\t\n\005PROTO\020\r\022\010\n\004ENUM\020\016*d\n\022TypeAnnotatio" + + "nCode\022$\n TYPE_ANNOTATION_CODE_UNSPECIFIE" + + "D\020\000\022\016\n\nPG_NUMERIC\020\002\022\014\n\010PG_JSONB\020\003\022\n\n\006PG_" + + "OID\020\004B\254\001\n\025com.google.spanner.v1B\tTypePro" + + "toP\001Z5cloud.google.com/go/spanner/apiv1/" + + "spannerpb;spannerpb\252\002\027Google.Cloud.Spann" + + "er.V1\312\002\027Google\\Cloud\\Spanner\\V1\352\002\032Google" + + "::Cloud::Spanner::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-spanner-v1/src/main/proto/google/spanner/v1/spanner.proto b/proto-google-cloud-spanner-v1/src/main/proto/google/spanner/v1/spanner.proto index 5f26cea11fc..440ebf78546 100644 --- a/proto-google-cloud-spanner-v1/src/main/proto/google/spanner/v1/spanner.proto +++ b/proto-google-cloud-spanner-v1/src/main/proto/google/spanner/v1/spanner.proto @@ -402,6 +402,15 @@ message Session { // The database role which created this session. string creator_role = 5; + + // Optional. If true, specifies a multiplexed session. A multiplexed session + // may be used for multiple, concurrent read-only operations but can not be + // used for read-write transactions, partitioned reads, or partitioned + // queries. Multiplexed sessions can be created via + // [CreateSession][google.spanner.v1.Spanner.CreateSession] but not via + // [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions]. + // Multiplexed sessions may not be deleted nor listed. + bool multiplexed = 6 [(google.api.field_behavior) = OPTIONAL]; } // The request for [GetSession][google.spanner.v1.Spanner.GetSession]. @@ -546,7 +555,7 @@ message DirectedReadOptions { // * `location:us-east1` --> The "us-east1" replica(s) of any available type // will be used to process the request. // * `type:READ_ONLY` --> The "READ_ONLY" type replica(s) in nearest - // . available location will be used to process the + // available location will be used to process the // request. // * `location:us-east1 type:READ_ONLY` --> The "READ_ONLY" type replica(s) // in location "us-east1" will be used to process @@ -590,8 +599,7 @@ message DirectedReadOptions { repeated ReplicaSelection replica_selections = 1; } - // Required. Replicas indicates the order in which replicas should be - // considered. At most one of either include_replicas or exclude_replicas + // Required. At most one of either include_replicas or exclude_replicas // should be present in the message. oneof replicas { // Include_replicas indicates the order of replicas (as they appear in @@ -601,8 +609,9 @@ message DirectedReadOptions { // may fail due to `DEADLINE_EXCEEDED` errors. IncludeReplicas include_replicas = 1; - // Exclude_replicas indicates that should be excluded from serving - // requests. Spanner will not route requests to the replicas in this list. + // Exclude_replicas indicates that specified replicas should be excluded + // from serving requests. Spanner will not route requests to the replicas + // in this list. ExcludeReplicas exclude_replicas = 2; } } @@ -928,9 +937,10 @@ message PartitionQueryRequest { // Required. The query request to generate partitions for. The request will // fail if the query is not root partitionable. For a query to be root - // partitionable, it needs to satisfy a few conditions. For example, the first - // operator in the query execution plan must be a distributed union operator. - // For more information about other conditions, see [Read data in + // partitionable, it needs to satisfy a few conditions. For example, if the + // query execution plan contains a distributed union operator, then it must be + // the first operator in the plan. For more information about other + // conditions, see [Read data in // parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel). // // The query request must not contain DML commands, such as INSERT, UPDATE, or @@ -1210,6 +1220,21 @@ message BatchWriteRequest { // Required. The groups of mutations to be applied. repeated MutationGroup mutation_groups = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. When `exclude_txn_from_change_streams` is set to `true`: + // * Mutations from all transactions in this batch write operation will not + // be recorded in change streams with DDL option `allow_txn_exclusion=true` + // that are tracking columns modified by these transactions. + // * Mutations from all transactions in this batch write operation will be + // recorded in change streams with DDL option `allow_txn_exclusion=false or + // not set` that are tracking columns modified by these transactions. + // + // When `exclude_txn_from_change_streams` is set to `false` or not set, + // mutations from all transactions in this batch write operation will be + // recorded in all change streams that are tracking columns modified by these + // transactions. + bool exclude_txn_from_change_streams = 5 + [(google.api.field_behavior) = OPTIONAL]; } // The result of applying a batch of mutations. diff --git a/proto-google-cloud-spanner-v1/src/main/proto/google/spanner/v1/transaction.proto b/proto-google-cloud-spanner-v1/src/main/proto/google/spanner/v1/transaction.proto index 4b7fe4a9dd9..e3f22ee3c98 100644 --- a/proto-google-cloud-spanner-v1/src/main/proto/google/spanner/v1/transaction.proto +++ b/proto-google-cloud-spanner-v1/src/main/proto/google/spanner/v1/transaction.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -475,6 +475,22 @@ message TransactionOptions { // on the `session` resource. ReadOnly read_only = 2; } + + // When `exclude_txn_from_change_streams` is set to `true`: + // * Mutations from this transaction will not be recorded in change streams + // with DDL option `allow_txn_exclusion=true` that are tracking columns + // modified by these transactions. + // * Mutations from this transaction will be recorded in change streams with + // DDL option `allow_txn_exclusion=false or not set` that are tracking + // columns modified by these transactions. + // + // When `exclude_txn_from_change_streams` is set to `false` or not set, + // mutations from this transaction will be recorded in all change streams that + // are tracking columns modified by these transactions. + // `exclude_txn_from_change_streams` may only be specified for read-write or + // partitioned-dml transactions, otherwise the API will return an + // `INVALID_ARGUMENT` error. + bool exclude_txn_from_change_streams = 5; } // A transaction.