diff --git a/generation_config.yaml b/generation_config.yaml index 1463b4e076..9a958fc413 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,4 +1,4 @@ -googleapis_commitish: 5f6048b0222ddc57826fbbd254ea3197e2db82f3 +googleapis_commitish: 208f19890d8e0a4a5bc772584246c973ff57f6c1 # the libraries are ordered with respect to library name, which is # java-{library.library_name} or java-{library.api-shortname} when # library.library_name is not defined. diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java index d6c715f9db..6f2797ece9 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java @@ -65,7 +65,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030google/api/backend.proto\022\n" + "google.api\"1\n" + "\007Backend\022&\n" - + "\005rules\030\001 \003(\0132\027.google.api.BackendRule\"\262\004\n" + + "\005rules\030\001 \003(\0132\027.google.api.BackendRule\"\321\004\n" + "\013BackendRule\022\020\n" + "\010selector\030\001 \001(\t\022\017\n" + "\007address\030\002 \001(\t\022\020\n" @@ -78,7 +78,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014disable_auth\030\010 \001(\010H\000\022\020\n" + "\010protocol\030\t \001(\t\022^\n" + "\035overrides_by_request_protocol\030\n" - + " \003(\01327.google.api.BackendRule.OverridesByRequestProtocolEntry\032Z\n" + + " \003(\01327.google.api.BackendRule.OverridesByRequestProtocolEntry\022\035\n" + + "\025load_balancing_policy\030\013 \001(\t\032Z\n" + "\037OverridesByRequestProtocolEntry\022\013\n" + "\003key\030\001 \001(\t\022&\n" + "\005value\030\002 \001(\0132\027.google.api.BackendRule:\0028\001\"e\n" @@ -87,8 +88,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020CONSTANT_ADDRESS\020\001\022\032\n" + "\026APPEND_PATH_TO_ADDRESS\020\002B\020\n" + "\016authenticationBn\n" - + "\016com.google.apiB\014BackendProtoP\001ZEgoogle.golang.org/genproto/goo" - + "gleapis/api/serviceconfig;serviceconfig\242\002\004GAPIb\006proto3" + + "\016com.google.apiB\014BackendProtoP\001ZEgoogle.golang.org/genproto/googleapis/a" + + "pi/serviceconfig;serviceconfig\242\002\004GAPIb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -115,6 +116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisableAuth", "Protocol", "OverridesByRequestProtocol", + "LoadBalancingPolicy", "Authentication", }); internal_static_google_api_BackendRule_OverridesByRequestProtocolEntry_descriptor = diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java index f21406c92a..627149be5e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java @@ -56,6 +56,7 @@ private BackendRule() { address_ = ""; pathTranslation_ = 0; protocol_ = ""; + loadBalancingPolicy_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -589,6 +590,15 @@ public double getOperationDeadline() { private int pathTranslation_ = 0; /** + * + * + *
+ * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + *+ * *
.google.api.BackendRule.PathTranslation path_translation = 6;
*
* @return The enum numeric value on the wire for pathTranslation.
@@ -599,6 +609,15 @@ public int getPathTranslationValue() {
}
/**
+ *
+ *
+ * + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + *+ * *
.google.api.BackendRule.PathTranslation path_translation = 6;
*
* @return The pathTranslation.
@@ -941,6 +960,67 @@ public com.google.api.BackendRule getOverridesByRequestProtocolOrThrow(java.lang
return map.get(key);
}
+ public static final int LOAD_BALANCING_POLICY_FIELD_NUMBER = 11;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object loadBalancingPolicy_ = "";
+
+ /**
+ *
+ *
+ * + * The load balancing policy used for connection to the application backend. + * + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + *+ * + *
string load_balancing_policy = 11;
+ *
+ * @return The loadBalancingPolicy.
+ */
+ @java.lang.Override
+ public java.lang.String getLoadBalancingPolicy() {
+ java.lang.Object ref = loadBalancingPolicy_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ loadBalancingPolicy_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The load balancing policy used for connection to the application backend. + * + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + *+ * + *
string load_balancing_policy = 11;
+ *
+ * @return The bytes for loadBalancingPolicy.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getLoadBalancingPolicyBytes() {
+ java.lang.Object ref = loadBalancingPolicy_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ loadBalancingPolicy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -988,6 +1068,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
internalGetOverridesByRequestProtocol(),
OverridesByRequestProtocolDefaultEntryHolder.defaultEntry,
10);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(loadBalancingPolicy_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 11, loadBalancingPolicy_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1040,6 +1123,9 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
10, overridesByRequestProtocol__);
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(loadBalancingPolicy_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(11, loadBalancingPolicy_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1067,6 +1153,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getProtocol().equals(other.getProtocol())) return false;
if (!internalGetOverridesByRequestProtocol()
.equals(other.internalGetOverridesByRequestProtocol())) return false;
+ if (!getLoadBalancingPolicy().equals(other.getLoadBalancingPolicy())) return false;
if (!getAuthenticationCase().equals(other.getAuthenticationCase())) return false;
switch (authenticationCase_) {
case 7:
@@ -1116,6 +1203,8 @@ public int hashCode() {
hash = (37 * hash) + OVERRIDES_BY_REQUEST_PROTOCOL_FIELD_NUMBER;
hash = (53 * hash) + internalGetOverridesByRequestProtocol().hashCode();
}
+ hash = (37 * hash) + LOAD_BALANCING_POLICY_FIELD_NUMBER;
+ hash = (53 * hash) + getLoadBalancingPolicy().hashCode();
switch (authenticationCase_) {
case 7:
hash = (37 * hash) + JWT_AUDIENCE_FIELD_NUMBER;
@@ -1294,6 +1383,7 @@ public Builder clear() {
pathTranslation_ = 0;
protocol_ = "";
internalGetMutableOverridesByRequestProtocol().clear();
+ loadBalancingPolicy_ = "";
authenticationCase_ = 0;
authentication_ = null;
return this;
@@ -1357,6 +1447,9 @@ private void buildPartial0(com.google.api.BackendRule result) {
internalGetOverridesByRequestProtocol()
.build(OverridesByRequestProtocolDefaultEntryHolder.defaultEntry);
}
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.loadBalancingPolicy_ = loadBalancingPolicy_;
+ }
}
private void buildPartialOneofs(com.google.api.BackendRule result) {
@@ -1406,6 +1499,11 @@ public Builder mergeFrom(com.google.api.BackendRule other) {
internalGetMutableOverridesByRequestProtocol()
.mergeFrom(other.internalGetOverridesByRequestProtocol());
bitField0_ |= 0x00000200;
+ if (!other.getLoadBalancingPolicy().isEmpty()) {
+ loadBalancingPolicy_ = other.loadBalancingPolicy_;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ }
switch (other.getAuthenticationCase()) {
case JWT_AUDIENCE:
{
@@ -1521,6 +1619,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000200;
break;
} // case 82
+ case 90:
+ {
+ loadBalancingPolicy_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 90
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2072,6 +2176,15 @@ public Builder clearOperationDeadline() {
private int pathTranslation_ = 0;
/**
+ *
+ *
+ * + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + *+ * *
.google.api.BackendRule.PathTranslation path_translation = 6;
*
* @return The enum numeric value on the wire for pathTranslation.
@@ -2082,6 +2195,15 @@ public int getPathTranslationValue() {
}
/**
+ *
+ *
+ * + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + *+ * *
.google.api.BackendRule.PathTranslation path_translation = 6;
*
* @param value The enum numeric value on the wire for pathTranslation to set.
@@ -2095,6 +2217,15 @@ public Builder setPathTranslationValue(int value) {
}
/**
+ *
+ *
+ * + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + *+ * *
.google.api.BackendRule.PathTranslation path_translation = 6;
*
* @return The pathTranslation.
@@ -2107,6 +2238,15 @@ public com.google.api.BackendRule.PathTranslation getPathTranslation() {
}
/**
+ *
+ *
+ * + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + *+ * *
.google.api.BackendRule.PathTranslation path_translation = 6;
*
* @param value The pathTranslation to set.
@@ -2123,6 +2263,15 @@ public Builder setPathTranslation(com.google.api.BackendRule.PathTranslation val
}
/**
+ *
+ *
+ * + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + *+ * *
.google.api.BackendRule.PathTranslation path_translation = 6;
*
* @return This builder for chaining.
@@ -2827,6 +2976,137 @@ public com.google.api.BackendRule.Builder putOverridesByRequestProtocolBuilderIf
return (com.google.api.BackendRule.Builder) entry;
}
+ private java.lang.Object loadBalancingPolicy_ = "";
+
+ /**
+ *
+ *
+ * + * The load balancing policy used for connection to the application backend. + * + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + *+ * + *
string load_balancing_policy = 11;
+ *
+ * @return The loadBalancingPolicy.
+ */
+ public java.lang.String getLoadBalancingPolicy() {
+ java.lang.Object ref = loadBalancingPolicy_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ loadBalancingPolicy_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The load balancing policy used for connection to the application backend. + * + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + *+ * + *
string load_balancing_policy = 11;
+ *
+ * @return The bytes for loadBalancingPolicy.
+ */
+ public com.google.protobuf.ByteString getLoadBalancingPolicyBytes() {
+ java.lang.Object ref = loadBalancingPolicy_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ loadBalancingPolicy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The load balancing policy used for connection to the application backend. + * + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + *+ * + *
string load_balancing_policy = 11;
+ *
+ * @param value The loadBalancingPolicy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLoadBalancingPolicy(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ loadBalancingPolicy_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The load balancing policy used for connection to the application backend. + * + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + *+ * + *
string load_balancing_policy = 11;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLoadBalancingPolicy() {
+ loadBalancingPolicy_ = getDefaultInstance().getLoadBalancingPolicy();
+ bitField0_ = (bitField0_ & ~0x00000400);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The load balancing policy used for connection to the application backend. + * + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + *+ * + *
string load_balancing_policy = 11;
+ *
+ * @param value The bytes for loadBalancingPolicy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLoadBalancingPolicyBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ loadBalancingPolicy_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.api.BackendRule)
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java
index 1adcf011da..6017784e63 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java
@@ -167,6 +167,15 @@ public interface BackendRuleOrBuilder
double getOperationDeadline();
/**
+ *
+ *
+ * + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + *+ * *
.google.api.BackendRule.PathTranslation path_translation = 6;
*
* @return The enum numeric value on the wire for pathTranslation.
@@ -174,6 +183,15 @@ public interface BackendRuleOrBuilder
int getPathTranslationValue();
/**
+ *
+ *
+ * + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + *+ * *
.google.api.BackendRule.PathTranslation path_translation = 6;
*
* @return The pathTranslation.
@@ -386,5 +404,39 @@ com.google.api.BackendRule getOverridesByRequestProtocolOrDefault(
*/
com.google.api.BackendRule getOverridesByRequestProtocolOrThrow(java.lang.String key);
+ /**
+ *
+ *
+ * + * The load balancing policy used for connection to the application backend. + * + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + *+ * + *
string load_balancing_policy = 11;
+ *
+ * @return The loadBalancingPolicy.
+ */
+ java.lang.String getLoadBalancingPolicy();
+
+ /**
+ *
+ *
+ * + * The load balancing policy used for connection to the application backend. + * + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + *+ * + *
string load_balancing_policy = 11;
+ *
+ * @return The bytes for loadBalancingPolicy.
+ */
+ com.google.protobuf.ByteString getLoadBalancingPolicyBytes();
+
com.google.api.BackendRule.AuthenticationCase getAuthenticationCase();
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BatchingConfigProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BatchingConfigProto.java
new file mode 100644
index 0000000000..109cd1e0fe
--- /dev/null
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BatchingConfigProto.java
@@ -0,0 +1,974 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/api/client.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.api;
+
+/**
+ *
+ *
+ * + * `BatchingConfigProto` defines the batching configuration for an API method. + *+ * + * Protobuf type {@code google.api.BatchingConfigProto} + */ +@com.google.protobuf.Generated +public final class BatchingConfigProto extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.api.BatchingConfigProto) + BatchingConfigProtoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BatchingConfigProto"); + } + + // Use BatchingConfigProto.newBuilder() to construct. + private BatchingConfigProto(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private BatchingConfigProto() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.api.ClientProto.internal_static_google_api_BatchingConfigProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.api.ClientProto + .internal_static_google_api_BatchingConfigProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.api.BatchingConfigProto.class, + com.google.api.BatchingConfigProto.Builder.class); + } + + private int bitField0_; + public static final int THRESHOLDS_FIELD_NUMBER = 1; + private com.google.api.BatchingSettingsProto thresholds_; + + /** + * + * + *
+ * The thresholds which trigger a batched request to be sent. + *+ * + *
.google.api.BatchingSettingsProto thresholds = 1;
+ *
+ * @return Whether the thresholds field is set.
+ */
+ @java.lang.Override
+ public boolean hasThresholds() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The thresholds which trigger a batched request to be sent. + *+ * + *
.google.api.BatchingSettingsProto thresholds = 1;
+ *
+ * @return The thresholds.
+ */
+ @java.lang.Override
+ public com.google.api.BatchingSettingsProto getThresholds() {
+ return thresholds_ == null
+ ? com.google.api.BatchingSettingsProto.getDefaultInstance()
+ : thresholds_;
+ }
+
+ /**
+ *
+ *
+ * + * The thresholds which trigger a batched request to be sent. + *+ * + *
.google.api.BatchingSettingsProto thresholds = 1;
+ */
+ @java.lang.Override
+ public com.google.api.BatchingSettingsProtoOrBuilder getThresholdsOrBuilder() {
+ return thresholds_ == null
+ ? com.google.api.BatchingSettingsProto.getDefaultInstance()
+ : thresholds_;
+ }
+
+ public static final int BATCH_DESCRIPTOR_FIELD_NUMBER = 2;
+ private com.google.api.BatchingDescriptorProto batchDescriptor_;
+
+ /**
+ *
+ *
+ * + * The request and response fields used in batching. + *+ * + *
.google.api.BatchingDescriptorProto batch_descriptor = 2;
+ *
+ * @return Whether the batchDescriptor field is set.
+ */
+ @java.lang.Override
+ public boolean hasBatchDescriptor() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The request and response fields used in batching. + *+ * + *
.google.api.BatchingDescriptorProto batch_descriptor = 2;
+ *
+ * @return The batchDescriptor.
+ */
+ @java.lang.Override
+ public com.google.api.BatchingDescriptorProto getBatchDescriptor() {
+ return batchDescriptor_ == null
+ ? com.google.api.BatchingDescriptorProto.getDefaultInstance()
+ : batchDescriptor_;
+ }
+
+ /**
+ *
+ *
+ * + * The request and response fields used in batching. + *+ * + *
.google.api.BatchingDescriptorProto batch_descriptor = 2;
+ */
+ @java.lang.Override
+ public com.google.api.BatchingDescriptorProtoOrBuilder getBatchDescriptorOrBuilder() {
+ return batchDescriptor_ == null
+ ? com.google.api.BatchingDescriptorProto.getDefaultInstance()
+ : batchDescriptor_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getThresholds());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getBatchDescriptor());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getThresholds());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBatchDescriptor());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.api.BatchingConfigProto)) {
+ return super.equals(obj);
+ }
+ com.google.api.BatchingConfigProto other = (com.google.api.BatchingConfigProto) obj;
+
+ if (hasThresholds() != other.hasThresholds()) return false;
+ if (hasThresholds()) {
+ if (!getThresholds().equals(other.getThresholds())) return false;
+ }
+ if (hasBatchDescriptor() != other.hasBatchDescriptor()) return false;
+ if (hasBatchDescriptor()) {
+ if (!getBatchDescriptor().equals(other.getBatchDescriptor())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasThresholds()) {
+ hash = (37 * hash) + THRESHOLDS_FIELD_NUMBER;
+ hash = (53 * hash) + getThresholds().hashCode();
+ }
+ if (hasBatchDescriptor()) {
+ hash = (37 * hash) + BATCH_DESCRIPTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getBatchDescriptor().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.api.BatchingConfigProto parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.api.BatchingConfigProto parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.api.BatchingConfigProto parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.api.BatchingConfigProto parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.api.BatchingConfigProto parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.api.BatchingConfigProto parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.api.BatchingConfigProto parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.api.BatchingConfigProto parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.api.BatchingConfigProto parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.api.BatchingConfigProto parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.api.BatchingConfigProto parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.api.BatchingConfigProto parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.api.BatchingConfigProto prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * `BatchingConfigProto` defines the batching configuration for an API method. + *+ * + * Protobuf type {@code google.api.BatchingConfigProto} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The thresholds which trigger a batched request to be sent. + *+ * + *
.google.api.BatchingSettingsProto thresholds = 1;
+ *
+ * @return Whether the thresholds field is set.
+ */
+ public boolean hasThresholds() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The thresholds which trigger a batched request to be sent. + *+ * + *
.google.api.BatchingSettingsProto thresholds = 1;
+ *
+ * @return The thresholds.
+ */
+ public com.google.api.BatchingSettingsProto getThresholds() {
+ if (thresholdsBuilder_ == null) {
+ return thresholds_ == null
+ ? com.google.api.BatchingSettingsProto.getDefaultInstance()
+ : thresholds_;
+ } else {
+ return thresholdsBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The thresholds which trigger a batched request to be sent. + *+ * + *
.google.api.BatchingSettingsProto thresholds = 1;
+ */
+ public Builder setThresholds(com.google.api.BatchingSettingsProto value) {
+ if (thresholdsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ thresholds_ = value;
+ } else {
+ thresholdsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The thresholds which trigger a batched request to be sent. + *+ * + *
.google.api.BatchingSettingsProto thresholds = 1;
+ */
+ public Builder setThresholds(com.google.api.BatchingSettingsProto.Builder builderForValue) {
+ if (thresholdsBuilder_ == null) {
+ thresholds_ = builderForValue.build();
+ } else {
+ thresholdsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The thresholds which trigger a batched request to be sent. + *+ * + *
.google.api.BatchingSettingsProto thresholds = 1;
+ */
+ public Builder mergeThresholds(com.google.api.BatchingSettingsProto value) {
+ if (thresholdsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && thresholds_ != null
+ && thresholds_ != com.google.api.BatchingSettingsProto.getDefaultInstance()) {
+ getThresholdsBuilder().mergeFrom(value);
+ } else {
+ thresholds_ = value;
+ }
+ } else {
+ thresholdsBuilder_.mergeFrom(value);
+ }
+ if (thresholds_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The thresholds which trigger a batched request to be sent. + *+ * + *
.google.api.BatchingSettingsProto thresholds = 1;
+ */
+ public Builder clearThresholds() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ thresholds_ = null;
+ if (thresholdsBuilder_ != null) {
+ thresholdsBuilder_.dispose();
+ thresholdsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The thresholds which trigger a batched request to be sent. + *+ * + *
.google.api.BatchingSettingsProto thresholds = 1;
+ */
+ public com.google.api.BatchingSettingsProto.Builder getThresholdsBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetThresholdsFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * The thresholds which trigger a batched request to be sent. + *+ * + *
.google.api.BatchingSettingsProto thresholds = 1;
+ */
+ public com.google.api.BatchingSettingsProtoOrBuilder getThresholdsOrBuilder() {
+ if (thresholdsBuilder_ != null) {
+ return thresholdsBuilder_.getMessageOrBuilder();
+ } else {
+ return thresholds_ == null
+ ? com.google.api.BatchingSettingsProto.getDefaultInstance()
+ : thresholds_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The thresholds which trigger a batched request to be sent. + *+ * + *
.google.api.BatchingSettingsProto thresholds = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.api.BatchingSettingsProto,
+ com.google.api.BatchingSettingsProto.Builder,
+ com.google.api.BatchingSettingsProtoOrBuilder>
+ internalGetThresholdsFieldBuilder() {
+ if (thresholdsBuilder_ == null) {
+ thresholdsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.api.BatchingSettingsProto,
+ com.google.api.BatchingSettingsProto.Builder,
+ com.google.api.BatchingSettingsProtoOrBuilder>(
+ getThresholds(), getParentForChildren(), isClean());
+ thresholds_ = null;
+ }
+ return thresholdsBuilder_;
+ }
+
+ private com.google.api.BatchingDescriptorProto batchDescriptor_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.api.BatchingDescriptorProto,
+ com.google.api.BatchingDescriptorProto.Builder,
+ com.google.api.BatchingDescriptorProtoOrBuilder>
+ batchDescriptorBuilder_;
+
+ /**
+ *
+ *
+ * + * The request and response fields used in batching. + *+ * + *
.google.api.BatchingDescriptorProto batch_descriptor = 2;
+ *
+ * @return Whether the batchDescriptor field is set.
+ */
+ public boolean hasBatchDescriptor() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The request and response fields used in batching. + *+ * + *
.google.api.BatchingDescriptorProto batch_descriptor = 2;
+ *
+ * @return The batchDescriptor.
+ */
+ public com.google.api.BatchingDescriptorProto getBatchDescriptor() {
+ if (batchDescriptorBuilder_ == null) {
+ return batchDescriptor_ == null
+ ? com.google.api.BatchingDescriptorProto.getDefaultInstance()
+ : batchDescriptor_;
+ } else {
+ return batchDescriptorBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The request and response fields used in batching. + *+ * + *
.google.api.BatchingDescriptorProto batch_descriptor = 2;
+ */
+ public Builder setBatchDescriptor(com.google.api.BatchingDescriptorProto value) {
+ if (batchDescriptorBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ batchDescriptor_ = value;
+ } else {
+ batchDescriptorBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The request and response fields used in batching. + *+ * + *
.google.api.BatchingDescriptorProto batch_descriptor = 2;
+ */
+ public Builder setBatchDescriptor(
+ com.google.api.BatchingDescriptorProto.Builder builderForValue) {
+ if (batchDescriptorBuilder_ == null) {
+ batchDescriptor_ = builderForValue.build();
+ } else {
+ batchDescriptorBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The request and response fields used in batching. + *+ * + *
.google.api.BatchingDescriptorProto batch_descriptor = 2;
+ */
+ public Builder mergeBatchDescriptor(com.google.api.BatchingDescriptorProto value) {
+ if (batchDescriptorBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && batchDescriptor_ != null
+ && batchDescriptor_ != com.google.api.BatchingDescriptorProto.getDefaultInstance()) {
+ getBatchDescriptorBuilder().mergeFrom(value);
+ } else {
+ batchDescriptor_ = value;
+ }
+ } else {
+ batchDescriptorBuilder_.mergeFrom(value);
+ }
+ if (batchDescriptor_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The request and response fields used in batching. + *+ * + *
.google.api.BatchingDescriptorProto batch_descriptor = 2;
+ */
+ public Builder clearBatchDescriptor() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ batchDescriptor_ = null;
+ if (batchDescriptorBuilder_ != null) {
+ batchDescriptorBuilder_.dispose();
+ batchDescriptorBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The request and response fields used in batching. + *+ * + *
.google.api.BatchingDescriptorProto batch_descriptor = 2;
+ */
+ public com.google.api.BatchingDescriptorProto.Builder getBatchDescriptorBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetBatchDescriptorFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * The request and response fields used in batching. + *+ * + *
.google.api.BatchingDescriptorProto batch_descriptor = 2;
+ */
+ public com.google.api.BatchingDescriptorProtoOrBuilder getBatchDescriptorOrBuilder() {
+ if (batchDescriptorBuilder_ != null) {
+ return batchDescriptorBuilder_.getMessageOrBuilder();
+ } else {
+ return batchDescriptor_ == null
+ ? com.google.api.BatchingDescriptorProto.getDefaultInstance()
+ : batchDescriptor_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The request and response fields used in batching. + *+ * + *
.google.api.BatchingDescriptorProto batch_descriptor = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.api.BatchingDescriptorProto,
+ com.google.api.BatchingDescriptorProto.Builder,
+ com.google.api.BatchingDescriptorProtoOrBuilder>
+ internalGetBatchDescriptorFieldBuilder() {
+ if (batchDescriptorBuilder_ == null) {
+ batchDescriptorBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.api.BatchingDescriptorProto,
+ com.google.api.BatchingDescriptorProto.Builder,
+ com.google.api.BatchingDescriptorProtoOrBuilder>(
+ getBatchDescriptor(), getParentForChildren(), isClean());
+ batchDescriptor_ = null;
+ }
+ return batchDescriptorBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.api.BatchingConfigProto)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.api.BatchingConfigProto)
+ private static final com.google.api.BatchingConfigProto DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.api.BatchingConfigProto();
+ }
+
+ public static com.google.api.BatchingConfigProto getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The thresholds which trigger a batched request to be sent. + *+ * + *
.google.api.BatchingSettingsProto thresholds = 1;
+ *
+ * @return Whether the thresholds field is set.
+ */
+ boolean hasThresholds();
+
+ /**
+ *
+ *
+ * + * The thresholds which trigger a batched request to be sent. + *+ * + *
.google.api.BatchingSettingsProto thresholds = 1;
+ *
+ * @return The thresholds.
+ */
+ com.google.api.BatchingSettingsProto getThresholds();
+
+ /**
+ *
+ *
+ * + * The thresholds which trigger a batched request to be sent. + *+ * + *
.google.api.BatchingSettingsProto thresholds = 1;
+ */
+ com.google.api.BatchingSettingsProtoOrBuilder getThresholdsOrBuilder();
+
+ /**
+ *
+ *
+ * + * The request and response fields used in batching. + *+ * + *
.google.api.BatchingDescriptorProto batch_descriptor = 2;
+ *
+ * @return Whether the batchDescriptor field is set.
+ */
+ boolean hasBatchDescriptor();
+
+ /**
+ *
+ *
+ * + * The request and response fields used in batching. + *+ * + *
.google.api.BatchingDescriptorProto batch_descriptor = 2;
+ *
+ * @return The batchDescriptor.
+ */
+ com.google.api.BatchingDescriptorProto getBatchDescriptor();
+
+ /**
+ *
+ *
+ * + * The request and response fields used in batching. + *+ * + *
.google.api.BatchingDescriptorProto batch_descriptor = 2;
+ */
+ com.google.api.BatchingDescriptorProtoOrBuilder getBatchDescriptorOrBuilder();
+}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BatchingDescriptorProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BatchingDescriptorProto.java
new file mode 100644
index 0000000000..103fc198ef
--- /dev/null
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BatchingDescriptorProto.java
@@ -0,0 +1,1123 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/api/client.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.api;
+
+/**
+ *
+ *
+ * + * `BatchingDescriptorProto` specifies the fields of the request message to be + * used for batching, and, optionally, the fields of the response message to be + * used for demultiplexing. + *+ * + * Protobuf type {@code google.api.BatchingDescriptorProto} + */ +@com.google.protobuf.Generated +public final class BatchingDescriptorProto extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.api.BatchingDescriptorProto) + BatchingDescriptorProtoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BatchingDescriptorProto"); + } + + // Use BatchingDescriptorProto.newBuilder() to construct. + private BatchingDescriptorProto(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private BatchingDescriptorProto() { + batchedField_ = ""; + discriminatorFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subresponseField_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.api.ClientProto.internal_static_google_api_BatchingDescriptorProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.api.ClientProto + .internal_static_google_api_BatchingDescriptorProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.api.BatchingDescriptorProto.class, + com.google.api.BatchingDescriptorProto.Builder.class); + } + + public static final int BATCHED_FIELD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object batchedField_ = ""; + + /** + * + * + *
+ * The repeated field in the request message to be aggregated by batching. + *+ * + *
string batched_field = 1;
+ *
+ * @return The batchedField.
+ */
+ @java.lang.Override
+ public java.lang.String getBatchedField() {
+ java.lang.Object ref = batchedField_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ batchedField_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The repeated field in the request message to be aggregated by batching. + *+ * + *
string batched_field = 1;
+ *
+ * @return The bytes for batchedField.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBatchedFieldBytes() {
+ java.lang.Object ref = batchedField_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ batchedField_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DISCRIMINATOR_FIELDS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList discriminatorFields_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ *
+ * + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @return A list containing the discriminatorFields.
+ */
+ public com.google.protobuf.ProtocolStringList getDiscriminatorFieldsList() {
+ return discriminatorFields_;
+ }
+
+ /**
+ *
+ *
+ * + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @return The count of discriminatorFields.
+ */
+ public int getDiscriminatorFieldsCount() {
+ return discriminatorFields_.size();
+ }
+
+ /**
+ *
+ *
+ * + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The discriminatorFields at the given index.
+ */
+ public java.lang.String getDiscriminatorFields(int index) {
+ return discriminatorFields_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the discriminatorFields at the given index.
+ */
+ public com.google.protobuf.ByteString getDiscriminatorFieldsBytes(int index) {
+ return discriminatorFields_.getByteString(index);
+ }
+
+ public static final int SUBRESPONSE_FIELD_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object subresponseField_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + *+ * + *
string subresponse_field = 3;
+ *
+ * @return The subresponseField.
+ */
+ @java.lang.Override
+ public java.lang.String getSubresponseField() {
+ java.lang.Object ref = subresponseField_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ subresponseField_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + *+ * + *
string subresponse_field = 3;
+ *
+ * @return The bytes for subresponseField.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSubresponseFieldBytes() {
+ java.lang.Object ref = subresponseField_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ subresponseField_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(batchedField_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, batchedField_);
+ }
+ for (int i = 0; i < discriminatorFields_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, discriminatorFields_.getRaw(i));
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subresponseField_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, subresponseField_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(batchedField_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, batchedField_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < discriminatorFields_.size(); i++) {
+ dataSize += computeStringSizeNoTag(discriminatorFields_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getDiscriminatorFieldsList().size();
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subresponseField_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, subresponseField_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.api.BatchingDescriptorProto)) {
+ return super.equals(obj);
+ }
+ com.google.api.BatchingDescriptorProto other = (com.google.api.BatchingDescriptorProto) obj;
+
+ if (!getBatchedField().equals(other.getBatchedField())) return false;
+ if (!getDiscriminatorFieldsList().equals(other.getDiscriminatorFieldsList())) return false;
+ if (!getSubresponseField().equals(other.getSubresponseField())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + BATCHED_FIELD_FIELD_NUMBER;
+ hash = (53 * hash) + getBatchedField().hashCode();
+ if (getDiscriminatorFieldsCount() > 0) {
+ hash = (37 * hash) + DISCRIMINATOR_FIELDS_FIELD_NUMBER;
+ hash = (53 * hash) + getDiscriminatorFieldsList().hashCode();
+ }
+ hash = (37 * hash) + SUBRESPONSE_FIELD_FIELD_NUMBER;
+ hash = (53 * hash) + getSubresponseField().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.api.BatchingDescriptorProto parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.api.BatchingDescriptorProto parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.api.BatchingDescriptorProto parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.api.BatchingDescriptorProto parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.api.BatchingDescriptorProto parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.api.BatchingDescriptorProto parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.api.BatchingDescriptorProto parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.api.BatchingDescriptorProto parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.api.BatchingDescriptorProto parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.api.BatchingDescriptorProto parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.api.BatchingDescriptorProto parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.api.BatchingDescriptorProto parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.api.BatchingDescriptorProto prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * `BatchingDescriptorProto` specifies the fields of the request message to be + * used for batching, and, optionally, the fields of the response message to be + * used for demultiplexing. + *+ * + * Protobuf type {@code google.api.BatchingDescriptorProto} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The repeated field in the request message to be aggregated by batching. + *+ * + *
string batched_field = 1;
+ *
+ * @return The batchedField.
+ */
+ public java.lang.String getBatchedField() {
+ java.lang.Object ref = batchedField_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ batchedField_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The repeated field in the request message to be aggregated by batching. + *+ * + *
string batched_field = 1;
+ *
+ * @return The bytes for batchedField.
+ */
+ public com.google.protobuf.ByteString getBatchedFieldBytes() {
+ java.lang.Object ref = batchedField_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ batchedField_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The repeated field in the request message to be aggregated by batching. + *+ * + *
string batched_field = 1;
+ *
+ * @param value The batchedField to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBatchedField(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ batchedField_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The repeated field in the request message to be aggregated by batching. + *+ * + *
string batched_field = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBatchedField() {
+ batchedField_ = getDefaultInstance().getBatchedField();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The repeated field in the request message to be aggregated by batching. + *+ * + *
string batched_field = 1;
+ *
+ * @param value The bytes for batchedField to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBatchedFieldBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ batchedField_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList discriminatorFields_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureDiscriminatorFieldsIsMutable() {
+ if (!discriminatorFields_.isModifiable()) {
+ discriminatorFields_ = new com.google.protobuf.LazyStringArrayList(discriminatorFields_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+
+ /**
+ *
+ *
+ * + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @return A list containing the discriminatorFields.
+ */
+ public com.google.protobuf.ProtocolStringList getDiscriminatorFieldsList() {
+ discriminatorFields_.makeImmutable();
+ return discriminatorFields_;
+ }
+
+ /**
+ *
+ *
+ * + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @return The count of discriminatorFields.
+ */
+ public int getDiscriminatorFieldsCount() {
+ return discriminatorFields_.size();
+ }
+
+ /**
+ *
+ *
+ * + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The discriminatorFields at the given index.
+ */
+ public java.lang.String getDiscriminatorFields(int index) {
+ return discriminatorFields_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the discriminatorFields at the given index.
+ */
+ public com.google.protobuf.ByteString getDiscriminatorFieldsBytes(int index) {
+ return discriminatorFields_.getByteString(index);
+ }
+
+ /**
+ *
+ *
+ * + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @param index The index to set the value at.
+ * @param value The discriminatorFields to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDiscriminatorFields(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDiscriminatorFieldsIsMutable();
+ discriminatorFields_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @param value The discriminatorFields to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDiscriminatorFields(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDiscriminatorFieldsIsMutable();
+ discriminatorFields_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @param values The discriminatorFields to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllDiscriminatorFields(java.lang.Iterable+ * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDiscriminatorFields() {
+ discriminatorFields_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @param value The bytes of the discriminatorFields to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDiscriminatorFieldsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureDiscriminatorFieldsIsMutable();
+ discriminatorFields_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object subresponseField_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + *+ * + *
string subresponse_field = 3;
+ *
+ * @return The subresponseField.
+ */
+ public java.lang.String getSubresponseField() {
+ java.lang.Object ref = subresponseField_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ subresponseField_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + *+ * + *
string subresponse_field = 3;
+ *
+ * @return The bytes for subresponseField.
+ */
+ public com.google.protobuf.ByteString getSubresponseFieldBytes() {
+ java.lang.Object ref = subresponseField_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ subresponseField_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + *+ * + *
string subresponse_field = 3;
+ *
+ * @param value The subresponseField to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSubresponseField(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ subresponseField_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + *+ * + *
string subresponse_field = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSubresponseField() {
+ subresponseField_ = getDefaultInstance().getSubresponseField();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + *+ * + *
string subresponse_field = 3;
+ *
+ * @param value The bytes for subresponseField to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSubresponseFieldBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ subresponseField_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.api.BatchingDescriptorProto)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.api.BatchingDescriptorProto)
+ private static final com.google.api.BatchingDescriptorProto DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.api.BatchingDescriptorProto();
+ }
+
+ public static com.google.api.BatchingDescriptorProto getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The repeated field in the request message to be aggregated by batching. + *+ * + *
string batched_field = 1;
+ *
+ * @return The batchedField.
+ */
+ java.lang.String getBatchedField();
+
+ /**
+ *
+ *
+ * + * The repeated field in the request message to be aggregated by batching. + *+ * + *
string batched_field = 1;
+ *
+ * @return The bytes for batchedField.
+ */
+ com.google.protobuf.ByteString getBatchedFieldBytes();
+
+ /**
+ *
+ *
+ * + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @return A list containing the discriminatorFields.
+ */
+ java.util.List+ * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @return The count of discriminatorFields.
+ */
+ int getDiscriminatorFieldsCount();
+
+ /**
+ *
+ *
+ * + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The discriminatorFields at the given index.
+ */
+ java.lang.String getDiscriminatorFields(int index);
+
+ /**
+ *
+ *
+ * + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + *+ * + *
repeated string discriminator_fields = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the discriminatorFields at the given index.
+ */
+ com.google.protobuf.ByteString getDiscriminatorFieldsBytes(int index);
+
+ /**
+ *
+ *
+ * + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + *+ * + *
string subresponse_field = 3;
+ *
+ * @return The subresponseField.
+ */
+ java.lang.String getSubresponseField();
+
+ /**
+ *
+ *
+ * + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + *+ * + *
string subresponse_field = 3;
+ *
+ * @return The bytes for subresponseField.
+ */
+ com.google.protobuf.ByteString getSubresponseFieldBytes();
+}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BatchingSettingsProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BatchingSettingsProto.java
new file mode 100644
index 0000000000..02a3cd17a9
--- /dev/null
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BatchingSettingsProto.java
@@ -0,0 +1,1489 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/api/client.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.api;
+
+/**
+ *
+ *
+ * + * `BatchingSettingsProto` specifies a set of batching thresholds, each of + * which acts as a trigger to send a batch of messages as a request. At least + * one threshold must be positive nonzero. + *+ * + * Protobuf type {@code google.api.BatchingSettingsProto} + */ +@com.google.protobuf.Generated +public final class BatchingSettingsProto extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.api.BatchingSettingsProto) + BatchingSettingsProtoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BatchingSettingsProto"); + } + + // Use BatchingSettingsProto.newBuilder() to construct. + private BatchingSettingsProto(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private BatchingSettingsProto() { + flowControlLimitExceededBehavior_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.api.ClientProto.internal_static_google_api_BatchingSettingsProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.api.ClientProto + .internal_static_google_api_BatchingSettingsProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.api.BatchingSettingsProto.class, + com.google.api.BatchingSettingsProto.Builder.class); + } + + private int bitField0_; + public static final int ELEMENT_COUNT_THRESHOLD_FIELD_NUMBER = 1; + private int elementCountThreshold_ = 0; + + /** + * + * + *
+ * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + *+ * + *
int32 element_count_threshold = 1;
+ *
+ * @return The elementCountThreshold.
+ */
+ @java.lang.Override
+ public int getElementCountThreshold() {
+ return elementCountThreshold_;
+ }
+
+ public static final int REQUEST_BYTE_THRESHOLD_FIELD_NUMBER = 2;
+ private long requestByteThreshold_ = 0L;
+
+ /**
+ *
+ *
+ * + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + *+ * + *
int64 request_byte_threshold = 2;
+ *
+ * @return The requestByteThreshold.
+ */
+ @java.lang.Override
+ public long getRequestByteThreshold() {
+ return requestByteThreshold_;
+ }
+
+ public static final int DELAY_THRESHOLD_FIELD_NUMBER = 3;
+ private com.google.protobuf.Duration delayThreshold_;
+
+ /**
+ *
+ *
+ * + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + *+ * + *
.google.protobuf.Duration delay_threshold = 3;
+ *
+ * @return Whether the delayThreshold field is set.
+ */
+ @java.lang.Override
+ public boolean hasDelayThreshold() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + *+ * + *
.google.protobuf.Duration delay_threshold = 3;
+ *
+ * @return The delayThreshold.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getDelayThreshold() {
+ return delayThreshold_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : delayThreshold_;
+ }
+
+ /**
+ *
+ *
+ * + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + *+ * + *
.google.protobuf.Duration delay_threshold = 3;
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getDelayThresholdOrBuilder() {
+ return delayThreshold_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : delayThreshold_;
+ }
+
+ public static final int ELEMENT_COUNT_LIMIT_FIELD_NUMBER = 4;
+ private int elementCountLimit_ = 0;
+
+ /**
+ *
+ *
+ * + * The maximum number of elements collected in a batch that could be accepted + * by server. + *+ * + *
int32 element_count_limit = 4;
+ *
+ * @return The elementCountLimit.
+ */
+ @java.lang.Override
+ public int getElementCountLimit() {
+ return elementCountLimit_;
+ }
+
+ public static final int REQUEST_BYTE_LIMIT_FIELD_NUMBER = 5;
+ private int requestByteLimit_ = 0;
+
+ /**
+ *
+ *
+ * + * The maximum size of the request that could be accepted by server. + *+ * + *
int32 request_byte_limit = 5;
+ *
+ * @return The requestByteLimit.
+ */
+ @java.lang.Override
+ public int getRequestByteLimit() {
+ return requestByteLimit_;
+ }
+
+ public static final int FLOW_CONTROL_ELEMENT_LIMIT_FIELD_NUMBER = 6;
+ private int flowControlElementLimit_ = 0;
+
+ /**
+ *
+ *
+ * + * The maximum number of elements allowed by flow control. + *+ * + *
int32 flow_control_element_limit = 6;
+ *
+ * @return The flowControlElementLimit.
+ */
+ @java.lang.Override
+ public int getFlowControlElementLimit() {
+ return flowControlElementLimit_;
+ }
+
+ public static final int FLOW_CONTROL_BYTE_LIMIT_FIELD_NUMBER = 7;
+ private int flowControlByteLimit_ = 0;
+
+ /**
+ *
+ *
+ * + * The maximum size of data allowed by flow control. + *+ * + *
int32 flow_control_byte_limit = 7;
+ *
+ * @return The flowControlByteLimit.
+ */
+ @java.lang.Override
+ public int getFlowControlByteLimit() {
+ return flowControlByteLimit_;
+ }
+
+ public static final int FLOW_CONTROL_LIMIT_EXCEEDED_BEHAVIOR_FIELD_NUMBER = 8;
+ private int flowControlLimitExceededBehavior_ = 0;
+
+ /**
+ *
+ *
+ * + * The behavior to take when the flow control limit is exceeded. + *+ * + *
+ * .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8;
+ *
+ *
+ * @return The enum numeric value on the wire for flowControlLimitExceededBehavior.
+ */
+ @java.lang.Override
+ public int getFlowControlLimitExceededBehaviorValue() {
+ return flowControlLimitExceededBehavior_;
+ }
+
+ /**
+ *
+ *
+ * + * The behavior to take when the flow control limit is exceeded. + *+ * + *
+ * .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8;
+ *
+ *
+ * @return The flowControlLimitExceededBehavior.
+ */
+ @java.lang.Override
+ public com.google.api.FlowControlLimitExceededBehaviorProto
+ getFlowControlLimitExceededBehavior() {
+ com.google.api.FlowControlLimitExceededBehaviorProto result =
+ com.google.api.FlowControlLimitExceededBehaviorProto.forNumber(
+ flowControlLimitExceededBehavior_);
+ return result == null
+ ? com.google.api.FlowControlLimitExceededBehaviorProto.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (elementCountThreshold_ != 0) {
+ output.writeInt32(1, elementCountThreshold_);
+ }
+ if (requestByteThreshold_ != 0L) {
+ output.writeInt64(2, requestByteThreshold_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(3, getDelayThreshold());
+ }
+ if (elementCountLimit_ != 0) {
+ output.writeInt32(4, elementCountLimit_);
+ }
+ if (requestByteLimit_ != 0) {
+ output.writeInt32(5, requestByteLimit_);
+ }
+ if (flowControlElementLimit_ != 0) {
+ output.writeInt32(6, flowControlElementLimit_);
+ }
+ if (flowControlByteLimit_ != 0) {
+ output.writeInt32(7, flowControlByteLimit_);
+ }
+ if (flowControlLimitExceededBehavior_
+ != com.google.api.FlowControlLimitExceededBehaviorProto.UNSET_BEHAVIOR.getNumber()) {
+ output.writeEnum(8, flowControlLimitExceededBehavior_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (elementCountThreshold_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, elementCountThreshold_);
+ }
+ if (requestByteThreshold_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, requestByteThreshold_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDelayThreshold());
+ }
+ if (elementCountLimit_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, elementCountLimit_);
+ }
+ if (requestByteLimit_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, requestByteLimit_);
+ }
+ if (flowControlElementLimit_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, flowControlElementLimit_);
+ }
+ if (flowControlByteLimit_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, flowControlByteLimit_);
+ }
+ if (flowControlLimitExceededBehavior_
+ != com.google.api.FlowControlLimitExceededBehaviorProto.UNSET_BEHAVIOR.getNumber()) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(
+ 8, flowControlLimitExceededBehavior_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.api.BatchingSettingsProto)) {
+ return super.equals(obj);
+ }
+ com.google.api.BatchingSettingsProto other = (com.google.api.BatchingSettingsProto) obj;
+
+ if (getElementCountThreshold() != other.getElementCountThreshold()) return false;
+ if (getRequestByteThreshold() != other.getRequestByteThreshold()) return false;
+ if (hasDelayThreshold() != other.hasDelayThreshold()) return false;
+ if (hasDelayThreshold()) {
+ if (!getDelayThreshold().equals(other.getDelayThreshold())) return false;
+ }
+ if (getElementCountLimit() != other.getElementCountLimit()) return false;
+ if (getRequestByteLimit() != other.getRequestByteLimit()) return false;
+ if (getFlowControlElementLimit() != other.getFlowControlElementLimit()) return false;
+ if (getFlowControlByteLimit() != other.getFlowControlByteLimit()) return false;
+ if (flowControlLimitExceededBehavior_ != other.flowControlLimitExceededBehavior_) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ELEMENT_COUNT_THRESHOLD_FIELD_NUMBER;
+ hash = (53 * hash) + getElementCountThreshold();
+ hash = (37 * hash) + REQUEST_BYTE_THRESHOLD_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestByteThreshold());
+ if (hasDelayThreshold()) {
+ hash = (37 * hash) + DELAY_THRESHOLD_FIELD_NUMBER;
+ hash = (53 * hash) + getDelayThreshold().hashCode();
+ }
+ hash = (37 * hash) + ELEMENT_COUNT_LIMIT_FIELD_NUMBER;
+ hash = (53 * hash) + getElementCountLimit();
+ hash = (37 * hash) + REQUEST_BYTE_LIMIT_FIELD_NUMBER;
+ hash = (53 * hash) + getRequestByteLimit();
+ hash = (37 * hash) + FLOW_CONTROL_ELEMENT_LIMIT_FIELD_NUMBER;
+ hash = (53 * hash) + getFlowControlElementLimit();
+ hash = (37 * hash) + FLOW_CONTROL_BYTE_LIMIT_FIELD_NUMBER;
+ hash = (53 * hash) + getFlowControlByteLimit();
+ hash = (37 * hash) + FLOW_CONTROL_LIMIT_EXCEEDED_BEHAVIOR_FIELD_NUMBER;
+ hash = (53 * hash) + flowControlLimitExceededBehavior_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.api.BatchingSettingsProto parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.api.BatchingSettingsProto parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.api.BatchingSettingsProto parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.api.BatchingSettingsProto parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.api.BatchingSettingsProto parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.api.BatchingSettingsProto parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.api.BatchingSettingsProto parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.api.BatchingSettingsProto parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.api.BatchingSettingsProto parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.api.BatchingSettingsProto parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.api.BatchingSettingsProto parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.api.BatchingSettingsProto parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.api.BatchingSettingsProto prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * `BatchingSettingsProto` specifies a set of batching thresholds, each of + * which acts as a trigger to send a batch of messages as a request. At least + * one threshold must be positive nonzero. + *+ * + * Protobuf type {@code google.api.BatchingSettingsProto} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + *+ * + *
int32 element_count_threshold = 1;
+ *
+ * @return The elementCountThreshold.
+ */
+ @java.lang.Override
+ public int getElementCountThreshold() {
+ return elementCountThreshold_;
+ }
+
+ /**
+ *
+ *
+ * + * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + *+ * + *
int32 element_count_threshold = 1;
+ *
+ * @param value The elementCountThreshold to set.
+ * @return This builder for chaining.
+ */
+ public Builder setElementCountThreshold(int value) {
+
+ elementCountThreshold_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + *+ * + *
int32 element_count_threshold = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearElementCountThreshold() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ elementCountThreshold_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private long requestByteThreshold_;
+
+ /**
+ *
+ *
+ * + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + *+ * + *
int64 request_byte_threshold = 2;
+ *
+ * @return The requestByteThreshold.
+ */
+ @java.lang.Override
+ public long getRequestByteThreshold() {
+ return requestByteThreshold_;
+ }
+
+ /**
+ *
+ *
+ * + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + *+ * + *
int64 request_byte_threshold = 2;
+ *
+ * @param value The requestByteThreshold to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRequestByteThreshold(long value) {
+
+ requestByteThreshold_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + *+ * + *
int64 request_byte_threshold = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRequestByteThreshold() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ requestByteThreshold_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Duration delayThreshold_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ delayThresholdBuilder_;
+
+ /**
+ *
+ *
+ * + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + *+ * + *
.google.protobuf.Duration delay_threshold = 3;
+ *
+ * @return Whether the delayThreshold field is set.
+ */
+ public boolean hasDelayThreshold() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + *+ * + *
.google.protobuf.Duration delay_threshold = 3;
+ *
+ * @return The delayThreshold.
+ */
+ public com.google.protobuf.Duration getDelayThreshold() {
+ if (delayThresholdBuilder_ == null) {
+ return delayThreshold_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : delayThreshold_;
+ } else {
+ return delayThresholdBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + *+ * + *
.google.protobuf.Duration delay_threshold = 3;
+ */
+ public Builder setDelayThreshold(com.google.protobuf.Duration value) {
+ if (delayThresholdBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ delayThreshold_ = value;
+ } else {
+ delayThresholdBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + *+ * + *
.google.protobuf.Duration delay_threshold = 3;
+ */
+ public Builder setDelayThreshold(com.google.protobuf.Duration.Builder builderForValue) {
+ if (delayThresholdBuilder_ == null) {
+ delayThreshold_ = builderForValue.build();
+ } else {
+ delayThresholdBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + *+ * + *
.google.protobuf.Duration delay_threshold = 3;
+ */
+ public Builder mergeDelayThreshold(com.google.protobuf.Duration value) {
+ if (delayThresholdBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && delayThreshold_ != null
+ && delayThreshold_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getDelayThresholdBuilder().mergeFrom(value);
+ } else {
+ delayThreshold_ = value;
+ }
+ } else {
+ delayThresholdBuilder_.mergeFrom(value);
+ }
+ if (delayThreshold_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + *+ * + *
.google.protobuf.Duration delay_threshold = 3;
+ */
+ public Builder clearDelayThreshold() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ delayThreshold_ = null;
+ if (delayThresholdBuilder_ != null) {
+ delayThresholdBuilder_.dispose();
+ delayThresholdBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + *+ * + *
.google.protobuf.Duration delay_threshold = 3;
+ */
+ public com.google.protobuf.Duration.Builder getDelayThresholdBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return internalGetDelayThresholdFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + *+ * + *
.google.protobuf.Duration delay_threshold = 3;
+ */
+ public com.google.protobuf.DurationOrBuilder getDelayThresholdOrBuilder() {
+ if (delayThresholdBuilder_ != null) {
+ return delayThresholdBuilder_.getMessageOrBuilder();
+ } else {
+ return delayThreshold_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : delayThreshold_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + *+ * + *
.google.protobuf.Duration delay_threshold = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ internalGetDelayThresholdFieldBuilder() {
+ if (delayThresholdBuilder_ == null) {
+ delayThresholdBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getDelayThreshold(), getParentForChildren(), isClean());
+ delayThreshold_ = null;
+ }
+ return delayThresholdBuilder_;
+ }
+
+ private int elementCountLimit_;
+
+ /**
+ *
+ *
+ * + * The maximum number of elements collected in a batch that could be accepted + * by server. + *+ * + *
int32 element_count_limit = 4;
+ *
+ * @return The elementCountLimit.
+ */
+ @java.lang.Override
+ public int getElementCountLimit() {
+ return elementCountLimit_;
+ }
+
+ /**
+ *
+ *
+ * + * The maximum number of elements collected in a batch that could be accepted + * by server. + *+ * + *
int32 element_count_limit = 4;
+ *
+ * @param value The elementCountLimit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setElementCountLimit(int value) {
+
+ elementCountLimit_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The maximum number of elements collected in a batch that could be accepted + * by server. + *+ * + *
int32 element_count_limit = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearElementCountLimit() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ elementCountLimit_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int requestByteLimit_;
+
+ /**
+ *
+ *
+ * + * The maximum size of the request that could be accepted by server. + *+ * + *
int32 request_byte_limit = 5;
+ *
+ * @return The requestByteLimit.
+ */
+ @java.lang.Override
+ public int getRequestByteLimit() {
+ return requestByteLimit_;
+ }
+
+ /**
+ *
+ *
+ * + * The maximum size of the request that could be accepted by server. + *+ * + *
int32 request_byte_limit = 5;
+ *
+ * @param value The requestByteLimit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRequestByteLimit(int value) {
+
+ requestByteLimit_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The maximum size of the request that could be accepted by server. + *+ * + *
int32 request_byte_limit = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRequestByteLimit() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ requestByteLimit_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int flowControlElementLimit_;
+
+ /**
+ *
+ *
+ * + * The maximum number of elements allowed by flow control. + *+ * + *
int32 flow_control_element_limit = 6;
+ *
+ * @return The flowControlElementLimit.
+ */
+ @java.lang.Override
+ public int getFlowControlElementLimit() {
+ return flowControlElementLimit_;
+ }
+
+ /**
+ *
+ *
+ * + * The maximum number of elements allowed by flow control. + *+ * + *
int32 flow_control_element_limit = 6;
+ *
+ * @param value The flowControlElementLimit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFlowControlElementLimit(int value) {
+
+ flowControlElementLimit_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The maximum number of elements allowed by flow control. + *+ * + *
int32 flow_control_element_limit = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFlowControlElementLimit() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ flowControlElementLimit_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int flowControlByteLimit_;
+
+ /**
+ *
+ *
+ * + * The maximum size of data allowed by flow control. + *+ * + *
int32 flow_control_byte_limit = 7;
+ *
+ * @return The flowControlByteLimit.
+ */
+ @java.lang.Override
+ public int getFlowControlByteLimit() {
+ return flowControlByteLimit_;
+ }
+
+ /**
+ *
+ *
+ * + * The maximum size of data allowed by flow control. + *+ * + *
int32 flow_control_byte_limit = 7;
+ *
+ * @param value The flowControlByteLimit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFlowControlByteLimit(int value) {
+
+ flowControlByteLimit_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The maximum size of data allowed by flow control. + *+ * + *
int32 flow_control_byte_limit = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFlowControlByteLimit() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ flowControlByteLimit_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int flowControlLimitExceededBehavior_ = 0;
+
+ /**
+ *
+ *
+ * + * The behavior to take when the flow control limit is exceeded. + *+ * + *
+ * .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8;
+ *
+ *
+ * @return The enum numeric value on the wire for flowControlLimitExceededBehavior.
+ */
+ @java.lang.Override
+ public int getFlowControlLimitExceededBehaviorValue() {
+ return flowControlLimitExceededBehavior_;
+ }
+
+ /**
+ *
+ *
+ * + * The behavior to take when the flow control limit is exceeded. + *+ * + *
+ * .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8;
+ *
+ *
+ * @param value The enum numeric value on the wire for flowControlLimitExceededBehavior to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFlowControlLimitExceededBehaviorValue(int value) {
+ flowControlLimitExceededBehavior_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The behavior to take when the flow control limit is exceeded. + *+ * + *
+ * .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8;
+ *
+ *
+ * @return The flowControlLimitExceededBehavior.
+ */
+ @java.lang.Override
+ public com.google.api.FlowControlLimitExceededBehaviorProto
+ getFlowControlLimitExceededBehavior() {
+ com.google.api.FlowControlLimitExceededBehaviorProto result =
+ com.google.api.FlowControlLimitExceededBehaviorProto.forNumber(
+ flowControlLimitExceededBehavior_);
+ return result == null
+ ? com.google.api.FlowControlLimitExceededBehaviorProto.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * The behavior to take when the flow control limit is exceeded. + *+ * + *
+ * .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8;
+ *
+ *
+ * @param value The flowControlLimitExceededBehavior to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFlowControlLimitExceededBehavior(
+ com.google.api.FlowControlLimitExceededBehaviorProto value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000080;
+ flowControlLimitExceededBehavior_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The behavior to take when the flow control limit is exceeded. + *+ * + *
+ * .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFlowControlLimitExceededBehavior() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ flowControlLimitExceededBehavior_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.api.BatchingSettingsProto)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.api.BatchingSettingsProto)
+ private static final com.google.api.BatchingSettingsProto DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.api.BatchingSettingsProto();
+ }
+
+ public static com.google.api.BatchingSettingsProto getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + *+ * + *
int32 element_count_threshold = 1;
+ *
+ * @return The elementCountThreshold.
+ */
+ int getElementCountThreshold();
+
+ /**
+ *
+ *
+ * + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + *+ * + *
int64 request_byte_threshold = 2;
+ *
+ * @return The requestByteThreshold.
+ */
+ long getRequestByteThreshold();
+
+ /**
+ *
+ *
+ * + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + *+ * + *
.google.protobuf.Duration delay_threshold = 3;
+ *
+ * @return Whether the delayThreshold field is set.
+ */
+ boolean hasDelayThreshold();
+
+ /**
+ *
+ *
+ * + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + *+ * + *
.google.protobuf.Duration delay_threshold = 3;
+ *
+ * @return The delayThreshold.
+ */
+ com.google.protobuf.Duration getDelayThreshold();
+
+ /**
+ *
+ *
+ * + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + *+ * + *
.google.protobuf.Duration delay_threshold = 3;
+ */
+ com.google.protobuf.DurationOrBuilder getDelayThresholdOrBuilder();
+
+ /**
+ *
+ *
+ * + * The maximum number of elements collected in a batch that could be accepted + * by server. + *+ * + *
int32 element_count_limit = 4;
+ *
+ * @return The elementCountLimit.
+ */
+ int getElementCountLimit();
+
+ /**
+ *
+ *
+ * + * The maximum size of the request that could be accepted by server. + *+ * + *
int32 request_byte_limit = 5;
+ *
+ * @return The requestByteLimit.
+ */
+ int getRequestByteLimit();
+
+ /**
+ *
+ *
+ * + * The maximum number of elements allowed by flow control. + *+ * + *
int32 flow_control_element_limit = 6;
+ *
+ * @return The flowControlElementLimit.
+ */
+ int getFlowControlElementLimit();
+
+ /**
+ *
+ *
+ * + * The maximum size of data allowed by flow control. + *+ * + *
int32 flow_control_byte_limit = 7;
+ *
+ * @return The flowControlByteLimit.
+ */
+ int getFlowControlByteLimit();
+
+ /**
+ *
+ *
+ * + * The behavior to take when the flow control limit is exceeded. + *+ * + *
+ * .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8;
+ *
+ *
+ * @return The enum numeric value on the wire for flowControlLimitExceededBehavior.
+ */
+ int getFlowControlLimitExceededBehaviorValue();
+
+ /**
+ *
+ *
+ * + * The behavior to take when the flow control limit is exceeded. + *+ * + *
+ * .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8;
+ *
+ *
+ * @return The flowControlLimitExceededBehavior.
+ */
+ com.google.api.FlowControlLimitExceededBehaviorProto getFlowControlLimitExceededBehavior();
+}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java
index 47e1f26ea3..2dc623eeed 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java
@@ -263,6 +263,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_api_SelectiveGapicGeneration_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_api_SelectiveGapicGeneration_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_api_BatchingConfigProto_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_api_BatchingConfigProto_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_api_BatchingSettingsProto_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_api_BatchingSettingsProto_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_api_BatchingDescriptorProto_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_api_BatchingDescriptorProto_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -314,13 +326,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001\"A\n"
+ "\013CppSettings\0222\n"
- + "\006common\030\001 \001(\0132\".google.api.CommonLanguageSettings\"A\n"
+ + "\006common\030\001 \001(\0132\".google.api.CommonLanguageSettings\"Z\n"
+ "\013PhpSettings\0222\n"
- + "\006common\030\001 \001(\0132\".google.api.CommonLanguageSettings\"\233\002\n"
+ + "\006common\030\001 \001(\0132\".google.api.CommonLanguageSettings\022\027\n"
+ + "\017library_package\030\002 \001(\t\"\233\002\n"
+ "\016PythonSettings\0222\n"
+ "\006common\030\001 \001(\0132\".google.api.CommonLanguageSettings\022N\n"
- + "\025experimental_features\030\002"
- + " \001(\0132/.google.api.PythonSettings.ExperimentalFeatures\032\204\001\n"
+ + "\025experimental_features\030\002 \001(\0132/.go"
+ + "ogle.api.PythonSettings.ExperimentalFeatures\032\204\001\n"
+ "\024ExperimentalFeatures\022\035\n"
+ "\025rest_async_io_enabled\030\001 \001(\010\022\'\n"
+ "\037protobuf_pythonic_types_enabled\030\002 \001(\010\022$\n"
@@ -329,10 +342,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006common\030\001 \001(\0132\".google.api.CommonLanguageSettings\"\252\003\n"
+ "\016DotnetSettings\0222\n"
+ "\006common\030\001 \001(\0132\".google.api.CommonLanguageSettings\022I\n"
- + "\020renamed_services\030\002 \003(\0132"
- + "/.google.api.DotnetSettings.RenamedServicesEntry\022K\n"
- + "\021renamed_resources\030\003 \003(\01320.go"
- + "ogle.api.DotnetSettings.RenamedResourcesEntry\022\031\n"
+ + "\020renamed_services\030\002"
+ + " \003(\0132/.google.api.DotnetSettings.RenamedServicesEntry\022K\n"
+ + "\021renamed_resources\030\003"
+ + " \003(\01320.google.api.DotnetSettings.RenamedResourcesEntry\022\031\n"
+ "\021ignored_resources\030\004 \003(\t\022 \n"
+ "\030forced_namespace_aliases\030\005 \003(\t\022\036\n"
+ "\026handwritten_signatures\030\006 \003(\t\0326\n"
@@ -346,15 +359,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006common\030\001 \001(\0132\".google.api.CommonLanguageSettings\"\277\001\n\n"
+ "GoSettings\0222\n"
+ "\006common\030\001 \001(\0132\".google.api.CommonLanguageSettings\022E\n"
- + "\020renamed_services\030\002"
- + " \003(\0132+.google.api.GoSettings.RenamedServicesEntry\0326\n"
+ + "\020renamed_services\030\002 \003(\0132+."
+ + "google.api.GoSettings.RenamedServicesEntry\0326\n"
+ "\024RenamedServicesEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
- + "\005value\030\002 \001(\t:\0028\001\"\317\002\n"
+ + "\005value\030\002 \001(\t:\0028\001\"\202\003\n"
+ "\016MethodSettings\022\020\n"
+ "\010selector\030\001 \001(\t\022<\n"
+ "\014long_running\030\002 \001(\0132&.google.api.MethodSettings.LongRunning\022\035\n"
- + "\025auto_populated_fields\030\003 \003(\t\032\315\001\n"
+ + "\025auto_populated_fields\030\003 \003(\t\0221\n"
+ + "\010batching\030\004 \001(\0132\037.google.api.BatchingConfigProto\032\315\001\n"
+ "\013LongRunning\0225\n"
+ "\022initial_poll_delay\030\001 \001(\0132\031.google.protobuf.Duration\022\035\n"
+ "\025poll_delay_multiplier\030\002 \001(\002\0221\n"
@@ -362,7 +376,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\022total_poll_timeout\030\004 \001(\0132\031.google.protobuf.Duration\"Q\n"
+ "\030SelectiveGapicGeneration\022\017\n"
+ "\007methods\030\001 \003(\t\022$\n"
- + "\034generate_omitted_as_internal\030\002 \001(\010*\243\001\n"
+ + "\034generate_omitted_as_internal\030\002 \001(\010\"\213\001\n"
+ + "\023BatchingConfigProto\0225\n\n"
+ + "thresholds\030\001 \001(\0132!.google.api.BatchingSettingsProto\022=\n"
+ + "\020batch_descriptor\030\002"
+ + " \001(\0132#.google.api.BatchingDescriptorProto\"\353\002\n"
+ + "\025BatchingSettingsProto\022\037\n"
+ + "\027element_count_threshold\030\001 \001(\005\022\036\n"
+ + "\026request_byte_threshold\030\002 \001(\003\0222\n"
+ + "\017delay_threshold\030\003 \001(\0132\031.google.protobuf.Duration\022\033\n"
+ + "\023element_count_limit\030\004 \001(\005\022\032\n"
+ + "\022request_byte_limit\030\005 \001(\005\022\"\n"
+ + "\032flow_control_element_limit\030\006 \001(\005\022\037\n"
+ + "\027flow_control_byte_limit\030\007 \001(\005\022_\n"
+ + "$flow_control_limit_exceeded_behavior\030\010 \001(\01621.google.api"
+ + ".FlowControlLimitExceededBehaviorProto\"i\n"
+ + "\027BatchingDescriptorProto\022\025\n\r"
+ + "batched_field\030\001 \001(\t\022\034\n"
+ + "\024discriminator_fields\030\002 \003(\t\022\031\n"
+ + "\021subresponse_field\030\003 \001(\t*\243\001\n"
+ "\031ClientLibraryOrganization\022+\n"
+ "\'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\020\000\022\t\n"
+ "\005CLOUD\020\001\022\007\n"
@@ -376,14 +408,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\020\000\022\n\n"
+ "\006GITHUB\020\n"
+ "\022\023\n"
- + "\017PACKAGE_MANAGER\020\024:9\n"
+ + "\017PACKAGE_MANAGER\020\024*g\n"
+ + "%FlowControlLimitExceededBehaviorProto\022\022\n"
+ + "\016UNSET_BEHAVIOR\020\000\022\023\n"
+ + "\017THROW_EXCEPTION\020\001\022\t\n"
+ + "\005BLOCK\020\002\022\n\n"
+ + "\006IGNORE\020\003:9\n"
+ "\020method_signature\022\036.google.protobuf.MethodOptions\030\233\010 \003(\t:6\n"
+ "\014default_host\022\037.google.protobuf.ServiceOptions\030\231\010 \001(\t:6\n"
+ "\014oauth_scopes\022\037.google.protobuf.ServiceOptions\030\232\010 \001(\t:8\n"
+ "\013api_version\022\037.google.protobuf.ServiceOptions\030\301\272\253\372\001 \001("
+ "\tBi\n"
- + "\016com.google.apiB\013ClientProtoP\001ZAgoogle.gola"
- + "ng.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPIb\006proto3"
+ + "\016com.google.apiB\013ClientProtoP\001ZAgoogle.golang.o"
+ + "rg/genproto/googleapis/api/annotations;annotations\242\002\004GAPIb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -462,7 +499,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_api_PhpSettings_descriptor,
new java.lang.String[] {
- "Common",
+ "Common", "LibraryPackage",
});
internal_static_google_api_PythonSettings_descriptor = getDescriptor().getMessageType(6);
internal_static_google_api_PythonSettings_fieldAccessorTable =
@@ -541,7 +578,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_api_MethodSettings_descriptor,
new java.lang.String[] {
- "Selector", "LongRunning", "AutoPopulatedFields",
+ "Selector", "LongRunning", "AutoPopulatedFields", "Batching",
});
internal_static_google_api_MethodSettings_LongRunning_descriptor =
internal_static_google_api_MethodSettings_descriptor.getNestedType(0);
@@ -559,6 +596,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Methods", "GenerateOmittedAsInternal",
});
+ internal_static_google_api_BatchingConfigProto_descriptor = getDescriptor().getMessageType(13);
+ internal_static_google_api_BatchingConfigProto_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_api_BatchingConfigProto_descriptor,
+ new java.lang.String[] {
+ "Thresholds", "BatchDescriptor",
+ });
+ internal_static_google_api_BatchingSettingsProto_descriptor =
+ getDescriptor().getMessageType(14);
+ internal_static_google_api_BatchingSettingsProto_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_api_BatchingSettingsProto_descriptor,
+ new java.lang.String[] {
+ "ElementCountThreshold",
+ "RequestByteThreshold",
+ "DelayThreshold",
+ "ElementCountLimit",
+ "RequestByteLimit",
+ "FlowControlElementLimit",
+ "FlowControlByteLimit",
+ "FlowControlLimitExceededBehavior",
+ });
+ internal_static_google_api_BatchingDescriptorProto_descriptor =
+ getDescriptor().getMessageType(15);
+ internal_static_google_api_BatchingDescriptorProto_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_api_BatchingDescriptorProto_descriptor,
+ new java.lang.String[] {
+ "BatchedField", "DiscriminatorFields", "SubresponseField",
+ });
methodSignature.internalInit(descriptor.getExtension(0));
defaultHost.internalInit(descriptor.getExtension(1));
oauthScopes.internalInit(descriptor.getExtension(2));
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java
index 060efcaf64..f7668465a5 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java
@@ -83,8 +83,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* The service controller environment to use. If empty, no control plane
- * feature (like quota and billing) will be enabled. The recommended value for
- * most services is servicecontrol.googleapis.com
+ * features (like quota and billing) will be enabled. The recommended value
+ * for most services is servicecontrol.googleapis.com.
*
*
* string environment = 1;
@@ -109,8 +109,8 @@ public java.lang.String getEnvironment() {
*
*
* The service controller environment to use. If empty, no control plane
- * feature (like quota and billing) will be enabled. The recommended value for
- * most services is servicecontrol.googleapis.com
+ * features (like quota and billing) will be enabled. The recommended value
+ * for most services is servicecontrol.googleapis.com.
*
*
* string environment = 1;
@@ -590,8 +590,8 @@ public Builder mergeFrom(
*
*
* The service controller environment to use. If empty, no control plane
- * feature (like quota and billing) will be enabled. The recommended value for
- * most services is servicecontrol.googleapis.com
+ * features (like quota and billing) will be enabled. The recommended value
+ * for most services is servicecontrol.googleapis.com.
*
*
* string environment = 1;
@@ -615,8 +615,8 @@ public java.lang.String getEnvironment() {
*
*
* The service controller environment to use. If empty, no control plane
- * feature (like quota and billing) will be enabled. The recommended value for
- * most services is servicecontrol.googleapis.com
+ * features (like quota and billing) will be enabled. The recommended value
+ * for most services is servicecontrol.googleapis.com.
*
*
* string environment = 1;
@@ -640,8 +640,8 @@ public com.google.protobuf.ByteString getEnvironmentBytes() {
*
*
* The service controller environment to use. If empty, no control plane
- * feature (like quota and billing) will be enabled. The recommended value for
- * most services is servicecontrol.googleapis.com
+ * features (like quota and billing) will be enabled. The recommended value
+ * for most services is servicecontrol.googleapis.com.
*
*
* string environment = 1;
@@ -664,8 +664,8 @@ public Builder setEnvironment(java.lang.String value) {
*
*
* The service controller environment to use. If empty, no control plane
- * feature (like quota and billing) will be enabled. The recommended value for
- * most services is servicecontrol.googleapis.com
+ * features (like quota and billing) will be enabled. The recommended value
+ * for most services is servicecontrol.googleapis.com.
*
*
* string environment = 1;
@@ -684,8 +684,8 @@ public Builder clearEnvironment() {
*
*
* The service controller environment to use. If empty, no control plane
- * feature (like quota and billing) will be enabled. The recommended value for
- * most services is servicecontrol.googleapis.com
+ * features (like quota and billing) will be enabled. The recommended value
+ * for most services is servicecontrol.googleapis.com.
*
*
* string environment = 1;
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlOrBuilder.java
index c92523c0f8..035cfbb3be 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlOrBuilder.java
@@ -31,8 +31,8 @@ public interface ControlOrBuilder
*
*
* The service controller environment to use. If empty, no control plane
- * feature (like quota and billing) will be enabled. The recommended value for
- * most services is servicecontrol.googleapis.com
+ * features (like quota and billing) will be enabled. The recommended value
+ * for most services is servicecontrol.googleapis.com.
*
*
* string environment = 1;
@@ -46,8 +46,8 @@ public interface ControlOrBuilder
*
*
* The service controller environment to use. If empty, no control plane
- * feature (like quota and billing) will be enabled. The recommended value for
- * most services is servicecontrol.googleapis.com
+ * features (like quota and billing) will be enabled. The recommended value
+ * for most services is servicecontrol.googleapis.com.
*
*
* string environment = 1;
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java
index 84f59f2904..8405c49de0 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java
@@ -858,6 +858,268 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* OVERLOADED_CREDENTIALS = 34;
*/
OVERLOADED_CREDENTIALS(34),
+ /**
+ *
+ *
+ *
+ * The request whose associated location violates the location org policy
+ * restrictions when creating resources in the restricted region.
+ *
+ * Example of an ErrorInfo when creating the Cloud Storage Bucket in the
+ * container "projects/123" under a restricted region
+ * "locations/asia-northeast3":
+ *
+ * {
+ * "reason": "LOCATION_ORG_POLICY_VIOLATED",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "resource": "projects/123",
+ * "location": "locations/asia-northeast3"
+ * }
+ * }
+ *
+ * This response indicates creating the Cloud Storage Bucket in
+ * "locations/asia-northeast3" violates the location org policy restriction.
+ *
+ *
+ * LOCATION_ORG_POLICY_VIOLATED = 35;
+ */
+ LOCATION_ORG_POLICY_VIOLATED(35),
+ /**
+ *
+ *
+ *
+ * The request is denied because it access data of regulated customers using
+ * TLS 1.0 and 1.1.
+ *
+ * Example of an ErrorInfo when accessing a GCP resource "projects/123" that
+ * is restricted by TLS Version Restriction for "pubsub.googleapis.com"
+ * service.
+ *
+ * {
+ * "reason": "TLS_ORG_POLICY_VIOLATED",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "service": "pubsub.googleapis.com"
+ * "resource": "projects/123",
+ * "policyName": "constraints/gcp.restrictTLSVersion",
+ * "tlsVersion": "TLS_VERSION_1"
+ * }
+ * }
+ *
+ *
+ * TLS_ORG_POLICY_VIOLATED = 36;
+ */
+ TLS_ORG_POLICY_VIOLATED(36),
+ /**
+ *
+ *
+ *
+ * The request is denied because the associated project has exceeded the
+ * emulator quota limit.
+ *
+ * Example of an ErrorInfo when the associated "projects/123" has exceeded the
+ * emulator quota limit.
+ *
+ * {
+ * "reason": "EMULATOR_QUOTA_EXCEEDED",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "service": "pubsub.googleapis.com"
+ * "consumer": "projects/123"
+ * }
+ * }
+ *
+ *
+ * EMULATOR_QUOTA_EXCEEDED = 38;
+ */
+ EMULATOR_QUOTA_EXCEEDED(38),
+ /**
+ *
+ *
+ *
+ * The request is denied because the associated application credential header
+ * is invalid for an Android applications.
+ *
+ * Example of an ErrorInfo when the request from an Android application to the
+ * "pubsub.googleapis.com" with an invalid application credential header.
+ *
+ * {
+ * "reason": "CREDENTIAL_ANDROID_APP_INVALID",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "service": "pubsub.googleapis.com"
+ * }
+ * }
+ *
+ *
+ * CREDENTIAL_ANDROID_APP_INVALID = 39;
+ */
+ CREDENTIAL_ANDROID_APP_INVALID(39),
+ /**
+ *
+ *
+ *
+ * The request is denied because IAM permission on resource is denied.
+ *
+ * Example of an ErrorInfo when the IAM permission `aiplatform.datasets.list`
+ * is denied on resource `projects/123`.
+ *
+ * {
+ * "reason": "IAM_PERMISSION_DENIED",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "resource": "projects/123"
+ * "permission": "aiplatform.datasets.list"
+ * }
+ * }
+ *
+ *
+ * IAM_PERMISSION_DENIED = 41;
+ */
+ IAM_PERMISSION_DENIED(41),
+ /**
+ *
+ *
+ *
+ * The request is denied because it contains the invalid JWT token.
+ *
+ * Example of an ErrorInfo when the request contains an invalid JWT token for
+ * service `storage.googleapis.com`.
+ *
+ * {
+ * "reason": "JWT_TOKEN_INVALID",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "service": "storage.googleapis.com"
+ * }
+ * }
+ *
+ *
+ * JWT_TOKEN_INVALID = 42;
+ */
+ JWT_TOKEN_INVALID(42),
+ /**
+ *
+ *
+ *
+ * The request is denied because it contains credential with type that is
+ * unsupported.
+ *
+ * Example of an ErrorInfo when the request contains an unsupported credential
+ * type for service `storage.googleapis.com`.
+ *
+ * {
+ * "reason": "CREDENTIAL_TYPE_UNSUPPORTED",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "service": "storage.googleapis.com"
+ * }
+ * }
+ *
+ *
+ * CREDENTIAL_TYPE_UNSUPPORTED = 43;
+ */
+ CREDENTIAL_TYPE_UNSUPPORTED(43),
+ /**
+ *
+ *
+ *
+ * The request is denied because it contains unsupported account type.
+ *
+ * Example of an ErrorInfo when the request contains an unsupported account
+ * type for service `storage.googleapis.com`.
+ *
+ * {
+ * "reason": "ACCOUNT_TYPE_UNSUPPORTED",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "service": "storage.googleapis.com"
+ * }
+ * }
+ *
+ *
+ * ACCOUNT_TYPE_UNSUPPORTED = 44;
+ */
+ ACCOUNT_TYPE_UNSUPPORTED(44),
+ /**
+ *
+ *
+ *
+ * The request is denied because the API endpoint is restricted by
+ * administrators according to the organization policy constraint.
+ * For more information see
+ * https://cloud.google.com/assured-workloads/docs/restrict-endpoint-usage.
+ *
+ * Example of an ErrorInfo when access to Google Cloud Storage service is
+ * restricted by Restrict Endpoint Usage policy:
+ *
+ * {
+ * "reason": "ENDPOINT_USAGE_RESTRICTION_VIOLATED",
+ * "domain": "googleapis.com/policies/endpointUsageRestriction",
+ * "metadata": {
+ * "policy_name": "constraints/gcp.restrictEndpointUsage",
+ * "checked_value": "storage.googleapis.com"
+ * "consumer": "organization/123"
+ * "service": "storage.googleapis.com"
+ * }
+ * }
+ *
+ *
+ * ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45;
+ */
+ ENDPOINT_USAGE_RESTRICTION_VIOLATED(45),
+ /**
+ *
+ *
+ *
+ * The request is denied because the TLS Cipher Suite is restricted by
+ * administrators according to the organization policy constraint.
+ * For more information see
+ * https://cloud.google.com/assured-workloads/docs/restrict-tls-cipher-suites
+ *
+ * Example of an ErrorInfo when access to Google Cloud BigQuery service is
+ * restricted by Restrict TLS Cipher Suites policy:
+ *
+ * {
+ * "reason": "TLS_CIPHER_RESTRICTION_VIOLATED",
+ * "domain": "googleapis.com/policies/tlsCipherRestriction",
+ * "metadata": {
+ * "policy_name": "constraints/gcp.restrictTLSCipherSuites",
+ * "checked_value": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
+ * "consumer": "organization/123"
+ * "service": "bigquery.googleapis.com"
+ * }
+ * }
+ *
+ *
+ * TLS_CIPHER_RESTRICTION_VIOLATED = 46;
+ */
+ TLS_CIPHER_RESTRICTION_VIOLATED(46),
+ /**
+ *
+ *
+ *
+ * The request is denied because the MCP activation check fails.
+ *
+ * Example of an ErrorInfo when the container "projects/123" contacting
+ * "pubsub.googleapis.com" service which is disabled by MCP:
+ *
+ * { "reason": "MCP_SERVER_DISABLED",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "consumer": "projects/123",
+ * "service": "pubsub.googleapis.com"
+ * }
+ * }
+ *
+ * This response indicates the "pubsub.googleapis.com" has been disabled in
+ * "projects/123" for MCP.
+ *
+ *
+ * MCP_SERVER_DISABLED = 47;
+ */
+ MCP_SERVER_DISABLED(47),
UNRECOGNIZED(-1),
;
@@ -1722,6 +1984,279 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*/
public static final int OVERLOADED_CREDENTIALS_VALUE = 34;
+ /**
+ *
+ *
+ *
+ * The request whose associated location violates the location org policy
+ * restrictions when creating resources in the restricted region.
+ *
+ * Example of an ErrorInfo when creating the Cloud Storage Bucket in the
+ * container "projects/123" under a restricted region
+ * "locations/asia-northeast3":
+ *
+ * {
+ * "reason": "LOCATION_ORG_POLICY_VIOLATED",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "resource": "projects/123",
+ * "location": "locations/asia-northeast3"
+ * }
+ * }
+ *
+ * This response indicates creating the Cloud Storage Bucket in
+ * "locations/asia-northeast3" violates the location org policy restriction.
+ *
+ *
+ * LOCATION_ORG_POLICY_VIOLATED = 35;
+ */
+ public static final int LOCATION_ORG_POLICY_VIOLATED_VALUE = 35;
+
+ /**
+ *
+ *
+ *
+ * The request is denied because it access data of regulated customers using
+ * TLS 1.0 and 1.1.
+ *
+ * Example of an ErrorInfo when accessing a GCP resource "projects/123" that
+ * is restricted by TLS Version Restriction for "pubsub.googleapis.com"
+ * service.
+ *
+ * {
+ * "reason": "TLS_ORG_POLICY_VIOLATED",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "service": "pubsub.googleapis.com"
+ * "resource": "projects/123",
+ * "policyName": "constraints/gcp.restrictTLSVersion",
+ * "tlsVersion": "TLS_VERSION_1"
+ * }
+ * }
+ *
+ *
+ * TLS_ORG_POLICY_VIOLATED = 36;
+ */
+ public static final int TLS_ORG_POLICY_VIOLATED_VALUE = 36;
+
+ /**
+ *
+ *
+ *
+ * The request is denied because the associated project has exceeded the
+ * emulator quota limit.
+ *
+ * Example of an ErrorInfo when the associated "projects/123" has exceeded the
+ * emulator quota limit.
+ *
+ * {
+ * "reason": "EMULATOR_QUOTA_EXCEEDED",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "service": "pubsub.googleapis.com"
+ * "consumer": "projects/123"
+ * }
+ * }
+ *
+ *
+ * EMULATOR_QUOTA_EXCEEDED = 38;
+ */
+ public static final int EMULATOR_QUOTA_EXCEEDED_VALUE = 38;
+
+ /**
+ *
+ *
+ *
+ * The request is denied because the associated application credential header
+ * is invalid for an Android applications.
+ *
+ * Example of an ErrorInfo when the request from an Android application to the
+ * "pubsub.googleapis.com" with an invalid application credential header.
+ *
+ * {
+ * "reason": "CREDENTIAL_ANDROID_APP_INVALID",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "service": "pubsub.googleapis.com"
+ * }
+ * }
+ *
+ *
+ * CREDENTIAL_ANDROID_APP_INVALID = 39;
+ */
+ public static final int CREDENTIAL_ANDROID_APP_INVALID_VALUE = 39;
+
+ /**
+ *
+ *
+ *
+ * The request is denied because IAM permission on resource is denied.
+ *
+ * Example of an ErrorInfo when the IAM permission `aiplatform.datasets.list`
+ * is denied on resource `projects/123`.
+ *
+ * {
+ * "reason": "IAM_PERMISSION_DENIED",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "resource": "projects/123"
+ * "permission": "aiplatform.datasets.list"
+ * }
+ * }
+ *
+ *
+ * IAM_PERMISSION_DENIED = 41;
+ */
+ public static final int IAM_PERMISSION_DENIED_VALUE = 41;
+
+ /**
+ *
+ *
+ *
+ * The request is denied because it contains the invalid JWT token.
+ *
+ * Example of an ErrorInfo when the request contains an invalid JWT token for
+ * service `storage.googleapis.com`.
+ *
+ * {
+ * "reason": "JWT_TOKEN_INVALID",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "service": "storage.googleapis.com"
+ * }
+ * }
+ *
+ *
+ * JWT_TOKEN_INVALID = 42;
+ */
+ public static final int JWT_TOKEN_INVALID_VALUE = 42;
+
+ /**
+ *
+ *
+ *
+ * The request is denied because it contains credential with type that is
+ * unsupported.
+ *
+ * Example of an ErrorInfo when the request contains an unsupported credential
+ * type for service `storage.googleapis.com`.
+ *
+ * {
+ * "reason": "CREDENTIAL_TYPE_UNSUPPORTED",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "service": "storage.googleapis.com"
+ * }
+ * }
+ *
+ *
+ * CREDENTIAL_TYPE_UNSUPPORTED = 43;
+ */
+ public static final int CREDENTIAL_TYPE_UNSUPPORTED_VALUE = 43;
+
+ /**
+ *
+ *
+ *
+ * The request is denied because it contains unsupported account type.
+ *
+ * Example of an ErrorInfo when the request contains an unsupported account
+ * type for service `storage.googleapis.com`.
+ *
+ * {
+ * "reason": "ACCOUNT_TYPE_UNSUPPORTED",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "service": "storage.googleapis.com"
+ * }
+ * }
+ *
+ *
+ * ACCOUNT_TYPE_UNSUPPORTED = 44;
+ */
+ public static final int ACCOUNT_TYPE_UNSUPPORTED_VALUE = 44;
+
+ /**
+ *
+ *
+ *
+ * The request is denied because the API endpoint is restricted by
+ * administrators according to the organization policy constraint.
+ * For more information see
+ * https://cloud.google.com/assured-workloads/docs/restrict-endpoint-usage.
+ *
+ * Example of an ErrorInfo when access to Google Cloud Storage service is
+ * restricted by Restrict Endpoint Usage policy:
+ *
+ * {
+ * "reason": "ENDPOINT_USAGE_RESTRICTION_VIOLATED",
+ * "domain": "googleapis.com/policies/endpointUsageRestriction",
+ * "metadata": {
+ * "policy_name": "constraints/gcp.restrictEndpointUsage",
+ * "checked_value": "storage.googleapis.com"
+ * "consumer": "organization/123"
+ * "service": "storage.googleapis.com"
+ * }
+ * }
+ *
+ *
+ * ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45;
+ */
+ public static final int ENDPOINT_USAGE_RESTRICTION_VIOLATED_VALUE = 45;
+
+ /**
+ *
+ *
+ *
+ * The request is denied because the TLS Cipher Suite is restricted by
+ * administrators according to the organization policy constraint.
+ * For more information see
+ * https://cloud.google.com/assured-workloads/docs/restrict-tls-cipher-suites
+ *
+ * Example of an ErrorInfo when access to Google Cloud BigQuery service is
+ * restricted by Restrict TLS Cipher Suites policy:
+ *
+ * {
+ * "reason": "TLS_CIPHER_RESTRICTION_VIOLATED",
+ * "domain": "googleapis.com/policies/tlsCipherRestriction",
+ * "metadata": {
+ * "policy_name": "constraints/gcp.restrictTLSCipherSuites",
+ * "checked_value": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
+ * "consumer": "organization/123"
+ * "service": "bigquery.googleapis.com"
+ * }
+ * }
+ *
+ *
+ * TLS_CIPHER_RESTRICTION_VIOLATED = 46;
+ */
+ public static final int TLS_CIPHER_RESTRICTION_VIOLATED_VALUE = 46;
+
+ /**
+ *
+ *
+ *
+ * The request is denied because the MCP activation check fails.
+ *
+ * Example of an ErrorInfo when the container "projects/123" contacting
+ * "pubsub.googleapis.com" service which is disabled by MCP:
+ *
+ * { "reason": "MCP_SERVER_DISABLED",
+ * "domain": "googleapis.com",
+ * "metadata": {
+ * "consumer": "projects/123",
+ * "service": "pubsub.googleapis.com"
+ * }
+ * }
+ *
+ * This response indicates the "pubsub.googleapis.com" has been disabled in
+ * "projects/123" for MCP.
+ *
+ *
+ * MCP_SERVER_DISABLED = 47;
+ */
+ public static final int MCP_SERVER_DISABLED_VALUE = 47;
+
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
@@ -1812,6 +2347,28 @@ public static ErrorReason forNumber(int value) {
return MISSING_ORIGIN;
case 34:
return OVERLOADED_CREDENTIALS;
+ case 35:
+ return LOCATION_ORG_POLICY_VIOLATED;
+ case 36:
+ return TLS_ORG_POLICY_VIOLATED;
+ case 38:
+ return EMULATOR_QUOTA_EXCEEDED;
+ case 39:
+ return CREDENTIAL_ANDROID_APP_INVALID;
+ case 41:
+ return IAM_PERMISSION_DENIED;
+ case 42:
+ return JWT_TOKEN_INVALID;
+ case 43:
+ return CREDENTIAL_TYPE_UNSUPPORTED;
+ case 44:
+ return ACCOUNT_TYPE_UNSUPPORTED;
+ case 45:
+ return ENDPOINT_USAGE_RESTRICTION_VIOLATED;
+ case 46:
+ return TLS_CIPHER_RESTRICTION_VIOLATED;
+ case 47:
+ return MCP_SERVER_DISABLED;
default:
return null;
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReasonProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReasonProto.java
index 94f39f58ba..b49906b66f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReasonProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReasonProto.java
@@ -49,7 +49,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
"\n\035google/api/error_reason.proto\022\ngoogle."
- + "api*\272\007\n\013ErrorReason\022\034\n\030ERROR_REASON_UNSP"
+ + "api*\222\n\n\013ErrorReason\022\034\n\030ERROR_REASON_UNSP"
+ "ECIFIED\020\000\022\024\n\020SERVICE_DISABLED\020\001\022\024\n\020BILLI"
+ "NG_DISABLED\020\002\022\023\n\017API_KEY_INVALID\020\003\022\033\n\027AP"
+ "I_KEY_SERVICE_BLOCKED\020\004\022!\n\035API_KEY_HTTP_"
@@ -73,10 +73,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\n\023SERVICE_NOT_VISIBLE\020\035\022\021\n\rGCP_SUSPENDED"
+ "\020\036\022\034\n\030LOCATION_POLICY_VIOLATED\020\037\022\022\n\016MISS"
+ "ING_ORIGIN\020!\022\032\n\026OVERLOADED_CREDENTIALS\020\""
- + "Bp\n\016com.google.apiB\020ErrorReasonProtoP\001ZC"
- + "google.golang.org/genproto/googleapis/ap"
- + "i/error_reason;error_reason\242\002\004GAPIb\006prot"
- + "o3"
+ + "\022 \n\034LOCATION_ORG_POLICY_VIOLATED\020#\022\033\n\027TL"
+ + "S_ORG_POLICY_VIOLATED\020$\022\033\n\027EMULATOR_QUOT"
+ + "A_EXCEEDED\020&\022\"\n\036CREDENTIAL_ANDROID_APP_I"
+ + "NVALID\020\'\022\031\n\025IAM_PERMISSION_DENIED\020)\022\025\n\021J"
+ + "WT_TOKEN_INVALID\020*\022\037\n\033CREDENTIAL_TYPE_UN"
+ + "SUPPORTED\020+\022\034\n\030ACCOUNT_TYPE_UNSUPPORTED\020"
+ + ",\022\'\n#ENDPOINT_USAGE_RESTRICTION_VIOLATED"
+ + "\020-\022#\n\037TLS_CIPHER_RESTRICTION_VIOLATED\020.\022"
+ + "\027\n\023MCP_SERVER_DISABLED\020/Bp\n\016com.google.a"
+ + "piB\020ErrorReasonProtoP\001ZCgoogle.golang.or"
+ + "g/genproto/googleapis/api/error_reason;e"
+ + "rror_reason\242\002\004GAPIb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FlowControlLimitExceededBehaviorProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FlowControlLimitExceededBehaviorProto.java
new file mode 100644
index 0000000000..b22978eb3f
--- /dev/null
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FlowControlLimitExceededBehaviorProto.java
@@ -0,0 +1,219 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/api/client.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.api;
+
+/**
+ *
+ *
+ * + * The behavior to take when the flow control limit is exceeded. + *+ * + * Protobuf enum {@code google.api.FlowControlLimitExceededBehaviorProto} + */ +@com.google.protobuf.Generated +public enum FlowControlLimitExceededBehaviorProto + implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Default behavior, system-defined. + *+ * + *
UNSET_BEHAVIOR = 0;
+ */
+ UNSET_BEHAVIOR(0),
+ /**
+ *
+ *
+ * + * Stop operation, raise error. + *+ * + *
THROW_EXCEPTION = 1;
+ */
+ THROW_EXCEPTION(1),
+ /**
+ *
+ *
+ * + * Pause operation until limit clears. + *+ * + *
BLOCK = 2;
+ */
+ BLOCK(2),
+ /**
+ *
+ *
+ * + * Continue operation, disregard limit. + *+ * + *
IGNORE = 3;
+ */
+ IGNORE(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "FlowControlLimitExceededBehaviorProto");
+ }
+
+ /**
+ *
+ *
+ * + * Default behavior, system-defined. + *+ * + *
UNSET_BEHAVIOR = 0;
+ */
+ public static final int UNSET_BEHAVIOR_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Stop operation, raise error. + *+ * + *
THROW_EXCEPTION = 1;
+ */
+ public static final int THROW_EXCEPTION_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Pause operation until limit clears. + *+ * + *
BLOCK = 2;
+ */
+ public static final int BLOCK_VALUE = 2;
+
+ /**
+ *
+ *
+ * + * Continue operation, disregard limit. + *+ * + *
IGNORE = 3;
+ */
+ public static final int IGNORE_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static FlowControlLimitExceededBehaviorProto valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static FlowControlLimitExceededBehaviorProto forNumber(int value) {
+ switch (value) {
+ case 0:
+ return UNSET_BEHAVIOR;
+ case 1:
+ return THROW_EXCEPTION;
+ case 2:
+ return BLOCK;
+ case 3:
+ return IGNORE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Batching configuration for an API method in client libraries. + * + * Example of a YAML configuration: + * + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + *+ * + *
.google.api.BatchingConfigProto batching = 4;
+ *
+ * @return Whether the batching field is set.
+ */
+ @java.lang.Override
+ public boolean hasBatching() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Batching configuration for an API method in client libraries. + * + * Example of a YAML configuration: + * + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + *+ * + *
.google.api.BatchingConfigProto batching = 4;
+ *
+ * @return The batching.
+ */
+ @java.lang.Override
+ public com.google.api.BatchingConfigProto getBatching() {
+ return batching_ == null ? com.google.api.BatchingConfigProto.getDefaultInstance() : batching_;
+ }
+
+ /**
+ *
+ *
+ * + * Batching configuration for an API method in client libraries. + * + * Example of a YAML configuration: + * + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + *+ * + *
.google.api.BatchingConfigProto batching = 4;
+ */
+ @java.lang.Override
+ public com.google.api.BatchingConfigProtoOrBuilder getBatchingOrBuilder() {
+ return batching_ == null ? com.google.api.BatchingConfigProto.getDefaultInstance() : batching_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1897,6 +1976,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < autoPopulatedFields_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, autoPopulatedFields_.getRaw(i));
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(4, getBatching());
+ }
getUnknownFields().writeTo(output);
}
@@ -1920,6 +2002,9 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getAutoPopulatedFieldsList().size();
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBatching());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1941,6 +2026,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getLongRunning().equals(other.getLongRunning())) return false;
}
if (!getAutoPopulatedFieldsList().equals(other.getAutoPopulatedFieldsList())) return false;
+ if (hasBatching() != other.hasBatching()) return false;
+ if (hasBatching()) {
+ if (!getBatching().equals(other.getBatching())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1962,6 +2051,10 @@ public int hashCode() {
hash = (37 * hash) + AUTO_POPULATED_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getAutoPopulatedFieldsList().hashCode();
}
+ if (hasBatching()) {
+ hash = (37 * hash) + BATCHING_FIELD_NUMBER;
+ hash = (53 * hash) + getBatching().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -2100,6 +2193,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
internalGetLongRunningFieldBuilder();
+ internalGetBatchingFieldBuilder();
}
}
@@ -2114,6 +2208,11 @@ public Builder clear() {
longRunningBuilder_ = null;
}
autoPopulatedFields_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ batching_ = null;
+ if (batchingBuilder_ != null) {
+ batchingBuilder_.dispose();
+ batchingBuilder_ = null;
+ }
return this;
}
@@ -2161,6 +2260,10 @@ private void buildPartial0(com.google.api.MethodSettings result) {
autoPopulatedFields_.makeImmutable();
result.autoPopulatedFields_ = autoPopulatedFields_;
}
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.batching_ = batchingBuilder_ == null ? batching_ : batchingBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -2194,6 +2297,9 @@ public Builder mergeFrom(com.google.api.MethodSettings other) {
}
onChanged();
}
+ if (other.hasBatching()) {
+ mergeBatching(other.getBatching());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -2240,6 +2346,13 @@ public Builder mergeFrom(
autoPopulatedFields_.add(s);
break;
} // case 26
+ case 34:
+ {
+ input.readMessage(
+ internalGetBatchingFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2995,6 +3108,290 @@ public Builder addAutoPopulatedFieldsBytes(com.google.protobuf.ByteString value)
return this;
}
+ private com.google.api.BatchingConfigProto batching_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.api.BatchingConfigProto,
+ com.google.api.BatchingConfigProto.Builder,
+ com.google.api.BatchingConfigProtoOrBuilder>
+ batchingBuilder_;
+
+ /**
+ *
+ *
+ * + * Batching configuration for an API method in client libraries. + * + * Example of a YAML configuration: + * + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + *+ * + *
.google.api.BatchingConfigProto batching = 4;
+ *
+ * @return Whether the batching field is set.
+ */
+ public boolean hasBatching() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Batching configuration for an API method in client libraries. + * + * Example of a YAML configuration: + * + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + *+ * + *
.google.api.BatchingConfigProto batching = 4;
+ *
+ * @return The batching.
+ */
+ public com.google.api.BatchingConfigProto getBatching() {
+ if (batchingBuilder_ == null) {
+ return batching_ == null
+ ? com.google.api.BatchingConfigProto.getDefaultInstance()
+ : batching_;
+ } else {
+ return batchingBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Batching configuration for an API method in client libraries. + * + * Example of a YAML configuration: + * + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + *+ * + *
.google.api.BatchingConfigProto batching = 4;
+ */
+ public Builder setBatching(com.google.api.BatchingConfigProto value) {
+ if (batchingBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ batching_ = value;
+ } else {
+ batchingBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Batching configuration for an API method in client libraries. + * + * Example of a YAML configuration: + * + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + *+ * + *
.google.api.BatchingConfigProto batching = 4;
+ */
+ public Builder setBatching(com.google.api.BatchingConfigProto.Builder builderForValue) {
+ if (batchingBuilder_ == null) {
+ batching_ = builderForValue.build();
+ } else {
+ batchingBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Batching configuration for an API method in client libraries. + * + * Example of a YAML configuration: + * + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + *+ * + *
.google.api.BatchingConfigProto batching = 4;
+ */
+ public Builder mergeBatching(com.google.api.BatchingConfigProto value) {
+ if (batchingBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && batching_ != null
+ && batching_ != com.google.api.BatchingConfigProto.getDefaultInstance()) {
+ getBatchingBuilder().mergeFrom(value);
+ } else {
+ batching_ = value;
+ }
+ } else {
+ batchingBuilder_.mergeFrom(value);
+ }
+ if (batching_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Batching configuration for an API method in client libraries. + * + * Example of a YAML configuration: + * + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + *+ * + *
.google.api.BatchingConfigProto batching = 4;
+ */
+ public Builder clearBatching() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ batching_ = null;
+ if (batchingBuilder_ != null) {
+ batchingBuilder_.dispose();
+ batchingBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Batching configuration for an API method in client libraries. + * + * Example of a YAML configuration: + * + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + *+ * + *
.google.api.BatchingConfigProto batching = 4;
+ */
+ public com.google.api.BatchingConfigProto.Builder getBatchingBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return internalGetBatchingFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Batching configuration for an API method in client libraries. + * + * Example of a YAML configuration: + * + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + *+ * + *
.google.api.BatchingConfigProto batching = 4;
+ */
+ public com.google.api.BatchingConfigProtoOrBuilder getBatchingOrBuilder() {
+ if (batchingBuilder_ != null) {
+ return batchingBuilder_.getMessageOrBuilder();
+ } else {
+ return batching_ == null
+ ? com.google.api.BatchingConfigProto.getDefaultInstance()
+ : batching_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Batching configuration for an API method in client libraries. + * + * Example of a YAML configuration: + * + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + *+ * + *
.google.api.BatchingConfigProto batching = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.api.BatchingConfigProto,
+ com.google.api.BatchingConfigProto.Builder,
+ com.google.api.BatchingConfigProtoOrBuilder>
+ internalGetBatchingFieldBuilder() {
+ if (batchingBuilder_ == null) {
+ batchingBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.api.BatchingConfigProto,
+ com.google.api.BatchingConfigProto.Builder,
+ com.google.api.BatchingConfigProtoOrBuilder>(
+ getBatching(), getParentForChildren(), isClean());
+ batching_ = null;
+ }
+ return batchingBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.api.MethodSettings)
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java
index 90c24d2333..fa778fe082 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java
@@ -237,4 +237,71 @@ public interface MethodSettingsOrBuilder
* @return The bytes of the autoPopulatedFields at the given index.
*/
com.google.protobuf.ByteString getAutoPopulatedFieldsBytes(int index);
+
+ /**
+ *
+ *
+ * + * Batching configuration for an API method in client libraries. + * + * Example of a YAML configuration: + * + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + *+ * + *
.google.api.BatchingConfigProto batching = 4;
+ *
+ * @return Whether the batching field is set.
+ */
+ boolean hasBatching();
+
+ /**
+ *
+ *
+ * + * Batching configuration for an API method in client libraries. + * + * Example of a YAML configuration: + * + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + *+ * + *
.google.api.BatchingConfigProto batching = 4;
+ *
+ * @return The batching.
+ */
+ com.google.api.BatchingConfigProto getBatching();
+
+ /**
+ *
+ *
+ * + * Batching configuration for an API method in client libraries. + * + * Example of a YAML configuration: + * + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + *+ * + *
.google.api.BatchingConfigProto batching = 4;
+ */
+ com.google.api.BatchingConfigProtoOrBuilder getBatchingOrBuilder();
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java
index 75b6bc9058..44e3f4351f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java
@@ -96,6 +96,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
*
+ *
* Example:
*
* canonical_scopes: https://www.googleapis.com/auth/calendar,
@@ -126,6 +127,7 @@ public java.lang.String getCanonicalScopes() {
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
*
+ *
* Example:
*
* canonical_scopes: https://www.googleapis.com/auth/calendar,
@@ -479,6 +481,7 @@ public Builder mergeFrom(
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
*
+ *
* Example:
*
* canonical_scopes: https://www.googleapis.com/auth/calendar,
@@ -508,6 +511,7 @@ public java.lang.String getCanonicalScopes() {
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
*
+ *
* Example:
*
* canonical_scopes: https://www.googleapis.com/auth/calendar,
@@ -537,6 +541,7 @@ public com.google.protobuf.ByteString getCanonicalScopesBytes() {
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
*
+ *
* Example:
*
* canonical_scopes: https://www.googleapis.com/auth/calendar,
@@ -565,6 +570,7 @@ public Builder setCanonicalScopes(java.lang.String value) {
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
*
+ *
* Example:
*
* canonical_scopes: https://www.googleapis.com/auth/calendar,
@@ -589,6 +595,7 @@ public Builder clearCanonicalScopes() {
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
*
+ *
* Example:
*
* canonical_scopes: https://www.googleapis.com/auth/calendar,
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java
index 70c7e2c7d7..4b28739976 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java
@@ -33,6 +33,7 @@ public interface OAuthRequirementsOrBuilder
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
*
+ *
* Example:
*
* canonical_scopes: https://www.googleapis.com/auth/calendar,
@@ -52,6 +53,7 @@ public interface OAuthRequirementsOrBuilder
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
*
+ *
* Example:
*
* canonical_scopes: https://www.googleapis.com/auth/calendar,
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java
index eff8b20b9e..9f1787c4ad 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java
@@ -51,7 +51,9 @@ private PhpSettings(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
- private PhpSettings() {}
+ private PhpSettings() {
+ libraryPackage_ = "";
+ }
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_PhpSettings_descriptor;
@@ -115,6 +117,81 @@ public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() {
return common_ == null ? com.google.api.CommonLanguageSettings.getDefaultInstance() : common_;
}
+ public static final int LIBRARY_PACKAGE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object libraryPackage_ = "";
+
+ /**
+ *
+ *
+ * + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * + * Example of a YAML configuration:: + * + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + *+ * + *
string library_package = 2;
+ *
+ * @return The libraryPackage.
+ */
+ @java.lang.Override
+ public java.lang.String getLibraryPackage() {
+ java.lang.Object ref = libraryPackage_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ libraryPackage_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * + * Example of a YAML configuration:: + * + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + *+ * + *
string library_package = 2;
+ *
+ * @return The bytes for libraryPackage.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getLibraryPackageBytes() {
+ java.lang.Object ref = libraryPackage_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ libraryPackage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -132,6 +209,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getCommon());
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(libraryPackage_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, libraryPackage_);
+ }
getUnknownFields().writeTo(output);
}
@@ -144,6 +224,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon());
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(libraryPackage_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, libraryPackage_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -163,6 +246,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasCommon()) {
if (!getCommon().equals(other.getCommon())) return false;
}
+ if (!getLibraryPackage().equals(other.getLibraryPackage())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -178,6 +262,8 @@ public int hashCode() {
hash = (37 * hash) + COMMON_FIELD_NUMBER;
hash = (53 * hash) + getCommon().hashCode();
}
+ hash = (37 * hash) + LIBRARY_PACKAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getLibraryPackage().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -328,6 +414,7 @@ public Builder clear() {
commonBuilder_.dispose();
commonBuilder_ = null;
}
+ libraryPackage_ = "";
return this;
}
@@ -367,6 +454,9 @@ private void buildPartial0(com.google.api.PhpSettings result) {
result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.libraryPackage_ = libraryPackage_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -385,6 +475,11 @@ public Builder mergeFrom(com.google.api.PhpSettings other) {
if (other.hasCommon()) {
mergeCommon(other.getCommon());
}
+ if (!other.getLibraryPackage().isEmpty()) {
+ libraryPackage_ = other.libraryPackage_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -417,6 +512,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 10
+ case 18:
+ {
+ libraryPackage_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -630,6 +731,172 @@ public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() {
return commonBuilder_;
}
+ private java.lang.Object libraryPackage_ = "";
+
+ /**
+ *
+ *
+ * + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * + * Example of a YAML configuration:: + * + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + *+ * + *
string library_package = 2;
+ *
+ * @return The libraryPackage.
+ */
+ public java.lang.String getLibraryPackage() {
+ java.lang.Object ref = libraryPackage_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ libraryPackage_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * + * Example of a YAML configuration:: + * + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + *+ * + *
string library_package = 2;
+ *
+ * @return The bytes for libraryPackage.
+ */
+ public com.google.protobuf.ByteString getLibraryPackageBytes() {
+ java.lang.Object ref = libraryPackage_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ libraryPackage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * + * Example of a YAML configuration:: + * + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + *+ * + *
string library_package = 2;
+ *
+ * @param value The libraryPackage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLibraryPackage(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ libraryPackage_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * + * Example of a YAML configuration:: + * + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + *+ * + *
string library_package = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLibraryPackage() {
+ libraryPackage_ = getDefaultInstance().getLibraryPackage();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * + * Example of a YAML configuration:: + * + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + *+ * + *
string library_package = 2;
+ *
+ * @param value The bytes for libraryPackage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLibraryPackageBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ libraryPackage_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.api.PhpSettings)
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettingsOrBuilder.java
index bdb702f445..e67df67499 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettingsOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettingsOrBuilder.java
@@ -62,4 +62,52 @@ public interface PhpSettingsOrBuilder
* .google.api.CommonLanguageSettings common = 1;
*/
com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder();
+
+ /**
+ *
+ *
+ * + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * + * Example of a YAML configuration:: + * + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + *+ * + *
string library_package = 2;
+ *
+ * @return The libraryPackage.
+ */
+ java.lang.String getLibraryPackage();
+
+ /**
+ *
+ *
+ * + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * + * Example of a YAML configuration:: + * + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + *+ * + *
string library_package = 2;
+ *
+ * @return The bytes for libraryPackage.
+ */
+ com.google.protobuf.ByteString getLibraryPackageBytes();
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java
index bc31392bb9..3ee0dda986 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java
@@ -54,9 +54,13 @@
* app_profile_id: profiles/prof_qux
* }
*
- * The routing header consists of one or multiple key-value pairs. Every key
- * and value must be percent-encoded, and joined together in the format of
- * `key1=value1&key2=value2`.
+ * The routing header consists of one or multiple key-value pairs. The order of
+ * the key-value pairs is undefined, the order of the `routing_parameters` in
+ * the `RoutingRule` only matters for the evaluation order of the path
+ * templates when `field` is the same. See the examples below for more details.
+ *
+ * Every key and value in the routing header must be percent-encoded,
+ * and joined together in the following format: `key1=value1&key2=value2`.
* The examples below skip the percent-encoding for readability.
*
* Example 1
@@ -721,9 +725,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
* app_profile_id: profiles/prof_qux
* }
*
- * The routing header consists of one or multiple key-value pairs. Every key
- * and value must be percent-encoded, and joined together in the format of
- * `key1=value1&key2=value2`.
+ * The routing header consists of one or multiple key-value pairs. The order of
+ * the key-value pairs is undefined, the order of the `routing_parameters` in
+ * the `RoutingRule` only matters for the evaluation order of the path
+ * templates when `field` is the same. See the examples below for more details.
+ *
+ * Every key and value in the routing header must be percent-encoded,
+ * and joined together in the following format: `key1=value1&key2=value2`.
* The examples below skip the percent-encoding for readability.
*
* Example 1
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java
index 2a5f6ffc6b..cfeb4269c6 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java
@@ -1292,8 +1292,7 @@ public com.google.api.MetricDescriptorOrBuilder getMetricsOrBuilder(int index) {
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -1308,8 +1307,7 @@ public java.util.List
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -1325,8 +1323,7 @@ public java.util.List
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -1341,8 +1338,7 @@ public int getMonitoredResourcesCount() {
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -1357,8 +1353,7 @@ public com.google.api.MonitoredResourceDescriptor getMonitoredResources(int inde
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7633,8 +7628,7 @@ private void ensureMonitoredResourcesIsMutable() {
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7652,8 +7646,7 @@ public java.util.List
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7671,8 +7664,7 @@ public int getMonitoredResourcesCount() {
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7690,8 +7682,7 @@ public com.google.api.MonitoredResourceDescriptor getMonitoredResources(int inde
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7716,8 +7707,7 @@ public Builder setMonitoredResources(
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7739,8 +7729,7 @@ public Builder setMonitoredResources(
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7764,8 +7753,7 @@ public Builder addMonitoredResources(com.google.api.MonitoredResourceDescriptor
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7790,8 +7778,7 @@ public Builder addMonitoredResources(
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7813,8 +7800,7 @@ public Builder addMonitoredResources(
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7836,8 +7822,7 @@ public Builder addMonitoredResources(
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7859,8 +7844,7 @@ public Builder addAllMonitoredResources(
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7881,8 +7865,7 @@ public Builder clearMonitoredResources() {
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7903,8 +7886,7 @@ public Builder removeMonitoredResources(int index) {
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7919,8 +7901,7 @@ public com.google.api.MonitoredResourceDescriptor.Builder getMonitoredResourcesB
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7939,8 +7920,7 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResources
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7959,8 +7939,7 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResources
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7975,8 +7954,7 @@ public com.google.api.MonitoredResourceDescriptor.Builder addMonitoredResourcesB
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -7992,8 +7970,7 @@ public com.google.api.MonitoredResourceDescriptor.Builder addMonitoredResourcesB
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java
index ae7e2ea7c7..474fedefe0 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java
@@ -870,8 +870,7 @@ public interface ServiceOrBuilder
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -883,8 +882,7 @@ public interface ServiceOrBuilder
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -896,8 +894,7 @@ public interface ServiceOrBuilder
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -909,8 +906,7 @@ public interface ServiceOrBuilder
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
@@ -923,8 +919,7 @@ public interface ServiceOrBuilder
*
*
* Defines the monitored resources used by this service. This is required
- * by the [Service.monitoring][google.api.Service.monitoring] and
- * [Service.logging][google.api.Service.logging] configurations.
+ * by the `Service.monitoring` and `Service.logging` configurations.
*
*
* repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java
index d011c39799..254127e734 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java
@@ -25,30 +25,6 @@
*
* * Usage configuration rules for the service. - * - * NOTE: Under development. - * - * - * Use this rule to configure unregistered calls for the service. Unregistered - * calls are calls that do not contain consumer project identity. - * (Example: calls that do not contain an API key). - * By default, API methods do not allow unregistered calls, and each method call - * must be identified by a consumer project identity. Use this rule to - * allow/disallow unregistered calls. - * - * Example of an API that wants to allow unregistered calls for entire service. - * - * usage: - * rules: - * - selector: "*" - * allow_unregistered_calls: true - * - * Example of a method that wants to allow unregistered calls. - * - * usage: - * rules: - * - selector: "google.example.library.v1.LibraryService.CreateBook" - * allow_unregistered_calls: true ** * Protobuf type {@code google.api.UsageRule} @@ -159,8 +135,12 @@ public com.google.protobuf.ByteString getSelectorBytes() { * * *
- * If true, the selected method allows unregistered calls, e.g. calls
- * that don't identify any user or application.
+ * Use this rule to configure unregistered calls for the service. Unregistered
+ * calls are calls that do not contain consumer project identity.
+ * (Example: calls that do not contain an API key).
+ *
+ * WARNING: By default, API methods do not allow unregistered calls, and each
+ * method call must be identified by a consumer project identity.
*
*
* bool allow_unregistered_calls = 2;
@@ -375,30 +355,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
*
*
* Usage configuration rules for the service.
- *
- * NOTE: Under development.
- *
- *
- * Use this rule to configure unregistered calls for the service. Unregistered
- * calls are calls that do not contain consumer project identity.
- * (Example: calls that do not contain an API key).
- * By default, API methods do not allow unregistered calls, and each method call
- * must be identified by a consumer project identity. Use this rule to
- * allow/disallow unregistered calls.
- *
- * Example of an API that wants to allow unregistered calls for entire service.
- *
- * usage:
- * rules:
- * - selector: "*"
- * allow_unregistered_calls: true
- *
- * Example of a method that wants to allow unregistered calls.
- *
- * usage:
- * rules:
- * - selector: "google.example.library.v1.LibraryService.CreateBook"
- * allow_unregistered_calls: true
*
*
* Protobuf type {@code google.api.UsageRule}
@@ -701,8 +657,12 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
*
*
*
- * If true, the selected method allows unregistered calls, e.g. calls
- * that don't identify any user or application.
+ * Use this rule to configure unregistered calls for the service. Unregistered
+ * calls are calls that do not contain consumer project identity.
+ * (Example: calls that do not contain an API key).
+ *
+ * WARNING: By default, API methods do not allow unregistered calls, and each
+ * method call must be identified by a consumer project identity.
*
*
* bool allow_unregistered_calls = 2;
@@ -718,8 +678,12 @@ public boolean getAllowUnregisteredCalls() {
*
*
*
- * If true, the selected method allows unregistered calls, e.g. calls
- * that don't identify any user or application.
+ * Use this rule to configure unregistered calls for the service. Unregistered
+ * calls are calls that do not contain consumer project identity.
+ * (Example: calls that do not contain an API key).
+ *
+ * WARNING: By default, API methods do not allow unregistered calls, and each
+ * method call must be identified by a consumer project identity.
*
*
* bool allow_unregistered_calls = 2;
@@ -739,8 +703,12 @@ public Builder setAllowUnregisteredCalls(boolean value) {
*
*
*
- * If true, the selected method allows unregistered calls, e.g. calls
- * that don't identify any user or application.
+ * Use this rule to configure unregistered calls for the service. Unregistered
+ * calls are calls that do not contain consumer project identity.
+ * (Example: calls that do not contain an API key).
+ *
+ * WARNING: By default, API methods do not allow unregistered calls, and each
+ * method call must be identified by a consumer project identity.
*
*
* bool allow_unregistered_calls = 2;
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java
index 71a6dedd1e..81fae159d8 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java
@@ -64,8 +64,12 @@ public interface UsageRuleOrBuilder
*
*
*
- * If true, the selected method allows unregistered calls, e.g. calls
- * that don't identify any user or application.
+ * Use this rule to configure unregistered calls for the service. Unregistered
+ * calls are calls that do not contain consumer project identity.
+ * (Example: calls that do not contain an API key).
+ *
+ * WARNING: By default, API methods do not allow unregistered calls, and each
+ * method call must be identified by a consumer project identity.
*
*
* bool allow_unregistered_calls = 2;
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java
index d60fd6f8a6..369270781c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java
@@ -25,22 +25,22 @@
*
*
* Represents a color in the RGBA color space. This representation is designed
- * for simplicity of conversion to/from color representations in various
+ * for simplicity of conversion to and from color representations in various
* languages over compactness. For example, the fields of this representation
* can be trivially provided to the constructor of `java.awt.Color` in Java; it
* can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
* method in iOS; and, with just a little work, it can be easily formatted into
* a CSS `rgba()` string in JavaScript.
*
- * This reference page doesn't carry information about the absolute color
- * space
- * that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
- * DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color
+ * This reference page doesn't have information about the absolute color
+ * space that should be used to interpret the RGB value—for example, sRGB,
+ * Adobe RGB,
+ * DCI-P3, and BT.2020. By default, applications should assume the sRGB color
* space.
*
- * When color equality needs to be decided, implementations, unless
- * documented otherwise, treat two colors as equal if all their red,
- * green, blue, and alpha values each differ by at most 1e-5.
+ * When color equality needs to be decided, implementations, unless documented
+ * otherwise, treat two colors as equal if all their red, green, blue, and alpha
+ * values each differ by at most `1e-5`.
*
* Example (Java):
*
@@ -523,22 +523,22 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
*
*
* Represents a color in the RGBA color space. This representation is designed
- * for simplicity of conversion to/from color representations in various
+ * for simplicity of conversion to and from color representations in various
* languages over compactness. For example, the fields of this representation
* can be trivially provided to the constructor of `java.awt.Color` in Java; it
* can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
* method in iOS; and, with just a little work, it can be easily formatted into
* a CSS `rgba()` string in JavaScript.
*
- * This reference page doesn't carry information about the absolute color
- * space
- * that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
- * DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color
+ * This reference page doesn't have information about the absolute color
+ * space that should be used to interpret the RGB value—for example, sRGB,
+ * Adobe RGB,
+ * DCI-P3, and BT.2020. By default, applications should assume the sRGB color
* space.
*
- * When color equality needs to be decided, implementations, unless
- * documented otherwise, treat two colors as equal if all their red,
- * green, blue, and alpha values each differ by at most 1e-5.
+ * When color equality needs to be decided, implementations, unless documented
+ * otherwise, treat two colors as equal if all their red, green, blue, and alpha
+ * values each differ by at most `1e-5`.
*
* Example (Java):
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorProto.java
index b80ef0003d..92b32047c8 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorProto.java
@@ -59,10 +59,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\003red\030\001 \001(\002\022\r\n"
+ "\005green\030\002 \001(\002\022\014\n"
+ "\004blue\030\003 \001(\002\022*\n"
- + "\005alpha\030\004 \001(\0132\033.google.protobuf.FloatValueB`\n"
+ + "\005alpha\030\004 \001(\0132\033.google.protobuf.FloatValueB]\n"
+ "\017com.google.typeB\n"
+ "ColorProtoP\001Z6google.golang.org/genproto/googleapis/ty"
- + "pe/color;color\370\001\001\242\002\003GTPb\006proto3"
+ + "pe/color;color\242\002\003GTPb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java
index 1c04a154b2..ae403fc9e7 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java
@@ -29,14 +29,17 @@
* date is relative to the Gregorian Calendar. This can represent one of the
* following:
*
- * * A full date, with non-zero year, month, and day values
- * * A month and day value, with a zero year, such as an anniversary
- * * A year on its own, with zero month and day values
- * * A year and month value, with a zero day, such as a credit card expiration
- * date
+ * * A full date, with non-zero year, month, and day values.
+ * * A month and day, with a zero year (for example, an anniversary).
+ * * A year on its own, with a zero month and a zero day.
+ * * A year and month, with a zero day (for example, a credit card expiration
+ * date).
*
- * Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
- * `google.protobuf.Timestamp`.
+ * Related types:
+ *
+ * * [google.type.TimeOfDay][google.type.TimeOfDay]
+ * * [google.type.DateTime][google.type.DateTime]
+ * * [google.protobuf.Timestamp][google.protobuf.Timestamp]
*
*
* Protobuf type {@code google.type.Date}
@@ -323,14 +326,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
* date is relative to the Gregorian Calendar. This can represent one of the
* following:
*
- * * A full date, with non-zero year, month, and day values
- * * A month and day value, with a zero year, such as an anniversary
- * * A year on its own, with zero month and day values
- * * A year and month value, with a zero day, such as a credit card expiration
- * date
+ * * A full date, with non-zero year, month, and day values.
+ * * A month and day, with a zero year (for example, an anniversary).
+ * * A year on its own, with a zero month and a zero day.
+ * * A year and month, with a zero day (for example, a credit card expiration
+ * date).
+ *
+ * Related types:
*
- * Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
- * `google.protobuf.Timestamp`.
+ * * [google.type.TimeOfDay][google.type.TimeOfDay]
+ * * [google.type.DateTime][google.type.DateTime]
+ * * [google.protobuf.Timestamp][google.protobuf.Timestamp]
*
*
* Protobuf type {@code google.type.Date}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateProto.java
index 834120366c..b6534a15fd 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateProto.java
@@ -58,9 +58,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004Date\022\014\n"
+ "\004year\030\001 \001(\005\022\r\n"
+ "\005month\030\002 \001(\005\022\013\n"
- + "\003day\030\003 \001(\005B]\n"
+ + "\003day\030\003 \001(\005BZ\n"
+ "\017com.google.typeB\tDateProtoP\001Z4google.golang.org/genproto/googleapis/t"
- + "ype/date;date\370\001\001\242\002\003GTPb\006proto3"
+ + "ype/date;date\242\002\003GTPb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java
index 7ced5f12ae..b6d30f7b73 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java
@@ -37,8 +37,8 @@
*
* The date is relative to the Proleptic Gregorian Calendar.
*
- * If year is 0, the DateTime is considered not to have a specific year. month
- * and day must have valid, non-zero values.
+ * If year, month, or day are 0, the DateTime is considered not to have a
+ * specific year, month, or day respectively.
*
* This type may also be used to represent a physical time if all the date and
* time fields are set and either case of the `time_offset` oneof is set.
@@ -165,7 +165,8 @@ public int getYear() {
*
*
*
- * Required. Month of year. Must be from 1 to 12.
+ * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a
+ * datetime without a month.
*
*
* int32 month = 2;
@@ -184,8 +185,8 @@ public int getMonth() {
*
*
*
- * Required. Day of month. Must be from 1 to 31 and valid for the year and
- * month.
+ * Optional. Day of month. Must be from 1 to 31 and valid for the year and
+ * month, or 0 if specifying a datetime without a day.
*
*
* int32 day = 3;
@@ -204,9 +205,9 @@ public int getDay() {
*
*
*
- * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
- * may choose to allow the value "24:00:00" for scenarios like business
- * closing time.
+ * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults
+ * to 0 (midnight). An API may choose to allow the value "24:00:00" for
+ * scenarios like business closing time.
*
*
* int32 hours = 4;
@@ -225,7 +226,7 @@ public int getHours() {
*
*
*
- * Required. Minutes of hour of day. Must be from 0 to 59.
+ * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
*
*
* int32 minutes = 5;
@@ -244,8 +245,8 @@ public int getMinutes() {
*
*
*
- * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
- * API may allow the value 60 if it allows leap-seconds.
+ * Optional. Seconds of minutes of the time. Must normally be from 0 to 59,
+ * defaults to 0. An API may allow the value 60 if it allows leap-seconds.
*
*
* int32 seconds = 6;
@@ -264,8 +265,8 @@ public int getSeconds() {
*
*
*
- * Required. Fractions of seconds in nanoseconds. Must be from 0 to
- * 999,999,999.
+ * Optional. Fractions of seconds in nanoseconds. Must be from 0 to
+ * 999,999,999, defaults to 0.
*
*
* int32 nanos = 7;
@@ -659,8 +660,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
*
* The date is relative to the Proleptic Gregorian Calendar.
*
- * If year is 0, the DateTime is considered not to have a specific year. month
- * and day must have valid, non-zero values.
+ * If year, month, or day are 0, the DateTime is considered not to have a
+ * specific year, month, or day respectively.
*
* This type may also be used to represent a physical time if all the date and
* time fields are set and either case of the `time_offset` oneof is set.
@@ -1014,7 +1015,8 @@ public Builder clearYear() {
*
*
*
- * Required. Month of year. Must be from 1 to 12.
+ * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a
+ * datetime without a month.
*
*
* int32 month = 2;
@@ -1030,7 +1032,8 @@ public int getMonth() {
*
*
*
- * Required. Month of year. Must be from 1 to 12.
+ * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a
+ * datetime without a month.
*
*
* int32 month = 2;
@@ -1050,7 +1053,8 @@ public Builder setMonth(int value) {
*
*
*
- * Required. Month of year. Must be from 1 to 12.
+ * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a
+ * datetime without a month.
*
*
* int32 month = 2;
@@ -1070,8 +1074,8 @@ public Builder clearMonth() {
*
*
*
- * Required. Day of month. Must be from 1 to 31 and valid for the year and
- * month.
+ * Optional. Day of month. Must be from 1 to 31 and valid for the year and
+ * month, or 0 if specifying a datetime without a day.
*
*
* int32 day = 3;
@@ -1087,8 +1091,8 @@ public int getDay() {
*
*
*
- * Required. Day of month. Must be from 1 to 31 and valid for the year and
- * month.
+ * Optional. Day of month. Must be from 1 to 31 and valid for the year and
+ * month, or 0 if specifying a datetime without a day.
*
*
* int32 day = 3;
@@ -1108,8 +1112,8 @@ public Builder setDay(int value) {
*
*
*
- * Required. Day of month. Must be from 1 to 31 and valid for the year and
- * month.
+ * Optional. Day of month. Must be from 1 to 31 and valid for the year and
+ * month, or 0 if specifying a datetime without a day.
*
*
* int32 day = 3;
@@ -1129,9 +1133,9 @@ public Builder clearDay() {
*
*
*
- * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
- * may choose to allow the value "24:00:00" for scenarios like business
- * closing time.
+ * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults
+ * to 0 (midnight). An API may choose to allow the value "24:00:00" for
+ * scenarios like business closing time.
*
*
* int32 hours = 4;
@@ -1147,9 +1151,9 @@ public int getHours() {
*
*
*
- * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
- * may choose to allow the value "24:00:00" for scenarios like business
- * closing time.
+ * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults
+ * to 0 (midnight). An API may choose to allow the value "24:00:00" for
+ * scenarios like business closing time.
*
*
* int32 hours = 4;
@@ -1169,9 +1173,9 @@ public Builder setHours(int value) {
*
*
*
- * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
- * may choose to allow the value "24:00:00" for scenarios like business
- * closing time.
+ * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults
+ * to 0 (midnight). An API may choose to allow the value "24:00:00" for
+ * scenarios like business closing time.
*
*
* int32 hours = 4;
@@ -1191,7 +1195,7 @@ public Builder clearHours() {
*
*
*
- * Required. Minutes of hour of day. Must be from 0 to 59.
+ * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
*
*
* int32 minutes = 5;
@@ -1207,7 +1211,7 @@ public int getMinutes() {
*
*
*
- * Required. Minutes of hour of day. Must be from 0 to 59.
+ * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
*
*
* int32 minutes = 5;
@@ -1227,7 +1231,7 @@ public Builder setMinutes(int value) {
*
*
*
- * Required. Minutes of hour of day. Must be from 0 to 59.
+ * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
*
*
* int32 minutes = 5;
@@ -1247,8 +1251,8 @@ public Builder clearMinutes() {
*
*
*
- * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
- * API may allow the value 60 if it allows leap-seconds.
+ * Optional. Seconds of minutes of the time. Must normally be from 0 to 59,
+ * defaults to 0. An API may allow the value 60 if it allows leap-seconds.
*
*
* int32 seconds = 6;
@@ -1264,8 +1268,8 @@ public int getSeconds() {
*
*
*
- * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
- * API may allow the value 60 if it allows leap-seconds.
+ * Optional. Seconds of minutes of the time. Must normally be from 0 to 59,
+ * defaults to 0. An API may allow the value 60 if it allows leap-seconds.
*
*
* int32 seconds = 6;
@@ -1285,8 +1289,8 @@ public Builder setSeconds(int value) {
*
*
*
- * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
- * API may allow the value 60 if it allows leap-seconds.
+ * Optional. Seconds of minutes of the time. Must normally be from 0 to 59,
+ * defaults to 0. An API may allow the value 60 if it allows leap-seconds.
*
*
* int32 seconds = 6;
@@ -1306,8 +1310,8 @@ public Builder clearSeconds() {
*
*
*
- * Required. Fractions of seconds in nanoseconds. Must be from 0 to
- * 999,999,999.
+ * Optional. Fractions of seconds in nanoseconds. Must be from 0 to
+ * 999,999,999, defaults to 0.
*
*
* int32 nanos = 7;
@@ -1323,8 +1327,8 @@ public int getNanos() {
*
*
*
- * Required. Fractions of seconds in nanoseconds. Must be from 0 to
- * 999,999,999.
+ * Optional. Fractions of seconds in nanoseconds. Must be from 0 to
+ * 999,999,999, defaults to 0.
*
*
* int32 nanos = 7;
@@ -1344,8 +1348,8 @@ public Builder setNanos(int value) {
*
*
*
- * Required. Fractions of seconds in nanoseconds. Must be from 0 to
- * 999,999,999.
+ * Optional. Fractions of seconds in nanoseconds. Must be from 0 to
+ * 999,999,999, defaults to 0.
*
*
* int32 nanos = 7;
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java
index 8de4a99ea8..fa884f156a 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java
@@ -44,7 +44,8 @@ public interface DateTimeOrBuilder
*
*
*
- * Required. Month of year. Must be from 1 to 12.
+ * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a
+ * datetime without a month.
*
*
* int32 month = 2;
@@ -57,8 +58,8 @@ public interface DateTimeOrBuilder
*
*
*
- * Required. Day of month. Must be from 1 to 31 and valid for the year and
- * month.
+ * Optional. Day of month. Must be from 1 to 31 and valid for the year and
+ * month, or 0 if specifying a datetime without a day.
*
*
* int32 day = 3;
@@ -71,9 +72,9 @@ public interface DateTimeOrBuilder
*
*
*
- * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
- * may choose to allow the value "24:00:00" for scenarios like business
- * closing time.
+ * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults
+ * to 0 (midnight). An API may choose to allow the value "24:00:00" for
+ * scenarios like business closing time.
*
*
* int32 hours = 4;
@@ -86,7 +87,7 @@ public interface DateTimeOrBuilder
*
*
*
- * Required. Minutes of hour of day. Must be from 0 to 59.
+ * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
*
*
* int32 minutes = 5;
@@ -99,8 +100,8 @@ public interface DateTimeOrBuilder
*
*
*
- * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
- * API may allow the value 60 if it allows leap-seconds.
+ * Optional. Seconds of minutes of the time. Must normally be from 0 to 59,
+ * defaults to 0. An API may allow the value 60 if it allows leap-seconds.
*
*
* int32 seconds = 6;
@@ -113,8 +114,8 @@ public interface DateTimeOrBuilder
*
*
*
- * Required. Fractions of seconds in nanoseconds. Must be from 0 to
- * 999,999,999.
+ * Optional. Fractions of seconds in nanoseconds. Must be from 0 to
+ * 999,999,999, defaults to 0.
*
*
* int32 nanos = 7;
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeProto.java
index 098f3e4b96..0ded4be2a1 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeProto.java
@@ -72,10 +72,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013time_offset\"\'\n"
+ "\010TimeZone\022\n\n"
+ "\002id\030\001 \001(\t\022\017\n"
- + "\007version\030\002 \001(\tBi\n"
+ + "\007version\030\002 \001(\tBf\n"
+ "\017com.google.typeB\r"
- + "DateTimeProtoP\001Z
* A representation of a decimal value, such as 2.5. Clients may convert values
- * into language-native decimal formats, such as Java's [BigDecimal][] or
- * Python's [decimal.Decimal][].
- *
- * [BigDecimal]:
- * https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html
- * [decimal.Decimal]: https://docs.python.org/3/library/decimal.html
+ * into language-native decimal formats, such as Java's
+ * [BigDecimal](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html)
+ * or Python's
+ * [decimal.Decimal](https://docs.python.org/3/library/decimal.html).
*
*
* Protobuf type {@code google.type.Decimal}
@@ -563,7 +561,7 @@ public Builder mergeFrom(
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
- * by an exponent.
+ * by an exponent. An empty string **should** be interpreted as `0`.
*
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
@@ -577,12 +575,13 @@ public Builder mergeFrom(
*
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
- * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
- * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ * - Coercing the exponent character to upper-case, with explicit sign
+ * (`2.5e8` -> `2.5E+8`).
+ * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`).
*
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
- * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
+ * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
*
@@ -594,7 +593,7 @@ public Builder mergeFrom(
* The ENBF grammar is:
*
* DecimalString =
- * [Sign] Significand [Exponent];
+ * '' | [Sign] Significand [Exponent];
*
* Sign = '+' | '-';
*
@@ -645,7 +644,7 @@ public java.lang.String getValue() {
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
- * by an exponent.
+ * by an exponent. An empty string **should** be interpreted as `0`.
*
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
@@ -659,12 +658,13 @@ public java.lang.String getValue() {
*
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
- * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
- * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ * - Coercing the exponent character to upper-case, with explicit sign
+ * (`2.5e8` -> `2.5E+8`).
+ * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`).
*
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
- * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
+ * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
*
@@ -676,7 +676,7 @@ public java.lang.String getValue() {
* The ENBF grammar is:
*
* DecimalString =
- * [Sign] Significand [Exponent];
+ * '' | [Sign] Significand [Exponent];
*
* Sign = '+' | '-';
*
@@ -727,7 +727,7 @@ public com.google.protobuf.ByteString getValueBytes() {
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
- * by an exponent.
+ * by an exponent. An empty string **should** be interpreted as `0`.
*
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
@@ -741,12 +741,13 @@ public com.google.protobuf.ByteString getValueBytes() {
*
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
- * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
- * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ * - Coercing the exponent character to upper-case, with explicit sign
+ * (`2.5e8` -> `2.5E+8`).
+ * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`).
*
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
- * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
+ * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
*
@@ -758,7 +759,7 @@ public com.google.protobuf.ByteString getValueBytes() {
* The ENBF grammar is:
*
* DecimalString =
- * [Sign] Significand [Exponent];
+ * '' | [Sign] Significand [Exponent];
*
* Sign = '+' | '-';
*
@@ -808,7 +809,7 @@ public Builder setValue(java.lang.String value) {
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
- * by an exponent.
+ * by an exponent. An empty string **should** be interpreted as `0`.
*
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
@@ -822,12 +823,13 @@ public Builder setValue(java.lang.String value) {
*
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
- * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
- * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ * - Coercing the exponent character to upper-case, with explicit sign
+ * (`2.5e8` -> `2.5E+8`).
+ * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`).
*
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
- * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
+ * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
*
@@ -839,7 +841,7 @@ public Builder setValue(java.lang.String value) {
* The ENBF grammar is:
*
* DecimalString =
- * [Sign] Significand [Exponent];
+ * '' | [Sign] Significand [Exponent];
*
* Sign = '+' | '-';
*
@@ -885,7 +887,7 @@ public Builder clearValue() {
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
- * by an exponent.
+ * by an exponent. An empty string **should** be interpreted as `0`.
*
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
@@ -899,12 +901,13 @@ public Builder clearValue() {
*
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
- * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
- * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ * - Coercing the exponent character to upper-case, with explicit sign
+ * (`2.5e8` -> `2.5E+8`).
+ * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`).
*
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
- * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
+ * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
*
@@ -916,7 +919,7 @@ public Builder clearValue() {
* The ENBF grammar is:
*
* DecimalString =
- * [Sign] Significand [Exponent];
+ * '' | [Sign] Significand [Exponent];
*
* Sign = '+' | '-';
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java
index d3645b66e5..6252909d7b 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java
@@ -35,7 +35,7 @@ public interface DecimalOrBuilder
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
- * by an exponent.
+ * by an exponent. An empty string **should** be interpreted as `0`.
*
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
@@ -49,12 +49,13 @@ public interface DecimalOrBuilder
*
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
- * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
- * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ * - Coercing the exponent character to upper-case, with explicit sign
+ * (`2.5e8` -> `2.5E+8`).
+ * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`).
*
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
- * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
+ * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
*
@@ -66,7 +67,7 @@ public interface DecimalOrBuilder
* The ENBF grammar is:
*
* DecimalString =
- * [Sign] Significand [Exponent];
+ * '' | [Sign] Significand [Exponent];
*
* Sign = '+' | '-';
*
@@ -107,7 +108,7 @@ public interface DecimalOrBuilder
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
- * by an exponent.
+ * by an exponent. An empty string **should** be interpreted as `0`.
*
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
@@ -121,12 +122,13 @@ public interface DecimalOrBuilder
*
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
- * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
- * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ * - Coercing the exponent character to upper-case, with explicit sign
+ * (`2.5e8` -> `2.5E+8`).
+ * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`).
*
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
- * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
+ * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
*
@@ -138,7 +140,7 @@ public interface DecimalOrBuilder
* The ENBF grammar is:
*
* DecimalString =
- * [Sign] Significand [Exponent];
+ * '' | [Sign] Significand [Exponent];
*
* Sign = '+' | '-';
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalProto.java
index b659de2354..7ccb5837cf 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalProto.java
@@ -54,10 +54,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
"\n\031google/type/decimal.proto\022\013google.type"
- + "\"\030\n\007Decimal\022\r\n\005value\030\001 \001(\tBf\n\017com.google"
+ + "\"\030\n\007Decimal\022\r\n\005value\030\001 \001(\tBc\n\017com.google"
+ ".typeB\014DecimalProtoP\001Z:google.golang.org"
+ "/genproto/googleapis/type/decimal;decima"
- + "l\370\001\001\242\002\003GTPb\006proto3"
+ + "l\242\002\003GTPb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalProto.java
index a544688a67..4be6839768 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalProto.java
@@ -57,10 +57,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "e\032\037google/protobuf/timestamp.proto\"h\n\010In"
+ "terval\022.\n\nstart_time\030\001 \001(\0132\032.google.prot"
+ "obuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.googl"
- + "e.protobuf.TimestampBi\n\017com.google.typeB"
+ + "e.protobuf.TimestampBf\n\017com.google.typeB"
+ "\rIntervalProtoP\001Z
* An object that represents a latitude/longitude pair. This is expressed as a
* pair of doubles to represent degrees latitude and degrees longitude. Unless
- * specified otherwise, this must conform to the
- * <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
- * standard</a>. Values must be within normalized ranges.
+ * specified otherwise, this object must conform to the
+ * <a href="https://en.wikipedia.org/wiki/World_Geodetic_System#1984_version">
+ * WGS84 standard</a>. Values must be within normalized ranges.
*
*
* Protobuf type {@code google.type.LatLng}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLngProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLngProto.java
index e0b02c31f7..c37fb97aea 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLngProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLngProto.java
@@ -55,9 +55,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n\030google/type/latlng.proto\022\013google.type\""
+ "-\n\006LatLng\022\020\n\010latitude\030\001 \001(\001\022\021\n\tlongitude"
- + "\030\002 \001(\001Bc\n\017com.google.typeB\013LatLngProtoP\001"
+ + "\030\002 \001(\001B`\n\017com.google.typeB\013LatLngProtoP\001"
+ "Z8google.golang.org/genproto/googleapis/"
- + "type/latlng;latlng\370\001\001\242\002\003GTPb\006proto3"
+ + "type/latlng;latlng\242\002\003GTPb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java
index 677c731de9..0fa52a80d9 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java
@@ -78,7 +78,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Localized string in the language corresponding to `language_code' below.
+ * Localized string in the language corresponding to
+ * [language_code][google.type.LocalizedText.language_code] below.
*
*
* string text = 1;
@@ -102,7 +103,8 @@ public java.lang.String getText() {
*
*
*
- * Localized string in the language corresponding to `language_code' below.
+ * Localized string in the language corresponding to
+ * [language_code][google.type.LocalizedText.language_code] below.
*
*
* string text = 1;
@@ -516,7 +518,8 @@ public Builder mergeFrom(
*
*
*
- * Localized string in the language corresponding to `language_code' below.
+ * Localized string in the language corresponding to
+ * [language_code][google.type.LocalizedText.language_code] below.
*
*
* string text = 1;
@@ -539,7 +542,8 @@ public java.lang.String getText() {
*
*
*
- * Localized string in the language corresponding to `language_code' below.
+ * Localized string in the language corresponding to
+ * [language_code][google.type.LocalizedText.language_code] below.
*
*
* string text = 1;
@@ -562,7 +566,8 @@ public com.google.protobuf.ByteString getTextBytes() {
*
*
*
- * Localized string in the language corresponding to `language_code' below.
+ * Localized string in the language corresponding to
+ * [language_code][google.type.LocalizedText.language_code] below.
*
*
* string text = 1;
@@ -584,7 +589,8 @@ public Builder setText(java.lang.String value) {
*
*
*
- * Localized string in the language corresponding to `language_code' below.
+ * Localized string in the language corresponding to
+ * [language_code][google.type.LocalizedText.language_code] below.
*
*
* string text = 1;
@@ -602,7 +608,8 @@ public Builder clearText() {
*
*
*
- * Localized string in the language corresponding to `language_code' below.
+ * Localized string in the language corresponding to
+ * [language_code][google.type.LocalizedText.language_code] below.
*
*
* string text = 1;
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java
index 4260bcd2d7..5a624ceb9f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java
@@ -30,7 +30,8 @@ public interface LocalizedTextOrBuilder
*
*
*
- * Localized string in the language corresponding to `language_code' below.
+ * Localized string in the language corresponding to
+ * [language_code][google.type.LocalizedText.language_code] below.
*
*
* string text = 1;
@@ -43,7 +44,8 @@ public interface LocalizedTextOrBuilder
*
*
*
- * Localized string in the language corresponding to `language_code' below.
+ * Localized string in the language corresponding to
+ * [language_code][google.type.LocalizedText.language_code] below.
*
*
* string text = 1;
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextProto.java
index 7f3c40fbeb..0ae3eb0bd1 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextProto.java
@@ -55,10 +55,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n google/type/localized_text.proto\022\013goog"
+ "le.type\"4\n\rLocalizedText\022\014\n\004text\030\001 \001(\t\022\025"
- + "\n\rlanguage_code\030\002 \001(\tBz\n\017com.google.type"
+ + "\n\rlanguage_code\030\002 \001(\tBw\n\017com.google.type"
+ "B\022LocalizedTextProtoP\001ZHgoogle.golang.or"
+ "g/genproto/googleapis/type/localized_tex"
- + "t;localized_text\370\001\001\242\002\003GTPb\006proto3"
+ + "t;localized_text\242\002\003GTPb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MoneyProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MoneyProto.java
index 74101e52eb..c4ed024732 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MoneyProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MoneyProto.java
@@ -55,10 +55,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n\027google/type/money.proto\022\013google.type\"<"
+ "\n\005Money\022\025\n\rcurrency_code\030\001 \001(\t\022\r\n\005units\030"
- + "\002 \001(\003\022\r\n\005nanos\030\003 \001(\005B`\n\017com.google.typeB"
+ + "\002 \001(\003\022\r\n\005nanos\030\003 \001(\005B]\n\017com.google.typeB"
+ "\nMoneyProtoP\001Z6google.golang.org/genprot"
- + "o/googleapis/type/money;money\370\001\001\242\002\003GTPb\006"
- + "proto3"
+ + "o/googleapis/type/money;money\242\002\003GTPb\006pro"
+ + "to3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java
index ae69972c2d..3e16261b43 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java
@@ -137,7 +137,7 @@ public interface ShortCodeOrBuilder
*
*
* Required. The short code digits, without a leading plus ('+') or country
- * calling code, e.g. "611".
+ * calling code. For example "611".
*
*
* string number = 2;
@@ -151,7 +151,7 @@ public interface ShortCodeOrBuilder
*
*
* Required. The short code digits, without a leading plus ('+') or country
- * calling code, e.g. "611".
+ * calling code. For example "611".
*
*
* string number = 2;
@@ -168,12 +168,13 @@ public interface ShortCodeOrBuilder
* An object representing a short code, which is a phone number that is
* typically much shorter than regular phone numbers and can be used to
* address messages in MMS and SMS systems, as well as for abbreviated dialing
- * (e.g. "Text 611 to see how many minutes you have remaining on your plan.").
+ * (For example "Text 611 to see how many minutes you have remaining on your
+ * plan.").
*
* Short codes are restricted to a region and are not internationally
* dialable, which means the same short code can exist in different regions,
* with different usage and pricing, even if those regions share the same
- * country calling code (e.g. US and CA).
+ * country calling code (For example: US and CA).
*
*
* Protobuf type {@code google.type.PhoneNumber.ShortCode}
@@ -290,7 +291,7 @@ public com.google.protobuf.ByteString getRegionCodeBytes() {
*
*
* Required. The short code digits, without a leading plus ('+') or country
- * calling code, e.g. "611".
+ * calling code. For example "611".
*
*
* string number = 2;
@@ -315,7 +316,7 @@ public java.lang.String getNumber() {
*
*
* Required. The short code digits, without a leading plus ('+') or country
- * calling code, e.g. "611".
+ * calling code. For example "611".
*
*
* string number = 2;
@@ -510,12 +511,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
* An object representing a short code, which is a phone number that is
* typically much shorter than regular phone numbers and can be used to
* address messages in MMS and SMS systems, as well as for abbreviated dialing
- * (e.g. "Text 611 to see how many minutes you have remaining on your plan.").
+ * (For example "Text 611 to see how many minutes you have remaining on your
+ * plan.").
*
* Short codes are restricted to a region and are not internationally
* dialable, which means the same short code can exist in different regions,
* with different usage and pricing, even if those regions share the same
- * country calling code (e.g. US and CA).
+ * country calling code (For example: US and CA).
*
*
* Protobuf type {@code google.type.PhoneNumber.ShortCode}
@@ -813,7 +815,7 @@ public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) {
*
*
* Required. The short code digits, without a leading plus ('+') or country
- * calling code, e.g. "611".
+ * calling code. For example "611".
*
*
* string number = 2;
@@ -837,7 +839,7 @@ public java.lang.String getNumber() {
*
*
* Required. The short code digits, without a leading plus ('+') or country
- * calling code, e.g. "611".
+ * calling code. For example "611".
*
*
* string number = 2;
@@ -861,7 +863,7 @@ public com.google.protobuf.ByteString getNumberBytes() {
*
*
* Required. The short code digits, without a leading plus ('+') or country
- * calling code, e.g. "611".
+ * calling code. For example "611".
*
*
* string number = 2;
@@ -884,7 +886,7 @@ public Builder setNumber(java.lang.String value) {
*
*
* Required. The short code digits, without a leading plus ('+') or country
- * calling code, e.g. "611".
+ * calling code. For example "611".
*
*
* string number = 2;
@@ -903,7 +905,7 @@ public Builder clearNumber() {
*
*
* Required. The short code digits, without a leading plus ('+') or country
- * calling code, e.g. "611".
+ * calling code. For example "611".
*
*
* string number = 2;
@@ -1033,17 +1035,22 @@ public KindCase getKindCase() {
* The phone number, represented as a leading plus sign ('+'), followed by a
* phone number that uses a relaxed ITU E.164 format consisting of the
* country calling code (1 to 3 digits) and the subscriber number, with no
- * additional spaces or formatting, e.g.:
+ * additional spaces or formatting. For example:
+ *
* - correct: "+15552220123"
- * - incorrect: "+1 (555) 222-01234 x123".
+ *
+ * - incorrect: "+1 (555) 222-01234 x123"
*
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
*
* References:
+ *
* - https://www.itu.int/rec/T-REC-E.164-201011-I
+ *
* - https://en.wikipedia.org/wiki/E.164.
+ *
* - https://en.wikipedia.org/wiki/List_of_country_calling_codes
*
*
@@ -1062,17 +1069,22 @@ public boolean hasE164Number() {
* The phone number, represented as a leading plus sign ('+'), followed by a
* phone number that uses a relaxed ITU E.164 format consisting of the
* country calling code (1 to 3 digits) and the subscriber number, with no
- * additional spaces or formatting, e.g.:
+ * additional spaces or formatting. For example:
+ *
* - correct: "+15552220123"
- * - incorrect: "+1 (555) 222-01234 x123".
+ *
+ * - incorrect: "+1 (555) 222-01234 x123"
*
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
*
* References:
+ *
* - https://www.itu.int/rec/T-REC-E.164-201011-I
+ *
* - https://en.wikipedia.org/wiki/E.164.
+ *
* - https://en.wikipedia.org/wiki/List_of_country_calling_codes
*
*
@@ -1104,17 +1116,22 @@ public java.lang.String getE164Number() {
* The phone number, represented as a leading plus sign ('+'), followed by a
* phone number that uses a relaxed ITU E.164 format consisting of the
* country calling code (1 to 3 digits) and the subscriber number, with no
- * additional spaces or formatting, e.g.:
+ * additional spaces or formatting. For example:
+ *
* - correct: "+15552220123"
- * - incorrect: "+1 (555) 222-01234 x123".
+ *
+ * - incorrect: "+1 (555) 222-01234 x123"
*
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
*
* References:
+ *
* - https://www.itu.int/rec/T-REC-E.164-201011-I
+ *
* - https://en.wikipedia.org/wiki/E.164.
+ *
* - https://en.wikipedia.org/wiki/List_of_country_calling_codes
*
*
@@ -1148,7 +1165,7 @@ public com.google.protobuf.ByteString getE164NumberBytes() {
* A short code.
*
* Reference(s):
- * - https://en.wikipedia.org/wiki/Short_code
+ * - https://wikipedia.org/wiki/Short_code
*
*
* .google.type.PhoneNumber.ShortCode short_code = 2;
@@ -1167,7 +1184,7 @@ public boolean hasShortCode() {
* A short code.
*
* Reference(s):
- * - https://en.wikipedia.org/wiki/Short_code
+ * - https://wikipedia.org/wiki/Short_code
*
*
* .google.type.PhoneNumber.ShortCode short_code = 2;
@@ -1189,7 +1206,7 @@ public com.google.type.PhoneNumber.ShortCode getShortCode() {
* A short code.
*
* Reference(s):
- * - https://en.wikipedia.org/wiki/Short_code
+ * - https://wikipedia.org/wiki/Short_code
*
*
* .google.type.PhoneNumber.ShortCode short_code = 2;
@@ -1703,17 +1720,22 @@ public Builder clearKind() {
* The phone number, represented as a leading plus sign ('+'), followed by a
* phone number that uses a relaxed ITU E.164 format consisting of the
* country calling code (1 to 3 digits) and the subscriber number, with no
- * additional spaces or formatting, e.g.:
+ * additional spaces or formatting. For example:
+ *
* - correct: "+15552220123"
- * - incorrect: "+1 (555) 222-01234 x123".
+ *
+ * - incorrect: "+1 (555) 222-01234 x123"
*
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
*
* References:
+ *
* - https://www.itu.int/rec/T-REC-E.164-201011-I
+ *
* - https://en.wikipedia.org/wiki/E.164.
+ *
* - https://en.wikipedia.org/wiki/List_of_country_calling_codes
*
*
@@ -1733,17 +1755,22 @@ public boolean hasE164Number() {
* The phone number, represented as a leading plus sign ('+'), followed by a
* phone number that uses a relaxed ITU E.164 format consisting of the
* country calling code (1 to 3 digits) and the subscriber number, with no
- * additional spaces or formatting, e.g.:
+ * additional spaces or formatting. For example:
+ *
* - correct: "+15552220123"
- * - incorrect: "+1 (555) 222-01234 x123".
+ *
+ * - incorrect: "+1 (555) 222-01234 x123"
*
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
*
* References:
+ *
* - https://www.itu.int/rec/T-REC-E.164-201011-I
+ *
* - https://en.wikipedia.org/wiki/E.164.
+ *
* - https://en.wikipedia.org/wiki/List_of_country_calling_codes
*
*
@@ -1776,17 +1803,22 @@ public java.lang.String getE164Number() {
* The phone number, represented as a leading plus sign ('+'), followed by a
* phone number that uses a relaxed ITU E.164 format consisting of the
* country calling code (1 to 3 digits) and the subscriber number, with no
- * additional spaces or formatting, e.g.:
+ * additional spaces or formatting. For example:
+ *
* - correct: "+15552220123"
- * - incorrect: "+1 (555) 222-01234 x123".
+ *
+ * - incorrect: "+1 (555) 222-01234 x123"
*
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
*
* References:
+ *
* - https://www.itu.int/rec/T-REC-E.164-201011-I
+ *
* - https://en.wikipedia.org/wiki/E.164.
+ *
* - https://en.wikipedia.org/wiki/List_of_country_calling_codes
*
*
@@ -1819,17 +1851,22 @@ public com.google.protobuf.ByteString getE164NumberBytes() {
* The phone number, represented as a leading plus sign ('+'), followed by a
* phone number that uses a relaxed ITU E.164 format consisting of the
* country calling code (1 to 3 digits) and the subscriber number, with no
- * additional spaces or formatting, e.g.:
+ * additional spaces or formatting. For example:
+ *
* - correct: "+15552220123"
- * - incorrect: "+1 (555) 222-01234 x123".
+ *
+ * - incorrect: "+1 (555) 222-01234 x123"
*
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
*
* References:
+ *
* - https://www.itu.int/rec/T-REC-E.164-201011-I
+ *
* - https://en.wikipedia.org/wiki/E.164.
+ *
* - https://en.wikipedia.org/wiki/List_of_country_calling_codes
*
*
@@ -1855,17 +1892,22 @@ public Builder setE164Number(java.lang.String value) {
* The phone number, represented as a leading plus sign ('+'), followed by a
* phone number that uses a relaxed ITU E.164 format consisting of the
* country calling code (1 to 3 digits) and the subscriber number, with no
- * additional spaces or formatting, e.g.:
+ * additional spaces or formatting. For example:
+ *
* - correct: "+15552220123"
- * - incorrect: "+1 (555) 222-01234 x123".
+ *
+ * - incorrect: "+1 (555) 222-01234 x123"
*
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
*
* References:
+ *
* - https://www.itu.int/rec/T-REC-E.164-201011-I
+ *
* - https://en.wikipedia.org/wiki/E.164.
+ *
* - https://en.wikipedia.org/wiki/List_of_country_calling_codes
*
*
@@ -1889,17 +1931,22 @@ public Builder clearE164Number() {
* The phone number, represented as a leading plus sign ('+'), followed by a
* phone number that uses a relaxed ITU E.164 format consisting of the
* country calling code (1 to 3 digits) and the subscriber number, with no
- * additional spaces or formatting, e.g.:
+ * additional spaces or formatting. For example:
+ *
* - correct: "+15552220123"
- * - incorrect: "+1 (555) 222-01234 x123".
+ *
+ * - incorrect: "+1 (555) 222-01234 x123"
*
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
*
* References:
+ *
* - https://www.itu.int/rec/T-REC-E.164-201011-I
+ *
* - https://en.wikipedia.org/wiki/E.164.
+ *
* - https://en.wikipedia.org/wiki/List_of_country_calling_codes
*
*
@@ -1932,7 +1979,7 @@ public Builder setE164NumberBytes(com.google.protobuf.ByteString value) {
* A short code.
*
* Reference(s):
- * - https://en.wikipedia.org/wiki/Short_code
+ * - https://wikipedia.org/wiki/Short_code
*
*
* .google.type.PhoneNumber.ShortCode short_code = 2;
@@ -1951,7 +1998,7 @@ public boolean hasShortCode() {
* A short code.
*
* Reference(s):
- * - https://en.wikipedia.org/wiki/Short_code
+ * - https://wikipedia.org/wiki/Short_code
*
*
* .google.type.PhoneNumber.ShortCode short_code = 2;
@@ -1980,7 +2027,7 @@ public com.google.type.PhoneNumber.ShortCode getShortCode() {
* A short code.
*
* Reference(s):
- * - https://en.wikipedia.org/wiki/Short_code
+ * - https://wikipedia.org/wiki/Short_code
*
*
* .google.type.PhoneNumber.ShortCode short_code = 2;
@@ -2006,7 +2053,7 @@ public Builder setShortCode(com.google.type.PhoneNumber.ShortCode value) {
* A short code.
*
* Reference(s):
- * - https://en.wikipedia.org/wiki/Short_code
+ * - https://wikipedia.org/wiki/Short_code
*
*
* .google.type.PhoneNumber.ShortCode short_code = 2;
@@ -2029,7 +2076,7 @@ public Builder setShortCode(com.google.type.PhoneNumber.ShortCode.Builder builde
* A short code.
*
* Reference(s):
- * - https://en.wikipedia.org/wiki/Short_code
+ * - https://wikipedia.org/wiki/Short_code
*
*
* .google.type.PhoneNumber.ShortCode short_code = 2;
@@ -2064,7 +2111,7 @@ public Builder mergeShortCode(com.google.type.PhoneNumber.ShortCode value) {
* A short code.
*
* Reference(s):
- * - https://en.wikipedia.org/wiki/Short_code
+ * - https://wikipedia.org/wiki/Short_code
*
*
* .google.type.PhoneNumber.ShortCode short_code = 2;
@@ -2093,7 +2140,7 @@ public Builder clearShortCode() {
* A short code.
*
* Reference(s):
- * - https://en.wikipedia.org/wiki/Short_code
+ * - https://wikipedia.org/wiki/Short_code
*
*
* .google.type.PhoneNumber.ShortCode short_code = 2;
@@ -2109,7 +2156,7 @@ public com.google.type.PhoneNumber.ShortCode.Builder getShortCodeBuilder() {
* A short code.
*
* Reference(s):
- * - https://en.wikipedia.org/wiki/Short_code
+ * - https://wikipedia.org/wiki/Short_code
*
*
* .google.type.PhoneNumber.ShortCode short_code = 2;
@@ -2133,7 +2180,7 @@ public com.google.type.PhoneNumber.ShortCodeOrBuilder getShortCodeOrBuilder() {
* A short code.
*
* Reference(s):
- * - https://en.wikipedia.org/wiki/Short_code
+ * - https://wikipedia.org/wiki/Short_code
*
*
* .google.type.PhoneNumber.ShortCode short_code = 2;
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java
index 8f90afe7cf..287214a12f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java
@@ -33,17 +33,22 @@ public interface PhoneNumberOrBuilder
* The phone number, represented as a leading plus sign ('+'), followed by a
* phone number that uses a relaxed ITU E.164 format consisting of the
* country calling code (1 to 3 digits) and the subscriber number, with no
- * additional spaces or formatting, e.g.:
+ * additional spaces or formatting. For example:
+ *
* - correct: "+15552220123"
- * - incorrect: "+1 (555) 222-01234 x123".
+ *
+ * - incorrect: "+1 (555) 222-01234 x123"
*
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
*
* References:
+ *
* - https://www.itu.int/rec/T-REC-E.164-201011-I
+ *
* - https://en.wikipedia.org/wiki/E.164.
+ *
* - https://en.wikipedia.org/wiki/List_of_country_calling_codes
*
*
@@ -60,17 +65,22 @@ public interface PhoneNumberOrBuilder
* The phone number, represented as a leading plus sign ('+'), followed by a
* phone number that uses a relaxed ITU E.164 format consisting of the
* country calling code (1 to 3 digits) and the subscriber number, with no
- * additional spaces or formatting, e.g.:
+ * additional spaces or formatting. For example:
+ *
* - correct: "+15552220123"
- * - incorrect: "+1 (555) 222-01234 x123".
+ *
+ * - incorrect: "+1 (555) 222-01234 x123"
*
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
*
* References:
+ *
* - https://www.itu.int/rec/T-REC-E.164-201011-I
+ *
* - https://en.wikipedia.org/wiki/E.164.
+ *
* - https://en.wikipedia.org/wiki/List_of_country_calling_codes
*
*
@@ -87,17 +97,22 @@ public interface PhoneNumberOrBuilder
* The phone number, represented as a leading plus sign ('+'), followed by a
* phone number that uses a relaxed ITU E.164 format consisting of the
* country calling code (1 to 3 digits) and the subscriber number, with no
- * additional spaces or formatting, e.g.:
+ * additional spaces or formatting. For example:
+ *
* - correct: "+15552220123"
- * - incorrect: "+1 (555) 222-01234 x123".
+ *
+ * - incorrect: "+1 (555) 222-01234 x123"
*
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
*
* References:
+ *
* - https://www.itu.int/rec/T-REC-E.164-201011-I
+ *
* - https://en.wikipedia.org/wiki/E.164.
+ *
* - https://en.wikipedia.org/wiki/List_of_country_calling_codes
*
*
@@ -114,7 +129,7 @@ public interface PhoneNumberOrBuilder
* A short code.
*
* Reference(s):
- * - https://en.wikipedia.org/wiki/Short_code
+ * - https://wikipedia.org/wiki/Short_code
*
*
* .google.type.PhoneNumber.ShortCode short_code = 2;
@@ -130,7 +145,7 @@ public interface PhoneNumberOrBuilder
* A short code.
*
* Reference(s):
- * - https://en.wikipedia.org/wiki/Short_code
+ * - https://wikipedia.org/wiki/Short_code
*
*
* .google.type.PhoneNumber.ShortCode short_code = 2;
@@ -146,7 +161,7 @@ public interface PhoneNumberOrBuilder
* A short code.
*
* Reference(s):
- * - https://en.wikipedia.org/wiki/Short_code
+ * - https://wikipedia.org/wiki/Short_code
*
*
* .google.type.PhoneNumber.ShortCode short_code = 2;
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberProto.java
index f1ef562dc0..2b9b41eccb 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberProto.java
@@ -62,10 +62,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "(\tH\000\0228\n\nshort_code\030\002 \001(\0132\".google.type.P"
+ "honeNumber.ShortCodeH\000\022\021\n\textension\030\003 \001("
+ "\t\0320\n\tShortCode\022\023\n\013region_code\030\001 \001(\t\022\016\n\006n"
- + "umber\030\002 \001(\tB\006\n\004kindBt\n\017com.google.typeB\020"
+ + "umber\030\002 \001(\tB\006\n\004kindBq\n\017com.google.typeB\020"
+ "PhoneNumberProtoP\001ZDgoogle.golang.org/ge"
+ "nproto/googleapis/type/phone_number;phon"
- + "e_number\370\001\001\242\002\003GTPb\006proto3"
+ + "e_number\242\002\003GTPb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java
index 6d954aefba..f08c8b93cc 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java
@@ -24,23 +24,23 @@
*
*
* - * Represents a postal address, e.g. for postal delivery or payments addresses. - * Given a postal address, a postal service can deliver items to a premise, P.O. - * Box or similar. - * It is not intended to model geographical locations (roads, towns, - * mountains). + * Represents a postal address, such as for postal delivery or payments + * addresses. With a postal address, a postal service can deliver items to a + * premise, P.O. box, or similar. A postal address is not intended to model + * geographical locations like roads, towns, or mountains. * - * In typical usage an address would be created via user input or from importing + * In typical usage, an address would be created by user input or from importing * existing data, depending on the type of process. * - * Advice on address input / editing: - * - Use an i18n-ready address widget such as - * https://github.com/google/libaddressinput) + * Advice on address input or editing: + * + * - Use an internationalization-ready address widget such as + * https://github.com/google/libaddressinput. * - Users should not be presented with UI elements for input or editing of * fields outside countries where that field is used. * - * For more guidance on how to use this schema, please see: - * https://support.google.com/business/answer/6397478 + * For more guidance on how to use this schema, see: + * https://support.google.com/business/answer/6397478. ** * Protobuf type {@code google.type.PostalAddress} @@ -126,8 +126,8 @@ public int getRevision() { *
* Required. CLDR region code of the country/region of the address. This
* is never inferred and it is up to the user to ensure the value is
- * correct. See http://cldr.unicode.org/ and
- * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+ * correct. See https://cldr.unicode.org/ and
+ * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
* for details. Example: "CH" for Switzerland.
*
*
@@ -154,8 +154,8 @@ public java.lang.String getRegionCode() {
*
* Required. CLDR region code of the country/region of the address. This
* is never inferred and it is up to the user to ensure the value is
- * correct. See http://cldr.unicode.org/ and
- * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+ * correct. See https://cldr.unicode.org/ and
+ * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
* for details. Example: "CH" for Switzerland.
*
*
@@ -262,8 +262,8 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
*
* Optional. Postal code of the address. Not all countries use or require
* postal codes to be present, but where they are used, they may trigger
- * additional validation with other parts of the address (e.g. state/zip
- * validation in the U.S.A.).
+ * additional validation with other parts of the address (for example,
+ * state or zip code validation in the United States).
*
*
* string postal_code = 4;
@@ -289,8 +289,8 @@ public java.lang.String getPostalCode() {
*
* Optional. Postal code of the address. Not all countries use or require
* postal codes to be present, but where they are used, they may trigger
- * additional validation with other parts of the address (e.g. state/zip
- * validation in the U.S.A.).
+ * additional validation with other parts of the address (for example,
+ * state or zip code validation in the United States).
*
*
* string postal_code = 4;
@@ -321,9 +321,9 @@ public com.google.protobuf.ByteString getPostalCodeBytes() {
*
* Optional. Additional, country-specific, sorting code. This is not used
* in most regions. Where it is used, the value is either a string like
- * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
- * alone, representing the "sector code" (Jamaica), "delivery area indicator"
- * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
+ * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just
+ * a number alone, representing the "sector code" (Jamaica), "delivery area
+ * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
*
*
* string sorting_code = 5;
@@ -349,9 +349,9 @@ public java.lang.String getSortingCode() {
*
* Optional. Additional, country-specific, sorting code. This is not used
* in most regions. Where it is used, the value is either a string like
- * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
- * alone, representing the "sector code" (Jamaica), "delivery area indicator"
- * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
+ * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just
+ * a number alone, representing the "sector code" (Jamaica), "delivery area
+ * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
*
*
* string sorting_code = 5;
@@ -383,10 +383,10 @@ public com.google.protobuf.ByteString getSortingCodeBytes() {
* Optional. Highest administrative subdivision which is used for postal
* addresses of a country or region.
* For example, this can be a state, a province, an oblast, or a prefecture.
- * Specifically, for Spain this is the province and not the autonomous
- * community (e.g. "Barcelona" and not "Catalonia").
- * Many countries don't use an administrative area in postal addresses. E.g.
- * in Switzerland this should be left unpopulated.
+ * For Spain, this is the province and not the autonomous
+ * community (for example, "Barcelona" and not "Catalonia").
+ * Many countries don't use an administrative area in postal addresses. For
+ * example, in Switzerland, this should be left unpopulated.
*
*
* string administrative_area = 6;
@@ -413,10 +413,10 @@ public java.lang.String getAdministrativeArea() {
* Optional. Highest administrative subdivision which is used for postal
* addresses of a country or region.
* For example, this can be a state, a province, an oblast, or a prefecture.
- * Specifically, for Spain this is the province and not the autonomous
- * community (e.g. "Barcelona" and not "Catalonia").
- * Many countries don't use an administrative area in postal addresses. E.g.
- * in Switzerland this should be left unpopulated.
+ * For Spain, this is the province and not the autonomous
+ * community (for example, "Barcelona" and not "Catalonia").
+ * Many countries don't use an administrative area in postal addresses. For
+ * example, in Switzerland, this should be left unpopulated.
*
*
* string administrative_area = 6;
@@ -445,10 +445,10 @@ public com.google.protobuf.ByteString getAdministrativeAreaBytes() {
*
*
*
- * Optional. Generally refers to the city/town portion of the address.
+ * Optional. Generally refers to the city or town portion of the address.
* Examples: US city, IT comune, UK post town.
* In regions of the world where localities are not well defined or do not fit
- * into this structure well, leave locality empty and use address_lines.
+ * into this structure well, leave `locality` empty and use `address_lines`.
*
*
* string locality = 7;
@@ -472,10 +472,10 @@ public java.lang.String getLocality() {
*
*
*
- * Optional. Generally refers to the city/town portion of the address.
+ * Optional. Generally refers to the city or town portion of the address.
* Examples: US city, IT comune, UK post town.
* In regions of the world where localities are not well defined or do not fit
- * into this structure well, leave locality empty and use address_lines.
+ * into this structure well, leave `locality` empty and use `address_lines`.
*
*
* string locality = 7;
@@ -505,7 +505,7 @@ public com.google.protobuf.ByteString getLocalityBytes() {
*
*
* Optional. Sublocality of the address.
- * For example, this can be neighborhoods, boroughs, districts.
+ * For example, this can be a neighborhood, borough, or district.
*
*
* string sublocality = 8;
@@ -530,7 +530,7 @@ public java.lang.String getSublocality() {
*
*
* Optional. Sublocality of the address.
- * For example, this can be neighborhoods, boroughs, districts.
+ * For example, this can be a neighborhood, borough, or district.
*
*
* string sublocality = 8;
@@ -562,23 +562,24 @@ public com.google.protobuf.ByteString getSublocalityBytes() {
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
@@ -598,23 +599,24 @@ public com.google.protobuf.ProtocolStringList getAddressLinesList() {
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
@@ -634,23 +636,24 @@ public int getAddressLinesCount() {
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
@@ -671,23 +674,24 @@ public java.lang.String getAddressLines(int index) {
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
@@ -1097,23 +1101,23 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
*
*
*
- * Represents a postal address, e.g. for postal delivery or payments addresses.
- * Given a postal address, a postal service can deliver items to a premise, P.O.
- * Box or similar.
- * It is not intended to model geographical locations (roads, towns,
- * mountains).
+ * Represents a postal address, such as for postal delivery or payments
+ * addresses. With a postal address, a postal service can deliver items to a
+ * premise, P.O. box, or similar. A postal address is not intended to model
+ * geographical locations like roads, towns, or mountains.
*
- * In typical usage an address would be created via user input or from importing
+ * In typical usage, an address would be created by user input or from importing
* existing data, depending on the type of process.
*
- * Advice on address input / editing:
- * - Use an i18n-ready address widget such as
- * https://github.com/google/libaddressinput)
+ * Advice on address input or editing:
+ *
+ * - Use an internationalization-ready address widget such as
+ * https://github.com/google/libaddressinput.
* - Users should not be presented with UI elements for input or editing of
* fields outside countries where that field is used.
*
- * For more guidance on how to use this schema, please see:
- * https://support.google.com/business/answer/6397478
+ * For more guidance on how to use this schema, see:
+ * https://support.google.com/business/answer/6397478.
*
*
* Protobuf type {@code google.type.PostalAddress}
@@ -1491,8 +1495,8 @@ public Builder clearRevision() {
*
* Required. CLDR region code of the country/region of the address. This
* is never inferred and it is up to the user to ensure the value is
- * correct. See http://cldr.unicode.org/ and
- * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+ * correct. See https://cldr.unicode.org/ and
+ * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
* for details. Example: "CH" for Switzerland.
*
*
@@ -1518,8 +1522,8 @@ public java.lang.String getRegionCode() {
*
* Required. CLDR region code of the country/region of the address. This
* is never inferred and it is up to the user to ensure the value is
- * correct. See http://cldr.unicode.org/ and
- * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+ * correct. See https://cldr.unicode.org/ and
+ * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
* for details. Example: "CH" for Switzerland.
*
*
@@ -1545,8 +1549,8 @@ public com.google.protobuf.ByteString getRegionCodeBytes() {
*
* Required. CLDR region code of the country/region of the address. This
* is never inferred and it is up to the user to ensure the value is
- * correct. See http://cldr.unicode.org/ and
- * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+ * correct. See https://cldr.unicode.org/ and
+ * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
* for details. Example: "CH" for Switzerland.
*
*
@@ -1571,8 +1575,8 @@ public Builder setRegionCode(java.lang.String value) {
*
* Required. CLDR region code of the country/region of the address. This
* is never inferred and it is up to the user to ensure the value is
- * correct. See http://cldr.unicode.org/ and
- * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+ * correct. See https://cldr.unicode.org/ and
+ * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
* for details. Example: "CH" for Switzerland.
*
*
@@ -1593,8 +1597,8 @@ public Builder clearRegionCode() {
*
* Required. CLDR region code of the country/region of the address. This
* is never inferred and it is up to the user to ensure the value is
- * correct. See http://cldr.unicode.org/ and
- * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+ * correct. See https://cldr.unicode.org/ and
+ * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
* for details. Example: "CH" for Switzerland.
*
*
@@ -1788,8 +1792,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
*
* Optional. Postal code of the address. Not all countries use or require
* postal codes to be present, but where they are used, they may trigger
- * additional validation with other parts of the address (e.g. state/zip
- * validation in the U.S.A.).
+ * additional validation with other parts of the address (for example,
+ * state or zip code validation in the United States).
*
*
* string postal_code = 4;
@@ -1814,8 +1818,8 @@ public java.lang.String getPostalCode() {
*
* Optional. Postal code of the address. Not all countries use or require
* postal codes to be present, but where they are used, they may trigger
- * additional validation with other parts of the address (e.g. state/zip
- * validation in the U.S.A.).
+ * additional validation with other parts of the address (for example,
+ * state or zip code validation in the United States).
*
*
* string postal_code = 4;
@@ -1840,8 +1844,8 @@ public com.google.protobuf.ByteString getPostalCodeBytes() {
*
* Optional. Postal code of the address. Not all countries use or require
* postal codes to be present, but where they are used, they may trigger
- * additional validation with other parts of the address (e.g. state/zip
- * validation in the U.S.A.).
+ * additional validation with other parts of the address (for example,
+ * state or zip code validation in the United States).
*
*
* string postal_code = 4;
@@ -1865,8 +1869,8 @@ public Builder setPostalCode(java.lang.String value) {
*
* Optional. Postal code of the address. Not all countries use or require
* postal codes to be present, but where they are used, they may trigger
- * additional validation with other parts of the address (e.g. state/zip
- * validation in the U.S.A.).
+ * additional validation with other parts of the address (for example,
+ * state or zip code validation in the United States).
*
*
* string postal_code = 4;
@@ -1886,8 +1890,8 @@ public Builder clearPostalCode() {
*
* Optional. Postal code of the address. Not all countries use or require
* postal codes to be present, but where they are used, they may trigger
- * additional validation with other parts of the address (e.g. state/zip
- * validation in the U.S.A.).
+ * additional validation with other parts of the address (for example,
+ * state or zip code validation in the United States).
*
*
* string postal_code = 4;
@@ -1914,9 +1918,9 @@ public Builder setPostalCodeBytes(com.google.protobuf.ByteString value) {
*
* Optional. Additional, country-specific, sorting code. This is not used
* in most regions. Where it is used, the value is either a string like
- * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
- * alone, representing the "sector code" (Jamaica), "delivery area indicator"
- * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
+ * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just
+ * a number alone, representing the "sector code" (Jamaica), "delivery area
+ * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
*
*
* string sorting_code = 5;
@@ -1941,9 +1945,9 @@ public java.lang.String getSortingCode() {
*
* Optional. Additional, country-specific, sorting code. This is not used
* in most regions. Where it is used, the value is either a string like
- * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
- * alone, representing the "sector code" (Jamaica), "delivery area indicator"
- * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
+ * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just
+ * a number alone, representing the "sector code" (Jamaica), "delivery area
+ * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
*
*
* string sorting_code = 5;
@@ -1968,9 +1972,9 @@ public com.google.protobuf.ByteString getSortingCodeBytes() {
*
* Optional. Additional, country-specific, sorting code. This is not used
* in most regions. Where it is used, the value is either a string like
- * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
- * alone, representing the "sector code" (Jamaica), "delivery area indicator"
- * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
+ * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just
+ * a number alone, representing the "sector code" (Jamaica), "delivery area
+ * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
*
*
* string sorting_code = 5;
@@ -1994,9 +1998,9 @@ public Builder setSortingCode(java.lang.String value) {
*
* Optional. Additional, country-specific, sorting code. This is not used
* in most regions. Where it is used, the value is either a string like
- * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
- * alone, representing the "sector code" (Jamaica), "delivery area indicator"
- * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
+ * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just
+ * a number alone, representing the "sector code" (Jamaica), "delivery area
+ * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
*
*
* string sorting_code = 5;
@@ -2016,9 +2020,9 @@ public Builder clearSortingCode() {
*
* Optional. Additional, country-specific, sorting code. This is not used
* in most regions. Where it is used, the value is either a string like
- * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
- * alone, representing the "sector code" (Jamaica), "delivery area indicator"
- * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
+ * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just
+ * a number alone, representing the "sector code" (Jamaica), "delivery area
+ * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
*
*
* string sorting_code = 5;
@@ -2046,10 +2050,10 @@ public Builder setSortingCodeBytes(com.google.protobuf.ByteString value) {
* Optional. Highest administrative subdivision which is used for postal
* addresses of a country or region.
* For example, this can be a state, a province, an oblast, or a prefecture.
- * Specifically, for Spain this is the province and not the autonomous
- * community (e.g. "Barcelona" and not "Catalonia").
- * Many countries don't use an administrative area in postal addresses. E.g.
- * in Switzerland this should be left unpopulated.
+ * For Spain, this is the province and not the autonomous
+ * community (for example, "Barcelona" and not "Catalonia").
+ * Many countries don't use an administrative area in postal addresses. For
+ * example, in Switzerland, this should be left unpopulated.
*
*
* string administrative_area = 6;
@@ -2075,10 +2079,10 @@ public java.lang.String getAdministrativeArea() {
* Optional. Highest administrative subdivision which is used for postal
* addresses of a country or region.
* For example, this can be a state, a province, an oblast, or a prefecture.
- * Specifically, for Spain this is the province and not the autonomous
- * community (e.g. "Barcelona" and not "Catalonia").
- * Many countries don't use an administrative area in postal addresses. E.g.
- * in Switzerland this should be left unpopulated.
+ * For Spain, this is the province and not the autonomous
+ * community (for example, "Barcelona" and not "Catalonia").
+ * Many countries don't use an administrative area in postal addresses. For
+ * example, in Switzerland, this should be left unpopulated.
*
*
* string administrative_area = 6;
@@ -2104,10 +2108,10 @@ public com.google.protobuf.ByteString getAdministrativeAreaBytes() {
* Optional. Highest administrative subdivision which is used for postal
* addresses of a country or region.
* For example, this can be a state, a province, an oblast, or a prefecture.
- * Specifically, for Spain this is the province and not the autonomous
- * community (e.g. "Barcelona" and not "Catalonia").
- * Many countries don't use an administrative area in postal addresses. E.g.
- * in Switzerland this should be left unpopulated.
+ * For Spain, this is the province and not the autonomous
+ * community (for example, "Barcelona" and not "Catalonia").
+ * Many countries don't use an administrative area in postal addresses. For
+ * example, in Switzerland, this should be left unpopulated.
*
*
* string administrative_area = 6;
@@ -2132,10 +2136,10 @@ public Builder setAdministrativeArea(java.lang.String value) {
* Optional. Highest administrative subdivision which is used for postal
* addresses of a country or region.
* For example, this can be a state, a province, an oblast, or a prefecture.
- * Specifically, for Spain this is the province and not the autonomous
- * community (e.g. "Barcelona" and not "Catalonia").
- * Many countries don't use an administrative area in postal addresses. E.g.
- * in Switzerland this should be left unpopulated.
+ * For Spain, this is the province and not the autonomous
+ * community (for example, "Barcelona" and not "Catalonia").
+ * Many countries don't use an administrative area in postal addresses. For
+ * example, in Switzerland, this should be left unpopulated.
*
*
* string administrative_area = 6;
@@ -2156,10 +2160,10 @@ public Builder clearAdministrativeArea() {
* Optional. Highest administrative subdivision which is used for postal
* addresses of a country or region.
* For example, this can be a state, a province, an oblast, or a prefecture.
- * Specifically, for Spain this is the province and not the autonomous
- * community (e.g. "Barcelona" and not "Catalonia").
- * Many countries don't use an administrative area in postal addresses. E.g.
- * in Switzerland this should be left unpopulated.
+ * For Spain, this is the province and not the autonomous
+ * community (for example, "Barcelona" and not "Catalonia").
+ * Many countries don't use an administrative area in postal addresses. For
+ * example, in Switzerland, this should be left unpopulated.
*
*
* string administrative_area = 6;
@@ -2184,10 +2188,10 @@ public Builder setAdministrativeAreaBytes(com.google.protobuf.ByteString value)
*
*
*
- * Optional. Generally refers to the city/town portion of the address.
+ * Optional. Generally refers to the city or town portion of the address.
* Examples: US city, IT comune, UK post town.
* In regions of the world where localities are not well defined or do not fit
- * into this structure well, leave locality empty and use address_lines.
+ * into this structure well, leave `locality` empty and use `address_lines`.
*
*
* string locality = 7;
@@ -2210,10 +2214,10 @@ public java.lang.String getLocality() {
*
*
*
- * Optional. Generally refers to the city/town portion of the address.
+ * Optional. Generally refers to the city or town portion of the address.
* Examples: US city, IT comune, UK post town.
* In regions of the world where localities are not well defined or do not fit
- * into this structure well, leave locality empty and use address_lines.
+ * into this structure well, leave `locality` empty and use `address_lines`.
*
*
* string locality = 7;
@@ -2236,10 +2240,10 @@ public com.google.protobuf.ByteString getLocalityBytes() {
*
*
*
- * Optional. Generally refers to the city/town portion of the address.
+ * Optional. Generally refers to the city or town portion of the address.
* Examples: US city, IT comune, UK post town.
* In regions of the world where localities are not well defined or do not fit
- * into this structure well, leave locality empty and use address_lines.
+ * into this structure well, leave `locality` empty and use `address_lines`.
*
*
* string locality = 7;
@@ -2261,10 +2265,10 @@ public Builder setLocality(java.lang.String value) {
*
*
*
- * Optional. Generally refers to the city/town portion of the address.
+ * Optional. Generally refers to the city or town portion of the address.
* Examples: US city, IT comune, UK post town.
* In regions of the world where localities are not well defined or do not fit
- * into this structure well, leave locality empty and use address_lines.
+ * into this structure well, leave `locality` empty and use `address_lines`.
*
*
* string locality = 7;
@@ -2282,10 +2286,10 @@ public Builder clearLocality() {
*
*
*
- * Optional. Generally refers to the city/town portion of the address.
+ * Optional. Generally refers to the city or town portion of the address.
* Examples: US city, IT comune, UK post town.
* In regions of the world where localities are not well defined or do not fit
- * into this structure well, leave locality empty and use address_lines.
+ * into this structure well, leave `locality` empty and use `address_lines`.
*
*
* string locality = 7;
@@ -2311,7 +2315,7 @@ public Builder setLocalityBytes(com.google.protobuf.ByteString value) {
*
*
* Optional. Sublocality of the address.
- * For example, this can be neighborhoods, boroughs, districts.
+ * For example, this can be a neighborhood, borough, or district.
*
*
* string sublocality = 8;
@@ -2335,7 +2339,7 @@ public java.lang.String getSublocality() {
*
*
* Optional. Sublocality of the address.
- * For example, this can be neighborhoods, boroughs, districts.
+ * For example, this can be a neighborhood, borough, or district.
*
*
* string sublocality = 8;
@@ -2359,7 +2363,7 @@ public com.google.protobuf.ByteString getSublocalityBytes() {
*
*
* Optional. Sublocality of the address.
- * For example, this can be neighborhoods, boroughs, districts.
+ * For example, this can be a neighborhood, borough, or district.
*
*
* string sublocality = 8;
@@ -2382,7 +2386,7 @@ public Builder setSublocality(java.lang.String value) {
*
*
* Optional. Sublocality of the address.
- * For example, this can be neighborhoods, boroughs, districts.
+ * For example, this can be a neighborhood, borough, or district.
*
*
* string sublocality = 8;
@@ -2401,7 +2405,7 @@ public Builder clearSublocality() {
*
*
* Optional. Sublocality of the address.
- * For example, this can be neighborhoods, boroughs, districts.
+ * For example, this can be a neighborhood, borough, or district.
*
*
* string sublocality = 8;
@@ -2436,23 +2440,24 @@ private void ensureAddressLinesIsMutable() {
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
@@ -2473,23 +2478,24 @@ public com.google.protobuf.ProtocolStringList getAddressLinesList() {
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
@@ -2509,23 +2515,24 @@ public int getAddressLinesCount() {
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
@@ -2546,23 +2553,24 @@ public java.lang.String getAddressLines(int index) {
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
@@ -2583,23 +2591,24 @@ public com.google.protobuf.ByteString getAddressLinesBytes(int index) {
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
@@ -2628,23 +2637,24 @@ public Builder setAddressLines(int index, java.lang.String value) {
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
@@ -2672,23 +2682,24 @@ public Builder addAddressLines(java.lang.String value) {
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
@@ -2713,23 +2724,24 @@ public Builder addAllAddressLines(java.lang.Iterable values) {
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
@@ -2753,23 +2765,24 @@ public Builder clearAddressLines() {
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java
index a207ac5afd..35ba454e61 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java
@@ -48,8 +48,8 @@ public interface PostalAddressOrBuilder
*
* Required. CLDR region code of the country/region of the address. This
* is never inferred and it is up to the user to ensure the value is
- * correct. See http://cldr.unicode.org/ and
- * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+ * correct. See https://cldr.unicode.org/ and
+ * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
* for details. Example: "CH" for Switzerland.
*
*
@@ -65,8 +65,8 @@ public interface PostalAddressOrBuilder
*
* Required. CLDR region code of the country/region of the address. This
* is never inferred and it is up to the user to ensure the value is
- * correct. See http://cldr.unicode.org/ and
- * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+ * correct. See https://cldr.unicode.org/ and
+ * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
* for details. Example: "CH" for Switzerland.
*
*
@@ -130,8 +130,8 @@ public interface PostalAddressOrBuilder
*
* Optional. Postal code of the address. Not all countries use or require
* postal codes to be present, but where they are used, they may trigger
- * additional validation with other parts of the address (e.g. state/zip
- * validation in the U.S.A.).
+ * additional validation with other parts of the address (for example,
+ * state or zip code validation in the United States).
*
*
* string postal_code = 4;
@@ -146,8 +146,8 @@ public interface PostalAddressOrBuilder
*
* Optional. Postal code of the address. Not all countries use or require
* postal codes to be present, but where they are used, they may trigger
- * additional validation with other parts of the address (e.g. state/zip
- * validation in the U.S.A.).
+ * additional validation with other parts of the address (for example,
+ * state or zip code validation in the United States).
*
*
* string postal_code = 4;
@@ -162,9 +162,9 @@ public interface PostalAddressOrBuilder
*
* Optional. Additional, country-specific, sorting code. This is not used
* in most regions. Where it is used, the value is either a string like
- * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
- * alone, representing the "sector code" (Jamaica), "delivery area indicator"
- * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
+ * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just
+ * a number alone, representing the "sector code" (Jamaica), "delivery area
+ * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
*
*
* string sorting_code = 5;
@@ -179,9 +179,9 @@ public interface PostalAddressOrBuilder
*
* Optional. Additional, country-specific, sorting code. This is not used
* in most regions. Where it is used, the value is either a string like
- * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
- * alone, representing the "sector code" (Jamaica), "delivery area indicator"
- * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
+ * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just
+ * a number alone, representing the "sector code" (Jamaica), "delivery area
+ * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
*
*
* string sorting_code = 5;
@@ -197,10 +197,10 @@ public interface PostalAddressOrBuilder
* Optional. Highest administrative subdivision which is used for postal
* addresses of a country or region.
* For example, this can be a state, a province, an oblast, or a prefecture.
- * Specifically, for Spain this is the province and not the autonomous
- * community (e.g. "Barcelona" and not "Catalonia").
- * Many countries don't use an administrative area in postal addresses. E.g.
- * in Switzerland this should be left unpopulated.
+ * For Spain, this is the province and not the autonomous
+ * community (for example, "Barcelona" and not "Catalonia").
+ * Many countries don't use an administrative area in postal addresses. For
+ * example, in Switzerland, this should be left unpopulated.
*
*
* string administrative_area = 6;
@@ -216,10 +216,10 @@ public interface PostalAddressOrBuilder
* Optional. Highest administrative subdivision which is used for postal
* addresses of a country or region.
* For example, this can be a state, a province, an oblast, or a prefecture.
- * Specifically, for Spain this is the province and not the autonomous
- * community (e.g. "Barcelona" and not "Catalonia").
- * Many countries don't use an administrative area in postal addresses. E.g.
- * in Switzerland this should be left unpopulated.
+ * For Spain, this is the province and not the autonomous
+ * community (for example, "Barcelona" and not "Catalonia").
+ * Many countries don't use an administrative area in postal addresses. For
+ * example, in Switzerland, this should be left unpopulated.
*
*
* string administrative_area = 6;
@@ -232,10 +232,10 @@ public interface PostalAddressOrBuilder
*
*
*
- * Optional. Generally refers to the city/town portion of the address.
+ * Optional. Generally refers to the city or town portion of the address.
* Examples: US city, IT comune, UK post town.
* In regions of the world where localities are not well defined or do not fit
- * into this structure well, leave locality empty and use address_lines.
+ * into this structure well, leave `locality` empty and use `address_lines`.
*
*
* string locality = 7;
@@ -248,10 +248,10 @@ public interface PostalAddressOrBuilder
*
*
*
- * Optional. Generally refers to the city/town portion of the address.
+ * Optional. Generally refers to the city or town portion of the address.
* Examples: US city, IT comune, UK post town.
* In regions of the world where localities are not well defined or do not fit
- * into this structure well, leave locality empty and use address_lines.
+ * into this structure well, leave `locality` empty and use `address_lines`.
*
*
* string locality = 7;
@@ -265,7 +265,7 @@ public interface PostalAddressOrBuilder
*
*
* Optional. Sublocality of the address.
- * For example, this can be neighborhoods, boroughs, districts.
+ * For example, this can be a neighborhood, borough, or district.
*
*
* string sublocality = 8;
@@ -279,7 +279,7 @@ public interface PostalAddressOrBuilder
*
*
* Optional. Sublocality of the address.
- * For example, this can be neighborhoods, boroughs, districts.
+ * For example, this can be a neighborhood, borough, or district.
*
*
* string sublocality = 8;
@@ -294,23 +294,24 @@ public interface PostalAddressOrBuilder
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
@@ -328,23 +329,24 @@ public interface PostalAddressOrBuilder
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
@@ -362,23 +364,24 @@ public interface PostalAddressOrBuilder
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
@@ -397,23 +400,24 @@ public interface PostalAddressOrBuilder
*
* Unstructured address lines describing the lower levels of an address.
*
- * Because values in address_lines do not have type information and may
- * sometimes contain multiple values in a single field (e.g.
+ * Because values in `address_lines` do not have type information and may
+ * sometimes contain multiple values in a single field (for example,
* "Austin, TX"), it is important that the line order is clear. The order of
- * address lines should be "envelope order" for the country/region of the
- * address. In places where this can vary (e.g. Japan), address_language is
- * used to make it explicit (e.g. "ja" for large-to-small ordering and
- * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- * an address can be selected based on the language.
+ * address lines should be "envelope order" for the country or region of the
+ * address. In places where this can vary (for example, Japan),
+ * `address_language` is used to make it explicit (for example, "ja" for
+ * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ * way, the most specific line of an address can be selected based on the
+ * language.
*
* The minimum permitted structural representation of an address consists
- * of a region_code with all remaining information placed in the
- * address_lines. It would be possible to format such an address very
+ * of a `region_code` with all remaining information placed in the
+ * `address_lines`. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
*
- * Creating an address only containing a region_code and address_lines, and
+ * Creating an address only containing a `region_code` and `address_lines` and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
* localities or administrative areas).
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressProto.java
index 3cf23944f8..cf5b2bbc82 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressProto.java
@@ -60,10 +60,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "code\030\005 \001(\t\022\033\n\023administrative_area\030\006 \001(\t\022"
+ "\020\n\010locality\030\007 \001(\t\022\023\n\013sublocality\030\010 \001(\t\022\025"
+ "\n\raddress_lines\030\t \003(\t\022\022\n\nrecipients\030\n \003("
- + "\t\022\024\n\014organization\030\013 \001(\tBx\n\017com.google.ty"
+ + "\t\022\024\n\014organization\030\013 \001(\tBu\n\017com.google.ty"
+ "peB\022PostalAddressProtoP\001ZFgoogle.golang."
+ "org/genproto/googleapis/type/postaladdre"
- + "ss;postaladdress\370\001\001\242\002\003GTPb\006proto3"
+ + "ss;postaladdress\242\002\003GTPb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java
index 031501d555..dc03080e3b 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java
@@ -24,6 +24,8 @@
*
*
*
+ * A quaternion, represented by four 64-bit floating point values.
+ *
* A quaternion is defined as the quotient of two directed lines in a
* three-dimensional space or equivalently as the quotient of two Euclidean
* vectors (https://en.wikipedia.org/wiki/Quaternion).
@@ -41,7 +43,7 @@
* where x, y, z, and w are real numbers, and i, j, and k are three imaginary
* numbers.
*
- * Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
+ * The naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
* those interested in the geometric properties of the quaternion in the 3D
* Cartesian space. Other texts often use alternative names or subscripts, such
* as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps
@@ -396,6 +398,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
*
*
*
+ * A quaternion, represented by four 64-bit floating point values.
+ *
* A quaternion is defined as the quotient of two directed lines in a
* three-dimensional space or equivalently as the quotient of two Euclidean
* vectors (https://en.wikipedia.org/wiki/Quaternion).
@@ -413,7 +417,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
* where x, y, z, and w are real numbers, and i, j, and k are three imaginary
* numbers.
*
- * Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
+ * The naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
* those interested in the geometric properties of the quaternion in the 3D
* Cartesian space. Other texts often use alternative names or subscripts, such
* as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/QuaternionProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/QuaternionProto.java
index 704adf128e..1140ea7a40 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/QuaternionProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/QuaternionProto.java
@@ -55,10 +55,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n\034google/type/quaternion.proto\022\013google.t"
+ "ype\"8\n\nQuaternion\022\t\n\001x\030\001 \001(\001\022\t\n\001y\030\002 \001(\001\022"
- + "\t\n\001z\030\003 \001(\001\022\t\n\001w\030\004 \001(\001Bo\n\017com.google.type"
+ + "\t\n\001z\030\003 \001(\001\022\t\n\001w\030\004 \001(\001Bl\n\017com.google.type"
+ "B\017QuaternionProtoP\001Z@google.golang.org/g"
+ "enproto/googleapis/type/quaternion;quate"
- + "rnion\370\001\001\242\002\003GTPb\006proto3"
+ + "rnion\242\002\003GTPb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java
index b9013280e0..990ae0637b 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java
@@ -75,8 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
- * to allow the value "24:00:00" for scenarios like business closing time.
+ * Hours of a day in 24 hour format. Must be greater than or equal to 0 and
+ * typically must be less than or equal to 23. An API may choose to allow the
+ * value "24:00:00" for scenarios like business closing time.
*
*
* int32 hours = 1;
@@ -95,7 +96,8 @@ public int getHours() {
*
*
*
- * Minutes of hour of day. Must be from 0 to 59.
+ * Minutes of an hour. Must be greater than or equal to 0 and less than or
+ * equal to 59.
*
*
* int32 minutes = 2;
@@ -114,8 +116,9 @@ public int getMinutes() {
*
*
*
- * Seconds of minutes of the time. Must normally be from 0 to 59. An API may
- * allow the value 60 if it allows leap-seconds.
+ * Seconds of a minute. Must be greater than or equal to 0 and typically must
+ * be less than or equal to 59. An API may allow the value 60 if it allows
+ * leap-seconds.
*
*
* int32 seconds = 3;
@@ -134,7 +137,8 @@ public int getSeconds() {
*
*
*
- * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
+ * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
+ * and less than or equal to 999,999,999.
*
*
* int32 nanos = 4;
@@ -521,8 +525,9 @@ public Builder mergeFrom(
*
*
*
- * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
- * to allow the value "24:00:00" for scenarios like business closing time.
+ * Hours of a day in 24 hour format. Must be greater than or equal to 0 and
+ * typically must be less than or equal to 23. An API may choose to allow the
+ * value "24:00:00" for scenarios like business closing time.
*
*
* int32 hours = 1;
@@ -538,8 +543,9 @@ public int getHours() {
*
*
*
- * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
- * to allow the value "24:00:00" for scenarios like business closing time.
+ * Hours of a day in 24 hour format. Must be greater than or equal to 0 and
+ * typically must be less than or equal to 23. An API may choose to allow the
+ * value "24:00:00" for scenarios like business closing time.
*
*
* int32 hours = 1;
@@ -559,8 +565,9 @@ public Builder setHours(int value) {
*
*
*
- * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
- * to allow the value "24:00:00" for scenarios like business closing time.
+ * Hours of a day in 24 hour format. Must be greater than or equal to 0 and
+ * typically must be less than or equal to 23. An API may choose to allow the
+ * value "24:00:00" for scenarios like business closing time.
*
*
* int32 hours = 1;
@@ -580,7 +587,8 @@ public Builder clearHours() {
*
*
*
- * Minutes of hour of day. Must be from 0 to 59.
+ * Minutes of an hour. Must be greater than or equal to 0 and less than or
+ * equal to 59.
*
*
* int32 minutes = 2;
@@ -596,7 +604,8 @@ public int getMinutes() {
*
*
*
- * Minutes of hour of day. Must be from 0 to 59.
+ * Minutes of an hour. Must be greater than or equal to 0 and less than or
+ * equal to 59.
*
*
* int32 minutes = 2;
@@ -616,7 +625,8 @@ public Builder setMinutes(int value) {
*
*
*
- * Minutes of hour of day. Must be from 0 to 59.
+ * Minutes of an hour. Must be greater than or equal to 0 and less than or
+ * equal to 59.
*
*
* int32 minutes = 2;
@@ -636,8 +646,9 @@ public Builder clearMinutes() {
*
*
*
- * Seconds of minutes of the time. Must normally be from 0 to 59. An API may
- * allow the value 60 if it allows leap-seconds.
+ * Seconds of a minute. Must be greater than or equal to 0 and typically must
+ * be less than or equal to 59. An API may allow the value 60 if it allows
+ * leap-seconds.
*
*
* int32 seconds = 3;
@@ -653,8 +664,9 @@ public int getSeconds() {
*
*
*
- * Seconds of minutes of the time. Must normally be from 0 to 59. An API may
- * allow the value 60 if it allows leap-seconds.
+ * Seconds of a minute. Must be greater than or equal to 0 and typically must
+ * be less than or equal to 59. An API may allow the value 60 if it allows
+ * leap-seconds.
*
*
* int32 seconds = 3;
@@ -674,8 +686,9 @@ public Builder setSeconds(int value) {
*
*
*
- * Seconds of minutes of the time. Must normally be from 0 to 59. An API may
- * allow the value 60 if it allows leap-seconds.
+ * Seconds of a minute. Must be greater than or equal to 0 and typically must
+ * be less than or equal to 59. An API may allow the value 60 if it allows
+ * leap-seconds.
*
*
* int32 seconds = 3;
@@ -695,7 +708,8 @@ public Builder clearSeconds() {
*
*
*
- * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
+ * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
+ * and less than or equal to 999,999,999.
*
*
* int32 nanos = 4;
@@ -711,7 +725,8 @@ public int getNanos() {
*
*
*
- * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
+ * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
+ * and less than or equal to 999,999,999.
*
*
* int32 nanos = 4;
@@ -731,7 +746,8 @@ public Builder setNanos(int value) {
*
*
*
- * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
+ * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
+ * and less than or equal to 999,999,999.
*
*
* int32 nanos = 4;
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayOrBuilder.java
index f536a040dc..da4ac5c6de 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayOrBuilder.java
@@ -30,8 +30,9 @@ public interface TimeOfDayOrBuilder
*
*
*
- * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
- * to allow the value "24:00:00" for scenarios like business closing time.
+ * Hours of a day in 24 hour format. Must be greater than or equal to 0 and
+ * typically must be less than or equal to 23. An API may choose to allow the
+ * value "24:00:00" for scenarios like business closing time.
*
*
* int32 hours = 1;
@@ -44,7 +45,8 @@ public interface TimeOfDayOrBuilder
*
*
*
- * Minutes of hour of day. Must be from 0 to 59.
+ * Minutes of an hour. Must be greater than or equal to 0 and less than or
+ * equal to 59.
*
*
* int32 minutes = 2;
@@ -57,8 +59,9 @@ public interface TimeOfDayOrBuilder
*
*
*
- * Seconds of minutes of the time. Must normally be from 0 to 59. An API may
- * allow the value 60 if it allows leap-seconds.
+ * Seconds of a minute. Must be greater than or equal to 0 and typically must
+ * be less than or equal to 59. An API may allow the value 60 if it allows
+ * leap-seconds.
*
*
* int32 seconds = 3;
@@ -71,7 +74,8 @@ public interface TimeOfDayOrBuilder
*
*
*
- * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
+ * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
+ * and less than or equal to 999,999,999.
*
*
* int32 nanos = 4;
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayProto.java
index 3a5f4c5449..580855f851 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayProto.java
@@ -59,10 +59,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005hours\030\001 \001(\005\022\017\n"
+ "\007minutes\030\002 \001(\005\022\017\n"
+ "\007seconds\030\003 \001(\005\022\r\n"
- + "\005nanos\030\004 \001(\005Bl\n"
+ + "\005nanos\030\004 \001(\005Bi\n"
+ "\017com.google.typeB\016TimeOfDayProtoP\001Z>go"
- + "ogle.golang.org/genproto/googleapis/type"
- + "/timeofday;timeofday\370\001\001\242\002\003GTPb\006proto3"
+ + "ogle.golang.org/genproto/googleapis/type/timeofday;timeofday\242\002\003GTPb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java
index 8f761f3cb5..bf84d41811 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java
@@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * IANA Time Zone Database time zone, e.g. "America/New_York".
+ * IANA Time Zone Database time zone. For example "America/New_York".
*
*
* string id = 1;
@@ -102,7 +102,7 @@ public java.lang.String getId() {
*
*
*
- * IANA Time Zone Database time zone, e.g. "America/New_York".
+ * IANA Time Zone Database time zone. For example "America/New_York".
*
*
* string id = 1;
@@ -131,7 +131,7 @@ public com.google.protobuf.ByteString getIdBytes() {
*
*
*
- * Optional. IANA Time Zone Database version number, e.g. "2019a".
+ * Optional. IANA Time Zone Database version number. For example "2019a".
*
*
* string version = 2;
@@ -155,7 +155,7 @@ public java.lang.String getVersion() {
*
*
*
- * Optional. IANA Time Zone Database version number, e.g. "2019a".
+ * Optional. IANA Time Zone Database version number. For example "2019a".
*
*
* string version = 2;
@@ -508,7 +508,7 @@ public Builder mergeFrom(
*
*
*
- * IANA Time Zone Database time zone, e.g. "America/New_York".
+ * IANA Time Zone Database time zone. For example "America/New_York".
*
*
* string id = 1;
@@ -531,7 +531,7 @@ public java.lang.String getId() {
*
*
*
- * IANA Time Zone Database time zone, e.g. "America/New_York".
+ * IANA Time Zone Database time zone. For example "America/New_York".
*
*
* string id = 1;
@@ -554,7 +554,7 @@ public com.google.protobuf.ByteString getIdBytes() {
*
*
*
- * IANA Time Zone Database time zone, e.g. "America/New_York".
+ * IANA Time Zone Database time zone. For example "America/New_York".
*
*
* string id = 1;
@@ -576,7 +576,7 @@ public Builder setId(java.lang.String value) {
*
*
*
- * IANA Time Zone Database time zone, e.g. "America/New_York".
+ * IANA Time Zone Database time zone. For example "America/New_York".
*
*
* string id = 1;
@@ -594,7 +594,7 @@ public Builder clearId() {
*
*
*
- * IANA Time Zone Database time zone, e.g. "America/New_York".
+ * IANA Time Zone Database time zone. For example "America/New_York".
*
*
* string id = 1;
@@ -619,7 +619,7 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. IANA Time Zone Database version number, e.g. "2019a".
+ * Optional. IANA Time Zone Database version number. For example "2019a".
*
*
* string version = 2;
@@ -642,7 +642,7 @@ public java.lang.String getVersion() {
*
*
*
- * Optional. IANA Time Zone Database version number, e.g. "2019a".
+ * Optional. IANA Time Zone Database version number. For example "2019a".
*
*
* string version = 2;
@@ -665,7 +665,7 @@ public com.google.protobuf.ByteString getVersionBytes() {
*
*
*
- * Optional. IANA Time Zone Database version number, e.g. "2019a".
+ * Optional. IANA Time Zone Database version number. For example "2019a".
*
*
* string version = 2;
@@ -687,7 +687,7 @@ public Builder setVersion(java.lang.String value) {
*
*
*
- * Optional. IANA Time Zone Database version number, e.g. "2019a".
+ * Optional. IANA Time Zone Database version number. For example "2019a".
*
*
* string version = 2;
@@ -705,7 +705,7 @@ public Builder clearVersion() {
*
*
*
- * Optional. IANA Time Zone Database version number, e.g. "2019a".
+ * Optional. IANA Time Zone Database version number. For example "2019a".
*
*
* string version = 2;
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZoneOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZoneOrBuilder.java
index c92bba2ddf..2e5e6be41b 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZoneOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZoneOrBuilder.java
@@ -30,7 +30,7 @@ public interface TimeZoneOrBuilder
*
*
*
- * IANA Time Zone Database time zone, e.g. "America/New_York".
+ * IANA Time Zone Database time zone. For example "America/New_York".
*
*
* string id = 1;
@@ -43,7 +43,7 @@ public interface TimeZoneOrBuilder
*
*
*
- * IANA Time Zone Database time zone, e.g. "America/New_York".
+ * IANA Time Zone Database time zone. For example "America/New_York".
*
*
* string id = 1;
@@ -56,7 +56,7 @@ public interface TimeZoneOrBuilder
*
*
*
- * Optional. IANA Time Zone Database version number, e.g. "2019a".
+ * Optional. IANA Time Zone Database version number. For example "2019a".
*
*
* string version = 2;
@@ -69,7 +69,7 @@ public interface TimeZoneOrBuilder
*
*
*
- * Optional. IANA Time Zone Database version number, e.g. "2019a".
+ * Optional. IANA Time Zone Database version number. For example "2019a".
*
*
* string version = 2;
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/auth.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/auth.proto
index cb640bd68c..9b025bac15 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/auth.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/auth.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -199,6 +199,7 @@ message OAuthRequirements {
// The list of publicly documented OAuth scopes that are allowed access. An
// OAuth token containing any of these scopes will be accepted.
//
+ //
// Example:
//
// canonical_scopes: https://www.googleapis.com/auth/calendar,
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/backend.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/backend.proto
index 8d2206e535..7bff445a34 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/backend.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/backend.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -128,6 +128,10 @@ message BackendRule {
// operation. The default is no deadline.
double operation_deadline = 5;
+ // Path translation specifies how to combine the backend address with the
+ // request path in order to produce the appropriate forwarding URL for the
+ // request. See [PathTranslation][google.api.BackendRule.PathTranslation] for
+ // more details.
PathTranslation path_translation = 6;
// Authentication settings used by the backend.
@@ -182,4 +186,11 @@ message BackendRule {
// The map between request protocol and the backend address.
map overrides_by_request_protocol = 10;
+
+ // The load balancing policy used for connection to the application backend.
+ //
+ // Defined as an arbitrary string to accomondate custom load balancing
+ // policies supported by the underlying channel, but suggest most users use
+ // one of the standard policies, such as the default, "RoundRobin".
+ string load_balancing_policy = 11;
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/billing.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/billing.proto
index 7c82274229..2b86bb61e4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/billing.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/billing.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto
index 3d692560ab..3e68d678c4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -41,15 +41,15 @@ extend google.protobuf.MethodOptions {
//
// For example, the proto RPC and annotation:
//
- // rpc CreateSubscription(CreateSubscriptionRequest)
- // returns (Subscription) {
- // option (google.api.method_signature) = "name,topic";
- // }
+ // rpc CreateSubscription(CreateSubscriptionRequest)
+ // returns (Subscription) {
+ // option (google.api.method_signature) = "name,topic";
+ // }
//
// Would add the following Java overload (in addition to the method accepting
// the request object):
//
- // public final Subscription createSubscription(String name, String topic)
+ // public final Subscription createSubscription(String name, String topic)
//
// The following backwards-compatibility guidelines apply:
//
@@ -71,32 +71,32 @@ extend google.protobuf.ServiceOptions {
//
// Example:
//
- // service Foo {
- // option (google.api.default_host) = "foo.googleapi.com";
- // ...
- // }
+ // service Foo {
+ // option (google.api.default_host) = "foo.googleapi.com";
+ // ...
+ // }
string default_host = 1049;
// OAuth scopes needed for the client.
//
// Example:
//
- // service Foo {
- // option (google.api.oauth_scopes) = \
- // "https://www.googleapis.com/auth/cloud-platform";
- // ...
- // }
+ // service Foo {
+ // option (google.api.oauth_scopes) = \
+ // "https://www.googleapis.com/auth/cloud-platform";
+ // ...
+ // }
//
// If there is more than one scope, use a comma-separated string:
//
// Example:
//
- // service Foo {
- // option (google.api.oauth_scopes) = \
- // "https://www.googleapis.com/auth/cloud-platform,"
- // "https://www.googleapis.com/auth/monitoring";
- // ...
- // }
+ // service Foo {
+ // option (google.api.oauth_scopes) = \
+ // "https://www.googleapis.com/auth/cloud-platform,"
+ // "https://www.googleapis.com/auth/monitoring";
+ // ...
+ // }
string oauth_scopes = 1050;
// The API version of this service, which should be sent by version-aware
@@ -110,9 +110,9 @@ extend google.protobuf.ServiceOptions {
//
// Example:
//
- // service Foo {
- // option (google.api.api_version) = "v1_20230821_preview";
- // }
+ // service Foo {
+ // option (google.api.api_version) = "v1_20230821_preview";
+ // }
string api_version = 525000001;
}
@@ -227,9 +227,10 @@ message JavaSettings {
//
// Example of a YAML configuration::
//
- // publishing:
- // java_settings:
- // library_package: com.google.cloud.pubsub.v1
+ // publishing:
+ // library_settings:
+ // java_settings:
+ // library_package: com.google.cloud.pubsub.v1
string library_package = 1;
// Configure the Java class name to use instead of the service's for its
@@ -241,11 +242,11 @@ message JavaSettings {
//
// Example of a YAML configuration::
//
- // publishing:
- // java_settings:
- // service_class_names:
- // - google.pubsub.v1.Publisher: TopicAdmin
- // - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ // publishing:
+ // java_settings:
+ // service_class_names:
+ // - google.pubsub.v1.Publisher: TopicAdmin
+ // - google.pubsub.v1.Subscriber: SubscriptionAdmin
map service_class_names = 2;
// Some settings.
@@ -262,6 +263,20 @@ message CppSettings {
message PhpSettings {
// Some settings.
CommonLanguageSettings common = 1;
+
+ // The package name to use in Php. Clobbers the php_namespace option
+ // set in the protobuf. This should be used **only** by APIs
+ // who have already set the language_settings.php.package_name" field
+ // in gapic.yaml. API teams should use the protobuf php_namespace option
+ // where possible.
+ //
+ // Example of a YAML configuration::
+ //
+ // publishing:
+ // library_settings:
+ // php_settings:
+ // library_package: Google\Cloud\PubSub\V1
+ string library_package = 2;
}
// Settings for Python client libraries.
@@ -353,10 +368,12 @@ message GoSettings {
// service names and values are the name to be used for the service client
// and call options.
//
- // publishing:
- // go_settings:
- // renamed_services:
- // Publisher: TopicAdmin
+ // Example:
+ //
+ // publishing:
+ // go_settings:
+ // renamed_services:
+ // Publisher: TopicAdmin
map renamed_services = 2;
}
@@ -391,10 +408,10 @@ message MethodSettings {
//
// Example:
//
- // publishing:
- // method_settings:
- // - selector: google.storage.control.v2.StorageControl.CreateFolder
- // # method settings for CreateFolder...
+ // publishing:
+ // method_settings:
+ // - selector: google.storage.control.v2.StorageControl.CreateFolder
+ // # method settings for CreateFolder...
string selector = 1;
// Describes settings to use for long-running operations when generating
@@ -403,14 +420,14 @@ message MethodSettings {
//
// Example of a YAML configuration::
//
- // publishing:
- // method_settings:
- // - selector: google.cloud.speech.v2.Speech.BatchRecognize
- // long_running:
- // initial_poll_delay: 60s # 1 minute
- // poll_delay_multiplier: 1.5
- // max_poll_delay: 360s # 6 minutes
- // total_poll_timeout: 54000s # 90 minutes
+ // publishing:
+ // method_settings:
+ // - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ // long_running:
+ // initial_poll_delay: 60s # 1 minute
+ // poll_delay_multiplier: 1.5
+ // max_poll_delay: 360s # 6 minutes
+ // total_poll_timeout: 54000s # 90 minutes
LongRunning long_running = 2;
// List of top-level fields of the request message, that should be
@@ -419,12 +436,25 @@ message MethodSettings {
//
// Example of a YAML configuration:
//
- // publishing:
- // method_settings:
- // - selector: google.example.v1.ExampleService.CreateExample
- // auto_populated_fields:
- // - request_id
+ // publishing:
+ // method_settings:
+ // - selector: google.example.v1.ExampleService.CreateExample
+ // auto_populated_fields:
+ // - request_id
repeated string auto_populated_fields = 3;
+
+ // Batching configuration for an API method in client libraries.
+ //
+ // Example of a YAML configuration:
+ //
+ // publishing:
+ // method_settings:
+ // - selector: google.example.v1.ExampleService.BatchCreateExample
+ // batching:
+ // element_count_threshold: 1000
+ // request_byte_threshold: 100000000
+ // delay_threshold_millis: 10
+ BatchingConfigProto batching = 4;
}
// The organization for which the client libraries are being published.
@@ -484,3 +514,81 @@ message SelectiveGapicGeneration {
// obfuscated identifiers, or other language idiomatic patterns.
bool generate_omitted_as_internal = 2;
}
+
+// `BatchingConfigProto` defines the batching configuration for an API method.
+message BatchingConfigProto {
+ // The thresholds which trigger a batched request to be sent.
+ BatchingSettingsProto thresholds = 1;
+
+ // The request and response fields used in batching.
+ BatchingDescriptorProto batch_descriptor = 2;
+}
+
+// `BatchingSettingsProto` specifies a set of batching thresholds, each of
+// which acts as a trigger to send a batch of messages as a request. At least
+// one threshold must be positive nonzero.
+message BatchingSettingsProto {
+ // The number of elements of a field collected into a batch which, if
+ // exceeded, causes the batch to be sent.
+ int32 element_count_threshold = 1;
+
+ // The aggregated size of the batched field which, if exceeded, causes the
+ // batch to be sent. This size is computed by aggregating the sizes of the
+ // request field to be batched, not of the entire request message.
+ int64 request_byte_threshold = 2;
+
+ // The duration after which a batch should be sent, starting from the addition
+ // of the first message to that batch.
+ google.protobuf.Duration delay_threshold = 3;
+
+ // The maximum number of elements collected in a batch that could be accepted
+ // by server.
+ int32 element_count_limit = 4;
+
+ // The maximum size of the request that could be accepted by server.
+ int32 request_byte_limit = 5;
+
+ // The maximum number of elements allowed by flow control.
+ int32 flow_control_element_limit = 6;
+
+ // The maximum size of data allowed by flow control.
+ int32 flow_control_byte_limit = 7;
+
+ // The behavior to take when the flow control limit is exceeded.
+ FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior =
+ 8;
+}
+
+// The behavior to take when the flow control limit is exceeded.
+enum FlowControlLimitExceededBehaviorProto {
+ // Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0;
+
+ // Stop operation, raise error.
+ THROW_EXCEPTION = 1;
+
+ // Pause operation until limit clears.
+ BLOCK = 2;
+
+ // Continue operation, disregard limit.
+ IGNORE = 3;
+}
+
+// `BatchingDescriptorProto` specifies the fields of the request message to be
+// used for batching, and, optionally, the fields of the response message to be
+// used for demultiplexing.
+message BatchingDescriptorProto {
+ // The repeated field in the request message to be aggregated by batching.
+ string batched_field = 1;
+
+ // A list of the fields in the request message. Two requests will be batched
+ // together only if the values of every field specified in
+ // `request_discriminator_fields` is equal between the two requests.
+ repeated string discriminator_fields = 2;
+
+ // Optional. When present, indicates the field in the response message to be
+ // used to demultiplex the response into multiple response messages, in
+ // correspondence with the multiple request messages originally batched
+ // together.
+ string subresponse_field = 3;
+}
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/config_change.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/config_change.proto
index c1cc0e8b05..b6792b9a50 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/config_change.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/config_change.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/context.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/context.proto
index 5b137f5f79..c1704f1e99 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/context.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/context.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/control.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/control.proto
index ce3f2871d7..c0dc0cdc3d 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/control.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/control.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -32,8 +32,8 @@ option objc_class_prefix = "GAPI";
// environment: servicecontrol.googleapis.com
message Control {
// The service controller environment to use. If empty, no control plane
- // feature (like quota and billing) will be enabled. The recommended value for
- // most services is servicecontrol.googleapis.com
+ // features (like quota and billing) will be enabled. The recommended value
+ // for most services is servicecontrol.googleapis.com.
string environment = 1;
// Defines policies applying to the API methods of the service.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/distribution.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/distribution.proto
index 215be7d364..51cf36ef4f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/distribution.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/distribution.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/documentation.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/documentation.proto
index b94a06d473..a730ab89a5 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/documentation.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/documentation.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/endpoint.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/endpoint.proto
index a9fa9992a4..047cf54d51 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/endpoint.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/endpoint.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/error_reason.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/error_reason.proto
index 030888ae33..3b4826e5f7 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/error_reason.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/error_reason.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -619,4 +619,189 @@ enum ErrorReason {
// }
// }
OVERLOADED_CREDENTIALS = 34;
+
+ // The request whose associated location violates the location org policy
+ // restrictions when creating resources in the restricted region.
+ //
+ // Example of an ErrorInfo when creating the Cloud Storage Bucket in the
+ // container "projects/123" under a restricted region
+ // "locations/asia-northeast3":
+ //
+ // {
+ // "reason": "LOCATION_ORG_POLICY_VIOLATED",
+ // "domain": "googleapis.com",
+ // "metadata": {
+ // "resource": "projects/123",
+ // "location": "locations/asia-northeast3"
+ // }
+ // }
+ //
+ // This response indicates creating the Cloud Storage Bucket in
+ // "locations/asia-northeast3" violates the location org policy restriction.
+ LOCATION_ORG_POLICY_VIOLATED = 35;
+
+ // The request is denied because it access data of regulated customers using
+ // TLS 1.0 and 1.1.
+ //
+ // Example of an ErrorInfo when accessing a GCP resource "projects/123" that
+ // is restricted by TLS Version Restriction for "pubsub.googleapis.com"
+ // service.
+ //
+ // {
+ // "reason": "TLS_ORG_POLICY_VIOLATED",
+ // "domain": "googleapis.com",
+ // "metadata": {
+ // "service": "pubsub.googleapis.com"
+ // "resource": "projects/123",
+ // "policyName": "constraints/gcp.restrictTLSVersion",
+ // "tlsVersion": "TLS_VERSION_1"
+ // }
+ // }
+ TLS_ORG_POLICY_VIOLATED = 36;
+
+ // The request is denied because the associated project has exceeded the
+ // emulator quota limit.
+ //
+ // Example of an ErrorInfo when the associated "projects/123" has exceeded the
+ // emulator quota limit.
+ //
+ // {
+ // "reason": "EMULATOR_QUOTA_EXCEEDED",
+ // "domain": "googleapis.com",
+ // "metadata": {
+ // "service": "pubsub.googleapis.com"
+ // "consumer": "projects/123"
+ // }
+ // }
+ EMULATOR_QUOTA_EXCEEDED = 38;
+
+ // The request is denied because the associated application credential header
+ // is invalid for an Android applications.
+ //
+ // Example of an ErrorInfo when the request from an Android application to the
+ // "pubsub.googleapis.com" with an invalid application credential header.
+ //
+ // {
+ // "reason": "CREDENTIAL_ANDROID_APP_INVALID",
+ // "domain": "googleapis.com",
+ // "metadata": {
+ // "service": "pubsub.googleapis.com"
+ // }
+ // }
+ CREDENTIAL_ANDROID_APP_INVALID = 39;
+
+ // The request is denied because IAM permission on resource is denied.
+ //
+ // Example of an ErrorInfo when the IAM permission `aiplatform.datasets.list`
+ // is denied on resource `projects/123`.
+ //
+ // {
+ // "reason": "IAM_PERMISSION_DENIED",
+ // "domain": "googleapis.com",
+ // "metadata": {
+ // "resource": "projects/123"
+ // "permission": "aiplatform.datasets.list"
+ // }
+ // }
+ IAM_PERMISSION_DENIED = 41;
+
+ // The request is denied because it contains the invalid JWT token.
+ //
+ // Example of an ErrorInfo when the request contains an invalid JWT token for
+ // service `storage.googleapis.com`.
+ //
+ // {
+ // "reason": "JWT_TOKEN_INVALID",
+ // "domain": "googleapis.com",
+ // "metadata": {
+ // "service": "storage.googleapis.com"
+ // }
+ // }
+ JWT_TOKEN_INVALID = 42;
+
+ // The request is denied because it contains credential with type that is
+ // unsupported.
+ //
+ // Example of an ErrorInfo when the request contains an unsupported credential
+ // type for service `storage.googleapis.com`.
+ //
+ // {
+ // "reason": "CREDENTIAL_TYPE_UNSUPPORTED",
+ // "domain": "googleapis.com",
+ // "metadata": {
+ // "service": "storage.googleapis.com"
+ // }
+ // }
+ CREDENTIAL_TYPE_UNSUPPORTED = 43;
+
+ // The request is denied because it contains unsupported account type.
+ //
+ // Example of an ErrorInfo when the request contains an unsupported account
+ // type for service `storage.googleapis.com`.
+ //
+ // {
+ // "reason": "ACCOUNT_TYPE_UNSUPPORTED",
+ // "domain": "googleapis.com",
+ // "metadata": {
+ // "service": "storage.googleapis.com"
+ // }
+ // }
+ ACCOUNT_TYPE_UNSUPPORTED = 44;
+
+ // The request is denied because the API endpoint is restricted by
+ // administrators according to the organization policy constraint.
+ // For more information see
+ // https://cloud.google.com/assured-workloads/docs/restrict-endpoint-usage.
+ //
+ // Example of an ErrorInfo when access to Google Cloud Storage service is
+ // restricted by Restrict Endpoint Usage policy:
+ //
+ // {
+ // "reason": "ENDPOINT_USAGE_RESTRICTION_VIOLATED",
+ // "domain": "googleapis.com/policies/endpointUsageRestriction",
+ // "metadata": {
+ // "policy_name": "constraints/gcp.restrictEndpointUsage",
+ // "checked_value": "storage.googleapis.com"
+ // "consumer": "organization/123"
+ // "service": "storage.googleapis.com"
+ // }
+ // }
+ ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45;
+
+ // The request is denied because the TLS Cipher Suite is restricted by
+ // administrators according to the organization policy constraint.
+ // For more information see
+ // https://cloud.google.com/assured-workloads/docs/restrict-tls-cipher-suites
+ //
+ // Example of an ErrorInfo when access to Google Cloud BigQuery service is
+ // restricted by Restrict TLS Cipher Suites policy:
+ //
+ // {
+ // "reason": "TLS_CIPHER_RESTRICTION_VIOLATED",
+ // "domain": "googleapis.com/policies/tlsCipherRestriction",
+ // "metadata": {
+ // "policy_name": "constraints/gcp.restrictTLSCipherSuites",
+ // "checked_value": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
+ // "consumer": "organization/123"
+ // "service": "bigquery.googleapis.com"
+ // }
+ // }
+ TLS_CIPHER_RESTRICTION_VIOLATED = 46;
+
+ // The request is denied because the MCP activation check fails.
+ //
+ // Example of an ErrorInfo when the container "projects/123" contacting
+ // "pubsub.googleapis.com" service which is disabled by MCP:
+ //
+ // { "reason": "MCP_SERVER_DISABLED",
+ // "domain": "googleapis.com",
+ // "metadata": {
+ // "consumer": "projects/123",
+ // "service": "pubsub.googleapis.com"
+ // }
+ // }
+ //
+ // This response indicates the "pubsub.googleapis.com" has been disabled in
+ // "projects/123" for MCP.
+ MCP_SERVER_DISABLED = 47;
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/field_behavior.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/field_behavior.proto
index 1fdaaed11a..861f8254fb 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/field_behavior.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/field_behavior.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/field_info.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/field_info.proto
index aaa07a1815..64387fde13 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/field_info.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/field_info.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/http.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/http.proto
index 57621b5374..bb3af8e56a 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/http.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/http.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/httpbody.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/httpbody.proto
index e3e17c8acb..3fd226a987 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/httpbody.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/httpbody.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/label.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/label.proto
index 739e4e95ed..5d77c70882 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/label.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/label.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/launch_stage.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/launch_stage.proto
index 1e86c1ad17..0fff247bd8 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/launch_stage.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/launch_stage.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/log.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/log.proto
index 3d55e408be..2f13e72750 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/log.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/log.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/logging.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/logging.proto
index 613e005ed5..7a82de9acb 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/logging.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/logging.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/metric.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/metric.proto
index 9da49ba0cd..b7fb82a9bb 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/metric.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/metric.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/monitored_resource.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/monitored_resource.proto
index 36abe14ca0..eaf1f1280b 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/monitored_resource.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/monitored_resource.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/monitoring.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/monitoring.proto
index 5c3b2d9d90..b939a0ca2a 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/monitoring.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/monitoring.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/policy.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/policy.proto
index cc577a169b..c925fdc427 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/policy.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/policy.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/quota.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/quota.proto
index 9e7fb3bf65..29ae86ed46 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/quota.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/quota.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/resource.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/resource.proto
index 5669cbc985..2a5213bb08 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/resource.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/resource.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/routing.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/routing.proto
index 4fcb2acb6c..020d32f7b7 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/routing.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/routing.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -59,9 +59,13 @@ extend google.protobuf.MethodOptions {
// app_profile_id: profiles/prof_qux
// }
//
-// The routing header consists of one or multiple key-value pairs. Every key
-// and value must be percent-encoded, and joined together in the format of
-// `key1=value1&key2=value2`.
+// The routing header consists of one or multiple key-value pairs. The order of
+// the key-value pairs is undefined, the order of the `routing_parameters` in
+// the `RoutingRule` only matters for the evaluation order of the path
+// templates when `field` is the same. See the examples below for more details.
+//
+// Every key and value in the routing header must be percent-encoded,
+// and joined together in the following format: `key1=value1&key2=value2`.
// The examples below skip the percent-encoding for readability.
//
// Example 1
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/service.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/service.proto
index 598b75a0e4..9952ca0e8d 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/service.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/service.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -159,8 +159,7 @@ message Service {
repeated MetricDescriptor metrics = 24;
// Defines the monitored resources used by this service. This is required
- // by the [Service.monitoring][google.api.Service.monitoring] and
- // [Service.logging][google.api.Service.logging] configurations.
+ // by the `Service.monitoring` and `Service.logging` configurations.
repeated MonitoredResourceDescriptor monitored_resources = 25;
// Billing configuration.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/source_info.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/source_info.proto
index 3257b5a722..1d4094e13d 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/source_info.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/source_info.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/system_parameter.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/system_parameter.proto
index 15b93f913e..5ab1f37e1b 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/system_parameter.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/system_parameter.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/usage.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/usage.proto
index 4b7aa5fdf2..df1b93b39f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/usage.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/usage.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -52,30 +52,6 @@ message Usage {
}
// Usage configuration rules for the service.
-//
-// NOTE: Under development.
-//
-//
-// Use this rule to configure unregistered calls for the service. Unregistered
-// calls are calls that do not contain consumer project identity.
-// (Example: calls that do not contain an API key).
-// By default, API methods do not allow unregistered calls, and each method call
-// must be identified by a consumer project identity. Use this rule to
-// allow/disallow unregistered calls.
-//
-// Example of an API that wants to allow unregistered calls for entire service.
-//
-// usage:
-// rules:
-// - selector: "*"
-// allow_unregistered_calls: true
-//
-// Example of a method that wants to allow unregistered calls.
-//
-// usage:
-// rules:
-// - selector: "google.example.library.v1.LibraryService.CreateBook"
-// allow_unregistered_calls: true
message UsageRule {
// Selects the methods to which this rule applies. Use '*' to indicate all
// methods in all APIs.
@@ -84,8 +60,12 @@ message UsageRule {
// details.
string selector = 1;
- // If true, the selected method allows unregistered calls, e.g. calls
- // that don't identify any user or application.
+ // Use this rule to configure unregistered calls for the service. Unregistered
+ // calls are calls that do not contain consumer project identity.
+ // (Example: calls that do not contain an API key).
+ //
+ // WARNING: By default, API methods do not allow unregistered calls, and each
+ // method call must be identified by a consumer project identity.
bool allow_unregistered_calls = 2;
// If true, the selected method should skip service control and the control
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/visibility.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/visibility.proto
index 0ab5bdc1c9..fb5cac6f26 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/visibility.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/visibility.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/calendar_period.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/calendar_period.proto
index 57d360add3..ae08aebd67 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/calendar_period.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/calendar_period.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/color.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/color.proto
index 26508db9fc..c48d0644a7 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/color.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/color.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@ package google.type;
import "google/protobuf/wrappers.proto";
-option cc_enable_arenas = true;
option go_package = "google.golang.org/genproto/googleapis/type/color;color";
option java_multiple_files = true;
option java_outer_classname = "ColorProto";
@@ -26,22 +25,22 @@ option java_package = "com.google.type";
option objc_class_prefix = "GTP";
// Represents a color in the RGBA color space. This representation is designed
-// for simplicity of conversion to/from color representations in various
+// for simplicity of conversion to and from color representations in various
// languages over compactness. For example, the fields of this representation
// can be trivially provided to the constructor of `java.awt.Color` in Java; it
// can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
// method in iOS; and, with just a little work, it can be easily formatted into
// a CSS `rgba()` string in JavaScript.
//
-// This reference page doesn't carry information about the absolute color
-// space
-// that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
-// DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color
+// This reference page doesn't have information about the absolute color
+// space that should be used to interpret the RGB value—for example, sRGB,
+// Adobe RGB,
+// DCI-P3, and BT.2020. By default, applications should assume the sRGB color
// space.
//
-// When color equality needs to be decided, implementations, unless
-// documented otherwise, treat two colors as equal if all their red,
-// green, blue, and alpha values each differ by at most 1e-5.
+// When color equality needs to be decided, implementations, unless documented
+// otherwise, treat two colors as equal if all their red, green, blue, and alpha
+// values each differ by at most `1e-5`.
//
// Example (Java):
//
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/date.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/date.proto
index 6f63436e5e..12be7e16a4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/date.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/date.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@ syntax = "proto3";
package google.type;
-option cc_enable_arenas = true;
option go_package = "google.golang.org/genproto/googleapis/type/date;date";
option java_multiple_files = true;
option java_outer_classname = "DateProto";
@@ -28,14 +27,17 @@ option objc_class_prefix = "GTP";
// date is relative to the Gregorian Calendar. This can represent one of the
// following:
//
-// * A full date, with non-zero year, month, and day values
-// * A month and day value, with a zero year, such as an anniversary
-// * A year on its own, with zero month and day values
-// * A year and month value, with a zero day, such as a credit card expiration
-// date
+// * A full date, with non-zero year, month, and day values.
+// * A month and day, with a zero year (for example, an anniversary).
+// * A year on its own, with a zero month and a zero day.
+// * A year and month, with a zero day (for example, a credit card expiration
+// date).
//
-// Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
-// `google.protobuf.Timestamp`.
+// Related types:
+//
+// * [google.type.TimeOfDay][google.type.TimeOfDay]
+// * [google.type.DateTime][google.type.DateTime]
+// * [google.protobuf.Timestamp][google.protobuf.Timestamp]
message Date {
// Year of the date. Must be from 1 to 9999, or 0 to specify a date without
// a year.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/datetime.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/datetime.proto
index 9f0d62b069..b81e4f472f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/datetime.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/datetime.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@ package google.type;
import "google/protobuf/duration.proto";
-option cc_enable_arenas = true;
option go_package = "google.golang.org/genproto/googleapis/type/datetime;datetime";
option java_multiple_files = true;
option java_outer_classname = "DateTimeProto";
@@ -38,8 +37,8 @@ option objc_class_prefix = "GTP";
//
// The date is relative to the Proleptic Gregorian Calendar.
//
-// If year is 0, the DateTime is considered not to have a specific year. month
-// and day must have valid, non-zero values.
+// If year, month, or day are 0, the DateTime is considered not to have a
+// specific year, month, or day respectively.
//
// This type may also be used to represent a physical time if all the date and
// time fields are set and either case of the `time_offset` oneof is set.
@@ -54,27 +53,28 @@ message DateTime {
// datetime without a year.
int32 year = 1;
- // Required. Month of year. Must be from 1 to 12.
+ // Optional. Month of year. Must be from 1 to 12, or 0 if specifying a
+ // datetime without a month.
int32 month = 2;
- // Required. Day of month. Must be from 1 to 31 and valid for the year and
- // month.
+ // Optional. Day of month. Must be from 1 to 31 and valid for the year and
+ // month, or 0 if specifying a datetime without a day.
int32 day = 3;
- // Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
- // may choose to allow the value "24:00:00" for scenarios like business
- // closing time.
+ // Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults
+ // to 0 (midnight). An API may choose to allow the value "24:00:00" for
+ // scenarios like business closing time.
int32 hours = 4;
- // Required. Minutes of hour of day. Must be from 0 to 59.
+ // Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
int32 minutes = 5;
- // Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
- // API may allow the value 60 if it allows leap-seconds.
+ // Optional. Seconds of minutes of the time. Must normally be from 0 to 59,
+ // defaults to 0. An API may allow the value 60 if it allows leap-seconds.
int32 seconds = 6;
- // Required. Fractions of seconds in nanoseconds. Must be from 0 to
- // 999,999,999.
+ // Optional. Fractions of seconds in nanoseconds. Must be from 0 to
+ // 999,999,999, defaults to 0.
int32 nanos = 7;
// Optional. Specifies either the UTC offset or the time zone of the DateTime.
@@ -96,9 +96,9 @@ message DateTime {
// Represents a time zone from the
// [IANA Time Zone Database](https://www.iana.org/time-zones).
message TimeZone {
- // IANA Time Zone Database time zone, e.g. "America/New_York".
+ // IANA Time Zone Database time zone. For example "America/New_York".
string id = 1;
- // Optional. IANA Time Zone Database version number, e.g. "2019a".
+ // Optional. IANA Time Zone Database version number. For example "2019a".
string version = 2;
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/dayofweek.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/dayofweek.proto
index 5684bec35e..669d89401c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/dayofweek.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/dayofweek.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/decimal.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/decimal.proto
index 77a06db0e5..353e14b477 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/decimal.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/decimal.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@ syntax = "proto3";
package google.type;
-option cc_enable_arenas = true;
option go_package = "google.golang.org/genproto/googleapis/type/decimal;decimal";
option java_multiple_files = true;
option java_outer_classname = "DecimalProto";
@@ -24,19 +23,17 @@ option java_package = "com.google.type";
option objc_class_prefix = "GTP";
// A representation of a decimal value, such as 2.5. Clients may convert values
-// into language-native decimal formats, such as Java's [BigDecimal][] or
-// Python's [decimal.Decimal][].
-//
-// [BigDecimal]:
-// https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html
-// [decimal.Decimal]: https://docs.python.org/3/library/decimal.html
+// into language-native decimal formats, such as Java's
+// [BigDecimal](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html)
+// or Python's
+// [decimal.Decimal](https://docs.python.org/3/library/decimal.html).
message Decimal {
// The decimal value, as a string.
//
// The string representation consists of an optional sign, `+` (`U+002B`)
// or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
// ("the integer"), optionally followed by a fraction, optionally followed
- // by an exponent.
+ // by an exponent. An empty string **should** be interpreted as `0`.
//
// The fraction consists of a decimal point followed by zero or more decimal
// digits. The string must contain at least one digit in either the integer
@@ -50,12 +47,13 @@ message Decimal {
//
// - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
// - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
- // - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
- // - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ // - Coercing the exponent character to upper-case, with explicit sign
+ // (`2.5e8` -> `2.5E+8`).
+ // - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`).
//
// Services **may** perform additional normalization based on its own needs
// and the internal decimal implementation selected, such as shifting the
- // decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
+ // decimal point and exponent value together (example: `2.5E-1` <-> `0.25`).
// Additionally, services **may** preserve trailing zeroes in the fraction
// to indicate increased precision, but are not required to do so.
//
@@ -67,7 +65,7 @@ message Decimal {
// The ENBF grammar is:
//
// DecimalString =
- // [Sign] Significand [Exponent];
+ // '' | [Sign] Significand [Exponent];
//
// Sign = '+' | '-';
//
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/expr.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/expr.proto
index 97c4f7da0f..2fca5cda31 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/expr.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/expr.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/fraction.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/fraction.proto
index b3b0d0f380..72f90b3113 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/fraction.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/fraction.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/interval.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/interval.proto
index d9b2427145..8e001282ca 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/interval.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/interval.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@ package google.type;
import "google/protobuf/timestamp.proto";
-option cc_enable_arenas = true;
option go_package = "google.golang.org/genproto/googleapis/type/interval;interval";
option java_multiple_files = true;
option java_outer_classname = "IntervalProto";
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/latlng.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/latlng.proto
index 6714f65bd5..2866058ccf 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/latlng.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/latlng.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@ syntax = "proto3";
package google.type;
-option cc_enable_arenas = true;
option go_package = "google.golang.org/genproto/googleapis/type/latlng;latlng";
option java_multiple_files = true;
option java_outer_classname = "LatLngProto";
@@ -25,9 +24,9 @@ option objc_class_prefix = "GTP";
// An object that represents a latitude/longitude pair. This is expressed as a
// pair of doubles to represent degrees latitude and degrees longitude. Unless
-// specified otherwise, this must conform to the
-// WGS84
-// standard. Values must be within normalized ranges.
+// specified otherwise, this object must conform to the
+//
+// WGS84 standard. Values must be within normalized ranges.
message LatLng {
// The latitude in degrees. It must be in the range [-90.0, +90.0].
double latitude = 1;
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/localized_text.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/localized_text.proto
index 3971e81116..d3f2c2c183 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/localized_text.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/localized_text.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@ syntax = "proto3";
package google.type;
-option cc_enable_arenas = true;
option go_package = "google.golang.org/genproto/googleapis/type/localized_text;localized_text";
option java_multiple_files = true;
option java_outer_classname = "LocalizedTextProto";
@@ -25,7 +24,8 @@ option objc_class_prefix = "GTP";
// Localized variant of a text in a particular language.
message LocalizedText {
- // Localized string in the language corresponding to `language_code' below.
+ // Localized string in the language corresponding to
+ // [language_code][google.type.LocalizedText.language_code] below.
string text = 1;
// The text's BCP-47 language code, such as "en-US" or "sr-Latn".
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/money.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/money.proto
index f67aa51f0e..ed0d790a33 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/money.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/money.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@ syntax = "proto3";
package google.type;
-option cc_enable_arenas = true;
option go_package = "google.golang.org/genproto/googleapis/type/money;money";
option java_multiple_files = true;
option java_outer_classname = "MoneyProto";
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/month.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/month.proto
index 169282ae98..f8a66305f9 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/month.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/month.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/phone_number.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/phone_number.proto
index 23dbc6bdf1..7c55be0768 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/phone_number.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/phone_number.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@ syntax = "proto3";
package google.type;
-option cc_enable_arenas = true;
option go_package = "google.golang.org/genproto/googleapis/type/phone_number;phone_number";
option java_multiple_files = true;
option java_outer_classname = "PhoneNumberProto";
@@ -39,13 +38,13 @@ option objc_class_prefix = "GTP";
//
// For instance, in Java this would be:
//
-// com.google.type.PhoneNumber wireProto =
-// com.google.type.PhoneNumber.newBuilder().build();
-// com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber =
-// PhoneNumberUtil.getInstance().parse(wireProto.getE164Number(), "ZZ");
-// if (!wireProto.getExtension().isEmpty()) {
-// phoneNumber.setExtension(wireProto.getExtension());
-// }
+// com.google.type.PhoneNumber wireProto =
+// com.google.type.PhoneNumber.newBuilder().build();
+// com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber =
+// PhoneNumberUtil.getInstance().parse(wireProto.getE164Number(), "ZZ");
+// if (!wireProto.getExtension().isEmpty()) {
+// phoneNumber.setExtension(wireProto.getExtension());
+// }
//
// Reference(s):
// - https://github.com/google/libphonenumber
@@ -53,12 +52,13 @@ message PhoneNumber {
// An object representing a short code, which is a phone number that is
// typically much shorter than regular phone numbers and can be used to
// address messages in MMS and SMS systems, as well as for abbreviated dialing
- // (e.g. "Text 611 to see how many minutes you have remaining on your plan.").
+ // (For example "Text 611 to see how many minutes you have remaining on your
+ // plan.").
//
// Short codes are restricted to a region and are not internationally
// dialable, which means the same short code can exist in different regions,
// with different usage and pricing, even if those regions share the same
- // country calling code (e.g. US and CA).
+ // country calling code (For example: US and CA).
message ShortCode {
// Required. The BCP-47 region code of the location where calls to this
// short code can be made, such as "US" and "BB".
@@ -68,7 +68,7 @@ message PhoneNumber {
string region_code = 1;
// Required. The short code digits, without a leading plus ('+') or country
- // calling code, e.g. "611".
+ // calling code. For example "611".
string number = 2;
}
@@ -79,24 +79,29 @@ message PhoneNumber {
// The phone number, represented as a leading plus sign ('+'), followed by a
// phone number that uses a relaxed ITU E.164 format consisting of the
// country calling code (1 to 3 digits) and the subscriber number, with no
- // additional spaces or formatting, e.g.:
+ // additional spaces or formatting. For example:
+ //
// - correct: "+15552220123"
- // - incorrect: "+1 (555) 222-01234 x123".
+ //
+ // - incorrect: "+1 (555) 222-01234 x123"
//
// The ITU E.164 format limits the latter to 12 digits, but in practice not
// all countries respect that, so we relax that restriction here.
// National-only numbers are not allowed.
//
// References:
+ //
// - https://www.itu.int/rec/T-REC-E.164-201011-I
+ //
// - https://en.wikipedia.org/wiki/E.164.
+ //
// - https://en.wikipedia.org/wiki/List_of_country_calling_codes
string e164_number = 1;
// A short code.
//
// Reference(s):
- // - https://en.wikipedia.org/wiki/Short_code
+ // - https://wikipedia.org/wiki/Short_code
ShortCode short_code = 2;
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/postal_address.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/postal_address.proto
index e58d5c3504..5705962523 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/postal_address.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/postal_address.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,30 +16,29 @@ syntax = "proto3";
package google.type;
-option cc_enable_arenas = true;
option go_package = "google.golang.org/genproto/googleapis/type/postaladdress;postaladdress";
option java_multiple_files = true;
option java_outer_classname = "PostalAddressProto";
option java_package = "com.google.type";
option objc_class_prefix = "GTP";
-// Represents a postal address, e.g. for postal delivery or payments addresses.
-// Given a postal address, a postal service can deliver items to a premise, P.O.
-// Box or similar.
-// It is not intended to model geographical locations (roads, towns,
-// mountains).
+// Represents a postal address, such as for postal delivery or payments
+// addresses. With a postal address, a postal service can deliver items to a
+// premise, P.O. box, or similar. A postal address is not intended to model
+// geographical locations like roads, towns, or mountains.
//
-// In typical usage an address would be created via user input or from importing
+// In typical usage, an address would be created by user input or from importing
// existing data, depending on the type of process.
//
-// Advice on address input / editing:
-// - Use an i18n-ready address widget such as
-// https://github.com/google/libaddressinput)
-// - Users should not be presented with UI elements for input or editing of
-// fields outside countries where that field is used.
+// Advice on address input or editing:
//
-// For more guidance on how to use this schema, please see:
-// https://support.google.com/business/answer/6397478
+// - Use an internationalization-ready address widget such as
+// https://github.com/google/libaddressinput.
+// - Users should not be presented with UI elements for input or editing of
+// fields outside countries where that field is used.
+//
+// For more guidance on how to use this schema, see:
+// https://support.google.com/business/answer/6397478.
message PostalAddress {
// The schema revision of the `PostalAddress`. This must be set to 0, which is
// the latest revision.
@@ -49,8 +48,8 @@ message PostalAddress {
// Required. CLDR region code of the country/region of the address. This
// is never inferred and it is up to the user to ensure the value is
- // correct. See http://cldr.unicode.org/ and
- // http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+ // correct. See https://cldr.unicode.org/ and
+ // https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
// for details. Example: "CH" for Switzerland.
string region_code = 2;
@@ -70,55 +69,56 @@ message PostalAddress {
// Optional. Postal code of the address. Not all countries use or require
// postal codes to be present, but where they are used, they may trigger
- // additional validation with other parts of the address (e.g. state/zip
- // validation in the U.S.A.).
+ // additional validation with other parts of the address (for example,
+ // state or zip code validation in the United States).
string postal_code = 4;
// Optional. Additional, country-specific, sorting code. This is not used
// in most regions. Where it is used, the value is either a string like
- // "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
- // alone, representing the "sector code" (Jamaica), "delivery area indicator"
- // (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
+ // "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just
+ // a number alone, representing the "sector code" (Jamaica), "delivery area
+ // indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
string sorting_code = 5;
// Optional. Highest administrative subdivision which is used for postal
// addresses of a country or region.
// For example, this can be a state, a province, an oblast, or a prefecture.
- // Specifically, for Spain this is the province and not the autonomous
- // community (e.g. "Barcelona" and not "Catalonia").
- // Many countries don't use an administrative area in postal addresses. E.g.
- // in Switzerland this should be left unpopulated.
+ // For Spain, this is the province and not the autonomous
+ // community (for example, "Barcelona" and not "Catalonia").
+ // Many countries don't use an administrative area in postal addresses. For
+ // example, in Switzerland, this should be left unpopulated.
string administrative_area = 6;
- // Optional. Generally refers to the city/town portion of the address.
+ // Optional. Generally refers to the city or town portion of the address.
// Examples: US city, IT comune, UK post town.
// In regions of the world where localities are not well defined or do not fit
- // into this structure well, leave locality empty and use address_lines.
+ // into this structure well, leave `locality` empty and use `address_lines`.
string locality = 7;
// Optional. Sublocality of the address.
- // For example, this can be neighborhoods, boroughs, districts.
+ // For example, this can be a neighborhood, borough, or district.
string sublocality = 8;
// Unstructured address lines describing the lower levels of an address.
//
- // Because values in address_lines do not have type information and may
- // sometimes contain multiple values in a single field (e.g.
+ // Because values in `address_lines` do not have type information and may
+ // sometimes contain multiple values in a single field (for example,
// "Austin, TX"), it is important that the line order is clear. The order of
- // address lines should be "envelope order" for the country/region of the
- // address. In places where this can vary (e.g. Japan), address_language is
- // used to make it explicit (e.g. "ja" for large-to-small ordering and
- // "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- // an address can be selected based on the language.
+ // address lines should be "envelope order" for the country or region of the
+ // address. In places where this can vary (for example, Japan),
+ // `address_language` is used to make it explicit (for example, "ja" for
+ // large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ // way, the most specific line of an address can be selected based on the
+ // language.
//
// The minimum permitted structural representation of an address consists
- // of a region_code with all remaining information placed in the
- // address_lines. It would be possible to format such an address very
+ // of a `region_code` with all remaining information placed in the
+ // `address_lines`. It would be possible to format such an address very
// approximately without geocoding, but no semantic reasoning could be
// made about any of the address components until it was at least
// partially resolved.
//
- // Creating an address only containing a region_code and address_lines, and
+ // Creating an address only containing a `region_code` and `address_lines` and
// then geocoding is the recommended way to handle completely unstructured
// addresses (as opposed to guessing which parts of the address should be
// localities or administrative areas).
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/quaternion.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/quaternion.proto
index 18c7b74255..d24629821f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/quaternion.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/quaternion.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,13 +16,14 @@ syntax = "proto3";
package google.type;
-option cc_enable_arenas = true;
option go_package = "google.golang.org/genproto/googleapis/type/quaternion;quaternion";
option java_multiple_files = true;
option java_outer_classname = "QuaternionProto";
option java_package = "com.google.type";
option objc_class_prefix = "GTP";
+// A quaternion, represented by four 64-bit floating point values.
+//
// A quaternion is defined as the quotient of two directed lines in a
// three-dimensional space or equivalently as the quotient of two Euclidean
// vectors (https://en.wikipedia.org/wiki/Quaternion).
@@ -40,7 +41,7 @@ option objc_class_prefix = "GTP";
// where x, y, z, and w are real numbers, and i, j, and k are three imaginary
// numbers.
//
-// Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
+// The naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
// those interested in the geometric properties of the quaternion in the 3D
// Cartesian space. Other texts often use alternative names or subscripts, such
// as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps
@@ -78,7 +79,6 @@ option objc_class_prefix = "GTP";
// it would produce a unique representation. It is thus recommended that `w` be
// kept positive, which can be achieved by changing all the signs when `w` is
// negative.
-//
message Quaternion {
// The x component.
double x = 1;
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/timeofday.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/timeofday.proto
index cd6a80574b..94090bd085 100644
--- a/java-common-protos/proto-google-common-protos/src/main/proto/google/type/timeofday.proto
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/type/timeofday.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@ syntax = "proto3";
package google.type;
-option cc_enable_arenas = true;
option go_package = "google.golang.org/genproto/googleapis/type/timeofday;timeofday";
option java_multiple_files = true;
option java_outer_classname = "TimeOfDayProto";
@@ -28,17 +27,21 @@ option objc_class_prefix = "GTP";
// types are [google.type.Date][google.type.Date] and
// `google.protobuf.Timestamp`.
message TimeOfDay {
- // Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
- // to allow the value "24:00:00" for scenarios like business closing time.
+ // Hours of a day in 24 hour format. Must be greater than or equal to 0 and
+ // typically must be less than or equal to 23. An API may choose to allow the
+ // value "24:00:00" for scenarios like business closing time.
int32 hours = 1;
- // Minutes of hour of day. Must be from 0 to 59.
+ // Minutes of an hour. Must be greater than or equal to 0 and less than or
+ // equal to 59.
int32 minutes = 2;
- // Seconds of minutes of the time. Must normally be from 0 to 59. An API may
- // allow the value 60 if it allows leap-seconds.
+ // Seconds of a minute. Must be greater than or equal to 0 and typically must
+ // be less than or equal to 59. An API may allow the value 60 if it allows
+ // leap-seconds.
int32 seconds = 3;
- // Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
+ // Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
+ // and less than or equal to 999,999,999.
int32 nanos = 4;
}
diff --git a/java-showcase/gapic-showcase/src/main/resources/META-INF/native-image/com.google.showcase.v1beta1/reflect-config.json b/java-showcase/gapic-showcase/src/main/resources/META-INF/native-image/com.google.showcase.v1beta1/reflect-config.json
index 55863aee26..4fcf07d483 100644
--- a/java-showcase/gapic-showcase/src/main/resources/META-INF/native-image/com.google.showcase.v1beta1/reflect-config.json
+++ b/java-showcase/gapic-showcase/src/main/resources/META-INF/native-image/com.google.showcase.v1beta1/reflect-config.json
@@ -1,4 +1,58 @@
[
+ {
+ "name": "com.google.api.BatchingConfigProto",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.api.BatchingConfigProto$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.api.BatchingDescriptorProto",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.api.BatchingDescriptorProto$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.api.BatchingSettingsProto",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.api.BatchingSettingsProto$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.api.ClientLibraryDestination",
"queryAllDeclaredConstructors": true,
@@ -143,6 +197,15 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.api.FlowControlLimitExceededBehaviorProto",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.api.GoSettings",
"queryAllDeclaredConstructors": true,