+ overridesByRequestProtocol__ =
+ input.readMessage(
+ OverridesByRequestProtocolDefaultEntryHolder.defaultEntry
+ .getParserForType(),
+ extensionRegistry);
+ overridesByRequestProtocol_
+ .getMutableMap()
+ .put(
+ overridesByRequestProtocol__.getKey(),
+ overridesByRequestProtocol__.getValue());
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.BackendProto.internal_static_google_api_BackendRule_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 10:
return internalGetOverridesByRequestProtocol();
@@ -83,7 +203,6 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
* Path Translation specifies how to combine the backend address with the
* request path in order to produce the appropriate forwarding URL for the
* request.
- *
* Path Translation is applicable only to HTTP-based backends. Backends which
* do not accept requests over HTTP/HTTPS should leave `path_translation`
* unspecified.
@@ -103,21 +222,15 @@ public enum PathTranslation implements com.google.protobuf.ProtocolMessageEnum {
* appended to the query string. If a query string parameter and a URL
* pattern variable have the same name, this may result in duplicate keys in
* the query string.
- *
* # Examples
- *
* Given the following operation config:
- *
* Method path: /api/company/{cid}/user/{uid}
* Backend address: https://example.cloudfunctions.net/getUser
- *
* Requests to the following request paths will call the backend at the
* translated path:
- *
* Request path: /api/company/widgetworks/user/johndoe
* Translated:
* https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe
- *
* Request path: /api/company/widgetworks/user/johndoe?timezone=EST
* Translated:
* https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe
@@ -131,21 +244,15 @@ public enum PathTranslation implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request path will be appended to the backend address.
- *
* # Examples
- *
* Given the following operation config:
- *
* Method path: /api/company/{cid}/user/{uid}
* Backend address: https://example.appspot.com
- *
* Requests to the following request paths will call the backend at the
* translated path:
- *
* Request path: /api/company/widgetworks/user/johndoe
* Translated:
* https://example.appspot.com/api/company/widgetworks/user/johndoe
- *
* Request path: /api/company/widgetworks/user/johndoe?timezone=EST
* Translated:
* https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
@@ -169,21 +276,15 @@ public enum PathTranslation implements com.google.protobuf.ProtocolMessageEnum {
* appended to the query string. If a query string parameter and a URL
* pattern variable have the same name, this may result in duplicate keys in
* the query string.
- *
* # Examples
- *
* Given the following operation config:
- *
* Method path: /api/company/{cid}/user/{uid}
* Backend address: https://example.cloudfunctions.net/getUser
- *
* Requests to the following request paths will call the backend at the
* translated path:
- *
* Request path: /api/company/widgetworks/user/johndoe
* Translated:
* https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe
- *
* Request path: /api/company/widgetworks/user/johndoe?timezone=EST
* Translated:
* https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe
@@ -198,21 +299,15 @@ public enum PathTranslation implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request path will be appended to the backend address.
- *
* # Examples
- *
* Given the following operation config:
- *
* Method path: /api/company/{cid}/user/{uid}
* Backend address: https://example.appspot.com
- *
* Requests to the following request paths will call the backend at the
* translated path:
- *
* Request path: /api/company/widgetworks/user/johndoe
* Translated:
* https://example.appspot.com/api/company/widgetworks/user/johndoe
- *
* Request path: /api/company/widgetworks/user/johndoe?timezone=EST
* Translated:
* https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
@@ -308,8 +403,6 @@ private PathTranslation(int value) {
}
private int authenticationCase_ = 0;
-
- @SuppressWarnings("serial")
private java.lang.Object authentication_;
public enum AuthenticationCase
@@ -358,16 +451,13 @@ public AuthenticationCase getAuthenticationCase() {
}
public static final int SELECTOR_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object selector_ = "";
+ private volatile java.lang.Object selector_;
/**
*
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -394,7 +484,6 @@ public java.lang.String getSelector() {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -417,32 +506,25 @@ public com.google.protobuf.ByteString getSelectorBytes() {
}
public static final int ADDRESS_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object address_ = "";
+ private volatile java.lang.Object address_;
/**
*
*
*
* The address of the API backend.
- *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
- *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
- *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
- *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
- *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -469,23 +551,18 @@ public java.lang.String getAddress() {
*
*
* The address of the API backend.
- *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
- *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
- *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
- *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
- *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -508,7 +585,7 @@ public com.google.protobuf.ByteString getAddressBytes() {
}
public static final int DEADLINE_FIELD_NUMBER = 3;
- private double deadline_ = 0D;
+ private double deadline_;
/**
*
@@ -528,7 +605,7 @@ public double getDeadline() {
}
public static final int MIN_DEADLINE_FIELD_NUMBER = 4;
- private double minDeadline_ = 0D;
+ private double minDeadline_;
/**
*
@@ -550,7 +627,7 @@ public double getMinDeadline() {
}
public static final int OPERATION_DEADLINE_FIELD_NUMBER = 5;
- private double operationDeadline_ = 0D;
+ private double operationDeadline_;
/**
*
@@ -570,7 +647,7 @@ public double getOperationDeadline() {
}
public static final int PATH_TRANSLATION_FIELD_NUMBER = 6;
- private int pathTranslation_ = 0;
+ private int pathTranslation_;
/**
* .google.api.BackendRule.PathTranslation path_translation = 6;
@@ -589,8 +666,9 @@ public int getPathTranslationValue() {
*/
@java.lang.Override
public com.google.api.BackendRule.PathTranslation getPathTranslation() {
+ @SuppressWarnings("deprecation")
com.google.api.BackendRule.PathTranslation result =
- com.google.api.BackendRule.PathTranslation.forNumber(pathTranslation_);
+ com.google.api.BackendRule.PathTranslation.valueOf(pathTranslation_);
return result == null ? com.google.api.BackendRule.PathTranslation.UNRECOGNIZED : result;
}
@@ -717,9 +795,7 @@ public boolean getDisableAuth() {
}
public static final int PROTOCOL_FIELD_NUMBER = 9;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object protocol_ = "";
+ private volatile java.lang.Object protocol_;
/**
*
@@ -727,22 +803,17 @@ public boolean getDisableAuth() {
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
- *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
- *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
- *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
- *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
- *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -771,22 +842,17 @@ public java.lang.String getProtocol() {
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
- *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
- *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
- *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
- *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
- *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -824,7 +890,6 @@ private static final class OverridesByRequestProtocolDefaultEntryHolder {
com.google.api.BackendRule.getDefaultInstance());
}
- @SuppressWarnings("serial")
private com.google.protobuf.MapField
overridesByRequestProtocol_;
@@ -891,10 +956,8 @@ public boolean containsOverridesByRequestProtocol(java.lang.String key) {
* map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;
*/
@java.lang.Override
- public /* nullable */ com.google.api.BackendRule getOverridesByRequestProtocolOrDefault(
- java.lang.String key,
- /* nullable */
- com.google.api.BackendRule defaultValue) {
+ public com.google.api.BackendRule getOverridesByRequestProtocolOrDefault(
+ java.lang.String key, com.google.api.BackendRule defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -972,7 +1035,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
internalGetOverridesByRequestProtocol(),
OverridesByRequestProtocolDefaultEntryHolder.defaultEntry,
10);
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -1024,7 +1087,7 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
10, overridesByRequestProtocol__);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -1062,7 +1125,7 @@ public boolean equals(final java.lang.Object obj) {
case 0:
default:
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -1112,7 +1175,7 @@ public int hashCode() {
case 0:
default:
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -1230,8 +1293,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 10:
return internalGetOverridesByRequestProtocol();
@@ -1241,8 +1303,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
switch (number) {
case 10:
return internalGetMutableOverridesByRequestProtocol();
@@ -1260,23 +1321,36 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
}
// Construct using com.google.api.BackendRule.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
selector_ = "";
+
address_ = "";
+
deadline_ = 0D;
+
minDeadline_ = 0D;
+
operationDeadline_ = 0D;
+
pathTranslation_ = 0;
+
protocol_ = "";
+
internalGetMutableOverridesByRequestProtocol().clear();
authenticationCase_ = 0;
authentication_ = null;
@@ -1305,47 +1379,25 @@ public com.google.api.BackendRule build() {
@java.lang.Override
public com.google.api.BackendRule buildPartial() {
com.google.api.BackendRule result = new com.google.api.BackendRule(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- buildPartialOneofs(result);
- onBuilt();
- return result;
- }
-
- private void buildPartial0(com.google.api.BackendRule result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.selector_ = selector_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.address_ = address_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.deadline_ = deadline_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.minDeadline_ = minDeadline_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.operationDeadline_ = operationDeadline_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.pathTranslation_ = pathTranslation_;
- }
- if (((from_bitField0_ & 0x00000100) != 0)) {
- result.protocol_ = protocol_;
+ result.selector_ = selector_;
+ result.address_ = address_;
+ result.deadline_ = deadline_;
+ result.minDeadline_ = minDeadline_;
+ result.operationDeadline_ = operationDeadline_;
+ result.pathTranslation_ = pathTranslation_;
+ if (authenticationCase_ == 7) {
+ result.authentication_ = authentication_;
}
- if (((from_bitField0_ & 0x00000200) != 0)) {
- result.overridesByRequestProtocol_ =
- internalGetOverridesByRequestProtocol()
- .build(OverridesByRequestProtocolDefaultEntryHolder.defaultEntry);
+ if (authenticationCase_ == 8) {
+ result.authentication_ = authentication_;
}
- }
-
- private void buildPartialOneofs(com.google.api.BackendRule result) {
+ result.protocol_ = protocol_;
+ result.overridesByRequestProtocol_ = internalGetOverridesByRequestProtocol();
+ result.overridesByRequestProtocol_.makeImmutable();
result.authenticationCase_ = authenticationCase_;
- result.authentication_ = this.authentication_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -1395,12 +1447,10 @@ public Builder mergeFrom(com.google.api.BackendRule other) {
if (other == com.google.api.BackendRule.getDefaultInstance()) return this;
if (!other.getSelector().isEmpty()) {
selector_ = other.selector_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
- bitField0_ |= 0x00000002;
onChanged();
}
if (other.getDeadline() != 0D) {
@@ -1417,12 +1467,10 @@ public Builder mergeFrom(com.google.api.BackendRule other) {
}
if (!other.getProtocol().isEmpty()) {
protocol_ = other.protocol_;
- bitField0_ |= 0x00000100;
onChanged();
}
internalGetMutableOverridesByRequestProtocol()
.mergeFrom(other.internalGetOverridesByRequestProtocol());
- bitField0_ |= 0x00000200;
switch (other.getAuthenticationCase()) {
case JWT_AUDIENCE:
{
@@ -1441,7 +1489,7 @@ public Builder mergeFrom(com.google.api.BackendRule other) {
break;
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -1456,102 +1504,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.BackendRule parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- selector_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- address_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 25:
- {
- deadline_ = input.readDouble();
- bitField0_ |= 0x00000004;
- break;
- } // case 25
- case 33:
- {
- minDeadline_ = input.readDouble();
- bitField0_ |= 0x00000008;
- break;
- } // case 33
- case 41:
- {
- operationDeadline_ = input.readDouble();
- bitField0_ |= 0x00000010;
- break;
- } // case 41
- case 48:
- {
- pathTranslation_ = input.readEnum();
- bitField0_ |= 0x00000020;
- break;
- } // case 48
- case 58:
- {
- java.lang.String s = input.readStringRequireUtf8();
- authenticationCase_ = 7;
- authentication_ = s;
- break;
- } // case 58
- case 64:
- {
- authentication_ = input.readBool();
- authenticationCase_ = 8;
- break;
- } // case 64
- case 74:
- {
- protocol_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000100;
- break;
- } // case 74
- case 82:
- {
- com.google.protobuf.MapEntry
- overridesByRequestProtocol__ =
- input.readMessage(
- OverridesByRequestProtocolDefaultEntryHolder.defaultEntry
- .getParserForType(),
- extensionRegistry);
- internalGetMutableOverridesByRequestProtocol()
- .ensureBuilderMap()
- .put(
- overridesByRequestProtocol__.getKey(),
- overridesByRequestProtocol__.getValue());
- bitField0_ |= 0x00000200;
- break;
- } // case 82
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.BackendRule) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -1578,7 +1541,6 @@ public Builder clearAuthentication() {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1604,7 +1566,6 @@ public java.lang.String getSelector() {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1630,7 +1591,6 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1644,8 +1604,8 @@ public Builder setSelector(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1655,7 +1615,6 @@ public Builder setSelector(java.lang.String value) {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1665,8 +1624,8 @@ public Builder setSelector(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearSelector() {
+
selector_ = getDefaultInstance().getSelector();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1676,7 +1635,6 @@ public Builder clearSelector() {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1691,8 +1649,8 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1704,23 +1662,18 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
*
*
* The address of the API backend.
- *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
- *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
- *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
- *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
- *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -1746,23 +1699,18 @@ public java.lang.String getAddress() {
*
*
* The address of the API backend.
- *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
- *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
- *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
- *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
- *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -1788,23 +1736,18 @@ public com.google.protobuf.ByteString getAddressBytes() {
*
*
* The address of the API backend.
- *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
- *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
- *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
- *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
- *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -1818,8 +1761,8 @@ public Builder setAddress(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
address_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1829,23 +1772,18 @@ public Builder setAddress(java.lang.String value) {
*
*
* The address of the API backend.
- *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
- *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
- *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
- *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
- *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -1855,8 +1793,8 @@ public Builder setAddress(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearAddress() {
+
address_ = getDefaultInstance().getAddress();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1866,23 +1804,18 @@ public Builder clearAddress() {
*
*
* The address of the API backend.
- *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
- *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
- *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
- *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
- *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -1897,8 +1830,8 @@ public Builder setAddressBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
address_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1938,7 +1871,6 @@ public double getDeadline() {
public Builder setDeadline(double value) {
deadline_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1956,7 +1888,7 @@ public Builder setDeadline(double value) {
* @return This builder for chaining.
*/
public Builder clearDeadline() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
deadline_ = 0D;
onChanged();
return this;
@@ -2001,7 +1933,6 @@ public double getMinDeadline() {
public Builder setMinDeadline(double value) {
minDeadline_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2021,7 +1952,7 @@ public Builder setMinDeadline(double value) {
*/
@java.lang.Deprecated
public Builder clearMinDeadline() {
- bitField0_ = (bitField0_ & ~0x00000008);
+
minDeadline_ = 0D;
onChanged();
return this;
@@ -2062,7 +1993,6 @@ public double getOperationDeadline() {
public Builder setOperationDeadline(double value) {
operationDeadline_ = value;
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -2080,7 +2010,7 @@ public Builder setOperationDeadline(double value) {
* @return This builder for chaining.
*/
public Builder clearOperationDeadline() {
- bitField0_ = (bitField0_ & ~0x00000010);
+
operationDeadline_ = 0D;
onChanged();
return this;
@@ -2105,8 +2035,8 @@ public int getPathTranslationValue() {
* @return This builder for chaining.
*/
public Builder setPathTranslationValue(int value) {
+
pathTranslation_ = value;
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2118,8 +2048,9 @@ public Builder setPathTranslationValue(int value) {
*/
@java.lang.Override
public com.google.api.BackendRule.PathTranslation getPathTranslation() {
+ @SuppressWarnings("deprecation")
com.google.api.BackendRule.PathTranslation result =
- com.google.api.BackendRule.PathTranslation.forNumber(pathTranslation_);
+ com.google.api.BackendRule.PathTranslation.valueOf(pathTranslation_);
return result == null ? com.google.api.BackendRule.PathTranslation.UNRECOGNIZED : result;
}
@@ -2133,7 +2064,7 @@ public Builder setPathTranslation(com.google.api.BackendRule.PathTranslation val
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000020;
+
pathTranslation_ = value.getNumber();
onChanged();
return this;
@@ -2145,7 +2076,7 @@ public Builder setPathTranslation(com.google.api.BackendRule.PathTranslation val
* @return This builder for chaining.
*/
public Builder clearPathTranslation() {
- bitField0_ = (bitField0_ & ~0x00000020);
+
pathTranslation_ = 0;
onChanged();
return this;
@@ -2357,7 +2288,6 @@ public boolean getDisableAuth() {
* @return This builder for chaining.
*/
public Builder setDisableAuth(boolean value) {
-
authenticationCase_ = 8;
authentication_ = value;
onChanged();
@@ -2395,22 +2325,17 @@ public Builder clearDisableAuth() {
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
- *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
- *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
- *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
- *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
- *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -2438,22 +2363,17 @@ public java.lang.String getProtocol() {
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
- *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
- *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
- *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
- *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
- *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -2481,22 +2401,17 @@ public com.google.protobuf.ByteString getProtocolBytes() {
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
- *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
- *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
- *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
- *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
- *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -2511,8 +2426,8 @@ public Builder setProtocol(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
protocol_ = value;
- bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -2523,22 +2438,17 @@ public Builder setProtocol(java.lang.String value) {
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
- *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
- *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
- *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
- *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
- *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -2549,8 +2459,8 @@ public Builder setProtocol(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearProtocol() {
+
protocol_ = getDefaultInstance().getProtocol();
- bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
@@ -2561,22 +2471,17 @@ public Builder clearProtocol() {
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
- *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
- *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
- *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
- *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
- *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -2592,70 +2497,41 @@ public Builder setProtocolBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
protocol_ = value;
- bitField0_ |= 0x00000100;
onChanged();
return this;
}
- private static final class OverridesByRequestProtocolConverter
- implements com.google.protobuf.MapFieldBuilder.Converter<
- java.lang.String, com.google.api.BackendRuleOrBuilder, com.google.api.BackendRule> {
- @java.lang.Override
- public com.google.api.BackendRule build(com.google.api.BackendRuleOrBuilder val) {
- if (val instanceof com.google.api.BackendRule) {
- return (com.google.api.BackendRule) val;
- }
- return ((com.google.api.BackendRule.Builder) val).build();
- }
-
- @java.lang.Override
- public com.google.protobuf.MapEntry
- defaultEntry() {
- return OverridesByRequestProtocolDefaultEntryHolder.defaultEntry;
- }
- }
- ;
-
- private static final OverridesByRequestProtocolConverter overridesByRequestProtocolConverter =
- new OverridesByRequestProtocolConverter();
-
- private com.google.protobuf.MapFieldBuilder<
- java.lang.String,
- com.google.api.BackendRuleOrBuilder,
- com.google.api.BackendRule,
- com.google.api.BackendRule.Builder>
+ private com.google.protobuf.MapField
overridesByRequestProtocol_;
- private com.google.protobuf.MapFieldBuilder<
- java.lang.String,
- com.google.api.BackendRuleOrBuilder,
- com.google.api.BackendRule,
- com.google.api.BackendRule.Builder>
+ private com.google.protobuf.MapField
internalGetOverridesByRequestProtocol() {
if (overridesByRequestProtocol_ == null) {
- return new com.google.protobuf.MapFieldBuilder<>(overridesByRequestProtocolConverter);
+ return com.google.protobuf.MapField.emptyMapField(
+ OverridesByRequestProtocolDefaultEntryHolder.defaultEntry);
}
return overridesByRequestProtocol_;
}
- private com.google.protobuf.MapFieldBuilder<
- java.lang.String,
- com.google.api.BackendRuleOrBuilder,
- com.google.api.BackendRule,
- com.google.api.BackendRule.Builder>
+ private com.google.protobuf.MapField
internalGetMutableOverridesByRequestProtocol() {
+ onChanged();
+ ;
if (overridesByRequestProtocol_ == null) {
overridesByRequestProtocol_ =
- new com.google.protobuf.MapFieldBuilder<>(overridesByRequestProtocolConverter);
+ com.google.protobuf.MapField.newMapField(
+ OverridesByRequestProtocolDefaultEntryHolder.defaultEntry);
+ }
+ if (!overridesByRequestProtocol_.isMutable()) {
+ overridesByRequestProtocol_ = overridesByRequestProtocol_.copy();
}
- bitField0_ |= 0x00000200;
- onChanged();
return overridesByRequestProtocol_;
}
public int getOverridesByRequestProtocolCount() {
- return internalGetOverridesByRequestProtocol().ensureBuilderMap().size();
+ return internalGetOverridesByRequestProtocol().getMap().size();
}
/**
@@ -2672,7 +2548,7 @@ public boolean containsOverridesByRequestProtocol(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
- return internalGetOverridesByRequestProtocol().ensureBuilderMap().containsKey(key);
+ return internalGetOverridesByRequestProtocol().getMap().containsKey(key);
}
/** Use {@link #getOverridesByRequestProtocolMap()} instead. */
@@ -2695,7 +2571,7 @@ public boolean containsOverridesByRequestProtocol(java.lang.String key) {
@java.lang.Override
public java.util.Map
getOverridesByRequestProtocolMap() {
- return internalGetOverridesByRequestProtocol().getImmutableMap();
+ return internalGetOverridesByRequestProtocol().getMap();
}
/**
@@ -2708,18 +2584,14 @@ public boolean containsOverridesByRequestProtocol(java.lang.String key) {
* map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;
*/
@java.lang.Override
- public /* nullable */ com.google.api.BackendRule getOverridesByRequestProtocolOrDefault(
- java.lang.String key,
- /* nullable */
- com.google.api.BackendRule defaultValue) {
+ public com.google.api.BackendRule getOverridesByRequestProtocolOrDefault(
+ java.lang.String key, com.google.api.BackendRule defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
- java.util.Map map =
- internalGetMutableOverridesByRequestProtocol().ensureBuilderMap();
- return map.containsKey(key)
- ? overridesByRequestProtocolConverter.build(map.get(key))
- : defaultValue;
+ java.util.Map map =
+ internalGetOverridesByRequestProtocol().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
@@ -2736,17 +2608,16 @@ public com.google.api.BackendRule getOverridesByRequestProtocolOrThrow(java.lang
if (key == null) {
throw new NullPointerException("map key");
}
- java.util.Map map =
- internalGetMutableOverridesByRequestProtocol().ensureBuilderMap();
+ java.util.Map map =
+ internalGetOverridesByRequestProtocol().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
- return overridesByRequestProtocolConverter.build(map.get(key));
+ return map.get(key);
}
public Builder clearOverridesByRequestProtocol() {
- bitField0_ = (bitField0_ & ~0x00000200);
- internalGetMutableOverridesByRequestProtocol().clear();
+ internalGetMutableOverridesByRequestProtocol().getMutableMap().clear();
return this;
}
@@ -2763,7 +2634,7 @@ public Builder removeOverridesByRequestProtocol(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
- internalGetMutableOverridesByRequestProtocol().ensureBuilderMap().remove(key);
+ internalGetMutableOverridesByRequestProtocol().getMutableMap().remove(key);
return this;
}
@@ -2771,8 +2642,7 @@ public Builder removeOverridesByRequestProtocol(java.lang.String key) {
@java.lang.Deprecated
public java.util.Map
getMutableOverridesByRequestProtocol() {
- bitField0_ |= 0x00000200;
- return internalGetMutableOverridesByRequestProtocol().ensureMessageMap();
+ return internalGetMutableOverridesByRequestProtocol().getMutableMap();
}
/**
@@ -2792,8 +2662,8 @@ public Builder putOverridesByRequestProtocol(
if (value == null) {
throw new NullPointerException("map value");
}
- internalGetMutableOverridesByRequestProtocol().ensureBuilderMap().put(key, value);
- bitField0_ |= 0x00000200;
+
+ internalGetMutableOverridesByRequestProtocol().getMutableMap().put(key, value);
return this;
}
@@ -2808,42 +2678,10 @@ public Builder putOverridesByRequestProtocol(
*/
public Builder putAllOverridesByRequestProtocol(
java.util.Map values) {
- for (java.util.Map.Entry e :
- values.entrySet()) {
- if (e.getKey() == null || e.getValue() == null) {
- throw new NullPointerException();
- }
- }
- internalGetMutableOverridesByRequestProtocol().ensureBuilderMap().putAll(values);
- bitField0_ |= 0x00000200;
+ internalGetMutableOverridesByRequestProtocol().getMutableMap().putAll(values);
return this;
}
- /**
- *
- *
- *
- * The map between request protocol and the backend address.
- *
- *
- * map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;
- */
- public com.google.api.BackendRule.Builder putOverridesByRequestProtocolBuilderIfAbsent(
- java.lang.String key) {
- java.util.Map builderMap =
- internalGetMutableOverridesByRequestProtocol().ensureBuilderMap();
- com.google.api.BackendRuleOrBuilder entry = builderMap.get(key);
- if (entry == null) {
- entry = com.google.api.BackendRule.newBuilder();
- builderMap.put(key, entry);
- }
- if (entry instanceof com.google.api.BackendRule) {
- entry = ((com.google.api.BackendRule) entry).toBuilder();
- builderMap.put(key, entry);
- }
- return (com.google.api.BackendRule.Builder) entry;
- }
-
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
@@ -2876,18 +2714,7 @@ public BackendRule parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new BackendRule(input, extensionRegistry);
}
};
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 66e62348b4..ffe24818fd 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
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/backend.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface BackendRuleOrBuilder
@@ -29,7 +28,6 @@ public interface BackendRuleOrBuilder
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -45,7 +43,6 @@ public interface BackendRuleOrBuilder
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -61,23 +58,18 @@ public interface BackendRuleOrBuilder
*
*
* The address of the API backend.
- *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
- *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
- *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
- *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
- *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -93,23 +85,18 @@ public interface BackendRuleOrBuilder
*
*
* The address of the API backend.
- *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
- *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
- *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
- *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
- *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -261,22 +248,17 @@ public interface BackendRuleOrBuilder
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
- *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
- *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
- *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
- *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
- *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -294,22 +276,17 @@ public interface BackendRuleOrBuilder
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
- *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
- *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
- *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
- *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
- *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -367,6 +344,7 @@ public interface BackendRuleOrBuilder
*
* map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;
*/
+
/* nullable */
com.google.api.BackendRule getOverridesByRequestProtocolOrDefault(
java.lang.String key,
@@ -384,5 +362,5 @@ com.google.api.BackendRule getOverridesByRequestProtocolOrDefault(
*/
com.google.api.BackendRule getOverridesByRequestProtocolOrThrow(java.lang.String key);
- com.google.api.BackendRule.AuthenticationCase getAuthenticationCase();
+ public com.google.api.BackendRule.AuthenticationCase getAuthenticationCase();
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java
index 235d18d406..6b9d7c64ea 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/billing.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -24,15 +23,12 @@
*
*
* Billing related configuration of the service.
- *
* The following example shows how to configure monitored resources and metrics
* for billing, `consumer_destinations` is the only supported destination and
* the monitored resources need at least one label key
* `cloud.googleapis.com/location` to indicate the location of the billing
* usage, using different monitored resources between monitoring and billing is
* recommended so they can be evolved independently:
- *
- *
* monitored_resources:
* - type: library.googleapis.com/billing_branch
* labels:
@@ -80,6 +76,66 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Billing();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Billing(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 66:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ consumerDestinations_ =
+ new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ consumerDestinations_.add(
+ input.readMessage(
+ com.google.api.Billing.BillingDestination.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ consumerDestinations_ = java.util.Collections.unmodifiableList(consumerDestinations_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.BillingProto.internal_static_google_api_Billing_descriptor;
}
@@ -213,7 +269,7 @@ private BillingDestination(com.google.protobuf.GeneratedMessageV3.Builder> bui
private BillingDestination() {
monitoredResource_ = "";
- metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@@ -222,6 +278,71 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new BillingDestination();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private BillingDestination(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ monitoredResource_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ metrics_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ metrics_.add(s);
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ metrics_ = metrics_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.BillingProto
.internal_static_google_api_Billing_BillingDestination_descriptor;
@@ -238,9 +359,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int MONITORED_RESOURCE_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object monitoredResource_ = "";
+ private volatile java.lang.Object monitoredResource_;
/**
*
@@ -295,10 +414,7 @@ public com.google.protobuf.ByteString getMonitoredResourceBytes() {
}
public static final int METRICS_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList metrics_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList metrics_;
/**
*
@@ -390,7 +506,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < metrics_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metrics_.getRaw(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -410,7 +526,7 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getMetricsList().size();
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -428,7 +544,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getMonitoredResource().equals(other.getMonitoredResource())) return false;
if (!getMetricsList().equals(other.getMetricsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -445,7 +561,7 @@ public int hashCode() {
hash = (37 * hash) + METRICS_FIELD_NUMBER;
hash = (53 * hash) + getMetricsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -578,18 +694,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Billing.BillingDestination.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
monitoredResource_ = "";
- metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
+
+ metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -617,24 +741,17 @@ public com.google.api.Billing.BillingDestination build() {
public com.google.api.Billing.BillingDestination buildPartial() {
com.google.api.Billing.BillingDestination result =
new com.google.api.Billing.BillingDestination(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ int from_bitField0_ = bitField0_;
+ result.monitoredResource_ = monitoredResource_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ metrics_ = metrics_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
}
+ result.metrics_ = metrics_;
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.Billing.BillingDestination result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.monitoredResource_ = monitoredResource_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- metrics_.makeImmutable();
- result.metrics_ = metrics_;
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -684,20 +801,19 @@ public Builder mergeFrom(com.google.api.Billing.BillingDestination other) {
if (other == com.google.api.Billing.BillingDestination.getDefaultInstance()) return this;
if (!other.getMonitoredResource().isEmpty()) {
monitoredResource_ = other.monitoredResource_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.metrics_.isEmpty()) {
if (metrics_.isEmpty()) {
metrics_ = other.metrics_;
- bitField0_ |= 0x00000002;
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMetricsIsMutable();
metrics_.addAll(other.metrics_);
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -712,44 +828,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Billing.BillingDestination parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- monitoredResource_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureMetricsIsMutable();
- metrics_.add(s);
- break;
- } // case 18
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Billing.BillingDestination) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -825,8 +914,8 @@ public Builder setMonitoredResource(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
monitoredResource_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -845,8 +934,8 @@ public Builder setMonitoredResource(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearMonitoredResource() {
+
monitoredResource_ = getDefaultInstance().getMonitoredResource();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -870,20 +959,20 @@ public Builder setMonitoredResourceBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
monitoredResource_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringArrayList metrics_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList metrics_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureMetricsIsMutable() {
- if (!metrics_.isModifiable()) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
metrics_ = new com.google.protobuf.LazyStringArrayList(metrics_);
+ bitField0_ |= 0x00000001;
}
- bitField0_ |= 0x00000002;
}
/**
@@ -900,8 +989,7 @@ private void ensureMetricsIsMutable() {
* @return A list containing the metrics.
*/
public com.google.protobuf.ProtocolStringList getMetricsList() {
- metrics_.makeImmutable();
- return metrics_;
+ return metrics_.getUnmodifiableView();
}
/**
@@ -978,7 +1066,6 @@ public Builder setMetrics(int index, java.lang.String value) {
}
ensureMetricsIsMutable();
metrics_.set(index, value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1003,7 +1090,6 @@ public Builder addMetrics(java.lang.String value) {
}
ensureMetricsIsMutable();
metrics_.add(value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1025,7 +1111,6 @@ public Builder addMetrics(java.lang.String value) {
public Builder addAllMetrics(java.lang.Iterable values) {
ensureMetricsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1044,9 +1129,8 @@ public Builder addAllMetrics(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearMetrics() {
- metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- ;
+ metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1072,7 +1156,6 @@ public Builder addMetricsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureMetricsIsMutable();
metrics_.add(value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1110,19 +1193,7 @@ public BillingDestination parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException()
- .setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new BillingDestination(input, extensionRegistry);
}
};
@@ -1142,8 +1213,6 @@ public com.google.api.Billing.BillingDestination getDefaultInstanceForType() {
}
public static final int CONSUMER_DESTINATIONS_FIELD_NUMBER = 8;
-
- @SuppressWarnings("serial")
private java.util.List consumerDestinations_;
/**
@@ -1250,7 +1319,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < consumerDestinations_.size(); i++) {
output.writeMessage(8, consumerDestinations_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -1263,7 +1332,7 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(8, consumerDestinations_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -1279,7 +1348,7 @@ public boolean equals(final java.lang.Object obj) {
com.google.api.Billing other = (com.google.api.Billing) obj;
if (!getConsumerDestinationsList().equals(other.getConsumerDestinationsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -1294,7 +1363,7 @@ public int hashCode() {
hash = (37 * hash) + CONSUMER_DESTINATIONS_FIELD_NUMBER;
hash = (53 * hash) + getConsumerDestinationsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -1399,15 +1468,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Billing related configuration of the service.
- *
* The following example shows how to configure monitored resources and metrics
* for billing, `consumer_destinations` is the only supported destination and
* the monitored resources need at least one label key
* `cloud.googleapis.com/location` to indicate the location of the billing
* usage, using different monitored resources between monitoring and billing is
* recommended so they can be evolved independently:
- *
- *
* monitored_resources:
* - type: library.googleapis.com/billing_branch
* labels:
@@ -1451,23 +1517,30 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Billing.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getConsumerDestinationsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
if (consumerDestinationsBuilder_ == null) {
consumerDestinations_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- consumerDestinations_ = null;
consumerDestinationsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -1493,15 +1566,7 @@ public com.google.api.Billing build() {
@java.lang.Override
public com.google.api.Billing buildPartial() {
com.google.api.Billing result = new com.google.api.Billing(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.Billing result) {
+ int from_bitField0_ = bitField0_;
if (consumerDestinationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
consumerDestinations_ = java.util.Collections.unmodifiableList(consumerDestinations_);
@@ -1511,10 +1576,8 @@ private void buildPartialRepeatedFields(com.google.api.Billing result) {
} else {
result.consumerDestinations_ = consumerDestinationsBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.Billing result) {
- int from_bitField0_ = bitField0_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -1589,7 +1652,7 @@ public Builder mergeFrom(com.google.api.Billing other) {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -1604,44 +1667,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Billing parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 66:
- {
- com.google.api.Billing.BillingDestination m =
- input.readMessage(
- com.google.api.Billing.BillingDestination.parser(), extensionRegistry);
- if (consumerDestinationsBuilder_ == null) {
- ensureConsumerDestinationsIsMutable();
- consumerDestinations_.add(m);
- } else {
- consumerDestinationsBuilder_.addMessage(m);
- }
- break;
- } // case 66
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Billing) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -2110,18 +2146,7 @@ public Billing parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Billing(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingOrBuilder.java
index bd565fe52a..48e45d60be 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/billing.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface BillingOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingProto.java
index fcaad2f6b7..c076d5af94 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/billing.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class BillingProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ChangeType.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ChangeType.java
index 3d9a170b28..88f336aef6 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ChangeType.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ChangeType.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/config_change.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryDestination.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryDestination.java
index 2633473bb2..767bd0c5bc 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryDestination.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryDestination.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryOrganization.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryOrganization.java
index 00ee8b7807..8f81c3f265 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryOrganization.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryOrganization.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java
index 0f75572aee..da520224d7 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -50,6 +49,189 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ClientLibrarySettings();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ClientLibrarySettings(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ version_ = s;
+ break;
+ }
+ case 16:
+ {
+ int rawValue = input.readEnum();
+
+ launchStage_ = rawValue;
+ break;
+ }
+ case 24:
+ {
+ restNumericEnums_ = input.readBool();
+ break;
+ }
+ case 170:
+ {
+ com.google.api.JavaSettings.Builder subBuilder = null;
+ if (javaSettings_ != null) {
+ subBuilder = javaSettings_.toBuilder();
+ }
+ javaSettings_ =
+ input.readMessage(com.google.api.JavaSettings.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(javaSettings_);
+ javaSettings_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 178:
+ {
+ com.google.api.CppSettings.Builder subBuilder = null;
+ if (cppSettings_ != null) {
+ subBuilder = cppSettings_.toBuilder();
+ }
+ cppSettings_ =
+ input.readMessage(com.google.api.CppSettings.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(cppSettings_);
+ cppSettings_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 186:
+ {
+ com.google.api.PhpSettings.Builder subBuilder = null;
+ if (phpSettings_ != null) {
+ subBuilder = phpSettings_.toBuilder();
+ }
+ phpSettings_ =
+ input.readMessage(com.google.api.PhpSettings.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(phpSettings_);
+ phpSettings_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 194:
+ {
+ com.google.api.PythonSettings.Builder subBuilder = null;
+ if (pythonSettings_ != null) {
+ subBuilder = pythonSettings_.toBuilder();
+ }
+ pythonSettings_ =
+ input.readMessage(com.google.api.PythonSettings.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(pythonSettings_);
+ pythonSettings_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 202:
+ {
+ com.google.api.NodeSettings.Builder subBuilder = null;
+ if (nodeSettings_ != null) {
+ subBuilder = nodeSettings_.toBuilder();
+ }
+ nodeSettings_ =
+ input.readMessage(com.google.api.NodeSettings.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(nodeSettings_);
+ nodeSettings_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 210:
+ {
+ com.google.api.DotnetSettings.Builder subBuilder = null;
+ if (dotnetSettings_ != null) {
+ subBuilder = dotnetSettings_.toBuilder();
+ }
+ dotnetSettings_ =
+ input.readMessage(com.google.api.DotnetSettings.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(dotnetSettings_);
+ dotnetSettings_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 218:
+ {
+ com.google.api.RubySettings.Builder subBuilder = null;
+ if (rubySettings_ != null) {
+ subBuilder = rubySettings_.toBuilder();
+ }
+ rubySettings_ =
+ input.readMessage(com.google.api.RubySettings.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(rubySettings_);
+ rubySettings_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 226:
+ {
+ com.google.api.GoSettings.Builder subBuilder = null;
+ if (goSettings_ != null) {
+ subBuilder = goSettings_.toBuilder();
+ }
+ goSettings_ =
+ input.readMessage(com.google.api.GoSettings.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(goSettings_);
+ goSettings_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_ClientLibrarySettings_descriptor;
}
@@ -64,11 +246,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.api.ClientLibrarySettings.Builder.class);
}
- private int bitField0_;
public static final int VERSION_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object version_ = "";
+ private volatile java.lang.Object version_;
/**
*
@@ -123,7 +302,7 @@ public com.google.protobuf.ByteString getVersionBytes() {
}
public static final int LAUNCH_STAGE_FIELD_NUMBER = 2;
- private int launchStage_ = 0;
+ private int launchStage_;
/**
*
@@ -154,12 +333,13 @@ public int getLaunchStageValue() {
*/
@java.lang.Override
public com.google.api.LaunchStage getLaunchStage() {
- com.google.api.LaunchStage result = com.google.api.LaunchStage.forNumber(launchStage_);
+ @SuppressWarnings("deprecation")
+ com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_);
return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result;
}
public static final int REST_NUMERIC_ENUMS_FIELD_NUMBER = 3;
- private boolean restNumericEnums_ = false;
+ private boolean restNumericEnums_;
/**
*
@@ -194,7 +374,7 @@ public boolean getRestNumericEnums() {
*/
@java.lang.Override
public boolean hasJavaSettings() {
- return ((bitField0_ & 0x00000001) != 0);
+ return javaSettings_ != null;
}
/**
@@ -224,7 +404,7 @@ public com.google.api.JavaSettings getJavaSettings() {
*/
@java.lang.Override
public com.google.api.JavaSettingsOrBuilder getJavaSettingsOrBuilder() {
- return javaSettings_ == null ? com.google.api.JavaSettings.getDefaultInstance() : javaSettings_;
+ return getJavaSettings();
}
public static final int CPP_SETTINGS_FIELD_NUMBER = 22;
@@ -243,7 +423,7 @@ public com.google.api.JavaSettingsOrBuilder getJavaSettingsOrBuilder() {
*/
@java.lang.Override
public boolean hasCppSettings() {
- return ((bitField0_ & 0x00000002) != 0);
+ return cppSettings_ != null;
}
/**
@@ -273,7 +453,7 @@ public com.google.api.CppSettings getCppSettings() {
*/
@java.lang.Override
public com.google.api.CppSettingsOrBuilder getCppSettingsOrBuilder() {
- return cppSettings_ == null ? com.google.api.CppSettings.getDefaultInstance() : cppSettings_;
+ return getCppSettings();
}
public static final int PHP_SETTINGS_FIELD_NUMBER = 23;
@@ -292,7 +472,7 @@ public com.google.api.CppSettingsOrBuilder getCppSettingsOrBuilder() {
*/
@java.lang.Override
public boolean hasPhpSettings() {
- return ((bitField0_ & 0x00000004) != 0);
+ return phpSettings_ != null;
}
/**
@@ -322,7 +502,7 @@ public com.google.api.PhpSettings getPhpSettings() {
*/
@java.lang.Override
public com.google.api.PhpSettingsOrBuilder getPhpSettingsOrBuilder() {
- return phpSettings_ == null ? com.google.api.PhpSettings.getDefaultInstance() : phpSettings_;
+ return getPhpSettings();
}
public static final int PYTHON_SETTINGS_FIELD_NUMBER = 24;
@@ -341,7 +521,7 @@ public com.google.api.PhpSettingsOrBuilder getPhpSettingsOrBuilder() {
*/
@java.lang.Override
public boolean hasPythonSettings() {
- return ((bitField0_ & 0x00000008) != 0);
+ return pythonSettings_ != null;
}
/**
@@ -373,9 +553,7 @@ public com.google.api.PythonSettings getPythonSettings() {
*/
@java.lang.Override
public com.google.api.PythonSettingsOrBuilder getPythonSettingsOrBuilder() {
- return pythonSettings_ == null
- ? com.google.api.PythonSettings.getDefaultInstance()
- : pythonSettings_;
+ return getPythonSettings();
}
public static final int NODE_SETTINGS_FIELD_NUMBER = 25;
@@ -394,7 +572,7 @@ public com.google.api.PythonSettingsOrBuilder getPythonSettingsOrBuilder() {
*/
@java.lang.Override
public boolean hasNodeSettings() {
- return ((bitField0_ & 0x00000010) != 0);
+ return nodeSettings_ != null;
}
/**
@@ -424,7 +602,7 @@ public com.google.api.NodeSettings getNodeSettings() {
*/
@java.lang.Override
public com.google.api.NodeSettingsOrBuilder getNodeSettingsOrBuilder() {
- return nodeSettings_ == null ? com.google.api.NodeSettings.getDefaultInstance() : nodeSettings_;
+ return getNodeSettings();
}
public static final int DOTNET_SETTINGS_FIELD_NUMBER = 26;
@@ -443,7 +621,7 @@ public com.google.api.NodeSettingsOrBuilder getNodeSettingsOrBuilder() {
*/
@java.lang.Override
public boolean hasDotnetSettings() {
- return ((bitField0_ & 0x00000020) != 0);
+ return dotnetSettings_ != null;
}
/**
@@ -475,9 +653,7 @@ public com.google.api.DotnetSettings getDotnetSettings() {
*/
@java.lang.Override
public com.google.api.DotnetSettingsOrBuilder getDotnetSettingsOrBuilder() {
- return dotnetSettings_ == null
- ? com.google.api.DotnetSettings.getDefaultInstance()
- : dotnetSettings_;
+ return getDotnetSettings();
}
public static final int RUBY_SETTINGS_FIELD_NUMBER = 27;
@@ -496,7 +672,7 @@ public com.google.api.DotnetSettingsOrBuilder getDotnetSettingsOrBuilder() {
*/
@java.lang.Override
public boolean hasRubySettings() {
- return ((bitField0_ & 0x00000040) != 0);
+ return rubySettings_ != null;
}
/**
@@ -526,7 +702,7 @@ public com.google.api.RubySettings getRubySettings() {
*/
@java.lang.Override
public com.google.api.RubySettingsOrBuilder getRubySettingsOrBuilder() {
- return rubySettings_ == null ? com.google.api.RubySettings.getDefaultInstance() : rubySettings_;
+ return getRubySettings();
}
public static final int GO_SETTINGS_FIELD_NUMBER = 28;
@@ -545,7 +721,7 @@ public com.google.api.RubySettingsOrBuilder getRubySettingsOrBuilder() {
*/
@java.lang.Override
public boolean hasGoSettings() {
- return ((bitField0_ & 0x00000080) != 0);
+ return goSettings_ != null;
}
/**
@@ -575,7 +751,7 @@ public com.google.api.GoSettings getGoSettings() {
*/
@java.lang.Override
public com.google.api.GoSettingsOrBuilder getGoSettingsOrBuilder() {
- return goSettings_ == null ? com.google.api.GoSettings.getDefaultInstance() : goSettings_;
+ return getGoSettings();
}
private byte memoizedIsInitialized = -1;
@@ -601,31 +777,31 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (restNumericEnums_ != false) {
output.writeBool(3, restNumericEnums_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (javaSettings_ != null) {
output.writeMessage(21, getJavaSettings());
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (cppSettings_ != null) {
output.writeMessage(22, getCppSettings());
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (phpSettings_ != null) {
output.writeMessage(23, getPhpSettings());
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (pythonSettings_ != null) {
output.writeMessage(24, getPythonSettings());
}
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (nodeSettings_ != null) {
output.writeMessage(25, getNodeSettings());
}
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (dotnetSettings_ != null) {
output.writeMessage(26, getDotnetSettings());
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (rubySettings_ != null) {
output.writeMessage(27, getRubySettings());
}
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (goSettings_ != null) {
output.writeMessage(28, getGoSettings());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -643,31 +819,31 @@ public int getSerializedSize() {
if (restNumericEnums_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, restNumericEnums_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (javaSettings_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getJavaSettings());
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (cppSettings_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getCppSettings());
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (phpSettings_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getPhpSettings());
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (pythonSettings_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getPythonSettings());
}
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (nodeSettings_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getNodeSettings());
}
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (dotnetSettings_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getDotnetSettings());
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (rubySettings_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getRubySettings());
}
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (goSettings_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getGoSettings());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -717,7 +893,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasGoSettings()) {
if (!getGoSettings().equals(other.getGoSettings())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -766,7 +942,7 @@ public int hashCode() {
hash = (37 * hash) + GO_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getGoSettings().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -904,63 +1080,64 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getJavaSettingsFieldBuilder();
- getCppSettingsFieldBuilder();
- getPhpSettingsFieldBuilder();
- getPythonSettingsFieldBuilder();
- getNodeSettingsFieldBuilder();
- getDotnetSettingsFieldBuilder();
- getRubySettingsFieldBuilder();
- getGoSettingsFieldBuilder();
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
version_ = "";
+
launchStage_ = 0;
+
restNumericEnums_ = false;
- javaSettings_ = null;
- if (javaSettingsBuilder_ != null) {
- javaSettingsBuilder_.dispose();
+
+ if (javaSettingsBuilder_ == null) {
+ javaSettings_ = null;
+ } else {
+ javaSettings_ = null;
javaSettingsBuilder_ = null;
}
- cppSettings_ = null;
- if (cppSettingsBuilder_ != null) {
- cppSettingsBuilder_.dispose();
+ if (cppSettingsBuilder_ == null) {
+ cppSettings_ = null;
+ } else {
+ cppSettings_ = null;
cppSettingsBuilder_ = null;
}
- phpSettings_ = null;
- if (phpSettingsBuilder_ != null) {
- phpSettingsBuilder_.dispose();
+ if (phpSettingsBuilder_ == null) {
+ phpSettings_ = null;
+ } else {
+ phpSettings_ = null;
phpSettingsBuilder_ = null;
}
- pythonSettings_ = null;
- if (pythonSettingsBuilder_ != null) {
- pythonSettingsBuilder_.dispose();
+ if (pythonSettingsBuilder_ == null) {
+ pythonSettings_ = null;
+ } else {
+ pythonSettings_ = null;
pythonSettingsBuilder_ = null;
}
- nodeSettings_ = null;
- if (nodeSettingsBuilder_ != null) {
- nodeSettingsBuilder_.dispose();
+ if (nodeSettingsBuilder_ == null) {
+ nodeSettings_ = null;
+ } else {
+ nodeSettings_ = null;
nodeSettingsBuilder_ = null;
}
- dotnetSettings_ = null;
- if (dotnetSettingsBuilder_ != null) {
- dotnetSettingsBuilder_.dispose();
+ if (dotnetSettingsBuilder_ == null) {
+ dotnetSettings_ = null;
+ } else {
+ dotnetSettings_ = null;
dotnetSettingsBuilder_ = null;
}
- rubySettings_ = null;
- if (rubySettingsBuilder_ != null) {
- rubySettingsBuilder_.dispose();
+ if (rubySettingsBuilder_ == null) {
+ rubySettings_ = null;
+ } else {
+ rubySettings_ = null;
rubySettingsBuilder_ = null;
}
- goSettings_ = null;
- if (goSettingsBuilder_ != null) {
- goSettingsBuilder_.dispose();
+ if (goSettingsBuilder_ == null) {
+ goSettings_ = null;
+ } else {
+ goSettings_ = null;
goSettingsBuilder_ = null;
}
return this;
@@ -988,65 +1165,51 @@ public com.google.api.ClientLibrarySettings build() {
@java.lang.Override
public com.google.api.ClientLibrarySettings buildPartial() {
com.google.api.ClientLibrarySettings result = new com.google.api.ClientLibrarySettings(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(com.google.api.ClientLibrarySettings result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.version_ = version_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.launchStage_ = launchStage_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.restNumericEnums_ = restNumericEnums_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.javaSettings_ =
- javaSettingsBuilder_ == null ? javaSettings_ : javaSettingsBuilder_.build();
- to_bitField0_ |= 0x00000001;
+ result.version_ = version_;
+ result.launchStage_ = launchStage_;
+ result.restNumericEnums_ = restNumericEnums_;
+ if (javaSettingsBuilder_ == null) {
+ result.javaSettings_ = javaSettings_;
+ } else {
+ result.javaSettings_ = javaSettingsBuilder_.build();
}
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.cppSettings_ =
- cppSettingsBuilder_ == null ? cppSettings_ : cppSettingsBuilder_.build();
- to_bitField0_ |= 0x00000002;
+ if (cppSettingsBuilder_ == null) {
+ result.cppSettings_ = cppSettings_;
+ } else {
+ result.cppSettings_ = cppSettingsBuilder_.build();
}
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.phpSettings_ =
- phpSettingsBuilder_ == null ? phpSettings_ : phpSettingsBuilder_.build();
- to_bitField0_ |= 0x00000004;
+ if (phpSettingsBuilder_ == null) {
+ result.phpSettings_ = phpSettings_;
+ } else {
+ result.phpSettings_ = phpSettingsBuilder_.build();
}
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.pythonSettings_ =
- pythonSettingsBuilder_ == null ? pythonSettings_ : pythonSettingsBuilder_.build();
- to_bitField0_ |= 0x00000008;
+ if (pythonSettingsBuilder_ == null) {
+ result.pythonSettings_ = pythonSettings_;
+ } else {
+ result.pythonSettings_ = pythonSettingsBuilder_.build();
}
- if (((from_bitField0_ & 0x00000080) != 0)) {
- result.nodeSettings_ =
- nodeSettingsBuilder_ == null ? nodeSettings_ : nodeSettingsBuilder_.build();
- to_bitField0_ |= 0x00000010;
+ if (nodeSettingsBuilder_ == null) {
+ result.nodeSettings_ = nodeSettings_;
+ } else {
+ result.nodeSettings_ = nodeSettingsBuilder_.build();
}
- if (((from_bitField0_ & 0x00000100) != 0)) {
- result.dotnetSettings_ =
- dotnetSettingsBuilder_ == null ? dotnetSettings_ : dotnetSettingsBuilder_.build();
- to_bitField0_ |= 0x00000020;
+ if (dotnetSettingsBuilder_ == null) {
+ result.dotnetSettings_ = dotnetSettings_;
+ } else {
+ result.dotnetSettings_ = dotnetSettingsBuilder_.build();
}
- if (((from_bitField0_ & 0x00000200) != 0)) {
- result.rubySettings_ =
- rubySettingsBuilder_ == null ? rubySettings_ : rubySettingsBuilder_.build();
- to_bitField0_ |= 0x00000040;
+ if (rubySettingsBuilder_ == null) {
+ result.rubySettings_ = rubySettings_;
+ } else {
+ result.rubySettings_ = rubySettingsBuilder_.build();
}
- if (((from_bitField0_ & 0x00000400) != 0)) {
- result.goSettings_ = goSettingsBuilder_ == null ? goSettings_ : goSettingsBuilder_.build();
- to_bitField0_ |= 0x00000080;
+ if (goSettingsBuilder_ == null) {
+ result.goSettings_ = goSettings_;
+ } else {
+ result.goSettings_ = goSettingsBuilder_.build();
}
- result.bitField0_ |= to_bitField0_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -1096,7 +1259,6 @@ public Builder mergeFrom(com.google.api.ClientLibrarySettings other) {
if (other == com.google.api.ClientLibrarySettings.getDefaultInstance()) return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (other.launchStage_ != 0) {
@@ -1129,7 +1291,7 @@ public Builder mergeFrom(com.google.api.ClientLibrarySettings other) {
if (other.hasGoSettings()) {
mergeGoSettings(other.getGoSettings());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -1144,102 +1306,20 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.ClientLibrarySettings parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- version_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 16:
- {
- launchStage_ = input.readEnum();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 24:
- {
- restNumericEnums_ = input.readBool();
- bitField0_ |= 0x00000004;
- break;
- } // case 24
- case 170:
- {
- input.readMessage(getJavaSettingsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000008;
- break;
- } // case 170
- case 178:
- {
- input.readMessage(getCppSettingsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000010;
- break;
- } // case 178
- case 186:
- {
- input.readMessage(getPhpSettingsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000020;
- break;
- } // case 186
- case 194:
- {
- input.readMessage(getPythonSettingsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000040;
- break;
- } // case 194
- case 202:
- {
- input.readMessage(getNodeSettingsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000080;
- break;
- } // case 202
- case 210:
- {
- input.readMessage(getDotnetSettingsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000100;
- break;
- } // case 210
- case 218:
- {
- input.readMessage(getRubySettingsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000200;
- break;
- } // case 218
- case 226:
- {
- input.readMessage(getGoSettingsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000400;
- break;
- } // case 226
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.ClientLibrarySettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private java.lang.Object version_ = "";
/**
@@ -1310,8 +1390,8 @@ public Builder setVersion(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
version_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1330,8 +1410,8 @@ public Builder setVersion(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearVersion() {
+
version_ = getDefaultInstance().getVersion();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1355,8 +1435,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
version_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1392,8 +1472,8 @@ public int getLaunchStageValue() {
* @return This builder for chaining.
*/
public Builder setLaunchStageValue(int value) {
+
launchStage_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1411,7 +1491,8 @@ public Builder setLaunchStageValue(int value) {
*/
@java.lang.Override
public com.google.api.LaunchStage getLaunchStage() {
- com.google.api.LaunchStage result = com.google.api.LaunchStage.forNumber(launchStage_);
+ @SuppressWarnings("deprecation")
+ com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_);
return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result;
}
@@ -1431,7 +1512,7 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000002;
+
launchStage_ = value.getNumber();
onChanged();
return this;
@@ -1449,7 +1530,7 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) {
* @return This builder for chaining.
*/
public Builder clearLaunchStage() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
launchStage_ = 0;
onChanged();
return this;
@@ -1490,7 +1571,6 @@ public boolean getRestNumericEnums() {
public Builder setRestNumericEnums(boolean value) {
restNumericEnums_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1508,7 +1588,7 @@ public Builder setRestNumericEnums(boolean value) {
* @return This builder for chaining.
*/
public Builder clearRestNumericEnums() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
restNumericEnums_ = false;
onChanged();
return this;
@@ -1533,7 +1613,7 @@ public Builder clearRestNumericEnums() {
* @return Whether the javaSettings field is set.
*/
public boolean hasJavaSettings() {
- return ((bitField0_ & 0x00000008) != 0);
+ return javaSettingsBuilder_ != null || javaSettings_ != null;
}
/**
@@ -1572,11 +1652,11 @@ public Builder setJavaSettings(com.google.api.JavaSettings value) {
throw new NullPointerException();
}
javaSettings_ = value;
+ onChanged();
} else {
javaSettingsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000008;
- onChanged();
+
return this;
}
@@ -1592,11 +1672,11 @@ public Builder setJavaSettings(com.google.api.JavaSettings value) {
public Builder setJavaSettings(com.google.api.JavaSettings.Builder builderForValue) {
if (javaSettingsBuilder_ == null) {
javaSettings_ = builderForValue.build();
+ onChanged();
} else {
javaSettingsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000008;
- onChanged();
+
return this;
}
@@ -1611,20 +1691,17 @@ public Builder setJavaSettings(com.google.api.JavaSettings.Builder builderForVal
*/
public Builder mergeJavaSettings(com.google.api.JavaSettings value) {
if (javaSettingsBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0)
- && javaSettings_ != null
- && javaSettings_ != com.google.api.JavaSettings.getDefaultInstance()) {
- getJavaSettingsBuilder().mergeFrom(value);
+ if (javaSettings_ != null) {
+ javaSettings_ =
+ com.google.api.JavaSettings.newBuilder(javaSettings_).mergeFrom(value).buildPartial();
} else {
javaSettings_ = value;
}
+ onChanged();
} else {
javaSettingsBuilder_.mergeFrom(value);
}
- if (javaSettings_ != null) {
- bitField0_ |= 0x00000008;
- onChanged();
- }
+
return this;
}
@@ -1638,13 +1715,14 @@ public Builder mergeJavaSettings(com.google.api.JavaSettings value) {
* .google.api.JavaSettings java_settings = 21;
*/
public Builder clearJavaSettings() {
- bitField0_ = (bitField0_ & ~0x00000008);
- javaSettings_ = null;
- if (javaSettingsBuilder_ != null) {
- javaSettingsBuilder_.dispose();
+ if (javaSettingsBuilder_ == null) {
+ javaSettings_ = null;
+ onChanged();
+ } else {
+ javaSettings_ = null;
javaSettingsBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -1658,7 +1736,7 @@ public Builder clearJavaSettings() {
* .google.api.JavaSettings java_settings = 21;
*/
public com.google.api.JavaSettings.Builder getJavaSettingsBuilder() {
- bitField0_ |= 0x00000008;
+
onChanged();
return getJavaSettingsFieldBuilder().getBuilder();
}
@@ -1727,7 +1805,7 @@ public com.google.api.JavaSettingsOrBuilder getJavaSettingsOrBuilder() {
* @return Whether the cppSettings field is set.
*/
public boolean hasCppSettings() {
- return ((bitField0_ & 0x00000010) != 0);
+ return cppSettingsBuilder_ != null || cppSettings_ != null;
}
/**
@@ -1766,11 +1844,11 @@ public Builder setCppSettings(com.google.api.CppSettings value) {
throw new NullPointerException();
}
cppSettings_ = value;
+ onChanged();
} else {
cppSettingsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000010;
- onChanged();
+
return this;
}
@@ -1786,11 +1864,11 @@ public Builder setCppSettings(com.google.api.CppSettings value) {
public Builder setCppSettings(com.google.api.CppSettings.Builder builderForValue) {
if (cppSettingsBuilder_ == null) {
cppSettings_ = builderForValue.build();
+ onChanged();
} else {
cppSettingsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000010;
- onChanged();
+
return this;
}
@@ -1805,20 +1883,17 @@ public Builder setCppSettings(com.google.api.CppSettings.Builder builderForValue
*/
public Builder mergeCppSettings(com.google.api.CppSettings value) {
if (cppSettingsBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0)
- && cppSettings_ != null
- && cppSettings_ != com.google.api.CppSettings.getDefaultInstance()) {
- getCppSettingsBuilder().mergeFrom(value);
+ if (cppSettings_ != null) {
+ cppSettings_ =
+ com.google.api.CppSettings.newBuilder(cppSettings_).mergeFrom(value).buildPartial();
} else {
cppSettings_ = value;
}
+ onChanged();
} else {
cppSettingsBuilder_.mergeFrom(value);
}
- if (cppSettings_ != null) {
- bitField0_ |= 0x00000010;
- onChanged();
- }
+
return this;
}
@@ -1832,13 +1907,14 @@ public Builder mergeCppSettings(com.google.api.CppSettings value) {
* .google.api.CppSettings cpp_settings = 22;
*/
public Builder clearCppSettings() {
- bitField0_ = (bitField0_ & ~0x00000010);
- cppSettings_ = null;
- if (cppSettingsBuilder_ != null) {
- cppSettingsBuilder_.dispose();
+ if (cppSettingsBuilder_ == null) {
+ cppSettings_ = null;
+ onChanged();
+ } else {
+ cppSettings_ = null;
cppSettingsBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -1852,7 +1928,7 @@ public Builder clearCppSettings() {
* .google.api.CppSettings cpp_settings = 22;
*/
public com.google.api.CppSettings.Builder getCppSettingsBuilder() {
- bitField0_ |= 0x00000010;
+
onChanged();
return getCppSettingsFieldBuilder().getBuilder();
}
@@ -1921,7 +1997,7 @@ public com.google.api.CppSettingsOrBuilder getCppSettingsOrBuilder() {
* @return Whether the phpSettings field is set.
*/
public boolean hasPhpSettings() {
- return ((bitField0_ & 0x00000020) != 0);
+ return phpSettingsBuilder_ != null || phpSettings_ != null;
}
/**
@@ -1960,11 +2036,11 @@ public Builder setPhpSettings(com.google.api.PhpSettings value) {
throw new NullPointerException();
}
phpSettings_ = value;
+ onChanged();
} else {
phpSettingsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000020;
- onChanged();
+
return this;
}
@@ -1980,11 +2056,11 @@ public Builder setPhpSettings(com.google.api.PhpSettings value) {
public Builder setPhpSettings(com.google.api.PhpSettings.Builder builderForValue) {
if (phpSettingsBuilder_ == null) {
phpSettings_ = builderForValue.build();
+ onChanged();
} else {
phpSettingsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000020;
- onChanged();
+
return this;
}
@@ -1999,20 +2075,17 @@ public Builder setPhpSettings(com.google.api.PhpSettings.Builder builderForValue
*/
public Builder mergePhpSettings(com.google.api.PhpSettings value) {
if (phpSettingsBuilder_ == null) {
- if (((bitField0_ & 0x00000020) != 0)
- && phpSettings_ != null
- && phpSettings_ != com.google.api.PhpSettings.getDefaultInstance()) {
- getPhpSettingsBuilder().mergeFrom(value);
+ if (phpSettings_ != null) {
+ phpSettings_ =
+ com.google.api.PhpSettings.newBuilder(phpSettings_).mergeFrom(value).buildPartial();
} else {
phpSettings_ = value;
}
+ onChanged();
} else {
phpSettingsBuilder_.mergeFrom(value);
}
- if (phpSettings_ != null) {
- bitField0_ |= 0x00000020;
- onChanged();
- }
+
return this;
}
@@ -2026,13 +2099,14 @@ public Builder mergePhpSettings(com.google.api.PhpSettings value) {
* .google.api.PhpSettings php_settings = 23;
*/
public Builder clearPhpSettings() {
- bitField0_ = (bitField0_ & ~0x00000020);
- phpSettings_ = null;
- if (phpSettingsBuilder_ != null) {
- phpSettingsBuilder_.dispose();
+ if (phpSettingsBuilder_ == null) {
+ phpSettings_ = null;
+ onChanged();
+ } else {
+ phpSettings_ = null;
phpSettingsBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -2046,7 +2120,7 @@ public Builder clearPhpSettings() {
* .google.api.PhpSettings php_settings = 23;
*/
public com.google.api.PhpSettings.Builder getPhpSettingsBuilder() {
- bitField0_ |= 0x00000020;
+
onChanged();
return getPhpSettingsFieldBuilder().getBuilder();
}
@@ -2115,7 +2189,7 @@ public com.google.api.PhpSettingsOrBuilder getPhpSettingsOrBuilder() {
* @return Whether the pythonSettings field is set.
*/
public boolean hasPythonSettings() {
- return ((bitField0_ & 0x00000040) != 0);
+ return pythonSettingsBuilder_ != null || pythonSettings_ != null;
}
/**
@@ -2154,11 +2228,11 @@ public Builder setPythonSettings(com.google.api.PythonSettings value) {
throw new NullPointerException();
}
pythonSettings_ = value;
+ onChanged();
} else {
pythonSettingsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000040;
- onChanged();
+
return this;
}
@@ -2174,11 +2248,11 @@ public Builder setPythonSettings(com.google.api.PythonSettings value) {
public Builder setPythonSettings(com.google.api.PythonSettings.Builder builderForValue) {
if (pythonSettingsBuilder_ == null) {
pythonSettings_ = builderForValue.build();
+ onChanged();
} else {
pythonSettingsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000040;
- onChanged();
+
return this;
}
@@ -2193,20 +2267,19 @@ public Builder setPythonSettings(com.google.api.PythonSettings.Builder builderFo
*/
public Builder mergePythonSettings(com.google.api.PythonSettings value) {
if (pythonSettingsBuilder_ == null) {
- if (((bitField0_ & 0x00000040) != 0)
- && pythonSettings_ != null
- && pythonSettings_ != com.google.api.PythonSettings.getDefaultInstance()) {
- getPythonSettingsBuilder().mergeFrom(value);
+ if (pythonSettings_ != null) {
+ pythonSettings_ =
+ com.google.api.PythonSettings.newBuilder(pythonSettings_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
pythonSettings_ = value;
}
+ onChanged();
} else {
pythonSettingsBuilder_.mergeFrom(value);
}
- if (pythonSettings_ != null) {
- bitField0_ |= 0x00000040;
- onChanged();
- }
+
return this;
}
@@ -2220,13 +2293,14 @@ public Builder mergePythonSettings(com.google.api.PythonSettings value) {
* .google.api.PythonSettings python_settings = 24;
*/
public Builder clearPythonSettings() {
- bitField0_ = (bitField0_ & ~0x00000040);
- pythonSettings_ = null;
- if (pythonSettingsBuilder_ != null) {
- pythonSettingsBuilder_.dispose();
+ if (pythonSettingsBuilder_ == null) {
+ pythonSettings_ = null;
+ onChanged();
+ } else {
+ pythonSettings_ = null;
pythonSettingsBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -2240,7 +2314,7 @@ public Builder clearPythonSettings() {
* .google.api.PythonSettings python_settings = 24;
*/
public com.google.api.PythonSettings.Builder getPythonSettingsBuilder() {
- bitField0_ |= 0x00000040;
+
onChanged();
return getPythonSettingsFieldBuilder().getBuilder();
}
@@ -2309,7 +2383,7 @@ public com.google.api.PythonSettingsOrBuilder getPythonSettingsOrBuilder() {
* @return Whether the nodeSettings field is set.
*/
public boolean hasNodeSettings() {
- return ((bitField0_ & 0x00000080) != 0);
+ return nodeSettingsBuilder_ != null || nodeSettings_ != null;
}
/**
@@ -2348,11 +2422,11 @@ public Builder setNodeSettings(com.google.api.NodeSettings value) {
throw new NullPointerException();
}
nodeSettings_ = value;
+ onChanged();
} else {
nodeSettingsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000080;
- onChanged();
+
return this;
}
@@ -2368,11 +2442,11 @@ public Builder setNodeSettings(com.google.api.NodeSettings value) {
public Builder setNodeSettings(com.google.api.NodeSettings.Builder builderForValue) {
if (nodeSettingsBuilder_ == null) {
nodeSettings_ = builderForValue.build();
+ onChanged();
} else {
nodeSettingsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000080;
- onChanged();
+
return this;
}
@@ -2387,20 +2461,17 @@ public Builder setNodeSettings(com.google.api.NodeSettings.Builder builderForVal
*/
public Builder mergeNodeSettings(com.google.api.NodeSettings value) {
if (nodeSettingsBuilder_ == null) {
- if (((bitField0_ & 0x00000080) != 0)
- && nodeSettings_ != null
- && nodeSettings_ != com.google.api.NodeSettings.getDefaultInstance()) {
- getNodeSettingsBuilder().mergeFrom(value);
+ if (nodeSettings_ != null) {
+ nodeSettings_ =
+ com.google.api.NodeSettings.newBuilder(nodeSettings_).mergeFrom(value).buildPartial();
} else {
nodeSettings_ = value;
}
+ onChanged();
} else {
nodeSettingsBuilder_.mergeFrom(value);
}
- if (nodeSettings_ != null) {
- bitField0_ |= 0x00000080;
- onChanged();
- }
+
return this;
}
@@ -2414,13 +2485,14 @@ public Builder mergeNodeSettings(com.google.api.NodeSettings value) {
* .google.api.NodeSettings node_settings = 25;
*/
public Builder clearNodeSettings() {
- bitField0_ = (bitField0_ & ~0x00000080);
- nodeSettings_ = null;
- if (nodeSettingsBuilder_ != null) {
- nodeSettingsBuilder_.dispose();
+ if (nodeSettingsBuilder_ == null) {
+ nodeSettings_ = null;
+ onChanged();
+ } else {
+ nodeSettings_ = null;
nodeSettingsBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -2434,7 +2506,7 @@ public Builder clearNodeSettings() {
* .google.api.NodeSettings node_settings = 25;
*/
public com.google.api.NodeSettings.Builder getNodeSettingsBuilder() {
- bitField0_ |= 0x00000080;
+
onChanged();
return getNodeSettingsFieldBuilder().getBuilder();
}
@@ -2503,7 +2575,7 @@ public com.google.api.NodeSettingsOrBuilder getNodeSettingsOrBuilder() {
* @return Whether the dotnetSettings field is set.
*/
public boolean hasDotnetSettings() {
- return ((bitField0_ & 0x00000100) != 0);
+ return dotnetSettingsBuilder_ != null || dotnetSettings_ != null;
}
/**
@@ -2542,11 +2614,11 @@ public Builder setDotnetSettings(com.google.api.DotnetSettings value) {
throw new NullPointerException();
}
dotnetSettings_ = value;
+ onChanged();
} else {
dotnetSettingsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000100;
- onChanged();
+
return this;
}
@@ -2562,11 +2634,11 @@ public Builder setDotnetSettings(com.google.api.DotnetSettings value) {
public Builder setDotnetSettings(com.google.api.DotnetSettings.Builder builderForValue) {
if (dotnetSettingsBuilder_ == null) {
dotnetSettings_ = builderForValue.build();
+ onChanged();
} else {
dotnetSettingsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000100;
- onChanged();
+
return this;
}
@@ -2581,20 +2653,19 @@ public Builder setDotnetSettings(com.google.api.DotnetSettings.Builder builderFo
*/
public Builder mergeDotnetSettings(com.google.api.DotnetSettings value) {
if (dotnetSettingsBuilder_ == null) {
- if (((bitField0_ & 0x00000100) != 0)
- && dotnetSettings_ != null
- && dotnetSettings_ != com.google.api.DotnetSettings.getDefaultInstance()) {
- getDotnetSettingsBuilder().mergeFrom(value);
+ if (dotnetSettings_ != null) {
+ dotnetSettings_ =
+ com.google.api.DotnetSettings.newBuilder(dotnetSettings_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
dotnetSettings_ = value;
}
+ onChanged();
} else {
dotnetSettingsBuilder_.mergeFrom(value);
}
- if (dotnetSettings_ != null) {
- bitField0_ |= 0x00000100;
- onChanged();
- }
+
return this;
}
@@ -2608,13 +2679,14 @@ public Builder mergeDotnetSettings(com.google.api.DotnetSettings value) {
* .google.api.DotnetSettings dotnet_settings = 26;
*/
public Builder clearDotnetSettings() {
- bitField0_ = (bitField0_ & ~0x00000100);
- dotnetSettings_ = null;
- if (dotnetSettingsBuilder_ != null) {
- dotnetSettingsBuilder_.dispose();
+ if (dotnetSettingsBuilder_ == null) {
+ dotnetSettings_ = null;
+ onChanged();
+ } else {
+ dotnetSettings_ = null;
dotnetSettingsBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -2628,7 +2700,7 @@ public Builder clearDotnetSettings() {
* .google.api.DotnetSettings dotnet_settings = 26;
*/
public com.google.api.DotnetSettings.Builder getDotnetSettingsBuilder() {
- bitField0_ |= 0x00000100;
+
onChanged();
return getDotnetSettingsFieldBuilder().getBuilder();
}
@@ -2697,7 +2769,7 @@ public com.google.api.DotnetSettingsOrBuilder getDotnetSettingsOrBuilder() {
* @return Whether the rubySettings field is set.
*/
public boolean hasRubySettings() {
- return ((bitField0_ & 0x00000200) != 0);
+ return rubySettingsBuilder_ != null || rubySettings_ != null;
}
/**
@@ -2736,11 +2808,11 @@ public Builder setRubySettings(com.google.api.RubySettings value) {
throw new NullPointerException();
}
rubySettings_ = value;
+ onChanged();
} else {
rubySettingsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000200;
- onChanged();
+
return this;
}
@@ -2756,11 +2828,11 @@ public Builder setRubySettings(com.google.api.RubySettings value) {
public Builder setRubySettings(com.google.api.RubySettings.Builder builderForValue) {
if (rubySettingsBuilder_ == null) {
rubySettings_ = builderForValue.build();
+ onChanged();
} else {
rubySettingsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000200;
- onChanged();
+
return this;
}
@@ -2775,20 +2847,17 @@ public Builder setRubySettings(com.google.api.RubySettings.Builder builderForVal
*/
public Builder mergeRubySettings(com.google.api.RubySettings value) {
if (rubySettingsBuilder_ == null) {
- if (((bitField0_ & 0x00000200) != 0)
- && rubySettings_ != null
- && rubySettings_ != com.google.api.RubySettings.getDefaultInstance()) {
- getRubySettingsBuilder().mergeFrom(value);
+ if (rubySettings_ != null) {
+ rubySettings_ =
+ com.google.api.RubySettings.newBuilder(rubySettings_).mergeFrom(value).buildPartial();
} else {
rubySettings_ = value;
}
+ onChanged();
} else {
rubySettingsBuilder_.mergeFrom(value);
}
- if (rubySettings_ != null) {
- bitField0_ |= 0x00000200;
- onChanged();
- }
+
return this;
}
@@ -2802,13 +2871,14 @@ public Builder mergeRubySettings(com.google.api.RubySettings value) {
* .google.api.RubySettings ruby_settings = 27;
*/
public Builder clearRubySettings() {
- bitField0_ = (bitField0_ & ~0x00000200);
- rubySettings_ = null;
- if (rubySettingsBuilder_ != null) {
- rubySettingsBuilder_.dispose();
+ if (rubySettingsBuilder_ == null) {
+ rubySettings_ = null;
+ onChanged();
+ } else {
+ rubySettings_ = null;
rubySettingsBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -2822,7 +2892,7 @@ public Builder clearRubySettings() {
* .google.api.RubySettings ruby_settings = 27;
*/
public com.google.api.RubySettings.Builder getRubySettingsBuilder() {
- bitField0_ |= 0x00000200;
+
onChanged();
return getRubySettingsFieldBuilder().getBuilder();
}
@@ -2891,7 +2961,7 @@ public com.google.api.RubySettingsOrBuilder getRubySettingsOrBuilder() {
* @return Whether the goSettings field is set.
*/
public boolean hasGoSettings() {
- return ((bitField0_ & 0x00000400) != 0);
+ return goSettingsBuilder_ != null || goSettings_ != null;
}
/**
@@ -2928,11 +2998,11 @@ public Builder setGoSettings(com.google.api.GoSettings value) {
throw new NullPointerException();
}
goSettings_ = value;
+ onChanged();
} else {
goSettingsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000400;
- onChanged();
+
return this;
}
@@ -2948,11 +3018,11 @@ public Builder setGoSettings(com.google.api.GoSettings value) {
public Builder setGoSettings(com.google.api.GoSettings.Builder builderForValue) {
if (goSettingsBuilder_ == null) {
goSettings_ = builderForValue.build();
+ onChanged();
} else {
goSettingsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000400;
- onChanged();
+
return this;
}
@@ -2967,20 +3037,17 @@ public Builder setGoSettings(com.google.api.GoSettings.Builder builderForValue)
*/
public Builder mergeGoSettings(com.google.api.GoSettings value) {
if (goSettingsBuilder_ == null) {
- if (((bitField0_ & 0x00000400) != 0)
- && goSettings_ != null
- && goSettings_ != com.google.api.GoSettings.getDefaultInstance()) {
- getGoSettingsBuilder().mergeFrom(value);
+ if (goSettings_ != null) {
+ goSettings_ =
+ com.google.api.GoSettings.newBuilder(goSettings_).mergeFrom(value).buildPartial();
} else {
goSettings_ = value;
}
+ onChanged();
} else {
goSettingsBuilder_.mergeFrom(value);
}
- if (goSettings_ != null) {
- bitField0_ |= 0x00000400;
- onChanged();
- }
+
return this;
}
@@ -2994,13 +3061,14 @@ public Builder mergeGoSettings(com.google.api.GoSettings value) {
* .google.api.GoSettings go_settings = 28;
*/
public Builder clearGoSettings() {
- bitField0_ = (bitField0_ & ~0x00000400);
- goSettings_ = null;
- if (goSettingsBuilder_ != null) {
- goSettingsBuilder_.dispose();
+ if (goSettingsBuilder_ == null) {
+ goSettings_ = null;
+ onChanged();
+ } else {
+ goSettings_ = null;
goSettingsBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -3014,7 +3082,7 @@ public Builder clearGoSettings() {
* .google.api.GoSettings go_settings = 28;
*/
public com.google.api.GoSettings.Builder getGoSettingsBuilder() {
- bitField0_ |= 0x00000400;
+
onChanged();
return getGoSettingsFieldBuilder().getBuilder();
}
@@ -3094,18 +3162,7 @@ public ClientLibrarySettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ClientLibrarySettings(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettingsOrBuilder.java
index 56cad0d64f..1d0f770d71 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettingsOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettingsOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface ClientLibrarySettingsOrBuilder
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 dc4dec0b14..55767c68d7 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
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class ClientProto {
@@ -40,31 +39,23 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
*
*
* A definition of a client library method signature.
- *
* In client libraries, each proto RPC corresponds to one or more methods
* which the end user is able to call, and calls the underlying RPC.
* Normally, this method receives a single argument (a struct or instance
* corresponding to the RPC request object). Defining this field will
* add one or more overloads providing flattened or simpler method signatures
* in some languages.
- *
* The fields on the method signature are provided as a comma-separated
* string.
- *
* For example, the proto RPC and annotation:
- *
* 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)
- *
* The following backwards-compatibility guidelines apply:
- *
* * Adding this annotation to an unannotated method is backwards
* compatible.
* * Adding this annotation to a method which already has existing
@@ -92,9 +83,7 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
*
* The hostname for this service.
* This should be specified with no prefix or protocol.
- *
* Example:
- *
* service Foo {
* option (google.api.default_host) = "foo.googleapi.com";
* ...
@@ -116,19 +105,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
*
*
* OAuth scopes needed for the client.
- *
* Example:
- *
* 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,"
@@ -159,9 +143,7 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
* not rely on this to determine components within an API version, or attempt
* to construct other valid API versions. Note that this is for upcoming
* functionality and may not be implemented for all services.
- *
* Example:
- *
* service Foo {
* option (google.api.api_version) = "v1_20230821_preview";
* }
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java
index c91fd5b6ec..8c4dd92f8e 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -50,6 +49,102 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CommonLanguageSettings();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private CommonLanguageSettings(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ referenceDocsUri_ = s;
+ break;
+ }
+ case 16:
+ {
+ int rawValue = input.readEnum();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ destinations_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ destinations_.add(rawValue);
+ break;
+ }
+ case 18:
+ {
+ int length = input.readRawVarint32();
+ int oldLimit = input.pushLimit(length);
+ while (input.getBytesUntilLimit() > 0) {
+ int rawValue = input.readEnum();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ destinations_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ destinations_.add(rawValue);
+ }
+ input.popLimit(oldLimit);
+ break;
+ }
+ case 26:
+ {
+ com.google.api.SelectiveGapicGeneration.Builder subBuilder = null;
+ if (selectiveGapicGeneration_ != null) {
+ subBuilder = selectiveGapicGeneration_.toBuilder();
+ }
+ selectiveGapicGeneration_ =
+ input.readMessage(
+ com.google.api.SelectiveGapicGeneration.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(selectiveGapicGeneration_);
+ selectiveGapicGeneration_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ destinations_ = java.util.Collections.unmodifiableList(destinations_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_CommonLanguageSettings_descriptor;
}
@@ -64,11 +159,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.api.CommonLanguageSettings.Builder.class);
}
- private int bitField0_;
public static final int REFERENCE_DOCS_URI_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object referenceDocsUri_ = "";
+ private volatile java.lang.Object referenceDocsUri_;
/**
*
@@ -127,18 +219,16 @@ public com.google.protobuf.ByteString getReferenceDocsUriBytes() {
}
public static final int DESTINATIONS_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
private java.util.List destinations_;
-
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.api.ClientLibraryDestination>
destinations_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.api.ClientLibraryDestination>() {
public com.google.api.ClientLibraryDestination convert(java.lang.Integer from) {
+ @SuppressWarnings("deprecation")
com.google.api.ClientLibraryDestination result =
- com.google.api.ClientLibraryDestination.forNumber(from);
+ com.google.api.ClientLibraryDestination.valueOf(from);
return result == null ? com.google.api.ClientLibraryDestination.UNRECOGNIZED : result;
}
};
@@ -245,7 +335,7 @@ public int getDestinationsValue(int index) {
*/
@java.lang.Override
public boolean hasSelectiveGapicGeneration() {
- return ((bitField0_ & 0x00000001) != 0);
+ return selectiveGapicGeneration_ != null;
}
/**
@@ -277,9 +367,7 @@ public com.google.api.SelectiveGapicGeneration getSelectiveGapicGeneration() {
*/
@java.lang.Override
public com.google.api.SelectiveGapicGenerationOrBuilder getSelectiveGapicGenerationOrBuilder() {
- return selectiveGapicGeneration_ == null
- ? com.google.api.SelectiveGapicGeneration.getDefaultInstance()
- : selectiveGapicGeneration_;
+ return getSelectiveGapicGeneration();
}
private byte memoizedIsInitialized = -1;
@@ -307,10 +395,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < destinations_.size(); i++) {
output.writeEnumNoTag(destinations_.get(i));
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (selectiveGapicGeneration_ != null) {
output.writeMessage(3, getSelectiveGapicGeneration());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -335,12 +423,12 @@ public int getSerializedSize() {
}
destinationsMemoizedSerializedSize = dataSize;
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (selectiveGapicGeneration_ != null) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, getSelectiveGapicGeneration());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -361,7 +449,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasSelectiveGapicGeneration()) {
if (!getSelectiveGapicGeneration().equals(other.getSelectiveGapicGeneration())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -382,7 +470,7 @@ public int hashCode() {
hash = (37 * hash) + SELECTIVE_GAPIC_GENERATION_FIELD_NUMBER;
hash = (53 * hash) + getSelectiveGapicGeneration().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -521,21 +609,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getSelectiveGapicGenerationFieldBuilder();
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
referenceDocsUri_ = "";
+
destinations_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- selectiveGapicGeneration_ = null;
- if (selectiveGapicGenerationBuilder_ != null) {
- selectiveGapicGenerationBuilder_.dispose();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (selectiveGapicGenerationBuilder_ == null) {
+ selectiveGapicGeneration_ = null;
+ } else {
+ selectiveGapicGeneration_ = null;
selectiveGapicGenerationBuilder_ = null;
}
return this;
@@ -565,36 +652,20 @@ public com.google.api.CommonLanguageSettings build() {
public com.google.api.CommonLanguageSettings buildPartial() {
com.google.api.CommonLanguageSettings result =
new com.google.api.CommonLanguageSettings(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.CommonLanguageSettings result) {
- if (((bitField0_ & 0x00000002) != 0)) {
+ int from_bitField0_ = bitField0_;
+ result.referenceDocsUri_ = referenceDocsUri_;
+ if (((bitField0_ & 0x00000001) != 0)) {
destinations_ = java.util.Collections.unmodifiableList(destinations_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.destinations_ = destinations_;
- }
-
- private void buildPartial0(com.google.api.CommonLanguageSettings result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.referenceDocsUri_ = referenceDocsUri_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.selectiveGapicGeneration_ =
- selectiveGapicGenerationBuilder_ == null
- ? selectiveGapicGeneration_
- : selectiveGapicGenerationBuilder_.build();
- to_bitField0_ |= 0x00000001;
+ if (selectiveGapicGenerationBuilder_ == null) {
+ result.selectiveGapicGeneration_ = selectiveGapicGeneration_;
+ } else {
+ result.selectiveGapicGeneration_ = selectiveGapicGenerationBuilder_.build();
}
- result.bitField0_ |= to_bitField0_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -644,13 +715,12 @@ public Builder mergeFrom(com.google.api.CommonLanguageSettings other) {
if (other == com.google.api.CommonLanguageSettings.getDefaultInstance()) return this;
if (!other.getReferenceDocsUri().isEmpty()) {
referenceDocsUri_ = other.referenceDocsUri_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.destinations_.isEmpty()) {
if (destinations_.isEmpty()) {
destinations_ = other.destinations_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDestinationsIsMutable();
destinations_.addAll(other.destinations_);
@@ -660,7 +730,7 @@ public Builder mergeFrom(com.google.api.CommonLanguageSettings other) {
if (other.hasSelectiveGapicGeneration()) {
mergeSelectiveGapicGeneration(other.getSelectiveGapicGeneration());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -675,63 +745,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.CommonLanguageSettings parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- referenceDocsUri_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 16:
- {
- int tmpRaw = input.readEnum();
- ensureDestinationsIsMutable();
- destinations_.add(tmpRaw);
- break;
- } // case 16
- case 18:
- {
- int length = input.readRawVarint32();
- int oldLimit = input.pushLimit(length);
- while (input.getBytesUntilLimit() > 0) {
- int tmpRaw = input.readEnum();
- ensureDestinationsIsMutable();
- destinations_.add(tmpRaw);
- }
- input.popLimit(oldLimit);
- break;
- } // case 18
- case 26:
- {
- input.readMessage(
- getSelectiveGapicGenerationFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.CommonLanguageSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -813,8 +837,8 @@ public Builder setReferenceDocsUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
referenceDocsUri_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -835,8 +859,8 @@ public Builder setReferenceDocsUri(java.lang.String value) {
*/
@java.lang.Deprecated
public Builder clearReferenceDocsUri() {
+
referenceDocsUri_ = getDefaultInstance().getReferenceDocsUri();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -862,8 +886,8 @@ public Builder setReferenceDocsUriBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
referenceDocsUri_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -871,9 +895,9 @@ public Builder setReferenceDocsUriBytes(com.google.protobuf.ByteString value) {
private java.util.List destinations_ = java.util.Collections.emptyList();
private void ensureDestinationsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
destinations_ = new java.util.ArrayList(destinations_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000001;
}
}
@@ -1005,7 +1029,7 @@ public Builder addAllDestinations(
*/
public Builder clearDestinations() {
destinations_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1120,7 +1144,7 @@ public Builder addAllDestinationsValue(java.lang.Iterable val
* @return Whether the selectiveGapicGeneration field is set.
*/
public boolean hasSelectiveGapicGeneration() {
- return ((bitField0_ & 0x00000004) != 0);
+ return selectiveGapicGenerationBuilder_ != null || selectiveGapicGeneration_ != null;
}
/**
@@ -1159,11 +1183,11 @@ public Builder setSelectiveGapicGeneration(com.google.api.SelectiveGapicGenerati
throw new NullPointerException();
}
selectiveGapicGeneration_ = value;
+ onChanged();
} else {
selectiveGapicGenerationBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000004;
- onChanged();
+
return this;
}
@@ -1180,11 +1204,11 @@ public Builder setSelectiveGapicGeneration(
com.google.api.SelectiveGapicGeneration.Builder builderForValue) {
if (selectiveGapicGenerationBuilder_ == null) {
selectiveGapicGeneration_ = builderForValue.build();
+ onChanged();
} else {
selectiveGapicGenerationBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000004;
- onChanged();
+
return this;
}
@@ -1199,21 +1223,19 @@ public Builder setSelectiveGapicGeneration(
*/
public Builder mergeSelectiveGapicGeneration(com.google.api.SelectiveGapicGeneration value) {
if (selectiveGapicGenerationBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)
- && selectiveGapicGeneration_ != null
- && selectiveGapicGeneration_
- != com.google.api.SelectiveGapicGeneration.getDefaultInstance()) {
- getSelectiveGapicGenerationBuilder().mergeFrom(value);
+ if (selectiveGapicGeneration_ != null) {
+ selectiveGapicGeneration_ =
+ com.google.api.SelectiveGapicGeneration.newBuilder(selectiveGapicGeneration_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
selectiveGapicGeneration_ = value;
}
+ onChanged();
} else {
selectiveGapicGenerationBuilder_.mergeFrom(value);
}
- if (selectiveGapicGeneration_ != null) {
- bitField0_ |= 0x00000004;
- onChanged();
- }
+
return this;
}
@@ -1227,13 +1249,14 @@ public Builder mergeSelectiveGapicGeneration(com.google.api.SelectiveGapicGenera
* .google.api.SelectiveGapicGeneration selective_gapic_generation = 3;
*/
public Builder clearSelectiveGapicGeneration() {
- bitField0_ = (bitField0_ & ~0x00000004);
- selectiveGapicGeneration_ = null;
- if (selectiveGapicGenerationBuilder_ != null) {
- selectiveGapicGenerationBuilder_.dispose();
+ if (selectiveGapicGenerationBuilder_ == null) {
+ selectiveGapicGeneration_ = null;
+ onChanged();
+ } else {
+ selectiveGapicGeneration_ = null;
selectiveGapicGenerationBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -1247,7 +1270,7 @@ public Builder clearSelectiveGapicGeneration() {
* .google.api.SelectiveGapicGeneration selective_gapic_generation = 3;
*/
public com.google.api.SelectiveGapicGeneration.Builder getSelectiveGapicGenerationBuilder() {
- bitField0_ |= 0x00000004;
+
onChanged();
return getSelectiveGapicGenerationFieldBuilder().getBuilder();
}
@@ -1329,18 +1352,7 @@ public CommonLanguageSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new CommonLanguageSettings(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettingsOrBuilder.java
index 3d1dd78dbe..06d4106347 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettingsOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettingsOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface CommonLanguageSettingsOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java
index af30d7e77b..9b2970740a 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/config_change.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -25,7 +24,6 @@
*
* Output generated from semantically comparing two versions of a service
* configuration.
- *
* Includes detailed information about a field that have changed with
* applicable advice about potential consequences for the change, such as
* backwards-incompatibility.
@@ -58,6 +56,91 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ConfigChange();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ConfigChange(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ element_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ oldValue_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ newValue_ = s;
+ break;
+ }
+ case 32:
+ {
+ int rawValue = input.readEnum();
+
+ changeType_ = rawValue;
+ break;
+ }
+ case 42:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ advices_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ advices_.add(input.readMessage(com.google.api.Advice.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ advices_ = java.util.Collections.unmodifiableList(advices_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ConfigChangeProto.internal_static_google_api_ConfigChange_descriptor;
}
@@ -72,9 +155,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int ELEMENT_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object element_ = "";
+ private volatile java.lang.Object element_;
/**
*
@@ -141,9 +222,7 @@ public com.google.protobuf.ByteString getElementBytes() {
}
public static final int OLD_VALUE_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object oldValue_ = "";
+ private volatile java.lang.Object oldValue_;
/**
*
@@ -196,9 +275,7 @@ public com.google.protobuf.ByteString getOldValueBytes() {
}
public static final int NEW_VALUE_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object newValue_ = "";
+ private volatile java.lang.Object newValue_;
/**
*
@@ -251,7 +328,7 @@ public com.google.protobuf.ByteString getNewValueBytes() {
}
public static final int CHANGE_TYPE_FIELD_NUMBER = 4;
- private int changeType_ = 0;
+ private int changeType_;
/**
*
@@ -282,13 +359,12 @@ public int getChangeTypeValue() {
*/
@java.lang.Override
public com.google.api.ChangeType getChangeType() {
- com.google.api.ChangeType result = com.google.api.ChangeType.forNumber(changeType_);
+ @SuppressWarnings("deprecation")
+ com.google.api.ChangeType result = com.google.api.ChangeType.valueOf(changeType_);
return result == null ? com.google.api.ChangeType.UNRECOGNIZED : result;
}
public static final int ADVICES_FIELD_NUMBER = 5;
-
- @SuppressWarnings("serial")
private java.util.List advices_;
/**
@@ -395,7 +471,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < advices_.size(); i++) {
output.writeMessage(5, advices_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -419,7 +495,7 @@ public int getSerializedSize() {
for (int i = 0; i < advices_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, advices_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -439,7 +515,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getNewValue().equals(other.getNewValue())) return false;
if (changeType_ != other.changeType_) return false;
if (!getAdvicesList().equals(other.getAdvicesList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -462,7 +538,7 @@ public int hashCode() {
hash = (37 * hash) + ADVICES_FIELD_NUMBER;
hash = (53 * hash) + getAdvicesList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -568,7 +644,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* Output generated from semantically comparing two versions of a service
* configuration.
- *
* Includes detailed information about a field that have changed with
* applicable advice about potential consequences for the change, such as
* backwards-incompatibility.
@@ -594,27 +669,38 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.ConfigChange.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getAdvicesFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
element_ = "";
+
oldValue_ = "";
+
newValue_ = "";
+
changeType_ = 0;
+
if (advicesBuilder_ == null) {
advices_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- advices_ = null;
advicesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@@ -640,40 +726,22 @@ public com.google.api.ConfigChange build() {
@java.lang.Override
public com.google.api.ConfigChange buildPartial() {
com.google.api.ConfigChange result = new com.google.api.ConfigChange(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.ConfigChange result) {
+ int from_bitField0_ = bitField0_;
+ result.element_ = element_;
+ result.oldValue_ = oldValue_;
+ result.newValue_ = newValue_;
+ result.changeType_ = changeType_;
if (advicesBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
advices_ = java.util.Collections.unmodifiableList(advices_);
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.advices_ = advices_;
} else {
result.advices_ = advicesBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.ConfigChange result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.element_ = element_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.oldValue_ = oldValue_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.newValue_ = newValue_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.changeType_ = changeType_;
- }
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -723,17 +791,14 @@ public Builder mergeFrom(com.google.api.ConfigChange other) {
if (other == com.google.api.ConfigChange.getDefaultInstance()) return this;
if (!other.getElement().isEmpty()) {
element_ = other.element_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getOldValue().isEmpty()) {
oldValue_ = other.oldValue_;
- bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getNewValue().isEmpty()) {
newValue_ = other.newValue_;
- bitField0_ |= 0x00000004;
onChanged();
}
if (other.changeType_ != 0) {
@@ -743,7 +808,7 @@ public Builder mergeFrom(com.google.api.ConfigChange other) {
if (!other.advices_.isEmpty()) {
if (advices_.isEmpty()) {
advices_ = other.advices_;
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAdvicesIsMutable();
advices_.addAll(other.advices_);
@@ -756,7 +821,7 @@ public Builder mergeFrom(com.google.api.ConfigChange other) {
advicesBuilder_.dispose();
advicesBuilder_ = null;
advices_ = other.advices_;
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000001);
advicesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getAdvicesFieldBuilder()
@@ -766,7 +831,7 @@ public Builder mergeFrom(com.google.api.ConfigChange other) {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -781,67 +846,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.ConfigChange parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- element_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- oldValue_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26:
- {
- newValue_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 32:
- {
- changeType_ = input.readEnum();
- bitField0_ |= 0x00000008;
- break;
- } // case 32
- case 42:
- {
- com.google.api.Advice m =
- input.readMessage(com.google.api.Advice.parser(), extensionRegistry);
- if (advicesBuilder_ == null) {
- ensureAdvicesIsMutable();
- advices_.add(m);
- } else {
- advicesBuilder_.addMessage(m);
- }
- break;
- } // case 42
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.ConfigChange) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -935,8 +950,8 @@ public Builder setElement(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
element_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -961,8 +976,8 @@ public Builder setElement(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearElement() {
+
element_ = getDefaultInstance().getElement();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -992,8 +1007,8 @@ public Builder setElementBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
element_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1065,8 +1080,8 @@ public Builder setOldValue(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
oldValue_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1084,8 +1099,8 @@ public Builder setOldValue(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearOldValue() {
+
oldValue_ = getDefaultInstance().getOldValue();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1108,8 +1123,8 @@ public Builder setOldValueBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
oldValue_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1181,8 +1196,8 @@ public Builder setNewValue(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
newValue_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1200,8 +1215,8 @@ public Builder setNewValue(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNewValue() {
+
newValue_ = getDefaultInstance().getNewValue();
- bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1224,8 +1239,8 @@ public Builder setNewValueBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
newValue_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1261,8 +1276,8 @@ public int getChangeTypeValue() {
* @return This builder for chaining.
*/
public Builder setChangeTypeValue(int value) {
+
changeType_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1280,7 +1295,8 @@ public Builder setChangeTypeValue(int value) {
*/
@java.lang.Override
public com.google.api.ChangeType getChangeType() {
- com.google.api.ChangeType result = com.google.api.ChangeType.forNumber(changeType_);
+ @SuppressWarnings("deprecation")
+ com.google.api.ChangeType result = com.google.api.ChangeType.valueOf(changeType_);
return result == null ? com.google.api.ChangeType.UNRECOGNIZED : result;
}
@@ -1300,7 +1316,7 @@ public Builder setChangeType(com.google.api.ChangeType value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000008;
+
changeType_ = value.getNumber();
onChanged();
return this;
@@ -1318,7 +1334,7 @@ public Builder setChangeType(com.google.api.ChangeType value) {
* @return This builder for chaining.
*/
public Builder clearChangeType() {
- bitField0_ = (bitField0_ & ~0x00000008);
+
changeType_ = 0;
onChanged();
return this;
@@ -1327,9 +1343,9 @@ public Builder clearChangeType() {
private java.util.List advices_ = java.util.Collections.emptyList();
private void ensureAdvicesIsMutable() {
- if (!((bitField0_ & 0x00000010) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
advices_ = new java.util.ArrayList(advices_);
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000001;
}
}
@@ -1560,7 +1576,7 @@ public Builder addAllAdvices(java.lang.Iterable extends com.google.api.Advice>
public Builder clearAdvices() {
if (advicesBuilder_ == null) {
advices_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
advicesBuilder_.clear();
@@ -1690,7 +1706,7 @@ public java.util.List getAdvicesBuilderList() {
com.google.api.Advice,
com.google.api.Advice.Builder,
com.google.api.AdviceOrBuilder>(
- advices_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
+ advices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
advices_ = null;
}
return advicesBuilder_;
@@ -1728,18 +1744,7 @@ public ConfigChange parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ConfigChange(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeOrBuilder.java
index f7a773974c..64a182d0ca 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/config_change.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface ConfigChangeOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeProto.java
index acc84ac985..eacbae918f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/config_change.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class ConfigChangeProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConsumerProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConsumerProto.java
index 7911e89e5b..21b35b58a6 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConsumerProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConsumerProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/consumer.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class ConsumerProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java
index 50f9c3c6f1..2c8d138dc4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/context.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -24,31 +23,24 @@
*
*
* `Context` defines which contexts an API requests.
- *
* Example:
- *
* context:
* rules:
* - selector: "*"
* requested:
* - google.rpc.context.ProjectContext
* - google.rpc.context.OriginContext
- *
* The above specifies that all methods in the API request
* `google.rpc.context.ProjectContext` and
* `google.rpc.context.OriginContext`.
- *
* Available context types are defined in package
* `google.rpc.context`.
- *
* This also provides mechanism to allowlist any protobuf message extension that
* can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
* “x-goog-ext-<extension_id>-jspb” format. For example, list any service
* specific protobuf types that can appear in grpc metadata as follows in your
* yaml file:
- *
* Example:
- *
* context:
* rules:
* - selector: "google.example.library.v1.LibraryService.CreateBook"
@@ -56,7 +48,6 @@
* - google.foo.v1.NewExtension
* allowed_response_extensions:
* - google.foo.v1.NewExtension
- *
* You can also specify extension ID instead of fully qualified extension name
* here.
*
@@ -84,6 +75,63 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Context();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Context(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ rules_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ rules_.add(input.readMessage(com.google.api.ContextRule.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ rules_ = java.util.Collections.unmodifiableList(rules_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ContextProto.internal_static_google_api_Context_descriptor;
}
@@ -97,8 +145,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int RULES_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
private java.util.List rules_;
/**
@@ -106,7 +152,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -122,7 +167,6 @@ public java.util.List getRulesList() {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -138,7 +182,6 @@ public java.util.List extends com.google.api.ContextRuleOrBuilder> getRulesOrB
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -154,7 +197,6 @@ public int getRulesCount() {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -170,7 +212,6 @@ public com.google.api.ContextRule getRules(int index) {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -198,7 +239,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < rules_.size(); i++) {
output.writeMessage(1, rules_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -210,7 +251,7 @@ public int getSerializedSize() {
for (int i = 0; i < rules_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rules_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -226,7 +267,7 @@ public boolean equals(final java.lang.Object obj) {
com.google.api.Context other = (com.google.api.Context) obj;
if (!getRulesList().equals(other.getRulesList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -241,7 +282,7 @@ public int hashCode() {
hash = (37 * hash) + RULES_FIELD_NUMBER;
hash = (53 * hash) + getRulesList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -346,31 +387,24 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* `Context` defines which contexts an API requests.
- *
* Example:
- *
* context:
* rules:
* - selector: "*"
* requested:
* - google.rpc.context.ProjectContext
* - google.rpc.context.OriginContext
- *
* The above specifies that all methods in the API request
* `google.rpc.context.ProjectContext` and
* `google.rpc.context.OriginContext`.
- *
* Available context types are defined in package
* `google.rpc.context`.
- *
* This also provides mechanism to allowlist any protobuf message extension that
* can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
* “x-goog-ext-<extension_id>-jspb” format. For example, list any service
* specific protobuf types that can appear in grpc metadata as follows in your
* yaml file:
- *
* Example:
- *
* context:
* rules:
* - selector: "google.example.library.v1.LibraryService.CreateBook"
@@ -378,7 +412,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* - google.foo.v1.NewExtension
* allowed_response_extensions:
* - google.foo.v1.NewExtension
- *
* You can also specify extension ID instead of fully qualified extension name
* here.
*
@@ -402,23 +435,30 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Context.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getRulesFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
if (rulesBuilder_ == null) {
rules_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- rules_ = null;
rulesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -444,15 +484,7 @@ public com.google.api.Context build() {
@java.lang.Override
public com.google.api.Context buildPartial() {
com.google.api.Context result = new com.google.api.Context(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.Context result) {
+ int from_bitField0_ = bitField0_;
if (rulesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
rules_ = java.util.Collections.unmodifiableList(rules_);
@@ -462,10 +494,8 @@ private void buildPartialRepeatedFields(com.google.api.Context result) {
} else {
result.rules_ = rulesBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.Context result) {
- int from_bitField0_ = bitField0_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -540,7 +570,7 @@ public Builder mergeFrom(com.google.api.Context other) {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -555,43 +585,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Context parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- com.google.api.ContextRule m =
- input.readMessage(com.google.api.ContextRule.parser(), extensionRegistry);
- if (rulesBuilder_ == null) {
- ensureRulesIsMutable();
- rules_.add(m);
- } else {
- rulesBuilder_.addMessage(m);
- }
- break;
- } // case 10
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Context) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -617,7 +621,6 @@ private void ensureRulesIsMutable() {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -636,7 +639,6 @@ public java.util.List getRulesList() {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -655,7 +657,6 @@ public int getRulesCount() {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -674,7 +675,6 @@ public com.google.api.ContextRule getRules(int index) {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -699,7 +699,6 @@ public Builder setRules(int index, com.google.api.ContextRule value) {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -721,7 +720,6 @@ public Builder setRules(int index, com.google.api.ContextRule.Builder builderFor
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -746,7 +744,6 @@ public Builder addRules(com.google.api.ContextRule value) {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -771,7 +768,6 @@ public Builder addRules(int index, com.google.api.ContextRule value) {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -793,7 +789,6 @@ public Builder addRules(com.google.api.ContextRule.Builder builderForValue) {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -815,7 +810,6 @@ public Builder addRules(int index, com.google.api.ContextRule.Builder builderFor
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -837,7 +831,6 @@ public Builder addAllRules(java.lang.Iterable extends com.google.api.ContextRu
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -859,7 +852,6 @@ public Builder clearRules() {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -881,7 +873,6 @@ public Builder removeRules(int index) {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -896,7 +887,6 @@ public com.google.api.ContextRule.Builder getRulesBuilder(int index) {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -915,7 +905,6 @@ public com.google.api.ContextRuleOrBuilder getRulesOrBuilder(int index) {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -934,7 +923,6 @@ public java.util.List extends com.google.api.ContextRuleOrBuilder> getRulesOrB
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -949,7 +937,6 @@ public com.google.api.ContextRule.Builder addRulesBuilder() {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -965,7 +952,6 @@ public com.google.api.ContextRule.Builder addRulesBuilder(int index) {
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1024,18 +1010,7 @@ public Context parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Context(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java
index cead867ec3..35ce7c59cd 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/context.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface ContextOrBuilder
@@ -29,7 +28,6 @@ public interface ContextOrBuilder
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -42,7 +40,6 @@ public interface ContextOrBuilder
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -55,7 +52,6 @@ public interface ContextOrBuilder
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -68,7 +64,6 @@ public interface ContextOrBuilder
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -81,7 +76,6 @@ public interface ContextOrBuilder
*
*
* A list of RPC context rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextProto.java
index 874ab11c46..f67ad6b869 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/context.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class ContextProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java
index dbc04231a7..17be6eb0ef 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/context.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -42,10 +41,10 @@ private ContextRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private ContextRule() {
selector_ = "";
- requested_ = com.google.protobuf.LazyStringArrayList.emptyList();
- provided_ = com.google.protobuf.LazyStringArrayList.emptyList();
- allowedRequestExtensions_ = com.google.protobuf.LazyStringArrayList.emptyList();
- allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ requested_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ provided_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ allowedRequestExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@@ -54,6 +53,110 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ContextRule();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ContextRule(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ selector_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ requested_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ requested_.add(s);
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ provided_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ provided_.add(s);
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+ allowedRequestExtensions_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ allowedRequestExtensions_.add(s);
+ break;
+ }
+ case 42:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+ allowedResponseExtensions_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000008;
+ }
+ allowedResponseExtensions_.add(s);
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ requested_ = requested_.getUnmodifiableView();
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ provided_ = provided_.getUnmodifiableView();
+ }
+ if (((mutable_bitField0_ & 0x00000004) != 0)) {
+ allowedRequestExtensions_ = allowedRequestExtensions_.getUnmodifiableView();
+ }
+ if (((mutable_bitField0_ & 0x00000008) != 0)) {
+ allowedResponseExtensions_ = allowedResponseExtensions_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ContextProto.internal_static_google_api_ContextRule_descriptor;
}
@@ -67,16 +170,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int SELECTOR_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object selector_ = "";
+ private volatile java.lang.Object selector_;
/**
*
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -103,7 +203,6 @@ public java.lang.String getSelector() {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -126,10 +225,7 @@ public com.google.protobuf.ByteString getSelectorBytes() {
}
public static final int REQUESTED_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList requested_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList requested_;
/**
*
@@ -198,10 +294,7 @@ public com.google.protobuf.ByteString getRequestedBytes(int index) {
}
public static final int PROVIDED_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList provided_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList provided_;
/**
*
@@ -270,10 +363,7 @@ public com.google.protobuf.ByteString getProvidedBytes(int index) {
}
public static final int ALLOWED_REQUEST_EXTENSIONS_FIELD_NUMBER = 4;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList allowedRequestExtensions_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList allowedRequestExtensions_;
/**
*
@@ -342,10 +432,7 @@ public com.google.protobuf.ByteString getAllowedRequestExtensionsBytes(int index
}
public static final int ALLOWED_RESPONSE_EXTENSIONS_FIELD_NUMBER = 5;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList allowedResponseExtensions_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList allowedResponseExtensions_;
/**
*
@@ -444,7 +531,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
com.google.protobuf.GeneratedMessageV3.writeString(
output, 5, allowedResponseExtensions_.getRaw(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -488,7 +575,7 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getAllowedResponseExtensionsList().size();
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -510,7 +597,7 @@ public boolean equals(final java.lang.Object obj) {
return false;
if (!getAllowedResponseExtensionsList().equals(other.getAllowedResponseExtensionsList()))
return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -539,7 +626,7 @@ public int hashCode() {
hash = (37 * hash) + ALLOWED_RESPONSE_EXTENSIONS_FIELD_NUMBER;
hash = (53 * hash) + getAllowedResponseExtensionsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -666,21 +753,32 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.ContextRule.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
selector_ = "";
- requested_ = com.google.protobuf.LazyStringArrayList.emptyList();
- provided_ = com.google.protobuf.LazyStringArrayList.emptyList();
- allowedRequestExtensions_ = com.google.protobuf.LazyStringArrayList.emptyList();
- allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+
+ requested_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ provided_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ allowedRequestExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@@ -706,34 +804,30 @@ public com.google.api.ContextRule build() {
@java.lang.Override
public com.google.api.ContextRule buildPartial() {
com.google.api.ContextRule result = new com.google.api.ContextRule(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(com.google.api.ContextRule result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.selector_ = selector_;
+ result.selector_ = selector_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ requested_ = requested_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
}
- if (((from_bitField0_ & 0x00000002) != 0)) {
- requested_.makeImmutable();
- result.requested_ = requested_;
+ result.requested_ = requested_;
+ if (((bitField0_ & 0x00000002) != 0)) {
+ provided_ = provided_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000002);
}
- if (((from_bitField0_ & 0x00000004) != 0)) {
- provided_.makeImmutable();
- result.provided_ = provided_;
+ result.provided_ = provided_;
+ if (((bitField0_ & 0x00000004) != 0)) {
+ allowedRequestExtensions_ = allowedRequestExtensions_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000004);
}
- if (((from_bitField0_ & 0x00000008) != 0)) {
- allowedRequestExtensions_.makeImmutable();
- result.allowedRequestExtensions_ = allowedRequestExtensions_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- allowedResponseExtensions_.makeImmutable();
- result.allowedResponseExtensions_ = allowedResponseExtensions_;
+ result.allowedRequestExtensions_ = allowedRequestExtensions_;
+ if (((bitField0_ & 0x00000008) != 0)) {
+ allowedResponseExtensions_ = allowedResponseExtensions_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000008);
}
+ result.allowedResponseExtensions_ = allowedResponseExtensions_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -783,13 +877,12 @@ public Builder mergeFrom(com.google.api.ContextRule other) {
if (other == com.google.api.ContextRule.getDefaultInstance()) return this;
if (!other.getSelector().isEmpty()) {
selector_ = other.selector_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.requested_.isEmpty()) {
if (requested_.isEmpty()) {
requested_ = other.requested_;
- bitField0_ |= 0x00000002;
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRequestedIsMutable();
requested_.addAll(other.requested_);
@@ -799,7 +892,7 @@ public Builder mergeFrom(com.google.api.ContextRule other) {
if (!other.provided_.isEmpty()) {
if (provided_.isEmpty()) {
provided_ = other.provided_;
- bitField0_ |= 0x00000004;
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureProvidedIsMutable();
provided_.addAll(other.provided_);
@@ -809,7 +902,7 @@ public Builder mergeFrom(com.google.api.ContextRule other) {
if (!other.allowedRequestExtensions_.isEmpty()) {
if (allowedRequestExtensions_.isEmpty()) {
allowedRequestExtensions_ = other.allowedRequestExtensions_;
- bitField0_ |= 0x00000008;
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureAllowedRequestExtensionsIsMutable();
allowedRequestExtensions_.addAll(other.allowedRequestExtensions_);
@@ -819,14 +912,14 @@ public Builder mergeFrom(com.google.api.ContextRule other) {
if (!other.allowedResponseExtensions_.isEmpty()) {
if (allowedResponseExtensions_.isEmpty()) {
allowedResponseExtensions_ = other.allowedResponseExtensions_;
- bitField0_ |= 0x00000010;
+ bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAllowedResponseExtensionsIsMutable();
allowedResponseExtensions_.addAll(other.allowedResponseExtensions_);
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -841,65 +934,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.ContextRule parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- selector_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureRequestedIsMutable();
- requested_.add(s);
- break;
- } // case 18
- case 26:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureProvidedIsMutable();
- provided_.add(s);
- break;
- } // case 26
- case 34:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureAllowedRequestExtensionsIsMutable();
- allowedRequestExtensions_.add(s);
- break;
- } // case 34
- case 42:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureAllowedResponseExtensionsIsMutable();
- allowedResponseExtensions_.add(s);
- break;
- } // case 42
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.ContextRule) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -912,7 +957,6 @@ public Builder mergeFrom(
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -938,7 +982,6 @@ public java.lang.String getSelector() {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -964,7 +1007,6 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -978,8 +1020,8 @@ public Builder setSelector(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -989,7 +1031,6 @@ public Builder setSelector(java.lang.String value) {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -999,8 +1040,8 @@ public Builder setSelector(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearSelector() {
+
selector_ = getDefaultInstance().getSelector();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1010,7 +1051,6 @@ public Builder clearSelector() {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1025,20 +1065,20 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringArrayList requested_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList requested_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRequestedIsMutable() {
- if (!requested_.isModifiable()) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
requested_ = new com.google.protobuf.LazyStringArrayList(requested_);
+ bitField0_ |= 0x00000001;
}
- bitField0_ |= 0x00000002;
}
/**
@@ -1054,8 +1094,7 @@ private void ensureRequestedIsMutable() {
* @return A list containing the requested.
*/
public com.google.protobuf.ProtocolStringList getRequestedList() {
- requested_.makeImmutable();
- return requested_;
+ return requested_.getUnmodifiableView();
}
/**
@@ -1128,7 +1167,6 @@ public Builder setRequested(int index, java.lang.String value) {
}
ensureRequestedIsMutable();
requested_.set(index, value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1152,7 +1190,6 @@ public Builder addRequested(java.lang.String value) {
}
ensureRequestedIsMutable();
requested_.add(value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1173,7 +1210,6 @@ public Builder addRequested(java.lang.String value) {
public Builder addAllRequested(java.lang.Iterable values) {
ensureRequestedIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requested_);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1191,9 +1227,8 @@ public Builder addAllRequested(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearRequested() {
- requested_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- ;
+ requested_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1218,19 +1253,18 @@ public Builder addRequestedBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureRequestedIsMutable();
requested_.add(value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringArrayList provided_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList provided_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureProvidedIsMutable() {
- if (!provided_.isModifiable()) {
+ if (!((bitField0_ & 0x00000002) != 0)) {
provided_ = new com.google.protobuf.LazyStringArrayList(provided_);
+ bitField0_ |= 0x00000002;
}
- bitField0_ |= 0x00000004;
}
/**
@@ -1246,8 +1280,7 @@ private void ensureProvidedIsMutable() {
* @return A list containing the provided.
*/
public com.google.protobuf.ProtocolStringList getProvidedList() {
- provided_.makeImmutable();
- return provided_;
+ return provided_.getUnmodifiableView();
}
/**
@@ -1320,7 +1353,6 @@ public Builder setProvided(int index, java.lang.String value) {
}
ensureProvidedIsMutable();
provided_.set(index, value);
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1344,7 +1376,6 @@ public Builder addProvided(java.lang.String value) {
}
ensureProvidedIsMutable();
provided_.add(value);
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1365,7 +1396,6 @@ public Builder addProvided(java.lang.String value) {
public Builder addAllProvided(java.lang.Iterable values) {
ensureProvidedIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, provided_);
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1383,9 +1413,8 @@ public Builder addAllProvided(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearProvided() {
- provided_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- ;
+ provided_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1410,20 +1439,19 @@ public Builder addProvidedBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureProvidedIsMutable();
provided_.add(value);
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringArrayList allowedRequestExtensions_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList allowedRequestExtensions_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAllowedRequestExtensionsIsMutable() {
- if (!allowedRequestExtensions_.isModifiable()) {
+ if (!((bitField0_ & 0x00000004) != 0)) {
allowedRequestExtensions_ =
new com.google.protobuf.LazyStringArrayList(allowedRequestExtensions_);
+ bitField0_ |= 0x00000004;
}
- bitField0_ |= 0x00000008;
}
/**
@@ -1439,8 +1467,7 @@ private void ensureAllowedRequestExtensionsIsMutable() {
* @return A list containing the allowedRequestExtensions.
*/
public com.google.protobuf.ProtocolStringList getAllowedRequestExtensionsList() {
- allowedRequestExtensions_.makeImmutable();
- return allowedRequestExtensions_;
+ return allowedRequestExtensions_.getUnmodifiableView();
}
/**
@@ -1513,7 +1540,6 @@ public Builder setAllowedRequestExtensions(int index, java.lang.String value) {
}
ensureAllowedRequestExtensionsIsMutable();
allowedRequestExtensions_.set(index, value);
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1537,7 +1563,6 @@ public Builder addAllowedRequestExtensions(java.lang.String value) {
}
ensureAllowedRequestExtensionsIsMutable();
allowedRequestExtensions_.add(value);
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1558,7 +1583,6 @@ public Builder addAllowedRequestExtensions(java.lang.String value) {
public Builder addAllAllowedRequestExtensions(java.lang.Iterable values) {
ensureAllowedRequestExtensionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedRequestExtensions_);
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1576,9 +1600,8 @@ public Builder addAllAllowedRequestExtensions(java.lang.Iterable values) {
ensureAllowedResponseExtensionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedResponseExtensions_);
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1769,9 +1787,8 @@ public Builder addAllAllowedResponseExtensions(java.lang.Iterable
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -45,7 +43,6 @@ public interface ContextRuleOrBuilder
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
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 74b611c518..e874b81ada 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
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/control.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -24,9 +23,7 @@
*
*
* Selects and configures the service controller used by the service.
- *
* Example:
- *
* control:
* environment: servicecontrol.googleapis.com
*
@@ -55,6 +52,71 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Control();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Control(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ environment_ = s;
+ break;
+ }
+ case 34:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ methodPolicies_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ methodPolicies_.add(
+ input.readMessage(com.google.api.MethodPolicy.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ methodPolicies_ = java.util.Collections.unmodifiableList(methodPolicies_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ControlProto.internal_static_google_api_Control_descriptor;
}
@@ -68,9 +130,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int ENVIRONMENT_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object environment_ = "";
+ private volatile java.lang.Object environment_;
/**
*
@@ -125,8 +185,6 @@ public com.google.protobuf.ByteString getEnvironmentBytes() {
}
public static final int METHOD_POLICIES_FIELD_NUMBER = 4;
-
- @SuppressWarnings("serial")
private java.util.List methodPolicies_;
/**
@@ -220,7 +278,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < methodPolicies_.size(); i++) {
output.writeMessage(4, methodPolicies_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -235,7 +293,7 @@ public int getSerializedSize() {
for (int i = 0; i < methodPolicies_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, methodPolicies_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -252,7 +310,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getEnvironment().equals(other.getEnvironment())) return false;
if (!getMethodPoliciesList().equals(other.getMethodPoliciesList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -269,7 +327,7 @@ public int hashCode() {
hash = (37 * hash) + METHOD_POLICIES_FIELD_NUMBER;
hash = (53 * hash) + getMethodPoliciesList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -374,9 +432,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Selects and configures the service controller used by the service.
- *
* Example:
- *
* control:
* environment: servicecontrol.googleapis.com
*
@@ -400,24 +456,32 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Control.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getMethodPoliciesFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
environment_ = "";
+
if (methodPoliciesBuilder_ == null) {
methodPolicies_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- methodPolicies_ = null;
methodPoliciesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@@ -443,31 +507,19 @@ public com.google.api.Control build() {
@java.lang.Override
public com.google.api.Control buildPartial() {
com.google.api.Control result = new com.google.api.Control(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.Control result) {
+ int from_bitField0_ = bitField0_;
+ result.environment_ = environment_;
if (methodPoliciesBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
methodPolicies_ = java.util.Collections.unmodifiableList(methodPolicies_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.methodPolicies_ = methodPolicies_;
} else {
result.methodPolicies_ = methodPoliciesBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.Control result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.environment_ = environment_;
- }
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -517,14 +569,13 @@ public Builder mergeFrom(com.google.api.Control other) {
if (other == com.google.api.Control.getDefaultInstance()) return this;
if (!other.getEnvironment().isEmpty()) {
environment_ = other.environment_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (methodPoliciesBuilder_ == null) {
if (!other.methodPolicies_.isEmpty()) {
if (methodPolicies_.isEmpty()) {
methodPolicies_ = other.methodPolicies_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMethodPoliciesIsMutable();
methodPolicies_.addAll(other.methodPolicies_);
@@ -537,7 +588,7 @@ public Builder mergeFrom(com.google.api.Control other) {
methodPoliciesBuilder_.dispose();
methodPoliciesBuilder_ = null;
methodPolicies_ = other.methodPolicies_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
methodPoliciesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getMethodPoliciesFieldBuilder()
@@ -547,7 +598,7 @@ public Builder mergeFrom(com.google.api.Control other) {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -562,49 +613,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Control parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- environment_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 34:
- {
- com.google.api.MethodPolicy m =
- input.readMessage(com.google.api.MethodPolicy.parser(), extensionRegistry);
- if (methodPoliciesBuilder_ == null) {
- ensureMethodPoliciesIsMutable();
- methodPolicies_.add(m);
- } else {
- methodPoliciesBuilder_.addMessage(m);
- }
- break;
- } // case 34
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Control) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -680,8 +699,8 @@ public Builder setEnvironment(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
environment_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -700,8 +719,8 @@ public Builder setEnvironment(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearEnvironment() {
+
environment_ = getDefaultInstance().getEnvironment();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -725,8 +744,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
environment_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -735,9 +754,9 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) {
java.util.Collections.emptyList();
private void ensureMethodPoliciesIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
methodPolicies_ = new java.util.ArrayList(methodPolicies_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000001;
}
}
@@ -962,7 +981,7 @@ public Builder addAllMethodPolicies(
public Builder clearMethodPolicies() {
if (methodPoliciesBuilder_ == null) {
methodPolicies_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
methodPoliciesBuilder_.clear();
@@ -1091,7 +1110,7 @@ public java.util.List getMethodPoliciesBuil
com.google.api.MethodPolicy.Builder,
com.google.api.MethodPolicyOrBuilder>(
methodPolicies_,
- ((bitField0_ & 0x00000002) != 0),
+ ((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
methodPolicies_ = null;
@@ -1131,18 +1150,7 @@ public Control parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Control(input, extensionRegistry);
}
};
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 8892f7d02a..c594e61346 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
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/control.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface ControlOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlProto.java
index 27bcede2fa..15affbd116 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/control.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class ControlProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java
index f8448147cd..ccd8b95863 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -47,6 +46,66 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CppSettings();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private CppSettings(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.api.CommonLanguageSettings.Builder subBuilder = null;
+ if (common_ != null) {
+ subBuilder = common_.toBuilder();
+ }
+ common_ =
+ input.readMessage(
+ com.google.api.CommonLanguageSettings.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(common_);
+ common_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_CppSettings_descriptor;
}
@@ -59,7 +118,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.api.CppSettings.class, com.google.api.CppSettings.Builder.class);
}
- private int bitField0_;
public static final int COMMON_FIELD_NUMBER = 1;
private com.google.api.CommonLanguageSettings common_;
@@ -76,7 +134,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
+ return common_ != null;
}
/**
@@ -106,7 +164,7 @@ public com.google.api.CommonLanguageSettings getCommon() {
*/
@java.lang.Override
public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() {
- return common_ == null ? com.google.api.CommonLanguageSettings.getDefaultInstance() : common_;
+ return getCommon();
}
private byte memoizedIsInitialized = -1;
@@ -123,10 +181,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (common_ != null) {
output.writeMessage(1, getCommon());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -135,10 +193,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (common_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -157,7 +215,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasCommon()) {
if (!getCommon().equals(other.getCommon())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -172,7 +230,7 @@ public int hashCode() {
hash = (37 * hash) + COMMON_FIELD_NUMBER;
hash = (53 * hash) + getCommon().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -308,18 +366,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getCommonFieldBuilder();
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- common_ = null;
- if (commonBuilder_ != null) {
- commonBuilder_.dispose();
+ if (commonBuilder_ == null) {
+ common_ = null;
+ } else {
+ common_ = null;
commonBuilder_ = null;
}
return this;
@@ -347,23 +403,15 @@ public com.google.api.CppSettings build() {
@java.lang.Override
public com.google.api.CppSettings buildPartial() {
com.google.api.CppSettings result = new com.google.api.CppSettings(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ if (commonBuilder_ == null) {
+ result.common_ = common_;
+ } else {
+ result.common_ = commonBuilder_.build();
}
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.CppSettings result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -412,7 +460,7 @@ public Builder mergeFrom(com.google.api.CppSettings other) {
if (other.hasCommon()) {
mergeCommon(other.getCommon());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -427,42 +475,20 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.CppSettings parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- input.readMessage(getCommonFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.CppSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private com.google.api.CommonLanguageSettings common_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.api.CommonLanguageSettings,
@@ -482,7 +508,7 @@ public Builder mergeFrom(
* @return Whether the common field is set.
*/
public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
+ return commonBuilder_ != null || common_ != null;
}
/**
@@ -521,11 +547,11 @@ public Builder setCommon(com.google.api.CommonLanguageSettings value) {
throw new NullPointerException();
}
common_ = value;
+ onChanged();
} else {
commonBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -541,11 +567,11 @@ public Builder setCommon(com.google.api.CommonLanguageSettings value) {
public Builder setCommon(com.google.api.CommonLanguageSettings.Builder builderForValue) {
if (commonBuilder_ == null) {
common_ = builderForValue.build();
+ onChanged();
} else {
commonBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -560,20 +586,19 @@ public Builder setCommon(com.google.api.CommonLanguageSettings.Builder builderFo
*/
public Builder mergeCommon(com.google.api.CommonLanguageSettings value) {
if (commonBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)
- && common_ != null
- && common_ != com.google.api.CommonLanguageSettings.getDefaultInstance()) {
- getCommonBuilder().mergeFrom(value);
+ if (common_ != null) {
+ common_ =
+ com.google.api.CommonLanguageSettings.newBuilder(common_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
common_ = value;
}
+ onChanged();
} else {
commonBuilder_.mergeFrom(value);
}
- if (common_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
@@ -587,13 +612,14 @@ public Builder mergeCommon(com.google.api.CommonLanguageSettings value) {
* .google.api.CommonLanguageSettings common = 1;
*/
public Builder clearCommon() {
- bitField0_ = (bitField0_ & ~0x00000001);
- common_ = null;
- if (commonBuilder_ != null) {
- commonBuilder_.dispose();
+ if (commonBuilder_ == null) {
+ common_ = null;
+ onChanged();
+ } else {
+ common_ = null;
commonBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -607,7 +633,7 @@ public Builder clearCommon() {
* .google.api.CommonLanguageSettings common = 1;
*/
public com.google.api.CommonLanguageSettings.Builder getCommonBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getCommonFieldBuilder().getBuilder();
}
@@ -689,18 +715,7 @@ public CppSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new CppSettings(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettingsOrBuilder.java
index d8e25ce915..0966b7093f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettingsOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettingsOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface CppSettingsOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java
index 1b08a0781e..9bc7294a51 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/http.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -50,6 +49,64 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CustomHttpPattern();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private CustomHttpPattern(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ kind_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ path_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_descriptor;
}
@@ -63,9 +120,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int KIND_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object kind_ = "";
+ private volatile java.lang.Object kind_;
/**
*
@@ -116,9 +171,7 @@ public com.google.protobuf.ByteString getKindBytes() {
}
public static final int PATH_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object path_ = "";
+ private volatile java.lang.Object path_;
/**
*
@@ -188,7 +241,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -203,7 +256,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -220,7 +273,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getKind().equals(other.getKind())) return false;
if (!getPath().equals(other.getPath())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -235,7 +288,7 @@ public int hashCode() {
hash = (53 * hash) + getKind().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -363,18 +416,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.CustomHttpPattern.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
kind_ = "";
+
path_ = "";
+
return this;
}
@@ -400,23 +461,12 @@ public com.google.api.CustomHttpPattern build() {
@java.lang.Override
public com.google.api.CustomHttpPattern buildPartial() {
com.google.api.CustomHttpPattern result = new com.google.api.CustomHttpPattern(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
+ result.kind_ = kind_;
+ result.path_ = path_;
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.CustomHttpPattern result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.kind_ = kind_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.path_ = path_;
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -464,15 +514,13 @@ public Builder mergeFrom(com.google.api.CustomHttpPattern other) {
if (other == com.google.api.CustomHttpPattern.getDefaultInstance()) return this;
if (!other.getKind().isEmpty()) {
kind_ = other.kind_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
- bitField0_ |= 0x00000002;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -487,48 +535,20 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.CustomHttpPattern parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- kind_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- path_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.CustomHttpPattern) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private java.lang.Object kind_ = "";
/**
@@ -593,8 +613,8 @@ public Builder setKind(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
kind_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -611,8 +631,8 @@ public Builder setKind(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearKind() {
+
kind_ = getDefaultInstance().getKind();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -634,8 +654,8 @@ public Builder setKindBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
kind_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -704,8 +724,8 @@ public Builder setPath(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
path_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -722,8 +742,8 @@ public Builder setPath(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPath() {
+
path_ = getDefaultInstance().getPath();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -745,8 +765,8 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
path_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -783,18 +803,7 @@ public CustomHttpPattern parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new CustomHttpPattern(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPatternOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPatternOrBuilder.java
index ec8f1a6125..534a1e0c2d 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPatternOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPatternOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/http.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface CustomHttpPatternOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java
index 35906c0c7b..ae762a1d95 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/distribution.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -26,14 +25,12 @@
* `Distribution` contains summary statistics for a population of values. It
* optionally contains a histogram representing the distribution of those values
* across a set of buckets.
- *
* The summary statistics are the count, mean, sum of the squared deviation from
* the mean, the minimum, and the maximum of the set of population of values.
* The histogram is based on a sequence of buckets and gives a count of values
* that fall into each bucket. The boundaries of the buckets are given either
* explicitly or by formulas for buckets of fixed or exponentially increasing
* widths.
- *
* Although it is not forbidden, it is generally a bad idea to include
* non-finite values (infinities or NaNs) in the population of values, as this
* will render the `mean` and `sum_of_squared_deviation` fields meaningless.
@@ -63,6 +60,137 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Distribution();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Distribution(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ count_ = input.readInt64();
+ break;
+ }
+ case 17:
+ {
+ mean_ = input.readDouble();
+ break;
+ }
+ case 25:
+ {
+ sumOfSquaredDeviation_ = input.readDouble();
+ break;
+ }
+ case 34:
+ {
+ com.google.api.Distribution.Range.Builder subBuilder = null;
+ if (range_ != null) {
+ subBuilder = range_.toBuilder();
+ }
+ range_ =
+ input.readMessage(com.google.api.Distribution.Range.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(range_);
+ range_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 50:
+ {
+ com.google.api.Distribution.BucketOptions.Builder subBuilder = null;
+ if (bucketOptions_ != null) {
+ subBuilder = bucketOptions_.toBuilder();
+ }
+ bucketOptions_ =
+ input.readMessage(
+ com.google.api.Distribution.BucketOptions.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(bucketOptions_);
+ bucketOptions_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 56:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ bucketCounts_ = newLongList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ bucketCounts_.addLong(input.readInt64());
+ break;
+ }
+ case 58:
+ {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+ bucketCounts_ = newLongList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ bucketCounts_.addLong(input.readInt64());
+ }
+ input.popLimit(limit);
+ break;
+ }
+ case 82:
+ {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ exemplars_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ exemplars_.add(
+ input.readMessage(
+ com.google.api.Distribution.Exemplar.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ bucketCounts_.makeImmutable(); // C
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ exemplars_ = java.util.Collections.unmodifiableList(exemplars_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DistributionProto.internal_static_google_api_Distribution_descriptor;
}
@@ -136,6 +264,60 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Range();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Range(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 9:
+ {
+ min_ = input.readDouble();
+ break;
+ }
+ case 17:
+ {
+ max_ = input.readDouble();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DistributionProto
.internal_static_google_api_Distribution_Range_descriptor;
@@ -152,7 +334,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int MIN_FIELD_NUMBER = 1;
- private double min_ = 0D;
+ private double min_;
/**
*
@@ -171,7 +353,7 @@ public double getMin() {
}
public static final int MAX_FIELD_NUMBER = 2;
- private double max_ = 0D;
+ private double max_;
/**
*
@@ -209,7 +391,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (java.lang.Double.doubleToRawLongBits(max_) != 0) {
output.writeDouble(2, max_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -224,7 +406,7 @@ public int getSerializedSize() {
if (java.lang.Double.doubleToRawLongBits(max_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, max_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -243,7 +425,7 @@ public boolean equals(final java.lang.Object obj) {
!= java.lang.Double.doubleToLongBits(other.getMin())) return false;
if (java.lang.Double.doubleToLongBits(getMax())
!= java.lang.Double.doubleToLongBits(other.getMax())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -262,7 +444,7 @@ public int hashCode() {
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMax()));
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -393,18 +575,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Distribution.Range.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
min_ = 0D;
+
max_ = 0D;
+
return this;
}
@@ -431,23 +621,12 @@ public com.google.api.Distribution.Range build() {
@java.lang.Override
public com.google.api.Distribution.Range buildPartial() {
com.google.api.Distribution.Range result = new com.google.api.Distribution.Range(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
+ result.min_ = min_;
+ result.max_ = max_;
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.Distribution.Range result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.min_ = min_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.max_ = max_;
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -501,7 +680,7 @@ public Builder mergeFrom(com.google.api.Distribution.Range other) {
if (other.getMax() != 0D) {
setMax(other.getMax());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -516,48 +695,20 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Distribution.Range parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 9:
- {
- min_ = input.readDouble();
- bitField0_ |= 0x00000001;
- break;
- } // case 9
- case 17:
- {
- max_ = input.readDouble();
- bitField0_ |= 0x00000002;
- break;
- } // case 17
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Distribution.Range) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private double min_;
/**
@@ -591,7 +742,6 @@ public double getMin() {
public Builder setMin(double value) {
min_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -608,7 +758,7 @@ public Builder setMin(double value) {
* @return This builder for chaining.
*/
public Builder clearMin() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
min_ = 0D;
onChanged();
return this;
@@ -647,7 +797,6 @@ public double getMax() {
public Builder setMax(double value) {
max_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -664,7 +813,7 @@ public Builder setMax(double value) {
* @return This builder for chaining.
*/
public Builder clearMax() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
max_ = 0D;
onChanged();
return this;
@@ -703,19 +852,7 @@ public Range parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException()
- .setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Range(input, extensionRegistry);
}
};
@@ -850,7 +987,7 @@ public interface BucketOptionsOrBuilder
*/
com.google.api.Distribution.BucketOptions.ExplicitOrBuilder getExplicitBucketsOrBuilder();
- com.google.api.Distribution.BucketOptions.OptionsCase getOptionsCase();
+ public com.google.api.Distribution.BucketOptions.OptionsCase getOptionsCase();
}
/**
@@ -861,7 +998,6 @@ public interface BucketOptionsOrBuilder
* for the distribution. The buckets can be in a linear sequence, an
* exponential sequence, or each bucket can be specified explicitly.
* `BucketOptions` does not include the number of values in each bucket.
- *
* A bucket has an inclusive lower bound and exclusive upper bound for the
* values that are counted for that bucket. The upper bound of a bucket must
* be strictly greater than the lower bound. The sequence of N buckets for a
@@ -895,6 +1031,107 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new BucketOptions();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private BucketOptions(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.api.Distribution.BucketOptions.Linear.Builder subBuilder = null;
+ if (optionsCase_ == 1) {
+ subBuilder =
+ ((com.google.api.Distribution.BucketOptions.Linear) options_).toBuilder();
+ }
+ options_ =
+ input.readMessage(
+ com.google.api.Distribution.BucketOptions.Linear.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.google.api.Distribution.BucketOptions.Linear) options_);
+ options_ = subBuilder.buildPartial();
+ }
+ optionsCase_ = 1;
+ break;
+ }
+ case 18:
+ {
+ com.google.api.Distribution.BucketOptions.Exponential.Builder subBuilder = null;
+ if (optionsCase_ == 2) {
+ subBuilder =
+ ((com.google.api.Distribution.BucketOptions.Exponential) options_)
+ .toBuilder();
+ }
+ options_ =
+ input.readMessage(
+ com.google.api.Distribution.BucketOptions.Exponential.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.api.Distribution.BucketOptions.Exponential) options_);
+ options_ = subBuilder.buildPartial();
+ }
+ optionsCase_ = 2;
+ break;
+ }
+ case 26:
+ {
+ com.google.api.Distribution.BucketOptions.Explicit.Builder subBuilder = null;
+ if (optionsCase_ == 3) {
+ subBuilder =
+ ((com.google.api.Distribution.BucketOptions.Explicit) options_).toBuilder();
+ }
+ options_ =
+ input.readMessage(
+ com.google.api.Distribution.BucketOptions.Explicit.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.api.Distribution.BucketOptions.Explicit) options_);
+ options_ = subBuilder.buildPartial();
+ }
+ optionsCase_ = 3;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_descriptor;
@@ -962,12 +1199,9 @@ public interface LinearOrBuilder
* Specifies a linear sequence of buckets that all have the same width
* (except overflow and underflow). Each bucket represents a constant
* absolute uncertainty on the specific value in the bucket.
- *
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
* following boundaries:
- *
* Upper bound (0 <= i < N-1): offset + (width * i).
- *
* Lower bound (1 <= i < N): offset + (width * (i - 1)).
*
*
@@ -992,6 +1226,66 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Linear();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Linear(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ numFiniteBuckets_ = input.readInt32();
+ break;
+ }
+ case 17:
+ {
+ width_ = input.readDouble();
+ break;
+ }
+ case 25:
+ {
+ offset_ = input.readDouble();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Linear_descriptor;
@@ -1008,7 +1302,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NUM_FINITE_BUCKETS_FIELD_NUMBER = 1;
- private int numFiniteBuckets_ = 0;
+ private int numFiniteBuckets_;
/**
*
@@ -1027,7 +1321,7 @@ public int getNumFiniteBuckets() {
}
public static final int WIDTH_FIELD_NUMBER = 2;
- private double width_ = 0D;
+ private double width_;
/**
*
@@ -1046,7 +1340,7 @@ public double getWidth() {
}
public static final int OFFSET_FIELD_NUMBER = 3;
- private double offset_ = 0D;
+ private double offset_;
/**
*
@@ -1087,7 +1381,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (java.lang.Double.doubleToRawLongBits(offset_) != 0) {
output.writeDouble(3, offset_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -1105,7 +1399,7 @@ public int getSerializedSize() {
if (java.lang.Double.doubleToRawLongBits(offset_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, offset_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -1126,7 +1420,7 @@ public boolean equals(final java.lang.Object obj) {
!= java.lang.Double.doubleToLongBits(other.getWidth())) return false;
if (java.lang.Double.doubleToLongBits(getOffset())
!= java.lang.Double.doubleToLongBits(other.getOffset())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -1149,7 +1443,7 @@ public int hashCode() {
(53 * hash)
+ com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getOffset()));
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -1258,12 +1552,9 @@ protected Builder newBuilderForType(
* Specifies a linear sequence of buckets that all have the same width
* (except overflow and underflow). Each bucket represents a constant
* absolute uncertainty on the specific value in the bucket.
- *
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
* following boundaries:
- *
* Upper bound (0 <= i < N-1): offset + (width * i).
- *
* Lower bound (1 <= i < N): offset + (width * (i - 1)).
*
*
@@ -1290,19 +1581,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Distribution.BucketOptions.Linear.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
numFiniteBuckets_ = 0;
+
width_ = 0D;
+
offset_ = 0D;
+
return this;
}
@@ -1330,26 +1630,13 @@ public com.google.api.Distribution.BucketOptions.Linear build() {
public com.google.api.Distribution.BucketOptions.Linear buildPartial() {
com.google.api.Distribution.BucketOptions.Linear result =
new com.google.api.Distribution.BucketOptions.Linear(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
+ result.numFiniteBuckets_ = numFiniteBuckets_;
+ result.width_ = width_;
+ result.offset_ = offset_;
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.Distribution.BucketOptions.Linear result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.numFiniteBuckets_ = numFiniteBuckets_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.width_ = width_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.offset_ = offset_;
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -1407,7 +1694,7 @@ public Builder mergeFrom(com.google.api.Distribution.BucketOptions.Linear other)
if (other.getOffset() != 0D) {
setOffset(other.getOffset());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -1422,54 +1709,21 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Distribution.BucketOptions.Linear parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8:
- {
- numFiniteBuckets_ = input.readInt32();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 17:
- {
- width_ = input.readDouble();
- bitField0_ |= 0x00000002;
- break;
- } // case 17
- case 25:
- {
- offset_ = input.readDouble();
- bitField0_ |= 0x00000004;
- break;
- } // case 25
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.api.Distribution.BucketOptions.Linear) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private int numFiniteBuckets_;
/**
@@ -1503,7 +1757,6 @@ public int getNumFiniteBuckets() {
public Builder setNumFiniteBuckets(int value) {
numFiniteBuckets_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1520,7 +1773,7 @@ public Builder setNumFiniteBuckets(int value) {
* @return This builder for chaining.
*/
public Builder clearNumFiniteBuckets() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
numFiniteBuckets_ = 0;
onChanged();
return this;
@@ -1559,7 +1812,6 @@ public double getWidth() {
public Builder setWidth(double value) {
width_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1576,7 +1828,7 @@ public Builder setWidth(double value) {
* @return This builder for chaining.
*/
public Builder clearWidth() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
width_ = 0D;
onChanged();
return this;
@@ -1615,7 +1867,6 @@ public double getOffset() {
public Builder setOffset(double value) {
offset_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1632,7 +1883,7 @@ public Builder setOffset(double value) {
* @return This builder for chaining.
*/
public Builder clearOffset() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
offset_ = 0D;
onChanged();
return this;
@@ -1671,19 +1922,7 @@ public Linear parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException()
- .setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Linear(input, extensionRegistry);
}
};
@@ -1754,12 +1993,9 @@ public interface ExponentialOrBuilder
* Specifies an exponential sequence of buckets that have a width that is
* proportional to the value of the lower bound. Each bucket represents a
* constant relative uncertainty on a specific value in the bucket.
- *
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
* following boundaries:
- *
* Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
- *
* Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
*
*
@@ -1784,6 +2020,66 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Exponential();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Exponential(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ numFiniteBuckets_ = input.readInt32();
+ break;
+ }
+ case 17:
+ {
+ growthFactor_ = input.readDouble();
+ break;
+ }
+ case 25:
+ {
+ scale_ = input.readDouble();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor;
@@ -1800,7 +2096,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NUM_FINITE_BUCKETS_FIELD_NUMBER = 1;
- private int numFiniteBuckets_ = 0;
+ private int numFiniteBuckets_;
/**
*
@@ -1819,7 +2115,7 @@ public int getNumFiniteBuckets() {
}
public static final int GROWTH_FACTOR_FIELD_NUMBER = 2;
- private double growthFactor_ = 0D;
+ private double growthFactor_;
/**
*
@@ -1838,7 +2134,7 @@ public double getGrowthFactor() {
}
public static final int SCALE_FIELD_NUMBER = 3;
- private double scale_ = 0D;
+ private double scale_;
/**
*
@@ -1879,7 +2175,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (java.lang.Double.doubleToRawLongBits(scale_) != 0) {
output.writeDouble(3, scale_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -1897,7 +2193,7 @@ public int getSerializedSize() {
if (java.lang.Double.doubleToRawLongBits(scale_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, scale_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -1918,7 +2214,7 @@ public boolean equals(final java.lang.Object obj) {
!= java.lang.Double.doubleToLongBits(other.getGrowthFactor())) return false;
if (java.lang.Double.doubleToLongBits(getScale())
!= java.lang.Double.doubleToLongBits(other.getScale())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -1941,7 +2237,7 @@ public int hashCode() {
(53 * hash)
+ com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getScale()));
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -2051,12 +2347,9 @@ protected Builder newBuilderForType(
* Specifies an exponential sequence of buckets that have a width that is
* proportional to the value of the lower bound. Each bucket represents a
* constant relative uncertainty on a specific value in the bucket.
- *
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
* following boundaries:
- *
* Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
- *
* Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
*
*
@@ -2083,19 +2376,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Distribution.BucketOptions.Exponential.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
numFiniteBuckets_ = 0;
+
growthFactor_ = 0D;
+
scale_ = 0D;
+
return this;
}
@@ -2123,26 +2425,13 @@ public com.google.api.Distribution.BucketOptions.Exponential build() {
public com.google.api.Distribution.BucketOptions.Exponential buildPartial() {
com.google.api.Distribution.BucketOptions.Exponential result =
new com.google.api.Distribution.BucketOptions.Exponential(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
+ result.numFiniteBuckets_ = numFiniteBuckets_;
+ result.growthFactor_ = growthFactor_;
+ result.scale_ = scale_;
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.Distribution.BucketOptions.Exponential result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.numFiniteBuckets_ = numFiniteBuckets_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.growthFactor_ = growthFactor_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.scale_ = scale_;
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -2200,7 +2489,7 @@ public Builder mergeFrom(com.google.api.Distribution.BucketOptions.Exponential o
if (other.getScale() != 0D) {
setScale(other.getScale());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -2215,54 +2504,21 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Distribution.BucketOptions.Exponential parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8:
- {
- numFiniteBuckets_ = input.readInt32();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 17:
- {
- growthFactor_ = input.readDouble();
- bitField0_ |= 0x00000002;
- break;
- } // case 17
- case 25:
- {
- scale_ = input.readDouble();
- bitField0_ |= 0x00000004;
- break;
- } // case 25
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.api.Distribution.BucketOptions.Exponential) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private int numFiniteBuckets_;
/**
@@ -2296,7 +2552,6 @@ public int getNumFiniteBuckets() {
public Builder setNumFiniteBuckets(int value) {
numFiniteBuckets_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -2313,7 +2568,7 @@ public Builder setNumFiniteBuckets(int value) {
* @return This builder for chaining.
*/
public Builder clearNumFiniteBuckets() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
numFiniteBuckets_ = 0;
onChanged();
return this;
@@ -2352,7 +2607,6 @@ public double getGrowthFactor() {
public Builder setGrowthFactor(double value) {
growthFactor_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -2369,7 +2623,7 @@ public Builder setGrowthFactor(double value) {
* @return This builder for chaining.
*/
public Builder clearGrowthFactor() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
growthFactor_ = 0D;
onChanged();
return this;
@@ -2408,7 +2662,6 @@ public double getScale() {
public Builder setScale(double value) {
scale_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -2425,7 +2678,7 @@ public Builder setScale(double value) {
* @return This builder for chaining.
*/
public Builder clearScale() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
scale_ = 0D;
onChanged();
return this;
@@ -2464,19 +2717,7 @@ public Exponential parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException()
- .setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Exponential(input, extensionRegistry);
}
};
@@ -2546,13 +2787,10 @@ public interface ExplicitOrBuilder
*
*
* Specifies a set of buckets with arbitrary widths.
- *
* There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
* boundaries:
- *
* Upper bound (0 <= i < N-1): bounds[i]
* Lower bound (1 <= i < N); bounds[i - 1]
- *
* The `bounds` field must contain at least one element. If `bounds` has
* only one element, then there are no finite buckets, and that single
* element is the common boundary of the overflow and underflow buckets.
@@ -2581,6 +2819,78 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Explicit();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Explicit(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 9:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ bounds_ = newDoubleList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ bounds_.addDouble(input.readDouble());
+ break;
+ }
+ case 10:
+ {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+ bounds_ = newDoubleList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ bounds_.addDouble(input.readDouble());
+ }
+ input.popLimit(limit);
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ bounds_.makeImmutable(); // C
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor;
@@ -2597,9 +2907,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int BOUNDS_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.DoubleList bounds_ = emptyDoubleList();
+ private com.google.protobuf.Internal.DoubleList bounds_;
/**
*
@@ -2672,7 +2980,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < bounds_.size(); i++) {
output.writeDoubleNoTag(bounds_.getDouble(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -2691,7 +2999,7 @@ public int getSerializedSize() {
}
boundsMemoizedSerializedSize = dataSize;
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -2708,7 +3016,7 @@ public boolean equals(final java.lang.Object obj) {
(com.google.api.Distribution.BucketOptions.Explicit) obj;
if (!getBoundsList().equals(other.getBoundsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -2723,7 +3031,7 @@ public int hashCode() {
hash = (37 * hash) + BOUNDS_FIELD_NUMBER;
hash = (53 * hash) + getBoundsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -2831,13 +3139,10 @@ protected Builder newBuilderForType(
*
*
* Specifies a set of buckets with arbitrary widths.
- *
* There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
* boundaries:
- *
* Upper bound (0 <= i < N-1): bounds[i]
* Lower bound (1 <= i < N); bounds[i - 1]
- *
* The `bounds` field must contain at least one element. If `bounds` has
* only one element, then there are no finite buckets, and that single
* element is the common boundary of the overflow and underflow buckets.
@@ -2866,17 +3171,24 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Distribution.BucketOptions.Explicit.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
bounds_ = emptyDoubleList();
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -2904,19 +3216,14 @@ public com.google.api.Distribution.BucketOptions.Explicit build() {
public com.google.api.Distribution.BucketOptions.Explicit buildPartial() {
com.google.api.Distribution.BucketOptions.Explicit result =
new com.google.api.Distribution.BucketOptions.Explicit(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(com.google.api.Distribution.BucketOptions.Explicit result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
bounds_.makeImmutable();
- result.bounds_ = bounds_;
+ bitField0_ = (bitField0_ & ~0x00000001);
}
+ result.bounds_ = bounds_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -2970,15 +3277,14 @@ public Builder mergeFrom(com.google.api.Distribution.BucketOptions.Explicit othe
if (!other.bounds_.isEmpty()) {
if (bounds_.isEmpty()) {
bounds_ = other.bounds_;
- bounds_.makeImmutable();
- bitField0_ |= 0x00000001;
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBoundsIsMutable();
bounds_.addAll(other.bounds_);
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -2993,50 +3299,18 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Distribution.BucketOptions.Explicit parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 9:
- {
- double v = input.readDouble();
- ensureBoundsIsMutable();
- bounds_.addDouble(v);
- break;
- } // case 9
- case 10:
- {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- int alloc = length > 4096 ? 4096 : length;
- ensureBoundsIsMutable(alloc / 8);
- while (input.getBytesUntilLimit() > 0) {
- bounds_.addDouble(input.readDouble());
- }
- input.popLimit(limit);
- break;
- } // case 10
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.api.Distribution.BucketOptions.Explicit) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -3045,17 +3319,10 @@ public Builder mergeFrom(
private com.google.protobuf.Internal.DoubleList bounds_ = emptyDoubleList();
private void ensureBoundsIsMutable() {
- if (!bounds_.isModifiable()) {
- bounds_ = makeMutableCopy(bounds_);
- }
- bitField0_ |= 0x00000001;
- }
-
- private void ensureBoundsIsMutable(int capacity) {
- if (!bounds_.isModifiable()) {
- bounds_ = makeMutableCopy(bounds_, capacity);
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ bounds_ = mutableCopy(bounds_);
+ bitField0_ |= 0x00000001;
}
- bitField0_ |= 0x00000001;
}
/**
@@ -3070,8 +3337,9 @@ private void ensureBoundsIsMutable(int capacity) {
* @return A list containing the bounds.
*/
public java.util.List getBoundsList() {
- bounds_.makeImmutable();
- return bounds_;
+ return ((bitField0_ & 0x00000001) != 0)
+ ? java.util.Collections.unmodifiableList(bounds_)
+ : bounds_;
}
/**
@@ -3119,10 +3387,8 @@ public double getBounds(int index) {
* @return This builder for chaining.
*/
public Builder setBounds(int index, double value) {
-
ensureBoundsIsMutable();
bounds_.setDouble(index, value);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3140,10 +3406,8 @@ public Builder setBounds(int index, double value) {
* @return This builder for chaining.
*/
public Builder addBounds(double value) {
-
ensureBoundsIsMutable();
bounds_.addDouble(value);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3163,7 +3427,6 @@ public Builder addBounds(double value) {
public Builder addAllBounds(java.lang.Iterable extends java.lang.Double> values) {
ensureBoundsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bounds_);
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3219,19 +3482,7 @@ public Explicit parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException()
- .setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Explicit(input, extensionRegistry);
}
};
@@ -3251,8 +3502,6 @@ public com.google.api.Distribution.BucketOptions.Explicit getDefaultInstanceForT
}
private int optionsCase_ = 0;
-
- @SuppressWarnings("serial")
private java.lang.Object options_;
public enum OptionsCase
@@ -3490,7 +3739,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (optionsCase_ == 3) {
output.writeMessage(3, (com.google.api.Distribution.BucketOptions.Explicit) options_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -3514,7 +3763,7 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, (com.google.api.Distribution.BucketOptions.Explicit) options_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -3544,7 +3793,7 @@ public boolean equals(final java.lang.Object obj) {
case 0:
default:
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -3571,7 +3820,7 @@ public int hashCode() {
case 0:
default:
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -3681,7 +3930,6 @@ protected Builder newBuilderForType(
* for the distribution. The buckets can be in a linear sequence, an
* exponential sequence, or each bucket can be specified explicitly.
* `BucketOptions` does not include the number of values in each bucket.
- *
* A bucket has an inclusive lower bound and exclusive upper bound for the
* values that are counted for that bucket. The upper bound of a bucket must
* be strictly greater than the lower bound. The sequence of N buckets for a
@@ -3717,25 +3965,22 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Distribution.BucketOptions.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- if (linearBucketsBuilder_ != null) {
- linearBucketsBuilder_.clear();
- }
- if (exponentialBucketsBuilder_ != null) {
- exponentialBucketsBuilder_.clear();
- }
- if (explicitBucketsBuilder_ != null) {
- explicitBucketsBuilder_.clear();
- }
optionsCase_ = 0;
options_ = null;
return this;
@@ -3765,30 +4010,30 @@ public com.google.api.Distribution.BucketOptions build() {
public com.google.api.Distribution.BucketOptions buildPartial() {
com.google.api.Distribution.BucketOptions result =
new com.google.api.Distribution.BucketOptions(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- buildPartialOneofs(result);
- onBuilt();
- return result;
- }
-
- private void buildPartial0(com.google.api.Distribution.BucketOptions result) {
- int from_bitField0_ = bitField0_;
- }
-
- private void buildPartialOneofs(com.google.api.Distribution.BucketOptions result) {
- result.optionsCase_ = optionsCase_;
- result.options_ = this.options_;
- if (optionsCase_ == 1 && linearBucketsBuilder_ != null) {
- result.options_ = linearBucketsBuilder_.build();
+ if (optionsCase_ == 1) {
+ if (linearBucketsBuilder_ == null) {
+ result.options_ = options_;
+ } else {
+ result.options_ = linearBucketsBuilder_.build();
+ }
}
- if (optionsCase_ == 2 && exponentialBucketsBuilder_ != null) {
- result.options_ = exponentialBucketsBuilder_.build();
+ if (optionsCase_ == 2) {
+ if (exponentialBucketsBuilder_ == null) {
+ result.options_ = options_;
+ } else {
+ result.options_ = exponentialBucketsBuilder_.build();
+ }
}
- if (optionsCase_ == 3 && explicitBucketsBuilder_ != null) {
- result.options_ = explicitBucketsBuilder_.build();
+ if (optionsCase_ == 3) {
+ if (explicitBucketsBuilder_ == null) {
+ result.options_ = options_;
+ } else {
+ result.options_ = explicitBucketsBuilder_.build();
+ }
}
+ result.optionsCase_ = optionsCase_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -3859,7 +4104,7 @@ public Builder mergeFrom(com.google.api.Distribution.BucketOptions other) {
break;
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -3874,51 +4119,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Distribution.BucketOptions parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- input.readMessage(getLinearBucketsFieldBuilder().getBuilder(), extensionRegistry);
- optionsCase_ = 1;
- break;
- } // case 10
- case 18:
- {
- input.readMessage(
- getExponentialBucketsFieldBuilder().getBuilder(), extensionRegistry);
- optionsCase_ = 2;
- break;
- } // case 18
- case 26:
- {
- input.readMessage(
- getExplicitBucketsFieldBuilder().getBuilder(), extensionRegistry);
- optionsCase_ = 3;
- break;
- } // case 26
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Distribution.BucketOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -3936,8 +4147,6 @@ public Builder clearOptions() {
return this;
}
- private int bitField0_;
-
private com.google.protobuf.SingleFieldBuilderV3<
com.google.api.Distribution.BucketOptions.Linear,
com.google.api.Distribution.BucketOptions.Linear.Builder,
@@ -4154,6 +4363,7 @@ public com.google.api.Distribution.BucketOptions.LinearOrBuilder getLinearBucket
}
optionsCase_ = 1;
onChanged();
+ ;
return linearBucketsBuilder_;
}
@@ -4377,6 +4587,7 @@ public Builder clearExponentialBuckets() {
}
optionsCase_ = 2;
onChanged();
+ ;
return exponentialBucketsBuilder_;
}
@@ -4599,6 +4810,7 @@ public Builder clearExplicitBuckets() {
}
optionsCase_ = 3;
onChanged();
+ ;
return explicitBucketsBuilder_;
}
@@ -4635,19 +4847,7 @@ public BucketOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException()
- .setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new BucketOptions(input, extensionRegistry);
}
};
@@ -4727,14 +4927,10 @@ public interface ExemplarOrBuilder
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -4748,14 +4944,10 @@ public interface ExemplarOrBuilder
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -4769,14 +4961,10 @@ public interface ExemplarOrBuilder
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -4790,14 +4978,10 @@ public interface ExemplarOrBuilder
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -4811,14 +4995,10 @@ public interface ExemplarOrBuilder
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -4862,6 +5042,84 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Exemplar();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Exemplar(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 9:
+ {
+ value_ = input.readDouble();
+ break;
+ }
+ case 18:
+ {
+ com.google.protobuf.Timestamp.Builder subBuilder = null;
+ if (timestamp_ != null) {
+ subBuilder = timestamp_.toBuilder();
+ }
+ timestamp_ =
+ input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(timestamp_);
+ timestamp_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 26:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ attachments_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ attachments_.add(
+ input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ attachments_ = java.util.Collections.unmodifiableList(attachments_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DistributionProto
.internal_static_google_api_Distribution_Exemplar_descriptor;
@@ -4877,9 +5135,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.api.Distribution.Exemplar.Builder.class);
}
- private int bitField0_;
public static final int VALUE_FIELD_NUMBER = 1;
- private double value_ = 0D;
+ private double value_;
/**
*
@@ -4914,7 +5171,7 @@ public double getValue() {
*/
@java.lang.Override
public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) != 0);
+ return timestamp_ != null;
}
/**
@@ -4944,12 +5201,10 @@ public com.google.protobuf.Timestamp getTimestamp() {
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
- return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
+ return getTimestamp();
}
public static final int ATTACHMENTS_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
private java.util.List attachments_;
/**
@@ -4957,14 +5212,10 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -4981,14 +5232,10 @@ public java.util.List getAttachmentsList() {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5006,14 +5253,10 @@ public java.util.List getAttachmentsList() {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5030,14 +5273,10 @@ public int getAttachmentsCount() {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5054,14 +5293,10 @@ public com.google.protobuf.Any getAttachments(int index) {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5090,13 +5325,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (java.lang.Double.doubleToRawLongBits(value_) != 0) {
output.writeDouble(1, value_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (timestamp_ != null) {
output.writeMessage(2, getTimestamp());
}
for (int i = 0; i < attachments_.size(); i++) {
output.writeMessage(3, attachments_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -5108,13 +5343,13 @@ public int getSerializedSize() {
if (java.lang.Double.doubleToRawLongBits(value_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, value_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (timestamp_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimestamp());
}
for (int i = 0; i < attachments_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, attachments_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -5136,7 +5371,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getTimestamp().equals(other.getTimestamp())) return false;
}
if (!getAttachmentsList().equals(other.getAttachmentsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -5160,7 +5395,7 @@ public int hashCode() {
hash = (37 * hash) + ATTACHMENTS_FIELD_NUMBER;
hash = (53 * hash) + getAttachmentsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -5307,7 +5542,6 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getTimestampFieldBuilder();
getAttachmentsFieldBuilder();
}
}
@@ -5315,20 +5549,20 @@ private void maybeForceBuilderInitialization() {
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
value_ = 0D;
- timestamp_ = null;
- if (timestampBuilder_ != null) {
- timestampBuilder_.dispose();
+
+ if (timestampBuilder_ == null) {
+ timestamp_ = null;
+ } else {
+ timestamp_ = null;
timestampBuilder_ = null;
}
if (attachmentsBuilder_ == null) {
attachments_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- attachments_ = null;
attachmentsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@@ -5356,37 +5590,24 @@ public com.google.api.Distribution.Exemplar build() {
public com.google.api.Distribution.Exemplar buildPartial() {
com.google.api.Distribution.Exemplar result =
new com.google.api.Distribution.Exemplar(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ int from_bitField0_ = bitField0_;
+ result.value_ = value_;
+ if (timestampBuilder_ == null) {
+ result.timestamp_ = timestamp_;
+ } else {
+ result.timestamp_ = timestampBuilder_.build();
}
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.Distribution.Exemplar result) {
if (attachmentsBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
attachments_ = java.util.Collections.unmodifiableList(attachments_);
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.attachments_ = attachments_;
} else {
result.attachments_ = attachmentsBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.Distribution.Exemplar result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.value_ = value_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.timestamp_ = timestampBuilder_ == null ? timestamp_ : timestampBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -5446,7 +5667,7 @@ public Builder mergeFrom(com.google.api.Distribution.Exemplar other) {
if (!other.attachments_.isEmpty()) {
if (attachments_.isEmpty()) {
attachments_ = other.attachments_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAttachmentsIsMutable();
attachments_.addAll(other.attachments_);
@@ -5459,7 +5680,7 @@ public Builder mergeFrom(com.google.api.Distribution.Exemplar other) {
attachmentsBuilder_.dispose();
attachmentsBuilder_ = null;
attachments_ = other.attachments_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
attachmentsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getAttachmentsFieldBuilder()
@@ -5469,7 +5690,7 @@ public Builder mergeFrom(com.google.api.Distribution.Exemplar other) {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -5484,55 +5705,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Distribution.Exemplar parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 9:
- {
- value_ = input.readDouble();
- bitField0_ |= 0x00000001;
- break;
- } // case 9
- case 18:
- {
- input.readMessage(getTimestampFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26:
- {
- com.google.protobuf.Any m =
- input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
- if (attachmentsBuilder_ == null) {
- ensureAttachmentsIsMutable();
- attachments_.add(m);
- } else {
- attachmentsBuilder_.addMessage(m);
- }
- break;
- } // case 26
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Distribution.Exemplar) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -5573,7 +5756,6 @@ public double getValue() {
public Builder setValue(double value) {
value_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -5591,7 +5773,7 @@ public Builder setValue(double value) {
* @return This builder for chaining.
*/
public Builder clearValue() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
value_ = 0D;
onChanged();
return this;
@@ -5616,7 +5798,7 @@ public Builder clearValue() {
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000002) != 0);
+ return timestampBuilder_ != null || timestamp_ != null;
}
/**
@@ -5655,11 +5837,11 @@ public Builder setTimestamp(com.google.protobuf.Timestamp value) {
throw new NullPointerException();
}
timestamp_ = value;
+ onChanged();
} else {
timestampBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
@@ -5675,11 +5857,11 @@ public Builder setTimestamp(com.google.protobuf.Timestamp value) {
public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
+ onChanged();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
@@ -5694,20 +5876,19 @@ public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValu
*/
public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)
- && timestamp_ != null
- && timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
- getTimestampBuilder().mergeFrom(value);
+ if (timestamp_ != null) {
+ timestamp_ =
+ com.google.protobuf.Timestamp.newBuilder(timestamp_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
timestamp_ = value;
}
+ onChanged();
} else {
timestampBuilder_.mergeFrom(value);
}
- if (timestamp_ != null) {
- bitField0_ |= 0x00000002;
- onChanged();
- }
+
return this;
}
@@ -5721,13 +5902,14 @@ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
* .google.protobuf.Timestamp timestamp = 2;
*/
public Builder clearTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000002);
- timestamp_ = null;
- if (timestampBuilder_ != null) {
- timestampBuilder_.dispose();
+ if (timestampBuilder_ == null) {
+ timestamp_ = null;
+ onChanged();
+ } else {
+ timestamp_ = null;
timestampBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -5741,7 +5923,7 @@ public Builder clearTimestamp() {
* .google.protobuf.Timestamp timestamp = 2;
*/
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
- bitField0_ |= 0x00000002;
+
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
@@ -5795,9 +5977,9 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
java.util.Collections.emptyList();
private void ensureAttachmentsIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
attachments_ = new java.util.ArrayList(attachments_);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000001;
}
}
@@ -5812,14 +5994,10 @@ private void ensureAttachmentsIsMutable() {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5839,14 +6017,10 @@ public java.util.List getAttachmentsList() {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5866,14 +6040,10 @@ public int getAttachmentsCount() {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5893,14 +6063,10 @@ public com.google.protobuf.Any getAttachments(int index) {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5926,14 +6092,10 @@ public Builder setAttachments(int index, com.google.protobuf.Any value) {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5956,14 +6118,10 @@ public Builder setAttachments(int index, com.google.protobuf.Any.Builder builder
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5989,14 +6147,10 @@ public Builder addAttachments(com.google.protobuf.Any value) {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -6022,14 +6176,10 @@ public Builder addAttachments(int index, com.google.protobuf.Any value) {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -6052,14 +6202,10 @@ public Builder addAttachments(com.google.protobuf.Any.Builder builderForValue) {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -6082,14 +6228,10 @@ public Builder addAttachments(int index, com.google.protobuf.Any.Builder builder
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -6113,14 +6255,10 @@ public Builder addAllAttachments(
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -6130,7 +6268,7 @@ public Builder addAllAttachments(
public Builder clearAttachments() {
if (attachmentsBuilder_ == null) {
attachments_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
attachmentsBuilder_.clear();
@@ -6143,14 +6281,10 @@ public Builder clearAttachments() {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -6173,14 +6307,10 @@ public Builder removeAttachments(int index) {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -6196,14 +6326,10 @@ public com.google.protobuf.Any.Builder getAttachmentsBuilder(int index) {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -6223,14 +6349,10 @@ public com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(int index) {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -6251,14 +6373,10 @@ public com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(int index) {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -6275,14 +6393,10 @@ public com.google.protobuf.Any.Builder addAttachmentsBuilder() {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -6299,14 +6413,10 @@ public com.google.protobuf.Any.Builder addAttachmentsBuilder(int index) {
*
*
* Contextual information about the example value. Examples are:
- *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
- *
* Literal string: type.googleapis.com/google.protobuf.StringValue
- *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
- *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -6329,7 +6439,7 @@ public java.util.List getAttachmentsBuilderList
com.google.protobuf.Any.Builder,
com.google.protobuf.AnyOrBuilder>(
attachments_,
- ((bitField0_ & 0x00000004) != 0),
+ ((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
attachments_ = null;
@@ -6370,19 +6480,7 @@ public Exemplar parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException()
- .setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Exemplar(input, extensionRegistry);
}
};
@@ -6401,9 +6499,8 @@ public com.google.api.Distribution.Exemplar getDefaultInstanceForType() {
}
}
- private int bitField0_;
public static final int COUNT_FIELD_NUMBER = 1;
- private long count_ = 0L;
+ private long count_;
/**
*
@@ -6424,7 +6521,7 @@ public long getCount() {
}
public static final int MEAN_FIELD_NUMBER = 2;
- private double mean_ = 0D;
+ private double mean_;
/**
*
@@ -6444,7 +6541,7 @@ public double getMean() {
}
public static final int SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER = 3;
- private double sumOfSquaredDeviation_ = 0D;
+ private double sumOfSquaredDeviation_;
/**
*
@@ -6452,12 +6549,9 @@ public double getMean() {
*
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
- *
* Sum[i=1..n]((x_i - mean)^2)
- *
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
- *
* If `count` is zero then this field must be zero.
*
*
@@ -6487,7 +6581,7 @@ public double getSumOfSquaredDeviation() {
*/
@java.lang.Override
public boolean hasRange() {
- return ((bitField0_ & 0x00000001) != 0);
+ return range_ != null;
}
/**
@@ -6519,7 +6613,7 @@ public com.google.api.Distribution.Range getRange() {
*/
@java.lang.Override
public com.google.api.Distribution.RangeOrBuilder getRangeOrBuilder() {
- return range_ == null ? com.google.api.Distribution.Range.getDefaultInstance() : range_;
+ return getRange();
}
public static final int BUCKET_OPTIONS_FIELD_NUMBER = 6;
@@ -6539,7 +6633,7 @@ public com.google.api.Distribution.RangeOrBuilder getRangeOrBuilder() {
*/
@java.lang.Override
public boolean hasBucketOptions() {
- return ((bitField0_ & 0x00000002) != 0);
+ return bucketOptions_ != null;
}
/**
@@ -6573,15 +6667,11 @@ public com.google.api.Distribution.BucketOptions getBucketOptions() {
*/
@java.lang.Override
public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder() {
- return bucketOptions_ == null
- ? com.google.api.Distribution.BucketOptions.getDefaultInstance()
- : bucketOptions_;
+ return getBucketOptions();
}
public static final int BUCKET_COUNTS_FIELD_NUMBER = 7;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.LongList bucketCounts_ = emptyLongList();
+ private com.google.protobuf.Internal.LongList bucketCounts_;
/**
*
@@ -6592,11 +6682,9 @@ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuil
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
- *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
- *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -6622,11 +6710,9 @@ public java.util.List getBucketCountsList() {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
- *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
- *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -6651,11 +6737,9 @@ public int getBucketCountsCount() {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
- *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
- *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -6675,8 +6759,6 @@ public long getBucketCounts(int index) {
private int bucketCountsMemoizedSerializedSize = -1;
public static final int EXEMPLARS_FIELD_NUMBER = 10;
-
- @SuppressWarnings("serial")
private java.util.List exemplars_;
/**
@@ -6774,10 +6856,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (java.lang.Double.doubleToRawLongBits(sumOfSquaredDeviation_) != 0) {
output.writeDouble(3, sumOfSquaredDeviation_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (range_ != null) {
output.writeMessage(4, getRange());
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (bucketOptions_ != null) {
output.writeMessage(6, getBucketOptions());
}
if (getBucketCountsList().size() > 0) {
@@ -6790,7 +6872,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < exemplars_.size(); i++) {
output.writeMessage(10, exemplars_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -6808,10 +6890,10 @@ public int getSerializedSize() {
if (java.lang.Double.doubleToRawLongBits(sumOfSquaredDeviation_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, sumOfSquaredDeviation_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (range_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRange());
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (bucketOptions_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBucketOptions());
}
{
@@ -6830,7 +6912,7 @@ public int getSerializedSize() {
for (int i = 0; i < exemplars_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, exemplars_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -6860,7 +6942,7 @@ public boolean equals(final java.lang.Object obj) {
}
if (!getBucketCountsList().equals(other.getBucketCountsList())) return false;
if (!getExemplarsList().equals(other.getExemplarsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -6898,7 +6980,7 @@ public int hashCode() {
hash = (37 * hash) + EXEMPLARS_FIELD_NUMBER;
hash = (53 * hash) + getExemplarsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -7005,14 +7087,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* `Distribution` contains summary statistics for a population of values. It
* optionally contains a histogram representing the distribution of those values
* across a set of buckets.
- *
* The summary statistics are the count, mean, sum of the squared deviation from
* the mean, the minimum, and the maximum of the set of population of values.
* The histogram is based on a sequence of buckets and gives a count of values
* that fall into each bucket. The boundaries of the buckets are given either
* explicitly or by formulas for buckets of fixed or exponentially increasing
* widths.
- *
* Although it is not forbidden, it is generally a bad idea to include
* non-finite values (infinities or NaNs) in the population of values, as this
* will render the `mean` and `sum_of_squared_deviation` fields meaningless.
@@ -7049,8 +7129,6 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getRangeFieldBuilder();
- getBucketOptionsFieldBuilder();
getExemplarsFieldBuilder();
}
}
@@ -7058,28 +7136,32 @@ private void maybeForceBuilderInitialization() {
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
count_ = 0L;
+
mean_ = 0D;
+
sumOfSquaredDeviation_ = 0D;
- range_ = null;
- if (rangeBuilder_ != null) {
- rangeBuilder_.dispose();
+
+ if (rangeBuilder_ == null) {
+ range_ = null;
+ } else {
+ range_ = null;
rangeBuilder_ = null;
}
- bucketOptions_ = null;
- if (bucketOptionsBuilder_ != null) {
- bucketOptionsBuilder_.dispose();
+ if (bucketOptionsBuilder_ == null) {
+ bucketOptions_ = null;
+ } else {
+ bucketOptions_ = null;
bucketOptionsBuilder_ = null;
}
bucketCounts_ = emptyLongList();
+ bitField0_ = (bitField0_ & ~0x00000001);
if (exemplarsBuilder_ == null) {
exemplars_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
- exemplars_ = null;
exemplarsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
@@ -7105,52 +7187,36 @@ public com.google.api.Distribution build() {
@java.lang.Override
public com.google.api.Distribution buildPartial() {
com.google.api.Distribution result = new com.google.api.Distribution(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ int from_bitField0_ = bitField0_;
+ result.count_ = count_;
+ result.mean_ = mean_;
+ result.sumOfSquaredDeviation_ = sumOfSquaredDeviation_;
+ if (rangeBuilder_ == null) {
+ result.range_ = range_;
+ } else {
+ result.range_ = rangeBuilder_.build();
}
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.Distribution result) {
+ if (bucketOptionsBuilder_ == null) {
+ result.bucketOptions_ = bucketOptions_;
+ } else {
+ result.bucketOptions_ = bucketOptionsBuilder_.build();
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ bucketCounts_.makeImmutable();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.bucketCounts_ = bucketCounts_;
if (exemplarsBuilder_ == null) {
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
exemplars_ = java.util.Collections.unmodifiableList(exemplars_);
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000002);
}
result.exemplars_ = exemplars_;
} else {
result.exemplars_ = exemplarsBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.Distribution result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.count_ = count_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.mean_ = mean_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.sumOfSquaredDeviation_ = sumOfSquaredDeviation_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.range_ = rangeBuilder_ == null ? range_ : rangeBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.bucketOptions_ =
- bucketOptionsBuilder_ == null ? bucketOptions_ : bucketOptionsBuilder_.build();
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- bucketCounts_.makeImmutable();
- result.bucketCounts_ = bucketCounts_;
- }
- result.bitField0_ |= to_bitField0_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -7216,8 +7282,7 @@ public Builder mergeFrom(com.google.api.Distribution other) {
if (!other.bucketCounts_.isEmpty()) {
if (bucketCounts_.isEmpty()) {
bucketCounts_ = other.bucketCounts_;
- bucketCounts_.makeImmutable();
- bitField0_ |= 0x00000020;
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBucketCountsIsMutable();
bucketCounts_.addAll(other.bucketCounts_);
@@ -7228,7 +7293,7 @@ public Builder mergeFrom(com.google.api.Distribution other) {
if (!other.exemplars_.isEmpty()) {
if (exemplars_.isEmpty()) {
exemplars_ = other.exemplars_;
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureExemplarsIsMutable();
exemplars_.addAll(other.exemplars_);
@@ -7241,7 +7306,7 @@ public Builder mergeFrom(com.google.api.Distribution other) {
exemplarsBuilder_.dispose();
exemplarsBuilder_ = null;
exemplars_ = other.exemplars_;
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000002);
exemplarsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getExemplarsFieldBuilder()
@@ -7251,7 +7316,7 @@ public Builder mergeFrom(com.google.api.Distribution other) {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -7266,92 +7331,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Distribution parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8:
- {
- count_ = input.readInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 17:
- {
- mean_ = input.readDouble();
- bitField0_ |= 0x00000002;
- break;
- } // case 17
- case 25:
- {
- sumOfSquaredDeviation_ = input.readDouble();
- bitField0_ |= 0x00000004;
- break;
- } // case 25
- case 34:
- {
- input.readMessage(getRangeFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000008;
- break;
- } // case 34
- case 50:
- {
- input.readMessage(getBucketOptionsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000010;
- break;
- } // case 50
- case 56:
- {
- long v = input.readInt64();
- ensureBucketCountsIsMutable();
- bucketCounts_.addLong(v);
- break;
- } // case 56
- case 58:
- {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- ensureBucketCountsIsMutable();
- while (input.getBytesUntilLimit() > 0) {
- bucketCounts_.addLong(input.readInt64());
- }
- input.popLimit(limit);
- break;
- } // case 58
- case 82:
- {
- com.google.api.Distribution.Exemplar m =
- input.readMessage(
- com.google.api.Distribution.Exemplar.parser(), extensionRegistry);
- if (exemplarsBuilder_ == null) {
- ensureExemplarsIsMutable();
- exemplars_.add(m);
- } else {
- exemplarsBuilder_.addMessage(m);
- }
- break;
- } // case 82
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Distribution) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -7394,7 +7384,6 @@ public long getCount() {
public Builder setCount(long value) {
count_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -7413,7 +7402,7 @@ public Builder setCount(long value) {
* @return This builder for chaining.
*/
public Builder clearCount() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
count_ = 0L;
onChanged();
return this;
@@ -7454,7 +7443,6 @@ public double getMean() {
public Builder setMean(double value) {
mean_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -7472,7 +7460,7 @@ public Builder setMean(double value) {
* @return This builder for chaining.
*/
public Builder clearMean() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
mean_ = 0D;
onChanged();
return this;
@@ -7486,12 +7474,9 @@ public Builder clearMean() {
*
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
- *
* Sum[i=1..n]((x_i - mean)^2)
- *
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
- *
* If `count` is zero then this field must be zero.
*
*
@@ -7510,12 +7495,9 @@ public double getSumOfSquaredDeviation() {
*
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
- *
* Sum[i=1..n]((x_i - mean)^2)
- *
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
- *
* If `count` is zero then this field must be zero.
*
*
@@ -7527,7 +7509,6 @@ public double getSumOfSquaredDeviation() {
public Builder setSumOfSquaredDeviation(double value) {
sumOfSquaredDeviation_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -7538,12 +7519,9 @@ public Builder setSumOfSquaredDeviation(double value) {
*
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
- *
* Sum[i=1..n]((x_i - mean)^2)
- *
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
- *
* If `count` is zero then this field must be zero.
*
*
@@ -7552,7 +7530,7 @@ public Builder setSumOfSquaredDeviation(double value) {
* @return This builder for chaining.
*/
public Builder clearSumOfSquaredDeviation() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
sumOfSquaredDeviation_ = 0D;
onChanged();
return this;
@@ -7578,7 +7556,7 @@ public Builder clearSumOfSquaredDeviation() {
* @return Whether the range field is set.
*/
public boolean hasRange() {
- return ((bitField0_ & 0x00000008) != 0);
+ return rangeBuilder_ != null || range_ != null;
}
/**
@@ -7617,11 +7595,11 @@ public Builder setRange(com.google.api.Distribution.Range value) {
throw new NullPointerException();
}
range_ = value;
+ onChanged();
} else {
rangeBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000008;
- onChanged();
+
return this;
}
@@ -7638,11 +7616,11 @@ public Builder setRange(com.google.api.Distribution.Range value) {
public Builder setRange(com.google.api.Distribution.Range.Builder builderForValue) {
if (rangeBuilder_ == null) {
range_ = builderForValue.build();
+ onChanged();
} else {
rangeBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000008;
- onChanged();
+
return this;
}
@@ -7658,20 +7636,17 @@ public Builder setRange(com.google.api.Distribution.Range.Builder builderForValu
*/
public Builder mergeRange(com.google.api.Distribution.Range value) {
if (rangeBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0)
- && range_ != null
- && range_ != com.google.api.Distribution.Range.getDefaultInstance()) {
- getRangeBuilder().mergeFrom(value);
+ if (range_ != null) {
+ range_ =
+ com.google.api.Distribution.Range.newBuilder(range_).mergeFrom(value).buildPartial();
} else {
range_ = value;
}
+ onChanged();
} else {
rangeBuilder_.mergeFrom(value);
}
- if (range_ != null) {
- bitField0_ |= 0x00000008;
- onChanged();
- }
+
return this;
}
@@ -7686,13 +7661,14 @@ public Builder mergeRange(com.google.api.Distribution.Range value) {
* .google.api.Distribution.Range range = 4;
*/
public Builder clearRange() {
- bitField0_ = (bitField0_ & ~0x00000008);
- range_ = null;
- if (rangeBuilder_ != null) {
- rangeBuilder_.dispose();
+ if (rangeBuilder_ == null) {
+ range_ = null;
+ onChanged();
+ } else {
+ range_ = null;
rangeBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -7707,7 +7683,7 @@ public Builder clearRange() {
* .google.api.Distribution.Range range = 4;
*/
public com.google.api.Distribution.Range.Builder getRangeBuilder() {
- bitField0_ |= 0x00000008;
+
onChanged();
return getRangeFieldBuilder().getBuilder();
}
@@ -7777,7 +7753,7 @@ public com.google.api.Distribution.RangeOrBuilder getRangeOrBuilder() {
* @return Whether the bucketOptions field is set.
*/
public boolean hasBucketOptions() {
- return ((bitField0_ & 0x00000010) != 0);
+ return bucketOptionsBuilder_ != null || bucketOptions_ != null;
}
/**
@@ -7818,11 +7794,11 @@ public Builder setBucketOptions(com.google.api.Distribution.BucketOptions value)
throw new NullPointerException();
}
bucketOptions_ = value;
+ onChanged();
} else {
bucketOptionsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000010;
- onChanged();
+
return this;
}
@@ -7840,11 +7816,11 @@ public Builder setBucketOptions(
com.google.api.Distribution.BucketOptions.Builder builderForValue) {
if (bucketOptionsBuilder_ == null) {
bucketOptions_ = builderForValue.build();
+ onChanged();
} else {
bucketOptionsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000010;
- onChanged();
+
return this;
}
@@ -7860,20 +7836,19 @@ public Builder setBucketOptions(
*/
public Builder mergeBucketOptions(com.google.api.Distribution.BucketOptions value) {
if (bucketOptionsBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0)
- && bucketOptions_ != null
- && bucketOptions_ != com.google.api.Distribution.BucketOptions.getDefaultInstance()) {
- getBucketOptionsBuilder().mergeFrom(value);
+ if (bucketOptions_ != null) {
+ bucketOptions_ =
+ com.google.api.Distribution.BucketOptions.newBuilder(bucketOptions_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
bucketOptions_ = value;
}
+ onChanged();
} else {
bucketOptionsBuilder_.mergeFrom(value);
}
- if (bucketOptions_ != null) {
- bitField0_ |= 0x00000010;
- onChanged();
- }
+
return this;
}
@@ -7888,13 +7863,14 @@ public Builder mergeBucketOptions(com.google.api.Distribution.BucketOptions valu
* .google.api.Distribution.BucketOptions bucket_options = 6;
*/
public Builder clearBucketOptions() {
- bitField0_ = (bitField0_ & ~0x00000010);
- bucketOptions_ = null;
- if (bucketOptionsBuilder_ != null) {
- bucketOptionsBuilder_.dispose();
+ if (bucketOptionsBuilder_ == null) {
+ bucketOptions_ = null;
+ onChanged();
+ } else {
+ bucketOptions_ = null;
bucketOptionsBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -7909,7 +7885,7 @@ public Builder clearBucketOptions() {
* .google.api.Distribution.BucketOptions bucket_options = 6;
*/
public com.google.api.Distribution.BucketOptions.Builder getBucketOptionsBuilder() {
- bitField0_ |= 0x00000010;
+
onChanged();
return getBucketOptionsFieldBuilder().getBuilder();
}
@@ -7964,10 +7940,10 @@ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuil
private com.google.protobuf.Internal.LongList bucketCounts_ = emptyLongList();
private void ensureBucketCountsIsMutable() {
- if (!bucketCounts_.isModifiable()) {
- bucketCounts_ = makeMutableCopy(bucketCounts_);
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ bucketCounts_ = mutableCopy(bucketCounts_);
+ bitField0_ |= 0x00000001;
}
- bitField0_ |= 0x00000020;
}
/**
@@ -7979,11 +7955,9 @@ private void ensureBucketCountsIsMutable() {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
- *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
- *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -7996,8 +7970,9 @@ private void ensureBucketCountsIsMutable() {
* @return A list containing the bucketCounts.
*/
public java.util.List getBucketCountsList() {
- bucketCounts_.makeImmutable();
- return bucketCounts_;
+ return ((bitField0_ & 0x00000001) != 0)
+ ? java.util.Collections.unmodifiableList(bucketCounts_)
+ : bucketCounts_;
}
/**
@@ -8009,11 +7984,9 @@ public java.util.List getBucketCountsList() {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
- *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
- *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -8038,11 +8011,9 @@ public int getBucketCountsCount() {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
- *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
- *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -8068,11 +8039,9 @@ public long getBucketCounts(int index) {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
- *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
- *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -8087,10 +8056,8 @@ public long getBucketCounts(int index) {
* @return This builder for chaining.
*/
public Builder setBucketCounts(int index, long value) {
-
ensureBucketCountsIsMutable();
bucketCounts_.setLong(index, value);
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -8104,11 +8071,9 @@ public Builder setBucketCounts(int index, long value) {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
- *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
- *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -8122,10 +8087,8 @@ public Builder setBucketCounts(int index, long value) {
* @return This builder for chaining.
*/
public Builder addBucketCounts(long value) {
-
ensureBucketCountsIsMutable();
bucketCounts_.addLong(value);
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -8139,11 +8102,9 @@ public Builder addBucketCounts(long value) {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
- *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
- *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -8159,7 +8120,6 @@ public Builder addBucketCounts(long value) {
public Builder addAllBucketCounts(java.lang.Iterable extends java.lang.Long> values) {
ensureBucketCountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bucketCounts_);
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -8173,11 +8133,9 @@ public Builder addAllBucketCounts(java.lang.Iterable extends java.lang.Long> v
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
- *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
- *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -8191,7 +8149,7 @@ public Builder addAllBucketCounts(java.lang.Iterable extends java.lang.Long> v
*/
public Builder clearBucketCounts() {
bucketCounts_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -8200,9 +8158,9 @@ public Builder clearBucketCounts() {
java.util.Collections.emptyList();
private void ensureExemplarsIsMutable() {
- if (!((bitField0_ & 0x00000040) != 0)) {
+ if (!((bitField0_ & 0x00000002) != 0)) {
exemplars_ = new java.util.ArrayList(exemplars_);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000002;
}
}
@@ -8427,7 +8385,7 @@ public Builder addAllExemplars(
public Builder clearExemplars() {
if (exemplarsBuilder_ == null) {
exemplars_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
exemplarsBuilder_.clear();
@@ -8555,7 +8513,7 @@ public java.util.List getExemplars
com.google.api.Distribution.Exemplar,
com.google.api.Distribution.Exemplar.Builder,
com.google.api.Distribution.ExemplarOrBuilder>(
- exemplars_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean());
+ exemplars_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
exemplars_ = null;
}
return exemplarsBuilder_;
@@ -8593,18 +8551,7 @@ public Distribution parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Distribution(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java
index 236fe105cc..d23a9c10b2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/distribution.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface DistributionOrBuilder
@@ -59,12 +58,9 @@ public interface DistributionOrBuilder
*
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
- *
* Sum[i=1..n]((x_i - mean)^2)
- *
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
- *
* If `count` is zero then this field must be zero.
*
*
@@ -163,11 +159,9 @@ public interface DistributionOrBuilder
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
- *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
- *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -190,11 +184,9 @@ public interface DistributionOrBuilder
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
- *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
- *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -217,11 +209,9 @@ public interface DistributionOrBuilder
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
- *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
- *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionProto.java
index 51e0f80d36..bcecc1dae2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/distribution.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class DistributionProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java
index 6ad2931b17..f7903af8cb 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/documentation.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -24,7 +23,6 @@
*
*
* `Documentation` provides the information for describing a service.
- *
* Example:
* <pre><code>documentation:
* summary: >
@@ -51,14 +49,11 @@
* code blocks are supported. Section headers can be provided and are
* interpreted relative to the section nesting of the context where
* a documentation fragment is embedded.
- *
* Documentation from the IDL is merged with documentation defined
* via the config at normalization time, where documentation provided
* by config rules overrides IDL provided.
- *
* A number of constructs specific to the API platform are supported
* in documentation text.
- *
* In order to reference a proto element, the following
* notation can be used:
* <pre><code>[fully.qualified.proto.name][]</code></pre>
@@ -66,7 +61,6 @@
* <pre><code>[display text][fully.qualified.proto.name]</code></pre>
* Text can be excluded from doc using the following notation:
* <pre><code>(-- internal comment --)</code></pre>
- *
* A few directives are available in documentation. Note that
* directives must appear on a single line to be properly
* identified. The `include` directive includes a markdown file from
@@ -108,6 +102,104 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Documentation();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Documentation(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ summary_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ overview_ = s;
+ break;
+ }
+ case 26:
+ {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ rules_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ rules_.add(
+ input.readMessage(com.google.api.DocumentationRule.parser(), extensionRegistry));
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ documentationRootUrl_ = s;
+ break;
+ }
+ case 42:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ pages_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ pages_.add(input.readMessage(com.google.api.Page.parser(), extensionRegistry));
+ break;
+ }
+ case 50:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ serviceRootUrl_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ rules_ = java.util.Collections.unmodifiableList(rules_);
+ }
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ pages_ = java.util.Collections.unmodifiableList(pages_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DocumentationProto.internal_static_google_api_Documentation_descriptor;
}
@@ -122,9 +214,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int SUMMARY_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object summary_ = "";
+ private volatile java.lang.Object summary_;
/**
*
@@ -181,8 +271,6 @@ public com.google.protobuf.ByteString getSummaryBytes() {
}
public static final int PAGES_FIELD_NUMBER = 5;
-
- @SuppressWarnings("serial")
private java.util.List pages_;
/**
@@ -256,8 +344,6 @@ public com.google.api.PageOrBuilder getPagesOrBuilder(int index) {
}
public static final int RULES_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
private java.util.List rules_;
/**
@@ -265,7 +351,6 @@ public com.google.api.PageOrBuilder getPagesOrBuilder(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -281,7 +366,6 @@ public java.util.List getRulesList() {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -298,7 +382,6 @@ public java.util.List getRulesList() {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -314,7 +397,6 @@ public int getRulesCount() {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -330,7 +412,6 @@ public com.google.api.DocumentationRule getRules(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -342,9 +423,7 @@ public com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(int index) {
}
public static final int DOCUMENTATION_ROOT_URL_FIELD_NUMBER = 4;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object documentationRootUrl_ = "";
+ private volatile java.lang.Object documentationRootUrl_;
/**
*
@@ -395,9 +474,7 @@ public com.google.protobuf.ByteString getDocumentationRootUrlBytes() {
}
public static final int SERVICE_ROOT_URL_FIELD_NUMBER = 6;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object serviceRootUrl_ = "";
+ private volatile java.lang.Object serviceRootUrl_;
/**
*
@@ -454,9 +531,7 @@ public com.google.protobuf.ByteString getServiceRootUrlBytes() {
}
public static final int OVERVIEW_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object overview_ = "";
+ private volatile java.lang.Object overview_;
/**
*
@@ -562,7 +637,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceRootUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceRootUrl_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -589,7 +664,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceRootUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceRootUrl_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -610,7 +685,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getDocumentationRootUrl().equals(other.getDocumentationRootUrl())) return false;
if (!getServiceRootUrl().equals(other.getServiceRootUrl())) return false;
if (!getOverview().equals(other.getOverview())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -637,7 +712,7 @@ public int hashCode() {
hash = (53 * hash) + getServiceRootUrl().hashCode();
hash = (37 * hash) + OVERVIEW_FIELD_NUMBER;
hash = (53 * hash) + getOverview().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -742,7 +817,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* `Documentation` provides the information for describing a service.
- *
* Example:
* <pre><code>documentation:
* summary: >
@@ -769,14 +843,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* code blocks are supported. Section headers can be provided and are
* interpreted relative to the section nesting of the context where
* a documentation fragment is embedded.
- *
* Documentation from the IDL is merged with documentation defined
* via the config at normalization time, where documentation provided
* by config rules overrides IDL provided.
- *
* A number of constructs specific to the API platform are supported
* in documentation text.
- *
* In order to reference a proto element, the following
* notation can be used:
* <pre><code>[fully.qualified.proto.name][]</code></pre>
@@ -784,7 +855,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* <pre><code>[display text][fully.qualified.proto.name]</code></pre>
* Text can be excluded from doc using the following notation:
* <pre><code>(-- internal comment --)</code></pre>
- *
* A few directives are available in documentation. Note that
* directives must appear on a single line to be properly
* identified. The `include` directive includes a markdown file from
@@ -818,34 +888,45 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Documentation.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getPagesFieldBuilder();
+ getRulesFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
summary_ = "";
+
if (pagesBuilder_ == null) {
pages_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- pages_ = null;
pagesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
if (rulesBuilder_ == null) {
rules_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
- rules_ = null;
rulesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000004);
documentationRootUrl_ = "";
+
serviceRootUrl_ = "";
+
overview_ = "";
+
return this;
}
@@ -871,49 +952,31 @@ public com.google.api.Documentation build() {
@java.lang.Override
public com.google.api.Documentation buildPartial() {
com.google.api.Documentation result = new com.google.api.Documentation(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.Documentation result) {
+ int from_bitField0_ = bitField0_;
+ result.summary_ = summary_;
if (pagesBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
pages_ = java.util.Collections.unmodifiableList(pages_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.pages_ = pages_;
} else {
result.pages_ = pagesBuilder_.build();
}
if (rulesBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
rules_ = java.util.Collections.unmodifiableList(rules_);
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000002);
}
result.rules_ = rules_;
} else {
result.rules_ = rulesBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.Documentation result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.summary_ = summary_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.documentationRootUrl_ = documentationRootUrl_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.serviceRootUrl_ = serviceRootUrl_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.overview_ = overview_;
- }
+ result.documentationRootUrl_ = documentationRootUrl_;
+ result.serviceRootUrl_ = serviceRootUrl_;
+ result.overview_ = overview_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -963,14 +1026,13 @@ public Builder mergeFrom(com.google.api.Documentation other) {
if (other == com.google.api.Documentation.getDefaultInstance()) return this;
if (!other.getSummary().isEmpty()) {
summary_ = other.summary_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (pagesBuilder_ == null) {
if (!other.pages_.isEmpty()) {
if (pages_.isEmpty()) {
pages_ = other.pages_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePagesIsMutable();
pages_.addAll(other.pages_);
@@ -983,7 +1045,7 @@ public Builder mergeFrom(com.google.api.Documentation other) {
pagesBuilder_.dispose();
pagesBuilder_ = null;
pages_ = other.pages_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
pagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getPagesFieldBuilder()
@@ -997,7 +1059,7 @@ public Builder mergeFrom(com.google.api.Documentation other) {
if (!other.rules_.isEmpty()) {
if (rules_.isEmpty()) {
rules_ = other.rules_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRulesIsMutable();
rules_.addAll(other.rules_);
@@ -1010,7 +1072,7 @@ public Builder mergeFrom(com.google.api.Documentation other) {
rulesBuilder_.dispose();
rulesBuilder_ = null;
rules_ = other.rules_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000002);
rulesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getRulesFieldBuilder()
@@ -1022,20 +1084,17 @@ public Builder mergeFrom(com.google.api.Documentation other) {
}
if (!other.getDocumentationRootUrl().isEmpty()) {
documentationRootUrl_ = other.documentationRootUrl_;
- bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getServiceRootUrl().isEmpty()) {
serviceRootUrl_ = other.serviceRootUrl_;
- bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getOverview().isEmpty()) {
overview_ = other.overview_;
- bitField0_ |= 0x00000020;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -1050,79 +1109,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Documentation parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- summary_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- overview_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000020;
- break;
- } // case 18
- case 26:
- {
- com.google.api.DocumentationRule m =
- input.readMessage(com.google.api.DocumentationRule.parser(), extensionRegistry);
- if (rulesBuilder_ == null) {
- ensureRulesIsMutable();
- rules_.add(m);
- } else {
- rulesBuilder_.addMessage(m);
- }
- break;
- } // case 26
- case 34:
- {
- documentationRootUrl_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- break;
- } // case 34
- case 42:
- {
- com.google.api.Page m =
- input.readMessage(com.google.api.Page.parser(), extensionRegistry);
- if (pagesBuilder_ == null) {
- ensurePagesIsMutable();
- pages_.add(m);
- } else {
- pagesBuilder_.addMessage(m);
- }
- break;
- } // case 42
- case 50:
- {
- serviceRootUrl_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000010;
- break;
- } // case 50
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Documentation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -1201,8 +1198,8 @@ public Builder setSummary(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
summary_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1222,8 +1219,8 @@ public Builder setSummary(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearSummary() {
+
summary_ = getDefaultInstance().getSummary();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1248,8 +1245,8 @@ public Builder setSummaryBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
summary_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1257,9 +1254,9 @@ public Builder setSummaryBytes(com.google.protobuf.ByteString value) {
private java.util.List pages_ = java.util.Collections.emptyList();
private void ensurePagesIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
pages_ = new java.util.ArrayList(pages_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000001;
}
}
@@ -1479,7 +1476,7 @@ public Builder addAllPages(java.lang.Iterable extends com.google.api.Page> val
public Builder clearPages() {
if (pagesBuilder_ == null) {
pages_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
pagesBuilder_.clear();
@@ -1600,7 +1597,7 @@ public java.util.List getPagesBuilderList() {
pagesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.api.Page, com.google.api.Page.Builder, com.google.api.PageOrBuilder>(
- pages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+ pages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
pages_ = null;
}
return pagesBuilder_;
@@ -1610,9 +1607,9 @@ public java.util.List getPagesBuilderList() {
java.util.Collections.emptyList();
private void ensureRulesIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!((bitField0_ & 0x00000002) != 0)) {
rules_ = new java.util.ArrayList(rules_);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000002;
}
}
@@ -1627,7 +1624,6 @@ private void ensureRulesIsMutable() {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1646,7 +1642,6 @@ public java.util.List getRulesList() {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1665,7 +1660,6 @@ public int getRulesCount() {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1684,7 +1678,6 @@ public com.google.api.DocumentationRule getRules(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1709,7 +1702,6 @@ public Builder setRules(int index, com.google.api.DocumentationRule value) {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1731,7 +1723,6 @@ public Builder setRules(int index, com.google.api.DocumentationRule.Builder buil
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1756,7 +1747,6 @@ public Builder addRules(com.google.api.DocumentationRule value) {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1781,7 +1771,6 @@ public Builder addRules(int index, com.google.api.DocumentationRule value) {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1803,7 +1792,6 @@ public Builder addRules(com.google.api.DocumentationRule.Builder builderForValue
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1825,7 +1813,6 @@ public Builder addRules(int index, com.google.api.DocumentationRule.Builder buil
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1848,7 +1835,6 @@ public Builder addAllRules(
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1857,7 +1843,7 @@ public Builder addAllRules(
public Builder clearRules() {
if (rulesBuilder_ == null) {
rules_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
rulesBuilder_.clear();
@@ -1870,7 +1856,6 @@ public Builder clearRules() {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1892,7 +1877,6 @@ public Builder removeRules(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1907,7 +1891,6 @@ public com.google.api.DocumentationRule.Builder getRulesBuilder(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1926,7 +1909,6 @@ public com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1946,7 +1928,6 @@ public com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1962,7 +1943,6 @@ public com.google.api.DocumentationRule.Builder addRulesBuilder() {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1978,7 +1958,6 @@ public com.google.api.DocumentationRule.Builder addRulesBuilder(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1999,7 +1978,7 @@ public java.util.List getRulesBuilderL
com.google.api.DocumentationRule,
com.google.api.DocumentationRule.Builder,
com.google.api.DocumentationRuleOrBuilder>(
- rules_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+ rules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
rules_ = null;
}
return rulesBuilder_;
@@ -2069,8 +2048,8 @@ public Builder setDocumentationRootUrl(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
documentationRootUrl_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2087,8 +2066,8 @@ public Builder setDocumentationRootUrl(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDocumentationRootUrl() {
+
documentationRootUrl_ = getDefaultInstance().getDocumentationRootUrl();
- bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -2110,8 +2089,8 @@ public Builder setDocumentationRootUrlBytes(com.google.protobuf.ByteString value
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
documentationRootUrl_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2189,8 +2168,8 @@ public Builder setServiceRootUrl(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
serviceRootUrl_ = value;
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -2210,8 +2189,8 @@ public Builder setServiceRootUrl(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearServiceRootUrl() {
+
serviceRootUrl_ = getDefaultInstance().getServiceRootUrl();
- bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
@@ -2236,8 +2215,8 @@ public Builder setServiceRootUrlBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
serviceRootUrl_ = value;
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -2342,8 +2321,8 @@ public Builder setOverview(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
overview_ = value;
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2372,8 +2351,8 @@ public Builder setOverview(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearOverview() {
+
overview_ = getDefaultInstance().getOverview();
- bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
@@ -2407,8 +2386,8 @@ public Builder setOverviewBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
overview_ = value;
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2445,18 +2424,7 @@ public Documentation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Documentation(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java
index a1de736547..02b5fa7314 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/documentation.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface DocumentationOrBuilder
@@ -116,7 +115,6 @@ public interface DocumentationOrBuilder
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -129,7 +127,6 @@ public interface DocumentationOrBuilder
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -142,7 +139,6 @@ public interface DocumentationOrBuilder
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -155,7 +151,6 @@ public interface DocumentationOrBuilder
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -168,7 +163,6 @@ public interface DocumentationOrBuilder
*
*
* A list of documentation rules that apply to individual API elements.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationProto.java
index 457d3d4dbb..4eebb731b2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/documentation.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class DocumentationProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java
index 6ac65e3af0..67514c7927 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/documentation.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -51,6 +50,71 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DocumentationRule();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private DocumentationRule(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ selector_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ description_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ deprecationDescription_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DocumentationProto
.internal_static_google_api_DocumentationRule_descriptor;
@@ -66,9 +130,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int SELECTOR_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object selector_ = "";
+ private volatile java.lang.Object selector_;
/**
*
@@ -131,9 +193,7 @@ public com.google.protobuf.ByteString getSelectorBytes() {
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object description_ = "";
+ private volatile java.lang.Object description_;
/**
*
@@ -188,9 +248,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
}
public static final int DEPRECATION_DESCRIPTION_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object deprecationDescription_ = "";
+ private volatile java.lang.Object deprecationDescription_;
/**
*
@@ -265,7 +323,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deprecationDescription_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deprecationDescription_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -283,7 +341,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deprecationDescription_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deprecationDescription_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -301,7 +359,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getSelector().equals(other.getSelector())) return false;
if (!getDescription().equals(other.getDescription())) return false;
if (!getDeprecationDescription().equals(other.getDeprecationDescription())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -318,7 +376,7 @@ public int hashCode() {
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + DEPRECATION_DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDeprecationDescription().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -447,19 +505,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.DocumentationRule.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
selector_ = "";
+
description_ = "";
+
deprecationDescription_ = "";
+
return this;
}
@@ -486,26 +553,13 @@ public com.google.api.DocumentationRule build() {
@java.lang.Override
public com.google.api.DocumentationRule buildPartial() {
com.google.api.DocumentationRule result = new com.google.api.DocumentationRule(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
+ result.selector_ = selector_;
+ result.description_ = description_;
+ result.deprecationDescription_ = deprecationDescription_;
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.DocumentationRule result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.selector_ = selector_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.description_ = description_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.deprecationDescription_ = deprecationDescription_;
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -553,20 +607,17 @@ public Builder mergeFrom(com.google.api.DocumentationRule other) {
if (other == com.google.api.DocumentationRule.getDefaultInstance()) return this;
if (!other.getSelector().isEmpty()) {
selector_ = other.selector_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
- bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getDeprecationDescription().isEmpty()) {
deprecationDescription_ = other.deprecationDescription_;
- bitField0_ |= 0x00000004;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -581,54 +632,20 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.DocumentationRule parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- selector_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- description_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26:
- {
- deprecationDescription_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.DocumentationRule) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private java.lang.Object selector_ = "";
/**
@@ -711,8 +728,8 @@ public Builder setSelector(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -735,8 +752,8 @@ public Builder setSelector(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearSelector() {
+
selector_ = getDefaultInstance().getSelector();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -764,8 +781,8 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -840,8 +857,8 @@ public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
description_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -860,8 +877,8 @@ public Builder setDescription(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDescription() {
+
description_ = getDefaultInstance().getDescription();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -885,8 +902,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
description_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -958,8 +975,8 @@ public Builder setDeprecationDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
deprecationDescription_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -977,8 +994,8 @@ public Builder setDeprecationDescription(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDeprecationDescription() {
+
deprecationDescription_ = getDefaultInstance().getDeprecationDescription();
- bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1001,8 +1018,8 @@ public Builder setDeprecationDescriptionBytes(com.google.protobuf.ByteString val
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
deprecationDescription_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1039,18 +1056,7 @@ public DocumentationRule parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new DocumentationRule(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRuleOrBuilder.java
index 3d2170f2a9..376c8ecead 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRuleOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRuleOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/documentation.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface DocumentationRuleOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java
index 366275d651..036ce01fb8 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -40,9 +39,9 @@ private DotnetSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder
}
private DotnetSettings() {
- ignoredResources_ = com.google.protobuf.LazyStringArrayList.emptyList();
- forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.emptyList();
- handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ ignoredResources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@@ -51,14 +50,147 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DotnetSettings();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private DotnetSettings(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.api.CommonLanguageSettings.Builder subBuilder = null;
+ if (common_ != null) {
+ subBuilder = common_.toBuilder();
+ }
+ common_ =
+ input.readMessage(
+ com.google.api.CommonLanguageSettings.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(common_);
+ common_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ renamedServices_ =
+ com.google.protobuf.MapField.newMapField(
+ RenamedServicesDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
+ }
+ com.google.protobuf.MapEntry renamedServices__ =
+ input.readMessage(
+ RenamedServicesDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ renamedServices_
+ .getMutableMap()
+ .put(renamedServices__.getKey(), renamedServices__.getValue());
+ break;
+ }
+ case 26:
+ {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ renamedResources_ =
+ com.google.protobuf.MapField.newMapField(
+ RenamedResourcesDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000002;
+ }
+ com.google.protobuf.MapEntry renamedResources__ =
+ input.readMessage(
+ RenamedResourcesDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ renamedResources_
+ .getMutableMap()
+ .put(renamedResources__.getKey(), renamedResources__.getValue());
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+ ignoredResources_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ ignoredResources_.add(s);
+ break;
+ }
+ case 42:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+ forcedNamespaceAliases_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000008;
+ }
+ forcedNamespaceAliases_.add(s);
+ break;
+ }
+ case 50:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+ handwrittenSignatures_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000010;
+ }
+ handwrittenSignatures_.add(s);
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000004) != 0)) {
+ ignoredResources_ = ignoredResources_.getUnmodifiableView();
+ }
+ if (((mutable_bitField0_ & 0x00000008) != 0)) {
+ forcedNamespaceAliases_ = forcedNamespaceAliases_.getUnmodifiableView();
+ }
+ if (((mutable_bitField0_ & 0x00000010) != 0)) {
+ handwrittenSignatures_ = handwrittenSignatures_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_DotnetSettings_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetRenamedServices();
@@ -77,7 +209,6 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
com.google.api.DotnetSettings.class, com.google.api.DotnetSettings.Builder.class);
}
- private int bitField0_;
public static final int COMMON_FIELD_NUMBER = 1;
private com.google.api.CommonLanguageSettings common_;
@@ -94,7 +225,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
*/
@java.lang.Override
public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
+ return common_ != null;
}
/**
@@ -124,7 +255,7 @@ public com.google.api.CommonLanguageSettings getCommon() {
*/
@java.lang.Override
public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() {
- return common_ == null ? com.google.api.CommonLanguageSettings.getDefaultInstance() : common_;
+ return getCommon();
}
public static final int RENAMED_SERVICES_FIELD_NUMBER = 2;
@@ -140,7 +271,6 @@ private static final class RenamedServicesDefaultEntryHolder {
"");
}
- @SuppressWarnings("serial")
private com.google.protobuf.MapField renamedServices_;
private com.google.protobuf.MapField
@@ -216,10 +346,8 @@ public java.util.Map getRenamedServicesMap()
* map<string, string> renamed_services = 2;
*/
@java.lang.Override
- public /* nullable */ java.lang.String getRenamedServicesOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
+ public java.lang.String getRenamedServicesOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -265,7 +393,6 @@ private static final class RenamedResourcesDefaultEntryHolder {
"");
}
- @SuppressWarnings("serial")
private com.google.protobuf.MapField renamedResources_;
private com.google.protobuf.MapField
@@ -341,10 +468,8 @@ public java.util.Map getRenamedResourcesMap(
* map<string, string> renamed_resources = 3;
*/
@java.lang.Override
- public /* nullable */ java.lang.String getRenamedResourcesOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
+ public java.lang.String getRenamedResourcesOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -378,10 +503,7 @@ public java.lang.String getRenamedResourcesOrThrow(java.lang.String key) {
}
public static final int IGNORED_RESOURCES_FIELD_NUMBER = 4;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList ignoredResources_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList ignoredResources_;
/**
*
@@ -462,10 +584,7 @@ public com.google.protobuf.ByteString getIgnoredResourcesBytes(int index) {
}
public static final int FORCED_NAMESPACE_ALIASES_FIELD_NUMBER = 5;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList forcedNamespaceAliases_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList forcedNamespaceAliases_;
/**
*
@@ -534,10 +653,7 @@ public com.google.protobuf.ByteString getForcedNamespaceAliasesBytes(int index)
}
public static final int HANDWRITTEN_SIGNATURES_FIELD_NUMBER = 6;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList handwrittenSignatures_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList handwrittenSignatures_;
/**
*
@@ -623,7 +739,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (common_ != null) {
output.writeMessage(1, getCommon());
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
@@ -641,7 +757,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
com.google.protobuf.GeneratedMessageV3.writeString(
output, 6, handwrittenSignatures_.getRaw(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -650,7 +766,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (common_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon());
}
for (java.util.Map.Entry entry :
@@ -697,7 +813,7 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getHandwrittenSignaturesList().size();
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -722,7 +838,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getForcedNamespaceAliasesList().equals(other.getForcedNamespaceAliasesList()))
return false;
if (!getHandwrittenSignaturesList().equals(other.getHandwrittenSignaturesList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -757,7 +873,7 @@ public int hashCode() {
hash = (37 * hash) + HANDWRITTEN_SIGNATURES_FIELD_NUMBER;
hash = (53 * hash) + getHandwrittenSignaturesList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -875,8 +991,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetRenamedServices();
@@ -888,8 +1003,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
switch (number) {
case 2:
return internalGetMutableRenamedServices();
@@ -919,25 +1033,26 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getCommonFieldBuilder();
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- common_ = null;
- if (commonBuilder_ != null) {
- commonBuilder_.dispose();
+ if (commonBuilder_ == null) {
+ common_ = null;
+ } else {
+ common_ = null;
commonBuilder_ = null;
}
internalGetMutableRenamedServices().clear();
internalGetMutableRenamedResources().clear();
- ignoredResources_ = com.google.protobuf.LazyStringArrayList.emptyList();
- forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.emptyList();
- handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ ignoredResources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@@ -963,41 +1078,33 @@ public com.google.api.DotnetSettings build() {
@java.lang.Override
public com.google.api.DotnetSettings buildPartial() {
com.google.api.DotnetSettings result = new com.google.api.DotnetSettings(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(com.google.api.DotnetSettings result) {
int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.renamedServices_ = internalGetRenamedServices();
- result.renamedServices_.makeImmutable();
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.renamedResources_ = internalGetRenamedResources();
- result.renamedResources_.makeImmutable();
+ if (commonBuilder_ == null) {
+ result.common_ = common_;
+ } else {
+ result.common_ = commonBuilder_.build();
}
- if (((from_bitField0_ & 0x00000008) != 0)) {
- ignoredResources_.makeImmutable();
- result.ignoredResources_ = ignoredResources_;
+ result.renamedServices_ = internalGetRenamedServices();
+ result.renamedServices_.makeImmutable();
+ result.renamedResources_ = internalGetRenamedResources();
+ result.renamedResources_.makeImmutable();
+ if (((bitField0_ & 0x00000004) != 0)) {
+ ignoredResources_ = ignoredResources_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000004);
}
- if (((from_bitField0_ & 0x00000010) != 0)) {
- forcedNamespaceAliases_.makeImmutable();
- result.forcedNamespaceAliases_ = forcedNamespaceAliases_;
+ result.ignoredResources_ = ignoredResources_;
+ if (((bitField0_ & 0x00000008) != 0)) {
+ forcedNamespaceAliases_ = forcedNamespaceAliases_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000008);
}
- if (((from_bitField0_ & 0x00000020) != 0)) {
- handwrittenSignatures_.makeImmutable();
- result.handwrittenSignatures_ = handwrittenSignatures_;
+ result.forcedNamespaceAliases_ = forcedNamespaceAliases_;
+ if (((bitField0_ & 0x00000010) != 0)) {
+ handwrittenSignatures_ = handwrittenSignatures_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000010);
}
- result.bitField0_ |= to_bitField0_;
+ result.handwrittenSignatures_ = handwrittenSignatures_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -1049,13 +1156,11 @@ public Builder mergeFrom(com.google.api.DotnetSettings other) {
mergeCommon(other.getCommon());
}
internalGetMutableRenamedServices().mergeFrom(other.internalGetRenamedServices());
- bitField0_ |= 0x00000002;
internalGetMutableRenamedResources().mergeFrom(other.internalGetRenamedResources());
- bitField0_ |= 0x00000004;
if (!other.ignoredResources_.isEmpty()) {
if (ignoredResources_.isEmpty()) {
ignoredResources_ = other.ignoredResources_;
- bitField0_ |= 0x00000008;
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureIgnoredResourcesIsMutable();
ignoredResources_.addAll(other.ignoredResources_);
@@ -1065,7 +1170,7 @@ public Builder mergeFrom(com.google.api.DotnetSettings other) {
if (!other.forcedNamespaceAliases_.isEmpty()) {
if (forcedNamespaceAliases_.isEmpty()) {
forcedNamespaceAliases_ = other.forcedNamespaceAliases_;
- bitField0_ |= 0x00000010;
+ bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureForcedNamespaceAliasesIsMutable();
forcedNamespaceAliases_.addAll(other.forcedNamespaceAliases_);
@@ -1075,14 +1180,14 @@ public Builder mergeFrom(com.google.api.DotnetSettings other) {
if (!other.handwrittenSignatures_.isEmpty()) {
if (handwrittenSignatures_.isEmpty()) {
handwrittenSignatures_ = other.handwrittenSignatures_;
- bitField0_ |= 0x00000020;
+ bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureHandwrittenSignaturesIsMutable();
handwrittenSignatures_.addAll(other.handwrittenSignatures_);
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -1097,83 +1202,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.DotnetSettings parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- input.readMessage(getCommonFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- com.google.protobuf.MapEntry renamedServices__ =
- input.readMessage(
- RenamedServicesDefaultEntryHolder.defaultEntry.getParserForType(),
- extensionRegistry);
- internalGetMutableRenamedServices()
- .getMutableMap()
- .put(renamedServices__.getKey(), renamedServices__.getValue());
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26:
- {
- com.google.protobuf.MapEntry
- renamedResources__ =
- input.readMessage(
- RenamedResourcesDefaultEntryHolder.defaultEntry.getParserForType(),
- extensionRegistry);
- internalGetMutableRenamedResources()
- .getMutableMap()
- .put(renamedResources__.getKey(), renamedResources__.getValue());
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 34:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureIgnoredResourcesIsMutable();
- ignoredResources_.add(s);
- break;
- } // case 34
- case 42:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureForcedNamespaceAliasesIsMutable();
- forcedNamespaceAliases_.add(s);
- break;
- } // case 42
- case 50:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureHandwrittenSignaturesIsMutable();
- handwrittenSignatures_.add(s);
- break;
- } // case 50
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.DotnetSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -1198,7 +1237,7 @@ public Builder mergeFrom(
* @return Whether the common field is set.
*/
public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
+ return commonBuilder_ != null || common_ != null;
}
/**
@@ -1237,11 +1276,11 @@ public Builder setCommon(com.google.api.CommonLanguageSettings value) {
throw new NullPointerException();
}
common_ = value;
+ onChanged();
} else {
commonBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -1257,11 +1296,11 @@ public Builder setCommon(com.google.api.CommonLanguageSettings value) {
public Builder setCommon(com.google.api.CommonLanguageSettings.Builder builderForValue) {
if (commonBuilder_ == null) {
common_ = builderForValue.build();
+ onChanged();
} else {
commonBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -1276,20 +1315,19 @@ public Builder setCommon(com.google.api.CommonLanguageSettings.Builder builderFo
*/
public Builder mergeCommon(com.google.api.CommonLanguageSettings value) {
if (commonBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)
- && common_ != null
- && common_ != com.google.api.CommonLanguageSettings.getDefaultInstance()) {
- getCommonBuilder().mergeFrom(value);
+ if (common_ != null) {
+ common_ =
+ com.google.api.CommonLanguageSettings.newBuilder(common_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
common_ = value;
}
+ onChanged();
} else {
commonBuilder_.mergeFrom(value);
}
- if (common_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
@@ -1303,13 +1341,14 @@ public Builder mergeCommon(com.google.api.CommonLanguageSettings value) {
* .google.api.CommonLanguageSettings common = 1;
*/
public Builder clearCommon() {
- bitField0_ = (bitField0_ & ~0x00000001);
- common_ = null;
- if (commonBuilder_ != null) {
- commonBuilder_.dispose();
+ if (commonBuilder_ == null) {
+ common_ = null;
+ onChanged();
+ } else {
+ common_ = null;
commonBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -1323,7 +1362,7 @@ public Builder clearCommon() {
* .google.api.CommonLanguageSettings common = 1;
*/
public com.google.api.CommonLanguageSettings.Builder getCommonBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getCommonFieldBuilder().getBuilder();
}
@@ -1386,6 +1425,8 @@ public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() {
private com.google.protobuf.MapField
internalGetMutableRenamedServices() {
+ onChanged();
+ ;
if (renamedServices_ == null) {
renamedServices_ =
com.google.protobuf.MapField.newMapField(
@@ -1394,8 +1435,6 @@ public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() {
if (!renamedServices_.isMutable()) {
renamedServices_ = renamedServices_.copy();
}
- bitField0_ |= 0x00000002;
- onChanged();
return renamedServices_;
}
@@ -1463,10 +1502,8 @@ public java.util.Map getRenamedServicesMap()
* map<string, string> renamed_services = 2;
*/
@java.lang.Override
- public /* nullable */ java.lang.String getRenamedServicesOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
+ public java.lang.String getRenamedServicesOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -1500,7 +1537,6 @@ public java.lang.String getRenamedServicesOrThrow(java.lang.String key) {
}
public Builder clearRenamedServices() {
- bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableRenamedServices().getMutableMap().clear();
return this;
}
@@ -1529,7 +1565,6 @@ public Builder removeRenamedServices(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableRenamedServices() {
- bitField0_ |= 0x00000002;
return internalGetMutableRenamedServices().getMutableMap();
}
@@ -1553,8 +1588,8 @@ public Builder putRenamedServices(java.lang.String key, java.lang.String value)
if (value == null) {
throw new NullPointerException("map value");
}
+
internalGetMutableRenamedServices().getMutableMap().put(key, value);
- bitField0_ |= 0x00000002;
return this;
}
@@ -1573,7 +1608,6 @@ public Builder putRenamedServices(java.lang.String key, java.lang.String value)
*/
public Builder putAllRenamedServices(java.util.Map values) {
internalGetMutableRenamedServices().getMutableMap().putAll(values);
- bitField0_ |= 0x00000002;
return this;
}
@@ -1590,6 +1624,8 @@ public Builder putAllRenamedServices(java.util.Map
internalGetMutableRenamedResources() {
+ onChanged();
+ ;
if (renamedResources_ == null) {
renamedResources_ =
com.google.protobuf.MapField.newMapField(
@@ -1598,8 +1634,6 @@ public Builder putAllRenamedServices(java.util.Map getRenamedResourcesMap(
* map<string, string> renamed_resources = 3;
*/
@java.lang.Override
- public /* nullable */ java.lang.String getRenamedResourcesOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
+ public java.lang.String getRenamedResourcesOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -1706,7 +1738,6 @@ public java.lang.String getRenamedResourcesOrThrow(java.lang.String key) {
}
public Builder clearRenamedResources() {
- bitField0_ = (bitField0_ & ~0x00000004);
internalGetMutableRenamedResources().getMutableMap().clear();
return this;
}
@@ -1735,7 +1766,6 @@ public Builder removeRenamedResources(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableRenamedResources() {
- bitField0_ |= 0x00000004;
return internalGetMutableRenamedResources().getMutableMap();
}
@@ -1759,8 +1789,8 @@ public Builder putRenamedResources(java.lang.String key, java.lang.String value)
if (value == null) {
throw new NullPointerException("map value");
}
+
internalGetMutableRenamedResources().getMutableMap().put(key, value);
- bitField0_ |= 0x00000004;
return this;
}
@@ -1780,18 +1810,17 @@ public Builder putRenamedResources(java.lang.String key, java.lang.String value)
public Builder putAllRenamedResources(
java.util.Map values) {
internalGetMutableRenamedResources().getMutableMap().putAll(values);
- bitField0_ |= 0x00000004;
return this;
}
- private com.google.protobuf.LazyStringArrayList ignoredResources_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList ignoredResources_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIgnoredResourcesIsMutable() {
- if (!ignoredResources_.isModifiable()) {
+ if (!((bitField0_ & 0x00000004) != 0)) {
ignoredResources_ = new com.google.protobuf.LazyStringArrayList(ignoredResources_);
+ bitField0_ |= 0x00000004;
}
- bitField0_ |= 0x00000008;
}
/**
@@ -1810,8 +1839,7 @@ private void ensureIgnoredResourcesIsMutable() {
* @return A list containing the ignoredResources.
*/
public com.google.protobuf.ProtocolStringList getIgnoredResourcesList() {
- ignoredResources_.makeImmutable();
- return ignoredResources_;
+ return ignoredResources_.getUnmodifiableView();
}
/**
@@ -1896,7 +1924,6 @@ public Builder setIgnoredResources(int index, java.lang.String value) {
}
ensureIgnoredResourcesIsMutable();
ignoredResources_.set(index, value);
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1923,7 +1950,6 @@ public Builder addIgnoredResources(java.lang.String value) {
}
ensureIgnoredResourcesIsMutable();
ignoredResources_.add(value);
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1947,7 +1973,6 @@ public Builder addIgnoredResources(java.lang.String value) {
public Builder addAllIgnoredResources(java.lang.Iterable values) {
ensureIgnoredResourcesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ignoredResources_);
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1968,9 +1993,8 @@ public Builder addAllIgnoredResources(java.lang.Iterable value
* @return This builder for chaining.
*/
public Builder clearIgnoredResources() {
- ignoredResources_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- ;
+ ignoredResources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1998,20 +2022,19 @@ public Builder addIgnoredResourcesBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureIgnoredResourcesIsMutable();
ignoredResources_.add(value);
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringArrayList forcedNamespaceAliases_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList forcedNamespaceAliases_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureForcedNamespaceAliasesIsMutable() {
- if (!forcedNamespaceAliases_.isModifiable()) {
+ if (!((bitField0_ & 0x00000008) != 0)) {
forcedNamespaceAliases_ =
new com.google.protobuf.LazyStringArrayList(forcedNamespaceAliases_);
+ bitField0_ |= 0x00000008;
}
- bitField0_ |= 0x00000010;
}
/**
@@ -2027,8 +2050,7 @@ private void ensureForcedNamespaceAliasesIsMutable() {
* @return A list containing the forcedNamespaceAliases.
*/
public com.google.protobuf.ProtocolStringList getForcedNamespaceAliasesList() {
- forcedNamespaceAliases_.makeImmutable();
- return forcedNamespaceAliases_;
+ return forcedNamespaceAliases_.getUnmodifiableView();
}
/**
@@ -2101,7 +2123,6 @@ public Builder setForcedNamespaceAliases(int index, java.lang.String value) {
}
ensureForcedNamespaceAliasesIsMutable();
forcedNamespaceAliases_.set(index, value);
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -2125,7 +2146,6 @@ public Builder addForcedNamespaceAliases(java.lang.String value) {
}
ensureForcedNamespaceAliasesIsMutable();
forcedNamespaceAliases_.add(value);
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -2146,7 +2166,6 @@ public Builder addForcedNamespaceAliases(java.lang.String value) {
public Builder addAllForcedNamespaceAliases(java.lang.Iterable values) {
ensureForcedNamespaceAliasesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, forcedNamespaceAliases_);
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -2164,9 +2183,8 @@ public Builder addAllForcedNamespaceAliases(java.lang.Iterable
* @return This builder for chaining.
*/
public Builder clearForcedNamespaceAliases() {
- forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000010);
- ;
+ forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -2191,20 +2209,19 @@ public Builder addForcedNamespaceAliasesBytes(com.google.protobuf.ByteString val
checkByteStringIsUtf8(value);
ensureForcedNamespaceAliasesIsMutable();
forcedNamespaceAliases_.add(value);
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringArrayList handwrittenSignatures_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList handwrittenSignatures_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureHandwrittenSignaturesIsMutable() {
- if (!handwrittenSignatures_.isModifiable()) {
+ if (!((bitField0_ & 0x00000010) != 0)) {
handwrittenSignatures_ =
new com.google.protobuf.LazyStringArrayList(handwrittenSignatures_);
+ bitField0_ |= 0x00000010;
}
- bitField0_ |= 0x00000020;
}
/**
@@ -2221,8 +2238,7 @@ private void ensureHandwrittenSignaturesIsMutable() {
* @return A list containing the handwrittenSignatures.
*/
public com.google.protobuf.ProtocolStringList getHandwrittenSignaturesList() {
- handwrittenSignatures_.makeImmutable();
- return handwrittenSignatures_;
+ return handwrittenSignatures_.getUnmodifiableView();
}
/**
@@ -2299,7 +2315,6 @@ public Builder setHandwrittenSignatures(int index, java.lang.String value) {
}
ensureHandwrittenSignaturesIsMutable();
handwrittenSignatures_.set(index, value);
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2324,7 +2339,6 @@ public Builder addHandwrittenSignatures(java.lang.String value) {
}
ensureHandwrittenSignaturesIsMutable();
handwrittenSignatures_.add(value);
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2346,7 +2360,6 @@ public Builder addHandwrittenSignatures(java.lang.String value) {
public Builder addAllHandwrittenSignatures(java.lang.Iterable values) {
ensureHandwrittenSignaturesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, handwrittenSignatures_);
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2365,9 +2378,8 @@ public Builder addAllHandwrittenSignatures(java.lang.Iterable
* @return This builder for chaining.
*/
public Builder clearHandwrittenSignatures() {
- handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000020);
- ;
+ handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
@@ -2393,7 +2405,6 @@ public Builder addHandwrittenSignaturesBytes(com.google.protobuf.ByteString valu
checkByteStringIsUtf8(value);
ensureHandwrittenSignaturesIsMutable();
handwrittenSignatures_.add(value);
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2430,18 +2441,7 @@ public DotnetSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new DotnetSettings(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettingsOrBuilder.java
index 975300894a..352b156f7a 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettingsOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettingsOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface DotnetSettingsOrBuilder
@@ -123,6 +122,7 @@ public interface DotnetSettingsOrBuilder
*
* map<string, string> renamed_services = 2;
*/
+
/* nullable */
java.lang.String getRenamedServicesOrDefault(
java.lang.String key,
@@ -206,6 +206,7 @@ java.lang.String getRenamedServicesOrDefault(
*
* map<string, string> renamed_resources = 3;
*/
+
/* nullable */
java.lang.String getRenamedResourcesOrDefault(
java.lang.String key,
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java
index 62b5d9f1ef..f00019f14a 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/endpoint.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -27,9 +26,7 @@
* APIs. It is commonly known as a service endpoint. A service may expose
* any number of service endpoints, and all service endpoints share the same
* service definition, such as quota limits and monitoring metrics.
- *
* Example:
- *
* type: google.api.Service
* name: library-example.googleapis.com
* endpoints:
@@ -61,7 +58,7 @@ private Endpoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private Endpoint() {
name_ = "";
- aliases_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
target_ = "";
}
@@ -71,6 +68,83 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Endpoint();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Endpoint(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ aliases_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ aliases_.add(s);
+ break;
+ }
+ case 40:
+ {
+ allowCors_ = input.readBool();
+ break;
+ }
+ case 810:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ target_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ aliases_ = aliases_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.EndpointProto.internal_static_google_api_Endpoint_descriptor;
}
@@ -84,9 +158,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object name_ = "";
+ private volatile java.lang.Object name_;
/**
*
@@ -137,10 +209,7 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int ALIASES_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList aliases_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList aliases_;
/**
*
@@ -213,9 +282,7 @@ public com.google.protobuf.ByteString getAliasesBytes(int index) {
}
public static final int TARGET_FIELD_NUMBER = 101;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object target_ = "";
+ private volatile java.lang.Object target_;
/**
*
@@ -274,7 +341,7 @@ public com.google.protobuf.ByteString getTargetBytes() {
}
public static final int ALLOW_CORS_FIELD_NUMBER = 5;
- private boolean allowCors_ = false;
+ private boolean allowCors_;
/**
*
@@ -323,7 +390,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 101, target_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -349,7 +416,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, target_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -368,7 +435,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getAliasesList().equals(other.getAliasesList())) return false;
if (!getTarget().equals(other.getTarget())) return false;
if (getAllowCors() != other.getAllowCors()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -389,7 +456,7 @@ public int hashCode() {
hash = (53 * hash) + getTarget().hashCode();
hash = (37 * hash) + ALLOW_CORS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCors());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -497,9 +564,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* APIs. It is commonly known as a service endpoint. A service may expose
* any number of service endpoints, and all service endpoints share the same
* service definition, such as quota limits and monitoring metrics.
- *
* Example:
- *
* type: google.api.Service
* name: library-example.googleapis.com
* endpoints:
@@ -535,20 +600,30 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Endpoint.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
name_ = "";
- aliases_ = com.google.protobuf.LazyStringArrayList.emptyList();
+
+ aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
target_ = "";
+
allowCors_ = false;
+
return this;
}
@@ -574,30 +649,19 @@ public com.google.api.Endpoint build() {
@java.lang.Override
public com.google.api.Endpoint buildPartial() {
com.google.api.Endpoint result = new com.google.api.Endpoint(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ int from_bitField0_ = bitField0_;
+ result.name_ = name_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ aliases_ = aliases_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
}
+ result.aliases_ = aliases_;
+ result.target_ = target_;
+ result.allowCors_ = allowCors_;
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.Endpoint result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.name_ = name_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- aliases_.makeImmutable();
- result.aliases_ = aliases_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.target_ = target_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.allowCors_ = allowCors_;
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -645,13 +709,12 @@ public Builder mergeFrom(com.google.api.Endpoint other) {
if (other == com.google.api.Endpoint.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.aliases_.isEmpty()) {
if (aliases_.isEmpty()) {
aliases_ = other.aliases_;
- bitField0_ |= 0x00000002;
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAliasesIsMutable();
aliases_.addAll(other.aliases_);
@@ -660,13 +723,12 @@ public Builder mergeFrom(com.google.api.Endpoint other) {
}
if (!other.getTarget().isEmpty()) {
target_ = other.target_;
- bitField0_ |= 0x00000004;
onChanged();
}
if (other.getAllowCors() != false) {
setAllowCors(other.getAllowCors());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -681,56 +743,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Endpoint parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- name_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureAliasesIsMutable();
- aliases_.add(s);
- break;
- } // case 18
- case 40:
- {
- allowCors_ = input.readBool();
- bitField0_ |= 0x00000008;
- break;
- } // case 40
- case 810:
- {
- target_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
- break;
- } // case 810
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Endpoint) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -800,8 +823,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
name_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -818,8 +841,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
+
name_ = getDefaultInstance().getName();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -841,20 +864,20 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
name_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringArrayList aliases_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList aliases_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAliasesIsMutable() {
- if (!aliases_.isModifiable()) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
aliases_ = new com.google.protobuf.LazyStringArrayList(aliases_);
+ bitField0_ |= 0x00000001;
}
- bitField0_ |= 0x00000002;
}
/**
@@ -871,8 +894,7 @@ private void ensureAliasesIsMutable() {
* @return A list containing the aliases.
*/
public com.google.protobuf.ProtocolStringList getAliasesList() {
- aliases_.makeImmutable();
- return aliases_;
+ return aliases_.getUnmodifiableView();
}
/**
@@ -949,7 +971,6 @@ public Builder setAliases(int index, java.lang.String value) {
}
ensureAliasesIsMutable();
aliases_.set(index, value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -974,7 +995,6 @@ public Builder addAliases(java.lang.String value) {
}
ensureAliasesIsMutable();
aliases_.add(value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -996,7 +1016,6 @@ public Builder addAliases(java.lang.String value) {
public Builder addAllAliases(java.lang.Iterable values) {
ensureAliasesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aliases_);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1015,9 +1034,8 @@ public Builder addAllAliases(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearAliases() {
- aliases_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- ;
+ aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1043,7 +1061,6 @@ public Builder addAliasesBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureAliasesIsMutable();
aliases_.add(value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1124,8 +1141,8 @@ public Builder setTarget(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
target_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1146,8 +1163,8 @@ public Builder setTarget(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearTarget() {
+
target_ = getDefaultInstance().getTarget();
- bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1173,8 +1190,8 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
target_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1222,7 +1239,6 @@ public boolean getAllowCors() {
public Builder setAllowCors(boolean value) {
allowCors_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1244,7 +1260,7 @@ public Builder setAllowCors(boolean value) {
* @return This builder for chaining.
*/
public Builder clearAllowCors() {
- bitField0_ = (bitField0_ & ~0x00000008);
+
allowCors_ = false;
onChanged();
return this;
@@ -1282,18 +1298,7 @@ public Endpoint parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Endpoint(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java
index a43970103f..e2b3e769c2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/endpoint.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface EndpointOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointProto.java
index d22d39c93d..19e0c2a4d5 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/endpoint.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class EndpointProto {
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 09154889ee..3ecb6173ba 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
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/error_reason.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -53,10 +52,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request is calling a disabled service for a consumer.
- *
* Example of an ErrorInfo when the consumer "projects/123" contacting
* "pubsub.googleapis.com" service which is disabled:
- *
* { "reason": "SERVICE_DISABLED",
* "domain": "googleapis.com",
* "metadata": {
@@ -64,7 +61,6 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
- *
* This response indicates the "pubsub.googleapis.com" has been disabled in
* "projects/123".
*
@@ -77,11 +73,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request whose associated billing account is disabled.
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "pubsub.googleapis.com" service because the associated billing account is
* disabled:
- *
* { "reason": "BILLING_DISABLED",
* "domain": "googleapis.com",
* "metadata": {
@@ -89,7 +83,6 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
- *
* This response indicates the billing account associated has been disabled.
*
*
@@ -103,10 +96,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request is denied because the provided [API
* key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It
* may be in a bad format, cannot be found, or has been expired).
- *
* Example of an ErrorInfo when the request is contacting
* "storage.googleapis.com" service with an invalid API key:
- *
* { "reason": "API_KEY_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -124,11 +115,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key API
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions).
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to call the
* "storage.googleapis.com" service because this service is restricted in the
* API key:
- *
* { "reason": "API_KEY_SERVICE_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -147,11 +136,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key HTTP
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions).
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the http referrer of the request
* violates API key HTTP restrictions:
- *
* { "reason": "API_KEY_HTTP_REFERRER_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -170,11 +157,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key IP address
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the caller IP of the request
* violates API key IP address restrictions:
- *
* { "reason": "API_KEY_IP_ADDRESS_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -193,11 +178,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key Android application
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the request from the Android apps
* violates the API key Android application restrictions:
- *
* { "reason": "API_KEY_ANDROID_APP_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -216,11 +199,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key iOS application
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the request from the iOS apps
* violates the API key iOS application restrictions:
- *
* { "reason": "API_KEY_IOS_APP_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -239,13 +220,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because there is not enough rate quota for the
* consumer.
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "pubsub.googleapis.com" service because consumer's rate quota usage has
* reached the maximum value set for the quota limit
* "ReadsPerMinutePerProject" on the quota metric
* "pubsub.googleapis.com/read_requests":
- *
* { "reason": "RATE_LIMIT_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -255,12 +234,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "quota_limit": "ReadsPerMinutePerProject"
* }
* }
- *
* Example of an ErrorInfo when the consumer "projects/123" checks quota on
* the service "dataflow.googleapis.com" and hits the organization quota
* limit "DefaultRequestsPerMinutePerOrganization" on the metric
* "dataflow.googleapis.com/default_requests".
- *
* { "reason": "RATE_LIMIT_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -281,12 +258,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because there is not enough resource quota for the
* consumer.
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "compute.googleapis.com" service because consumer's resource quota usage
* has reached the maximum value set for the quota limit "VMsPerProject"
* on the quota metric "compute.googleapis.com/vms":
- *
* { "reason": "RESOURCE_QUOTA_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -296,12 +271,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "quota_limit": "VMsPerProject"
* }
* }
- *
* Example of an ErrorInfo when the consumer "projects/123" checks resource
* quota on the service "dataflow.googleapis.com" and hits the organization
* quota limit "jobs-per-organization" on the metric
* "dataflow.googleapis.com/job_count".
- *
* { "reason": "RESOURCE_QUOTA_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -323,11 +296,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request whose associated billing account address is in a tax restricted
* location, violates the local tax 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 tax restricted region
* "locations/asia-northeast3":
- *
* { "reason": "LOCATION_TAX_POLICY_VIOLATED",
* "domain": "googleapis.com",
* "metadata": {
@@ -336,7 +307,6 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "location": "locations/asia-northeast3"
* }
* }
- *
* This response indicates creating the Cloud Storage Bucket in
* "locations/asia-northeast3" violates the location tax restriction.
*
@@ -352,10 +322,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* on the user project "projects/123" or the user project is invalid. For more
* information, check the [userProject System
* Parameters](https://cloud.google.com/apis/docs/system-parameters).
- *
* Example of an ErrorInfo when the caller is calling Cloud Storage service
* with insufficient permissions on the user project:
- *
* { "reason": "USER_PROJECT_DENIED",
* "domain": "googleapis.com",
* "metadata": {
@@ -376,10 +344,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* to Terms of Service(Tos) violations. Check [Project suspension
* guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines)
* for more information.
- *
* Example of an ErrorInfo when calling Cloud Storage service with the
* suspended consumer "projects/123":
- *
* { "reason": "CONSUMER_SUSPENDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -398,10 +364,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the associated consumer is invalid. It may be
* in a bad format, cannot be found, or have been deleted.
- *
* Example of an ErrorInfo when calling Cloud Storage service with the
* invalid consumer "projects/123":
- *
* { "reason": "CONSUMER_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -424,11 +388,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* to search the audit log for a request rejected by VPC Service Controls. For
* more information, please refer [VPC Service Controls
* Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id)
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* Cloud Storage service because the request is prohibited by the VPC Service
* Controls.
- *
* { "reason": "SECURITY_POLICY_VIOLATED",
* "domain": "googleapis.com",
* "metadata": {
@@ -447,10 +409,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request is denied because the provided access token has expired.
- *
* Example of an ErrorInfo when the request is calling Cloud Storage service
* with an expired access token:
- *
* { "reason": "ACCESS_TOKEN_EXPIRED",
* "domain": "googleapis.com",
* "metadata": {
@@ -473,10 +433,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for
* the list of the OAuth 2.0 scopes that you might need to request to access
* the API.
- *
* Example of an ErrorInfo when the request is calling Cloud Storage service
* with an access token that is missing required scopes:
- *
* { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
* "domain": "googleapis.com",
* "metadata": {
@@ -496,15 +454,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request is denied because the account associated with the provided
* access token is in an invalid state, such as disabled or deleted.
* For more information, see https://cloud.google.com/docs/authentication.
- *
* Warning: For privacy reasons, the server may not be able to disclose the
* email address for some accounts. The client MUST NOT depend on the
* availability of the `email` attribute.
- *
* Example of an ErrorInfo when the request is to the Cloud Storage API with
* an access token that is associated with a disabled or deleted [service
* account](http://cloud/iam/docs/service-accounts):
- *
* { "reason": "ACCOUNT_STATE_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -524,10 +479,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the type of the provided access token is not
* supported by the API being called.
- *
* Example of an ErrorInfo when the request is to the Cloud Storage API with
* an unsupported token type.
- *
* { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED",
* "domain": "googleapis.com",
* "metadata": {
@@ -548,10 +501,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* credentials. For more information regarding the supported authentication
* strategies for Google Cloud APIs, see
* https://cloud.google.com/docs/authentication.
- *
* Example of an ErrorInfo when the request is to the Cloud Storage API
* without any authentication credentials.
- *
* { "reason": "CREDENTIALS_MISSING",
* "domain": "googleapis.com",
* "metadata": {
@@ -572,11 +523,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* which acts as the [API
* consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is
* invalid. It may be in a bad format or empty.
- *
* Example of an ErrorInfo when the request is to the Cloud Functions API,
* but the offered resource project in the request in a bad format which can't
* perform the ListFunctions method.
- *
* { "reason": "RESOURCE_PROJECT_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -596,10 +545,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the provided session cookie is missing,
* invalid or failed to decode.
- *
* Example of an ErrorInfo when the request is calling Cloud Storage service
* with a SID cookie which can't be decoded.
- *
* { "reason": "SESSION_COOKIE_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -619,12 +566,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the user is from a Google Workspace customer
* that blocks their users from accessing a particular service.
- *
* Example scenario: https://support.google.com/a/answer/9197205?hl=en
- *
* Example of an ErrorInfo when access to Google Cloud Storage service is
* blocked by the Google Workspace administrator:
- *
* { "reason": "USER_BLOCKED_BY_ADMIN",
* "domain": "googleapis.com",
* "metadata": {
@@ -645,10 +589,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* by administrators according to the organization policy constraint.
* For more information see
* https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services.
- *
* Example of an ErrorInfo when access to Google Cloud Storage service is
* restricted by Resource Usage Restriction policy:
- *
* { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED",
* "domain": "googleapis.com",
* "metadata": {
@@ -666,14 +608,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Unimplemented. Do not use.
- *
* The request is denied because it contains unsupported system parameters in
* URL query parameters or HTTP headers. For more information,
* see https://cloud.google.com/apis/docs/system-parameters
- *
* Example of an ErrorInfo when access "pubsub.googleapis.com" service with
* a request header of "x-goog-user-ip":
- *
* { "reason": "SYSTEM_PARAMETER_UNSUPPORTED",
* "domain": "googleapis.com",
* "metadata": {
@@ -693,10 +632,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request is denied because it violates Org Restriction: the requested
* resource does not belong to allowed organizations specified in
* "X-Goog-Allowed-Resources" header.
- *
* Example of an ErrorInfo when accessing a GCP resource that is restricted by
* Org Restriction for "pubsub.googleapis.com" service.
- *
* {
* reason: "ORG_RESTRICTION_VIOLATION"
* domain: "googleapis.com"
@@ -716,11 +653,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because "X-Goog-Allowed-Resources" header is in a bad
* format.
- *
* Example of an ErrorInfo when
* accessing "pubsub.googleapis.com" service with an invalid
* "X-Goog-Allowed-Resources" request header.
- *
* {
* reason: "ORG_RESTRICTION_HEADER_INVALID"
* domain: "googleapis.com"
@@ -739,12 +674,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Unimplemented. Do not use.
- *
* The request is calling a service that is not visible to the consumer.
- *
* Example of an ErrorInfo when the consumer "projects/123" contacting
* "pubsub.googleapis.com" service which is not visible to the consumer.
- *
* { "reason": "SERVICE_NOT_VISIBLE",
* "domain": "googleapis.com",
* "metadata": {
@@ -752,7 +684,6 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
- *
* This response indicates the "pubsub.googleapis.com" is not visible to
* "projects/123" (or it may not exist).
*
@@ -765,10 +696,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request is related to a project for which GCP access is suspended.
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "pubsub.googleapis.com" service because GCP access is suspended:
- *
* { "reason": "GCP_SUSPENDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -776,7 +705,6 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
- *
* This response indicates the associated GCP account has been suspended.
*
*
@@ -789,10 +717,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request violates the location policies when creating resources in
* the restricted region.
- *
* Example of an ErrorInfo when creating the Cloud Storage Bucket by
* "projects/123" for service storage.googleapis.com:
- *
* { "reason": "LOCATION_POLICY_VIOLATED",
* "domain": "googleapis.com",
* "metadata": {
@@ -800,7 +726,6 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "storage.googleapis.com",
* }
* }
- *
* This response indicates creating the Cloud Storage Bucket in
* "locations/asia-northeast3" violates at least one location policy.
* The troubleshooting guidance is provided in the Help links.
@@ -814,11 +739,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request is denied because origin request header is missing.
- *
* Example of an ErrorInfo when
* accessing "pubsub.googleapis.com" service with an empty "Origin" request
* header.
- *
* {
* reason: "MISSING_ORIGIN"
* domain: "googleapis.com"
@@ -839,10 +762,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request is denied because the request contains more than one credential
* type that are individually acceptable, but not together. The customer
* should retry their request with only one set of credentials.
- *
* Example of an ErrorInfo when
* accessing "pubsub.googleapis.com" service with overloaded credentials.
- *
* {
* reason: "OVERLOADED_CREDENTIALS"
* domain: "googleapis.com"
@@ -875,10 +796,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request is calling a disabled service for a consumer.
- *
* Example of an ErrorInfo when the consumer "projects/123" contacting
* "pubsub.googleapis.com" service which is disabled:
- *
* { "reason": "SERVICE_DISABLED",
* "domain": "googleapis.com",
* "metadata": {
@@ -886,7 +805,6 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
- *
* This response indicates the "pubsub.googleapis.com" has been disabled in
* "projects/123".
*
@@ -900,11 +818,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request whose associated billing account is disabled.
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "pubsub.googleapis.com" service because the associated billing account is
* disabled:
- *
* { "reason": "BILLING_DISABLED",
* "domain": "googleapis.com",
* "metadata": {
@@ -912,7 +828,6 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
- *
* This response indicates the billing account associated has been disabled.
*
*
@@ -927,10 +842,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request is denied because the provided [API
* key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It
* may be in a bad format, cannot be found, or has been expired).
- *
* Example of an ErrorInfo when the request is contacting
* "storage.googleapis.com" service with an invalid API key:
- *
* { "reason": "API_KEY_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -949,11 +862,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key API
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions).
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to call the
* "storage.googleapis.com" service because this service is restricted in the
* API key:
- *
* { "reason": "API_KEY_SERVICE_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -973,11 +884,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key HTTP
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions).
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the http referrer of the request
* violates API key HTTP restrictions:
- *
* { "reason": "API_KEY_HTTP_REFERRER_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -997,11 +906,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key IP address
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the caller IP of the request
* violates API key IP address restrictions:
- *
* { "reason": "API_KEY_IP_ADDRESS_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1021,11 +928,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key Android application
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the request from the Android apps
* violates the API key Android application restrictions:
- *
* { "reason": "API_KEY_ANDROID_APP_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1045,11 +950,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key iOS application
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the request from the iOS apps
* violates the API key iOS application restrictions:
- *
* { "reason": "API_KEY_IOS_APP_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1069,13 +972,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because there is not enough rate quota for the
* consumer.
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "pubsub.googleapis.com" service because consumer's rate quota usage has
* reached the maximum value set for the quota limit
* "ReadsPerMinutePerProject" on the quota metric
* "pubsub.googleapis.com/read_requests":
- *
* { "reason": "RATE_LIMIT_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1085,12 +986,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "quota_limit": "ReadsPerMinutePerProject"
* }
* }
- *
* Example of an ErrorInfo when the consumer "projects/123" checks quota on
* the service "dataflow.googleapis.com" and hits the organization quota
* limit "DefaultRequestsPerMinutePerOrganization" on the metric
* "dataflow.googleapis.com/default_requests".
- *
* { "reason": "RATE_LIMIT_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1112,12 +1011,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because there is not enough resource quota for the
* consumer.
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "compute.googleapis.com" service because consumer's resource quota usage
* has reached the maximum value set for the quota limit "VMsPerProject"
* on the quota metric "compute.googleapis.com/vms":
- *
* { "reason": "RESOURCE_QUOTA_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1127,12 +1024,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "quota_limit": "VMsPerProject"
* }
* }
- *
* Example of an ErrorInfo when the consumer "projects/123" checks resource
* quota on the service "dataflow.googleapis.com" and hits the organization
* quota limit "jobs-per-organization" on the metric
* "dataflow.googleapis.com/job_count".
- *
* { "reason": "RESOURCE_QUOTA_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1155,11 +1050,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request whose associated billing account address is in a tax restricted
* location, violates the local tax 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 tax restricted region
* "locations/asia-northeast3":
- *
* { "reason": "LOCATION_TAX_POLICY_VIOLATED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1168,7 +1061,6 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "location": "locations/asia-northeast3"
* }
* }
- *
* This response indicates creating the Cloud Storage Bucket in
* "locations/asia-northeast3" violates the location tax restriction.
*
@@ -1185,10 +1077,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* on the user project "projects/123" or the user project is invalid. For more
* information, check the [userProject System
* Parameters](https://cloud.google.com/apis/docs/system-parameters).
- *
* Example of an ErrorInfo when the caller is calling Cloud Storage service
* with insufficient permissions on the user project:
- *
* { "reason": "USER_PROJECT_DENIED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1210,10 +1100,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* to Terms of Service(Tos) violations. Check [Project suspension
* guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines)
* for more information.
- *
* Example of an ErrorInfo when calling Cloud Storage service with the
* suspended consumer "projects/123":
- *
* { "reason": "CONSUMER_SUSPENDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1233,10 +1121,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the associated consumer is invalid. It may be
* in a bad format, cannot be found, or have been deleted.
- *
* Example of an ErrorInfo when calling Cloud Storage service with the
* invalid consumer "projects/123":
- *
* { "reason": "CONSUMER_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -1260,11 +1146,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* to search the audit log for a request rejected by VPC Service Controls. For
* more information, please refer [VPC Service Controls
* Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id)
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* Cloud Storage service because the request is prohibited by the VPC Service
* Controls.
- *
* { "reason": "SECURITY_POLICY_VIOLATED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1284,10 +1168,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request is denied because the provided access token has expired.
- *
* Example of an ErrorInfo when the request is calling Cloud Storage service
* with an expired access token:
- *
* { "reason": "ACCESS_TOKEN_EXPIRED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1311,10 +1193,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for
* the list of the OAuth 2.0 scopes that you might need to request to access
* the API.
- *
* Example of an ErrorInfo when the request is calling Cloud Storage service
* with an access token that is missing required scopes:
- *
* { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
* "domain": "googleapis.com",
* "metadata": {
@@ -1335,15 +1215,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request is denied because the account associated with the provided
* access token is in an invalid state, such as disabled or deleted.
* For more information, see https://cloud.google.com/docs/authentication.
- *
* Warning: For privacy reasons, the server may not be able to disclose the
* email address for some accounts. The client MUST NOT depend on the
* availability of the `email` attribute.
- *
* Example of an ErrorInfo when the request is to the Cloud Storage API with
* an access token that is associated with a disabled or deleted [service
* account](http://cloud/iam/docs/service-accounts):
- *
* { "reason": "ACCOUNT_STATE_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -1364,10 +1241,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the type of the provided access token is not
* supported by the API being called.
- *
* Example of an ErrorInfo when the request is to the Cloud Storage API with
* an unsupported token type.
- *
* { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1389,10 +1264,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* credentials. For more information regarding the supported authentication
* strategies for Google Cloud APIs, see
* https://cloud.google.com/docs/authentication.
- *
* Example of an ErrorInfo when the request is to the Cloud Storage API
* without any authentication credentials.
- *
* { "reason": "CREDENTIALS_MISSING",
* "domain": "googleapis.com",
* "metadata": {
@@ -1414,11 +1287,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* which acts as the [API
* consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is
* invalid. It may be in a bad format or empty.
- *
* Example of an ErrorInfo when the request is to the Cloud Functions API,
* but the offered resource project in the request in a bad format which can't
* perform the ListFunctions method.
- *
* { "reason": "RESOURCE_PROJECT_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -1439,10 +1310,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the provided session cookie is missing,
* invalid or failed to decode.
- *
* Example of an ErrorInfo when the request is calling Cloud Storage service
* with a SID cookie which can't be decoded.
- *
* { "reason": "SESSION_COOKIE_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -1463,12 +1332,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the user is from a Google Workspace customer
* that blocks their users from accessing a particular service.
- *
* Example scenario: https://support.google.com/a/answer/9197205?hl=en
- *
* Example of an ErrorInfo when access to Google Cloud Storage service is
* blocked by the Google Workspace administrator:
- *
* { "reason": "USER_BLOCKED_BY_ADMIN",
* "domain": "googleapis.com",
* "metadata": {
@@ -1490,10 +1356,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* by administrators according to the organization policy constraint.
* For more information see
* https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services.
- *
* Example of an ErrorInfo when access to Google Cloud Storage service is
* restricted by Resource Usage Restriction policy:
- *
* { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1512,14 +1376,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Unimplemented. Do not use.
- *
* The request is denied because it contains unsupported system parameters in
* URL query parameters or HTTP headers. For more information,
* see https://cloud.google.com/apis/docs/system-parameters
- *
* Example of an ErrorInfo when access "pubsub.googleapis.com" service with
* a request header of "x-goog-user-ip":
- *
* { "reason": "SYSTEM_PARAMETER_UNSUPPORTED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1540,10 +1401,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request is denied because it violates Org Restriction: the requested
* resource does not belong to allowed organizations specified in
* "X-Goog-Allowed-Resources" header.
- *
* Example of an ErrorInfo when accessing a GCP resource that is restricted by
* Org Restriction for "pubsub.googleapis.com" service.
- *
* {
* reason: "ORG_RESTRICTION_VIOLATION"
* domain: "googleapis.com"
@@ -1564,11 +1423,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because "X-Goog-Allowed-Resources" header is in a bad
* format.
- *
* Example of an ErrorInfo when
* accessing "pubsub.googleapis.com" service with an invalid
* "X-Goog-Allowed-Resources" request header.
- *
* {
* reason: "ORG_RESTRICTION_HEADER_INVALID"
* domain: "googleapis.com"
@@ -1588,12 +1445,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Unimplemented. Do not use.
- *
* The request is calling a service that is not visible to the consumer.
- *
* Example of an ErrorInfo when the consumer "projects/123" contacting
* "pubsub.googleapis.com" service which is not visible to the consumer.
- *
* { "reason": "SERVICE_NOT_VISIBLE",
* "domain": "googleapis.com",
* "metadata": {
@@ -1601,7 +1455,6 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
- *
* This response indicates the "pubsub.googleapis.com" is not visible to
* "projects/123" (or it may not exist).
*
@@ -1615,10 +1468,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request is related to a project for which GCP access is suspended.
- *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "pubsub.googleapis.com" service because GCP access is suspended:
- *
* { "reason": "GCP_SUSPENDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1626,7 +1477,6 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
- *
* This response indicates the associated GCP account has been suspended.
*
*
@@ -1640,10 +1490,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request violates the location policies when creating resources in
* the restricted region.
- *
* Example of an ErrorInfo when creating the Cloud Storage Bucket by
* "projects/123" for service storage.googleapis.com:
- *
* { "reason": "LOCATION_POLICY_VIOLATED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1651,7 +1499,6 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "storage.googleapis.com",
* }
* }
- *
* This response indicates creating the Cloud Storage Bucket in
* "locations/asia-northeast3" violates at least one location policy.
* The troubleshooting guidance is provided in the Help links.
@@ -1666,11 +1513,9 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request is denied because origin request header is missing.
- *
* Example of an ErrorInfo when
* accessing "pubsub.googleapis.com" service with an empty "Origin" request
* header.
- *
* {
* reason: "MISSING_ORIGIN"
* domain: "googleapis.com"
@@ -1692,10 +1537,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request is denied because the request contains more than one credential
* type that are individually acceptable, but not together. The customer
* should retry their request with only one set of credentials.
- *
* Example of an ErrorInfo when
* accessing "pubsub.googleapis.com" service with overloaded credentials.
- *
* {
* reason: "OVERLOADED_CREDENTIALS"
* domain: "googleapis.com"
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 c14d315414..f8083aca42 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
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/error_reason.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class ErrorReasonProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java
index fb27344c0e..dc201e8641 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/field_behavior.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -27,7 +26,6 @@
* is required in requests, or given as output but ignored as input).
* This **does not** change the behavior in protocol buffers itself; it only
* denotes the behavior and may affect how API tooling handles the field.
- *
* Note: This enum **may** receive new values in the future.
*
*
@@ -139,10 +137,8 @@ public enum FieldBehavior implements com.google.protobuf.ProtocolMessageEnum {
* google.api.resource) is used in the resource name to uniquely identify the
* resource. For AIP-compliant APIs, this should only be applied to the
* `name` field on the resource.
- *
* This behavior should not be applied to references to other resources within
* the message.
- *
* The identifier field of resources often have different field behavior
* depending on the request it is embedded in (e.g. for Create methods name
* is optional and unused, while for Update methods it is required). Instead
@@ -268,10 +264,8 @@ public enum FieldBehavior implements com.google.protobuf.ProtocolMessageEnum {
* google.api.resource) is used in the resource name to uniquely identify the
* resource. For AIP-compliant APIs, this should only be applied to the
* `name` field on the resource.
- *
* This behavior should not be applied to references to other resources within
* the message.
- *
* The identifier field of resources often have different field behavior
* depending on the request it is embedded in (e.g. for Create methods name
* is optional and unused, while for Update methods it is required). Instead
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java
index 17cd087c69..eb0fd208e1 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/field_behavior.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class FieldBehaviorProto {
@@ -38,9 +37,7 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
*
* A designation of a specific field behavior (required, output only, etc.)
* in protobuf messages.
- *
* Examples:
- *
* string name = 1 [(google.api.field_behavior) = REQUIRED];
* State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
* google.protobuf.Duration ttl = 1
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfo.java
index 99e7798e26..b3ea4b72aa 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfo.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/field_info.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -50,6 +49,71 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new FieldInfo();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private FieldInfo(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ int rawValue = input.readEnum();
+
+ format_ = rawValue;
+ break;
+ }
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ referencedTypes_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ referencedTypes_.add(
+ input.readMessage(com.google.api.TypeReference.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ referencedTypes_ = java.util.Collections.unmodifiableList(referencedTypes_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.FieldInfoProto.internal_static_google_api_FieldInfo_descriptor;
}
@@ -295,7 +359,7 @@ private Format(int value) {
}
public static final int FORMAT_FIELD_NUMBER = 1;
- private int format_ = 0;
+ private int format_;
/**
*
@@ -330,13 +394,12 @@ public int getFormatValue() {
*/
@java.lang.Override
public com.google.api.FieldInfo.Format getFormat() {
- com.google.api.FieldInfo.Format result = com.google.api.FieldInfo.Format.forNumber(format_);
+ @SuppressWarnings("deprecation")
+ com.google.api.FieldInfo.Format result = com.google.api.FieldInfo.Format.valueOf(format_);
return result == null ? com.google.api.FieldInfo.Format.UNRECOGNIZED : result;
}
public static final int REFERENCED_TYPES_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
private java.util.List referencedTypes_;
/**
@@ -344,7 +407,6 @@ public com.google.api.FieldInfo.Format getFormat() {
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -361,7 +423,6 @@ public java.util.List getReferencedTypesList() {
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -379,7 +440,6 @@ public java.util.List getReferencedTypesList() {
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -396,7 +456,6 @@ public int getReferencedTypesCount() {
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -413,7 +472,6 @@ public com.google.api.TypeReference getReferencedTypes(int index) {
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -445,7 +503,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < referencedTypes_.size(); i++) {
output.writeMessage(2, referencedTypes_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -460,7 +518,7 @@ public int getSerializedSize() {
for (int i = 0; i < referencedTypes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, referencedTypes_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -477,7 +535,7 @@ public boolean equals(final java.lang.Object obj) {
if (format_ != other.format_) return false;
if (!getReferencedTypesList().equals(other.getReferencedTypesList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -494,7 +552,7 @@ public int hashCode() {
hash = (37 * hash) + REFERENCED_TYPES_FIELD_NUMBER;
hash = (53 * hash) + getReferencedTypesList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -620,24 +678,32 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.FieldInfo.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getReferencedTypesFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
format_ = 0;
+
if (referencedTypesBuilder_ == null) {
referencedTypes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- referencedTypes_ = null;
referencedTypesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@@ -663,31 +729,19 @@ public com.google.api.FieldInfo build() {
@java.lang.Override
public com.google.api.FieldInfo buildPartial() {
com.google.api.FieldInfo result = new com.google.api.FieldInfo(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.FieldInfo result) {
+ int from_bitField0_ = bitField0_;
+ result.format_ = format_;
if (referencedTypesBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
referencedTypes_ = java.util.Collections.unmodifiableList(referencedTypes_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.referencedTypes_ = referencedTypes_;
} else {
result.referencedTypes_ = referencedTypesBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.FieldInfo result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.format_ = format_;
- }
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -742,7 +796,7 @@ public Builder mergeFrom(com.google.api.FieldInfo other) {
if (!other.referencedTypes_.isEmpty()) {
if (referencedTypes_.isEmpty()) {
referencedTypes_ = other.referencedTypes_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureReferencedTypesIsMutable();
referencedTypes_.addAll(other.referencedTypes_);
@@ -755,7 +809,7 @@ public Builder mergeFrom(com.google.api.FieldInfo other) {
referencedTypesBuilder_.dispose();
referencedTypesBuilder_ = null;
referencedTypes_ = other.referencedTypes_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
referencedTypesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getReferencedTypesFieldBuilder()
@@ -765,7 +819,7 @@ public Builder mergeFrom(com.google.api.FieldInfo other) {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -780,49 +834,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.FieldInfo parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8:
- {
- format_ = input.readEnum();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 18:
- {
- com.google.api.TypeReference m =
- input.readMessage(com.google.api.TypeReference.parser(), extensionRegistry);
- if (referencedTypesBuilder_ == null) {
- ensureReferencedTypesIsMutable();
- referencedTypes_.add(m);
- } else {
- referencedTypesBuilder_.addMessage(m);
- }
- break;
- } // case 18
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.FieldInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -863,8 +885,8 @@ public int getFormatValue() {
* @return This builder for chaining.
*/
public Builder setFormatValue(int value) {
+
format_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -884,7 +906,8 @@ public Builder setFormatValue(int value) {
*/
@java.lang.Override
public com.google.api.FieldInfo.Format getFormat() {
- com.google.api.FieldInfo.Format result = com.google.api.FieldInfo.Format.forNumber(format_);
+ @SuppressWarnings("deprecation")
+ com.google.api.FieldInfo.Format result = com.google.api.FieldInfo.Format.valueOf(format_);
return result == null ? com.google.api.FieldInfo.Format.UNRECOGNIZED : result;
}
@@ -906,7 +929,7 @@ public Builder setFormat(com.google.api.FieldInfo.Format value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000001;
+
format_ = value.getNumber();
onChanged();
return this;
@@ -926,7 +949,7 @@ public Builder setFormat(com.google.api.FieldInfo.Format value) {
* @return This builder for chaining.
*/
public Builder clearFormat() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
format_ = 0;
onChanged();
return this;
@@ -936,9 +959,9 @@ public Builder clearFormat() {
java.util.Collections.emptyList();
private void ensureReferencedTypesIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
referencedTypes_ = new java.util.ArrayList(referencedTypes_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000001;
}
}
@@ -953,7 +976,6 @@ private void ensureReferencedTypesIsMutable() {
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -973,7 +995,6 @@ public java.util.List getReferencedTypesList() {
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -993,7 +1014,6 @@ public int getReferencedTypesCount() {
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1013,7 +1033,6 @@ public com.google.api.TypeReference getReferencedTypes(int index) {
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1039,7 +1058,6 @@ public Builder setReferencedTypes(int index, com.google.api.TypeReference value)
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1063,7 +1081,6 @@ public Builder setReferencedTypes(
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1089,7 +1106,6 @@ public Builder addReferencedTypes(com.google.api.TypeReference value) {
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1115,7 +1131,6 @@ public Builder addReferencedTypes(int index, com.google.api.TypeReference value)
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1138,7 +1153,6 @@ public Builder addReferencedTypes(com.google.api.TypeReference.Builder builderFo
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1162,7 +1176,6 @@ public Builder addReferencedTypes(
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1186,7 +1199,6 @@ public Builder addAllReferencedTypes(
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1196,7 +1208,7 @@ public Builder addAllReferencedTypes(
public Builder clearReferencedTypes() {
if (referencedTypesBuilder_ == null) {
referencedTypes_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
referencedTypesBuilder_.clear();
@@ -1209,7 +1221,6 @@ public Builder clearReferencedTypes() {
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1232,7 +1243,6 @@ public Builder removeReferencedTypes(int index) {
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1248,7 +1258,6 @@ public com.google.api.TypeReference.Builder getReferencedTypesBuilder(int index)
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1268,7 +1277,6 @@ public com.google.api.TypeReferenceOrBuilder getReferencedTypesOrBuilder(int ind
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1289,7 +1297,6 @@ public com.google.api.TypeReferenceOrBuilder getReferencedTypesOrBuilder(int ind
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1306,7 +1313,6 @@ public com.google.api.TypeReference.Builder addReferencedTypesBuilder() {
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1323,7 +1329,6 @@ public com.google.api.TypeReference.Builder addReferencedTypesBuilder(int index)
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -1346,7 +1351,7 @@ public java.util.List getReferencedTypesBu
com.google.api.TypeReference.Builder,
com.google.api.TypeReferenceOrBuilder>(
referencedTypes_,
- ((bitField0_ & 0x00000002) != 0),
+ ((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
referencedTypes_ = null;
@@ -1386,18 +1391,7 @@ public FieldInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new FieldInfo(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoOrBuilder.java
index 1e689a6aca..60df0f7efc 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/field_info.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface FieldInfoOrBuilder
@@ -59,7 +58,6 @@ public interface FieldInfoOrBuilder
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -73,7 +71,6 @@ public interface FieldInfoOrBuilder
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -87,7 +84,6 @@ public interface FieldInfoOrBuilder
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -101,7 +97,6 @@ public interface FieldInfoOrBuilder
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
@@ -115,7 +110,6 @@ public interface FieldInfoOrBuilder
*
*
* The type(s) that the annotated, generic field may represent.
- *
* Currently, this must only be used on fields of type `google.protobuf.Any`.
* Supporting other generic types may be considered in the future.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoProto.java
index 21be351bbb..8eb474c09d 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/field_info.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class FieldInfoProto {
@@ -37,9 +36,7 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
*
*
* Rich semantic descriptor of an API field beyond the basic typing.
- *
* Examples:
- *
* string request_id = 1 [(google.api.field_info).format = UUID4];
* string old_ip_address = 2 [(google.api.field_info).format = IPV4];
* string new_ip_address = 3 [(google.api.field_info).format = IPV6];
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicy.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicy.java
index 78f97ec6d8..ddf004728a 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicy.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicy.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/policy.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -24,7 +23,6 @@
*
*
* Google API Policy Annotation
- *
* This message defines a simple API policy annotation that can be used to
* annotate API request and response message fields with applicable policies.
* One field may have multiple applicable policies that must all be satisfied
@@ -58,6 +56,71 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new FieldPolicy();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private FieldPolicy(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ selector_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ resourcePermission_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ resourceType_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.PolicyProto.internal_static_google_api_FieldPolicy_descriptor;
}
@@ -71,9 +134,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int SELECTOR_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object selector_ = "";
+ private volatile java.lang.Object selector_;
/**
*
@@ -81,11 +142,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Selects one or more request or response message fields to apply this
* `FieldPolicy`.
- *
* When a `FieldPolicy` is used in proto annotation, the selector must
* be left as empty. The service config generator will automatically fill
* the correct value.
- *
* When a `FieldPolicy` is used in service config, the selector must be a
* comma-separated string with valid request or response field paths,
* such as "foo.bar" or "foo.bar,foo.baz".
@@ -114,11 +173,9 @@ public java.lang.String getSelector() {
*
* Selects one or more request or response message fields to apply this
* `FieldPolicy`.
- *
* When a `FieldPolicy` is used in proto annotation, the selector must
* be left as empty. The service config generator will automatically fill
* the correct value.
- *
* When a `FieldPolicy` is used in service config, the selector must be a
* comma-separated string with valid request or response field paths,
* such as "foo.bar" or "foo.bar,foo.baz".
@@ -142,9 +199,7 @@ public com.google.protobuf.ByteString getSelectorBytes() {
}
public static final int RESOURCE_PERMISSION_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object resourcePermission_ = "";
+ private volatile java.lang.Object resourcePermission_;
/**
*
@@ -201,9 +256,7 @@ public com.google.protobuf.ByteString getResourcePermissionBytes() {
}
public static final int RESOURCE_TYPE_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object resourceType_ = "";
+ private volatile java.lang.Object resourceType_;
/**
*
@@ -276,7 +329,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceType_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -294,7 +347,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceType_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -312,7 +365,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getSelector().equals(other.getSelector())) return false;
if (!getResourcePermission().equals(other.getResourcePermission())) return false;
if (!getResourceType().equals(other.getResourceType())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -329,7 +382,7 @@ public int hashCode() {
hash = (53 * hash) + getResourcePermission().hashCode();
hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getResourceType().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -434,7 +487,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Google API Policy Annotation
- *
* This message defines a simple API policy annotation that can be used to
* annotate API request and response message fields with applicable policies.
* One field may have multiple applicable policies that must all be satisfied
@@ -462,19 +514,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.FieldPolicy.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
selector_ = "";
+
resourcePermission_ = "";
+
resourceType_ = "";
+
return this;
}
@@ -500,26 +561,13 @@ public com.google.api.FieldPolicy build() {
@java.lang.Override
public com.google.api.FieldPolicy buildPartial() {
com.google.api.FieldPolicy result = new com.google.api.FieldPolicy(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
+ result.selector_ = selector_;
+ result.resourcePermission_ = resourcePermission_;
+ result.resourceType_ = resourceType_;
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.FieldPolicy result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.selector_ = selector_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.resourcePermission_ = resourcePermission_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.resourceType_ = resourceType_;
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -567,20 +615,17 @@ public Builder mergeFrom(com.google.api.FieldPolicy other) {
if (other == com.google.api.FieldPolicy.getDefaultInstance()) return this;
if (!other.getSelector().isEmpty()) {
selector_ = other.selector_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getResourcePermission().isEmpty()) {
resourcePermission_ = other.resourcePermission_;
- bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getResourceType().isEmpty()) {
resourceType_ = other.resourceType_;
- bitField0_ |= 0x00000004;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -595,54 +640,20 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.FieldPolicy parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- selector_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- resourcePermission_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26:
- {
- resourceType_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.FieldPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private java.lang.Object selector_ = "";
/**
@@ -651,11 +662,9 @@ public Builder mergeFrom(
*
* Selects one or more request or response message fields to apply this
* `FieldPolicy`.
- *
* When a `FieldPolicy` is used in proto annotation, the selector must
* be left as empty. The service config generator will automatically fill
* the correct value.
- *
* When a `FieldPolicy` is used in service config, the selector must be a
* comma-separated string with valid request or response field paths,
* such as "foo.bar" or "foo.bar,foo.baz".
@@ -683,11 +692,9 @@ public java.lang.String getSelector() {
*
* Selects one or more request or response message fields to apply this
* `FieldPolicy`.
- *
* When a `FieldPolicy` is used in proto annotation, the selector must
* be left as empty. The service config generator will automatically fill
* the correct value.
- *
* When a `FieldPolicy` is used in service config, the selector must be a
* comma-separated string with valid request or response field paths,
* such as "foo.bar" or "foo.bar,foo.baz".
@@ -715,11 +722,9 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
* Selects one or more request or response message fields to apply this
* `FieldPolicy`.
- *
* When a `FieldPolicy` is used in proto annotation, the selector must
* be left as empty. The service config generator will automatically fill
* the correct value.
- *
* When a `FieldPolicy` is used in service config, the selector must be a
* comma-separated string with valid request or response field paths,
* such as "foo.bar" or "foo.bar,foo.baz".
@@ -734,8 +739,8 @@ public Builder setSelector(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -746,11 +751,9 @@ public Builder setSelector(java.lang.String value) {
*
* Selects one or more request or response message fields to apply this
* `FieldPolicy`.
- *
* When a `FieldPolicy` is used in proto annotation, the selector must
* be left as empty. The service config generator will automatically fill
* the correct value.
- *
* When a `FieldPolicy` is used in service config, the selector must be a
* comma-separated string with valid request or response field paths,
* such as "foo.bar" or "foo.bar,foo.baz".
@@ -761,8 +764,8 @@ public Builder setSelector(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearSelector() {
+
selector_ = getDefaultInstance().getSelector();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -773,11 +776,9 @@ public Builder clearSelector() {
*
* Selects one or more request or response message fields to apply this
* `FieldPolicy`.
- *
* When a `FieldPolicy` is used in proto annotation, the selector must
* be left as empty. The service config generator will automatically fill
* the correct value.
- *
* When a `FieldPolicy` is used in service config, the selector must be a
* comma-separated string with valid request or response field paths,
* such as "foo.bar" or "foo.bar,foo.baz".
@@ -793,8 +794,8 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -872,8 +873,8 @@ public Builder setResourcePermission(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
resourcePermission_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -893,8 +894,8 @@ public Builder setResourcePermission(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearResourcePermission() {
+
resourcePermission_ = getDefaultInstance().getResourcePermission();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -919,8 +920,8 @@ public Builder setResourcePermissionBytes(com.google.protobuf.ByteString value)
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
resourcePermission_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -989,8 +990,8 @@ public Builder setResourceType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
resourceType_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1007,8 +1008,8 @@ public Builder setResourceType(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearResourceType() {
+
resourceType_ = getDefaultInstance().getResourceType();
- bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1030,8 +1031,8 @@ public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
resourceType_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1068,18 +1069,7 @@ public FieldPolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new FieldPolicy(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicyOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicyOrBuilder.java
index fee039eede..a980d30d7e 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicyOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicyOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/policy.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface FieldPolicyOrBuilder
@@ -30,11 +29,9 @@ public interface FieldPolicyOrBuilder
*
* Selects one or more request or response message fields to apply this
* `FieldPolicy`.
- *
* When a `FieldPolicy` is used in proto annotation, the selector must
* be left as empty. The service config generator will automatically fill
* the correct value.
- *
* When a `FieldPolicy` is used in service config, the selector must be a
* comma-separated string with valid request or response field paths,
* such as "foo.bar" or "foo.bar,foo.baz".
@@ -52,11 +49,9 @@ public interface FieldPolicyOrBuilder
*
* Selects one or more request or response message fields to apply this
* `FieldPolicy`.
- *
* When a `FieldPolicy` is used in proto annotation, the selector must
* be left as empty. The service config generator will automatically fill
* the correct value.
- *
* When a `FieldPolicy` is used in service config, the selector must be a
* comma-separated string with valid request or response field paths,
* such as "foo.bar" or "foo.bar,foo.baz".
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java
index a377bec6af..081ab75b04 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -47,14 +46,91 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new GoSettings();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private GoSettings(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.api.CommonLanguageSettings.Builder subBuilder = null;
+ if (common_ != null) {
+ subBuilder = common_.toBuilder();
+ }
+ common_ =
+ input.readMessage(
+ com.google.api.CommonLanguageSettings.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(common_);
+ common_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ renamedServices_ =
+ com.google.protobuf.MapField.newMapField(
+ RenamedServicesDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
+ }
+ com.google.protobuf.MapEntry renamedServices__ =
+ input.readMessage(
+ RenamedServicesDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ renamedServices_
+ .getMutableMap()
+ .put(renamedServices__.getKey(), renamedServices__.getValue());
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_GoSettings_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetRenamedServices();
@@ -71,7 +147,6 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
com.google.api.GoSettings.class, com.google.api.GoSettings.Builder.class);
}
- private int bitField0_;
public static final int COMMON_FIELD_NUMBER = 1;
private com.google.api.CommonLanguageSettings common_;
@@ -88,7 +163,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
*/
@java.lang.Override
public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
+ return common_ != null;
}
/**
@@ -118,7 +193,7 @@ public com.google.api.CommonLanguageSettings getCommon() {
*/
@java.lang.Override
public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() {
- return common_ == null ? com.google.api.CommonLanguageSettings.getDefaultInstance() : common_;
+ return getCommon();
}
public static final int RENAMED_SERVICES_FIELD_NUMBER = 2;
@@ -134,7 +209,6 @@ private static final class RenamedServicesDefaultEntryHolder {
"");
}
- @SuppressWarnings("serial")
private com.google.protobuf.MapField renamedServices_;
private com.google.protobuf.MapField
@@ -157,7 +231,6 @@ public int getRenamedServicesCount() {
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
@@ -188,7 +261,6 @@ public java.util.Map getRenamedServices() {
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
@@ -209,7 +281,6 @@ public java.util.Map getRenamedServicesMap()
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
@@ -219,10 +290,8 @@ public java.util.Map getRenamedServicesMap()
* map<string, string> renamed_services = 2;
*/
@java.lang.Override
- public /* nullable */ java.lang.String getRenamedServicesOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
+ public java.lang.String getRenamedServicesOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -237,7 +306,6 @@ public java.util.Map getRenamedServicesMap()
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
@@ -272,12 +340,12 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (common_ != null) {
output.writeMessage(1, getCommon());
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetRenamedServices(), RenamedServicesDefaultEntryHolder.defaultEntry, 2);
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -286,7 +354,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (common_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon());
}
for (java.util.Map.Entry entry :
@@ -299,7 +367,7 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, renamedServices__);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -319,7 +387,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getCommon().equals(other.getCommon())) return false;
}
if (!internalGetRenamedServices().equals(other.internalGetRenamedServices())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -338,7 +406,7 @@ public int hashCode() {
hash = (37 * hash) + RENAMED_SERVICES_FIELD_NUMBER;
hash = (53 * hash) + internalGetRenamedServices().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -456,8 +524,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetRenamedServices();
@@ -467,8 +534,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
switch (number) {
case 2:
return internalGetMutableRenamedServices();
@@ -496,18 +562,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getCommonFieldBuilder();
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- common_ = null;
- if (commonBuilder_ != null) {
- commonBuilder_.dispose();
+ if (commonBuilder_ == null) {
+ common_ = null;
+ } else {
+ common_ = null;
commonBuilder_ = null;
}
internalGetMutableRenamedServices().clear();
@@ -536,27 +600,18 @@ public com.google.api.GoSettings build() {
@java.lang.Override
public com.google.api.GoSettings buildPartial() {
com.google.api.GoSettings result = new com.google.api.GoSettings(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ int from_bitField0_ = bitField0_;
+ if (commonBuilder_ == null) {
+ result.common_ = common_;
+ } else {
+ result.common_ = commonBuilder_.build();
}
+ result.renamedServices_ = internalGetRenamedServices();
+ result.renamedServices_.makeImmutable();
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.GoSettings result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.renamedServices_ = internalGetRenamedServices();
- result.renamedServices_.makeImmutable();
- }
- result.bitField0_ |= to_bitField0_;
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -606,8 +661,7 @@ public Builder mergeFrom(com.google.api.GoSettings other) {
mergeCommon(other.getCommon());
}
internalGetMutableRenamedServices().mergeFrom(other.internalGetRenamedServices());
- bitField0_ |= 0x00000002;
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -622,49 +676,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.GoSettings parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- input.readMessage(getCommonFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- com.google.protobuf.MapEntry renamedServices__ =
- input.readMessage(
- RenamedServicesDefaultEntryHolder.defaultEntry.getParserForType(),
- extensionRegistry);
- internalGetMutableRenamedServices()
- .getMutableMap()
- .put(renamedServices__.getKey(), renamedServices__.getValue());
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.GoSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -689,7 +711,7 @@ public Builder mergeFrom(
* @return Whether the common field is set.
*/
public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
+ return commonBuilder_ != null || common_ != null;
}
/**
@@ -728,11 +750,11 @@ public Builder setCommon(com.google.api.CommonLanguageSettings value) {
throw new NullPointerException();
}
common_ = value;
+ onChanged();
} else {
commonBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -748,11 +770,11 @@ public Builder setCommon(com.google.api.CommonLanguageSettings value) {
public Builder setCommon(com.google.api.CommonLanguageSettings.Builder builderForValue) {
if (commonBuilder_ == null) {
common_ = builderForValue.build();
+ onChanged();
} else {
commonBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -767,20 +789,19 @@ public Builder setCommon(com.google.api.CommonLanguageSettings.Builder builderFo
*/
public Builder mergeCommon(com.google.api.CommonLanguageSettings value) {
if (commonBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)
- && common_ != null
- && common_ != com.google.api.CommonLanguageSettings.getDefaultInstance()) {
- getCommonBuilder().mergeFrom(value);
+ if (common_ != null) {
+ common_ =
+ com.google.api.CommonLanguageSettings.newBuilder(common_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
common_ = value;
}
+ onChanged();
} else {
commonBuilder_.mergeFrom(value);
}
- if (common_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
@@ -794,13 +815,14 @@ public Builder mergeCommon(com.google.api.CommonLanguageSettings value) {
* .google.api.CommonLanguageSettings common = 1;
*/
public Builder clearCommon() {
- bitField0_ = (bitField0_ & ~0x00000001);
- common_ = null;
- if (commonBuilder_ != null) {
- commonBuilder_.dispose();
+ if (commonBuilder_ == null) {
+ common_ = null;
+ onChanged();
+ } else {
+ common_ = null;
commonBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -814,7 +836,7 @@ public Builder clearCommon() {
* .google.api.CommonLanguageSettings common = 1;
*/
public com.google.api.CommonLanguageSettings.Builder getCommonBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getCommonFieldBuilder().getBuilder();
}
@@ -877,6 +899,8 @@ public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() {
private com.google.protobuf.MapField
internalGetMutableRenamedServices() {
+ onChanged();
+ ;
if (renamedServices_ == null) {
renamedServices_ =
com.google.protobuf.MapField.newMapField(
@@ -885,8 +909,6 @@ public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() {
if (!renamedServices_.isMutable()) {
renamedServices_ = renamedServices_.copy();
}
- bitField0_ |= 0x00000002;
- onChanged();
return renamedServices_;
}
@@ -901,7 +923,6 @@ public int getRenamedServicesCount() {
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
@@ -932,7 +953,6 @@ public java.util.Map getRenamedServices() {
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
@@ -953,7 +973,6 @@ public java.util.Map getRenamedServicesMap()
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
@@ -963,10 +982,8 @@ public java.util.Map getRenamedServicesMap()
* map<string, string> renamed_services = 2;
*/
@java.lang.Override
- public /* nullable */ java.lang.String getRenamedServicesOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
+ public java.lang.String getRenamedServicesOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -981,7 +998,6 @@ public java.util.Map getRenamedServicesMap()
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
@@ -1003,7 +1019,6 @@ public java.lang.String getRenamedServicesOrThrow(java.lang.String key) {
}
public Builder clearRenamedServices() {
- bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableRenamedServices().getMutableMap().clear();
return this;
}
@@ -1015,7 +1030,6 @@ public Builder clearRenamedServices() {
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
@@ -1035,7 +1049,6 @@ public Builder removeRenamedServices(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableRenamedServices() {
- bitField0_ |= 0x00000002;
return internalGetMutableRenamedServices().getMutableMap();
}
@@ -1046,7 +1059,6 @@ public java.util.Map getMutableRenamedServic
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
@@ -1062,8 +1074,8 @@ public Builder putRenamedServices(java.lang.String key, java.lang.String value)
if (value == null) {
throw new NullPointerException("map value");
}
+
internalGetMutableRenamedServices().getMutableMap().put(key, value);
- bitField0_ |= 0x00000002;
return this;
}
@@ -1074,7 +1086,6 @@ public Builder putRenamedServices(java.lang.String key, java.lang.String value)
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
@@ -1085,7 +1096,6 @@ public Builder putRenamedServices(java.lang.String key, java.lang.String value)
*/
public Builder putAllRenamedServices(java.util.Map values) {
internalGetMutableRenamedServices().getMutableMap().putAll(values);
- bitField0_ |= 0x00000002;
return this;
}
@@ -1121,18 +1131,7 @@ public GoSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new GoSettings(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettingsOrBuilder.java
index ac5627b23f..3560355dc4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettingsOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettingsOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface GoSettingsOrBuilder
@@ -68,7 +67,6 @@ public interface GoSettingsOrBuilder
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
@@ -86,7 +84,6 @@ public interface GoSettingsOrBuilder
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
@@ -108,7 +105,6 @@ public interface GoSettingsOrBuilder
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
@@ -126,7 +122,6 @@ public interface GoSettingsOrBuilder
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
@@ -135,6 +130,7 @@ public interface GoSettingsOrBuilder
*
* map<string, string> renamed_services = 2;
*/
+
/* nullable */
java.lang.String getRenamedServicesOrDefault(
java.lang.String key,
@@ -148,7 +144,6 @@ java.lang.String getRenamedServicesOrDefault(
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client
* and call options.
- *
* publishing:
* go_settings:
* renamed_services:
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java
index eeb976a475..8313af01bb 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/http.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -51,6 +50,68 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Http();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Http(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ rules_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ rules_.add(input.readMessage(com.google.api.HttpRule.parser(), extensionRegistry));
+ break;
+ }
+ case 16:
+ {
+ fullyDecodeReservedExpansion_ = input.readBool();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ rules_ = java.util.Collections.unmodifiableList(rules_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.HttpProto.internal_static_google_api_Http_descriptor;
}
@@ -64,8 +125,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int RULES_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
private java.util.List rules_;
/**
@@ -73,7 +132,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -89,7 +147,6 @@ public java.util.List getRulesList() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -105,7 +162,6 @@ public java.util.List extends com.google.api.HttpRuleOrBuilder> getRulesOrBuil
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -121,7 +177,6 @@ public int getRulesCount() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -137,7 +192,6 @@ public com.google.api.HttpRule getRules(int index) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -149,7 +203,7 @@ public com.google.api.HttpRuleOrBuilder getRulesOrBuilder(int index) {
}
public static final int FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER = 2;
- private boolean fullyDecodeReservedExpansion_ = false;
+ private boolean fullyDecodeReservedExpansion_;
/**
*
@@ -158,7 +212,6 @@ public com.google.api.HttpRuleOrBuilder getRulesOrBuilder(int index) {
* When set to true, URL path parameters will be fully URI-decoded except in
* cases of single segment matches in reserved expansion, where "%2F" will be
* left encoded.
- *
* The default behavior is to not decode RFC 6570 reserved characters in multi
* segment matches.
*
@@ -192,7 +245,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (fullyDecodeReservedExpansion_ != false) {
output.writeBool(2, fullyDecodeReservedExpansion_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -208,7 +261,7 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeBoolSize(2, fullyDecodeReservedExpansion_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -225,7 +278,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getRulesList().equals(other.getRulesList())) return false;
if (getFullyDecodeReservedExpansion() != other.getFullyDecodeReservedExpansion()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -243,7 +296,7 @@ public int hashCode() {
hash = (37 * hash) + FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER;
hash =
(53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullyDecodeReservedExpansion());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -371,24 +424,32 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Http.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getRulesFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
if (rulesBuilder_ == null) {
rules_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- rules_ = null;
rulesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
fullyDecodeReservedExpansion_ = false;
+
return this;
}
@@ -414,15 +475,7 @@ public com.google.api.Http build() {
@java.lang.Override
public com.google.api.Http buildPartial() {
com.google.api.Http result = new com.google.api.Http(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.Http result) {
+ int from_bitField0_ = bitField0_;
if (rulesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
rules_ = java.util.Collections.unmodifiableList(rules_);
@@ -432,13 +485,9 @@ private void buildPartialRepeatedFields(com.google.api.Http result) {
} else {
result.rules_ = rulesBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.Http result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.fullyDecodeReservedExpansion_ = fullyDecodeReservedExpansion_;
- }
+ result.fullyDecodeReservedExpansion_ = fullyDecodeReservedExpansion_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -516,7 +565,7 @@ public Builder mergeFrom(com.google.api.Http other) {
if (other.getFullyDecodeReservedExpansion() != false) {
setFullyDecodeReservedExpansion(other.getFullyDecodeReservedExpansion());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -531,49 +580,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Http parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- com.google.api.HttpRule m =
- input.readMessage(com.google.api.HttpRule.parser(), extensionRegistry);
- if (rulesBuilder_ == null) {
- ensureRulesIsMutable();
- rules_.add(m);
- } else {
- rulesBuilder_.addMessage(m);
- }
- break;
- } // case 10
- case 16:
- {
- fullyDecodeReservedExpansion_ = input.readBool();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Http) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -599,7 +616,6 @@ private void ensureRulesIsMutable() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -618,7 +634,6 @@ public java.util.List getRulesList() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -637,7 +652,6 @@ public int getRulesCount() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -656,7 +670,6 @@ public com.google.api.HttpRule getRules(int index) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -681,7 +694,6 @@ public Builder setRules(int index, com.google.api.HttpRule value) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -703,7 +715,6 @@ public Builder setRules(int index, com.google.api.HttpRule.Builder builderForVal
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -728,7 +739,6 @@ public Builder addRules(com.google.api.HttpRule value) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -753,7 +763,6 @@ public Builder addRules(int index, com.google.api.HttpRule value) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -775,7 +784,6 @@ public Builder addRules(com.google.api.HttpRule.Builder builderForValue) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -797,7 +805,6 @@ public Builder addRules(int index, com.google.api.HttpRule.Builder builderForVal
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -819,7 +826,6 @@ public Builder addAllRules(java.lang.Iterable extends com.google.api.HttpRule>
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -841,7 +847,6 @@ public Builder clearRules() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -863,7 +868,6 @@ public Builder removeRules(int index) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -878,7 +882,6 @@ public com.google.api.HttpRule.Builder getRulesBuilder(int index) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -897,7 +900,6 @@ public com.google.api.HttpRuleOrBuilder getRulesOrBuilder(int index) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -916,7 +918,6 @@ public java.util.List extends com.google.api.HttpRuleOrBuilder> getRulesOrBuil
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -931,7 +932,6 @@ public com.google.api.HttpRule.Builder addRulesBuilder() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -946,7 +946,6 @@ public com.google.api.HttpRule.Builder addRulesBuilder(int index) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -982,7 +981,6 @@ public java.util.List getRulesBuilderList() {
* When set to true, URL path parameters will be fully URI-decoded except in
* cases of single segment matches in reserved expansion, where "%2F" will be
* left encoded.
- *
* The default behavior is to not decode RFC 6570 reserved characters in multi
* segment matches.
*
@@ -1003,7 +1001,6 @@ public boolean getFullyDecodeReservedExpansion() {
* When set to true, URL path parameters will be fully URI-decoded except in
* cases of single segment matches in reserved expansion, where "%2F" will be
* left encoded.
- *
* The default behavior is to not decode RFC 6570 reserved characters in multi
* segment matches.
*
@@ -1016,7 +1013,6 @@ public boolean getFullyDecodeReservedExpansion() {
public Builder setFullyDecodeReservedExpansion(boolean value) {
fullyDecodeReservedExpansion_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1028,7 +1024,6 @@ public Builder setFullyDecodeReservedExpansion(boolean value) {
* When set to true, URL path parameters will be fully URI-decoded except in
* cases of single segment matches in reserved expansion, where "%2F" will be
* left encoded.
- *
* The default behavior is to not decode RFC 6570 reserved characters in multi
* segment matches.
*
@@ -1038,7 +1033,7 @@ public Builder setFullyDecodeReservedExpansion(boolean value) {
* @return This builder for chaining.
*/
public Builder clearFullyDecodeReservedExpansion() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
fullyDecodeReservedExpansion_ = false;
onChanged();
return this;
@@ -1076,18 +1071,7 @@ public Http parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Http(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java
index 9128b3e272..e530a5797c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/httpbody.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -26,44 +25,31 @@
* Message that represents an arbitrary HTTP body. It should only be used for
* payload formats that can't be represented as JSON, such as raw binary or
* an HTML page.
- *
- *
* This message can be used both in streaming and non-streaming API methods in
* the request as well as the response.
- *
* It can be used as a top-level request field, which is convenient if one
* wants to extract parameters from either the URL or HTTP template into the
* request fields and also want access to the raw HTTP body.
- *
* Example:
- *
* message GetResourceRequest {
* // A unique request id.
* string request_id = 1;
- *
* // The raw HTTP body is bound to this field.
* google.api.HttpBody http_body = 2;
- *
* }
- *
* service ResourceService {
* rpc GetResource(GetResourceRequest)
* returns (google.api.HttpBody);
* rpc UpdateResource(google.api.HttpBody)
* returns (google.protobuf.Empty);
- *
* }
- *
* Example with streaming methods:
- *
* service CaldavService {
* rpc GetCalendar(stream google.api.HttpBody)
* returns (stream google.api.HttpBody);
* rpc UpdateCalendar(stream google.api.HttpBody)
* returns (stream google.api.HttpBody);
- *
* }
- *
* Use of this type only changes how the request and response bodies are
* handled, all other features will continue to work unchanged.
*
@@ -93,6 +79,76 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new HttpBody();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private HttpBody(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ contentType_ = s;
+ break;
+ }
+ case 18:
+ {
+ data_ = input.readBytes();
+ break;
+ }
+ case 26:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ extensions_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ extensions_.add(
+ input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ extensions_ = java.util.Collections.unmodifiableList(extensions_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.HttpBodyProto.internal_static_google_api_HttpBody_descriptor;
}
@@ -106,9 +162,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int CONTENT_TYPE_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object contentType_ = "";
+ private volatile java.lang.Object contentType_;
/**
*
@@ -159,7 +213,7 @@ public com.google.protobuf.ByteString getContentTypeBytes() {
}
public static final int DATA_FIELD_NUMBER = 2;
- private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
+ private com.google.protobuf.ByteString data_;
/**
*
@@ -178,8 +232,6 @@ public com.google.protobuf.ByteString getData() {
}
public static final int EXTENSIONS_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
private java.util.List extensions_;
/**
@@ -280,7 +332,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < extensions_.size(); i++) {
output.writeMessage(3, extensions_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -298,7 +350,7 @@ public int getSerializedSize() {
for (int i = 0; i < extensions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, extensions_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -316,7 +368,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getContentType().equals(other.getContentType())) return false;
if (!getData().equals(other.getData())) return false;
if (!getExtensionsList().equals(other.getExtensionsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -335,7 +387,7 @@ public int hashCode() {
hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER;
hash = (53 * hash) + getExtensionsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -442,44 +494,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* Message that represents an arbitrary HTTP body. It should only be used for
* payload formats that can't be represented as JSON, such as raw binary or
* an HTML page.
- *
- *
* This message can be used both in streaming and non-streaming API methods in
* the request as well as the response.
- *
* It can be used as a top-level request field, which is convenient if one
* wants to extract parameters from either the URL or HTTP template into the
* request fields and also want access to the raw HTTP body.
- *
* Example:
- *
* message GetResourceRequest {
* // A unique request id.
* string request_id = 1;
- *
* // The raw HTTP body is bound to this field.
* google.api.HttpBody http_body = 2;
- *
* }
- *
* service ResourceService {
* rpc GetResource(GetResourceRequest)
* returns (google.api.HttpBody);
* rpc UpdateResource(google.api.HttpBody)
* returns (google.protobuf.Empty);
- *
* }
- *
* Example with streaming methods:
- *
* service CaldavService {
* rpc GetCalendar(stream google.api.HttpBody)
* returns (stream google.api.HttpBody);
* rpc UpdateCalendar(stream google.api.HttpBody)
* returns (stream google.api.HttpBody);
- *
* }
- *
* Use of this type only changes how the request and response bodies are
* handled, all other features will continue to work unchanged.
*
@@ -503,25 +542,34 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.HttpBody.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getExtensionsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
contentType_ = "";
+
data_ = com.google.protobuf.ByteString.EMPTY;
+
if (extensionsBuilder_ == null) {
extensions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- extensions_ = null;
extensionsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@@ -547,34 +595,20 @@ public com.google.api.HttpBody build() {
@java.lang.Override
public com.google.api.HttpBody buildPartial() {
com.google.api.HttpBody result = new com.google.api.HttpBody(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.HttpBody result) {
+ int from_bitField0_ = bitField0_;
+ result.contentType_ = contentType_;
+ result.data_ = data_;
if (extensionsBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
extensions_ = java.util.Collections.unmodifiableList(extensions_);
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.extensions_ = extensions_;
} else {
result.extensions_ = extensionsBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.HttpBody result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.contentType_ = contentType_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.data_ = data_;
- }
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -624,7 +658,6 @@ public Builder mergeFrom(com.google.api.HttpBody other) {
if (other == com.google.api.HttpBody.getDefaultInstance()) return this;
if (!other.getContentType().isEmpty()) {
contentType_ = other.contentType_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
@@ -634,7 +667,7 @@ public Builder mergeFrom(com.google.api.HttpBody other) {
if (!other.extensions_.isEmpty()) {
if (extensions_.isEmpty()) {
extensions_ = other.extensions_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureExtensionsIsMutable();
extensions_.addAll(other.extensions_);
@@ -647,7 +680,7 @@ public Builder mergeFrom(com.google.api.HttpBody other) {
extensionsBuilder_.dispose();
extensionsBuilder_ = null;
extensions_ = other.extensions_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
extensionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getExtensionsFieldBuilder()
@@ -657,7 +690,7 @@ public Builder mergeFrom(com.google.api.HttpBody other) {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -672,55 +705,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.HttpBody parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- contentType_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- data_ = input.readBytes();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26:
- {
- com.google.protobuf.Any m =
- input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
- if (extensionsBuilder_ == null) {
- ensureExtensionsIsMutable();
- extensions_.add(m);
- } else {
- extensionsBuilder_.addMessage(m);
- }
- break;
- } // case 26
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.HttpBody) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -790,8 +785,8 @@ public Builder setContentType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
contentType_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -808,8 +803,8 @@ public Builder setContentType(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearContentType() {
+
contentType_ = getDefaultInstance().getContentType();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -831,8 +826,8 @@ public Builder setContentTypeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
contentType_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -871,8 +866,8 @@ public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
+
data_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -889,7 +884,7 @@ public Builder setData(com.google.protobuf.ByteString value) {
* @return This builder for chaining.
*/
public Builder clearData() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
data_ = getDefaultInstance().getData();
onChanged();
return this;
@@ -898,9 +893,9 @@ public Builder clearData() {
private java.util.List extensions_ = java.util.Collections.emptyList();
private void ensureExtensionsIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
extensions_ = new java.util.ArrayList(extensions_);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000001;
}
}
@@ -1133,7 +1128,7 @@ public Builder addAllExtensions(java.lang.Iterable extends com.google.protobuf
public Builder clearExtensions() {
if (extensionsBuilder_ == null) {
extensions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
extensionsBuilder_.clear();
@@ -1266,7 +1261,7 @@ public java.util.List getExtensionsBuilderList(
com.google.protobuf.Any,
com.google.protobuf.Any.Builder,
com.google.protobuf.AnyOrBuilder>(
- extensions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+ extensions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
extensions_ = null;
}
return extensionsBuilder_;
@@ -1304,18 +1299,7 @@ public HttpBody parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new HttpBody(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyOrBuilder.java
index 1f46dc6b74..f069f2e119 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/httpbody.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface HttpBodyOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyProto.java
index 73acb93323..5043b6de20 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/httpbody.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class HttpBodyProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java
index acbea2c9b5..69274e2ab3 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/http.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface HttpOrBuilder
@@ -29,7 +28,6 @@ public interface HttpOrBuilder
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -42,7 +40,6 @@ public interface HttpOrBuilder
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -55,7 +52,6 @@ public interface HttpOrBuilder
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -68,7 +64,6 @@ public interface HttpOrBuilder
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -81,7 +76,6 @@ public interface HttpOrBuilder
*
*
* A list of HTTP configuration rules that apply to individual API methods.
- *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -96,7 +90,6 @@ public interface HttpOrBuilder
* When set to true, URL path parameters will be fully URI-decoded except in
* cases of single segment matches in reserved expansion, where "%2F" will be
* left encoded.
- *
* The default behavior is to not decode RFC 6570 reserved characters in multi
* segment matches.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpProto.java
index a494ef768b..e6325d9dfd 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/http.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class HttpProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java
index 9125f1ed4d..da906a59b4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/http.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -24,7 +23,6 @@
*
*
* gRPC Transcoding
- *
* gRPC Transcoding is a feature for mapping between a gRPC method and one or
* more HTTP REST endpoints. It allows developers to build a single API service
* that supports both gRPC APIs and REST APIs. Many systems, including [Google
@@ -33,21 +31,17 @@
* Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
* and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
* and use it for large scale production services.
- *
* `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
* how different portions of the gRPC request message are mapped to the URL
* path, URL query parameters, and HTTP request body. It also controls how the
* gRPC response message is mapped to the HTTP response body. `HttpRule` is
* typically specified as an `google.api.http` annotation on the gRPC method.
- *
* Each mapping specifies a URL path template and an HTTP method. The path
* template may refer to one or more fields in the gRPC request message, as long
* as each field is a non-repeated field with a primitive (non-message) type.
* The path template controls how fields of the request message are mapped to
* the URL path.
- *
* Example:
- *
* service Messaging {
* rpc GetMessage(GetMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -61,16 +55,12 @@
* message Message {
* string text = 1; // The resource content.
* }
- *
* This enables an HTTP REST to gRPC mapping as below:
- *
* - HTTP: `GET /v1/messages/123456`
* - gRPC: `GetMessage(name: "messages/123456")`
- *
* Any fields in the request message which are not bound by the path template
* automatically become HTTP query parameters if there is no HTTP request body.
* For example:
- *
* service Messaging {
* rpc GetMessage(GetMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -86,24 +76,19 @@
* int64 revision = 2; // Mapped to URL query parameter `revision`.
* SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
* }
- *
* This enables a HTTP JSON to RPC mapping as below:
- *
* - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo`
* - gRPC: `GetMessage(message_id: "123456" revision: 2 sub:
* SubMessage(subfield: "foo"))`
- *
* Note that fields which are mapped to URL query parameters must have a
* primitive type or a repeated primitive type or a non-repeated message type.
* In the case of a repeated type, the parameter can be repeated in the URL
* as `...?param=A¶m=B`. In the case of a message type, each field of the
* message is mapped to a separate parameter, such as
* `...?foo.a=A&foo.b=B&foo.c=C`.
- *
* For HTTP methods that allow a request body, the `body` field
* specifies the mapping. Consider a REST update method on the
* message resource collection:
- *
* service Messaging {
* rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -116,19 +101,15 @@
* string message_id = 1; // mapped to the URL
* Message message = 2; // mapped to the body
* }
- *
* The following HTTP JSON to RPC mapping is enabled, where the
* representation of the JSON in the request body is determined by
* protos JSON encoding:
- *
* - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
* - gRPC: `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
- *
* The special name `*` can be used in the body mapping to define that
* every field not bound by the path template should be mapped to the
* request body. This enables the following alternative definition of
* the update method:
- *
* service Messaging {
* rpc UpdateMessage(Message) returns (Message) {
* option (google.api.http) = {
@@ -141,22 +122,16 @@
* string message_id = 1;
* string text = 2;
* }
- *
- *
* The following HTTP JSON to RPC mapping is enabled:
- *
* - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
* - gRPC: `UpdateMessage(message_id: "123456" text: "Hi!")`
- *
* Note that when using `*` in the body mapping, it is not possible to
* have HTTP parameters, as all fields not bound by the path end in
* the body. This makes this option more rarely used in practice when
* defining REST APIs. The common usage of `*` is in custom methods
* which don't use the URL at all for transferring data.
- *
* It is possible to define multiple HTTP methods for one RPC by using
* the `additional_bindings` option. Example:
- *
* service Messaging {
* rpc GetMessage(GetMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -171,17 +146,12 @@
* string message_id = 1;
* string user_id = 2;
* }
- *
* This enables the following two alternative HTTP JSON to RPC mappings:
- *
* - HTTP: `GET /v1/messages/123456`
* - gRPC: `GetMessage(message_id: "123456")`
- *
* - HTTP: `GET /v1/users/me/messages/123456`
* - gRPC: `GetMessage(user_id: "me" message_id: "123456")`
- *
* Rules for HTTP mapping
- *
* 1. Leaf request fields (recursive expansion nested messages in the request
* message) are classified into three categories:
* - Fields referred by the path template. They are passed via the URL path.
@@ -198,29 +168,23 @@
* 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
* request body, all
* fields are passed via URL path and URL query parameters.
- *
* Path template syntax
- *
* Template = "/" Segments [ Verb ] ;
* Segments = Segment { "/" Segment } ;
* Segment = "*" | "**" | LITERAL | Variable ;
* Variable = "{" FieldPath [ "=" Segments ] "}" ;
* FieldPath = IDENT { "." IDENT } ;
* Verb = ":" LITERAL ;
- *
* The syntax `*` matches a single URL path segment. The syntax `**` matches
* zero or more URL path segments, which must be the last part of the URL path
* except the `Verb`.
- *
* The syntax `Variable` matches part of the URL path as specified by its
* template. A variable template must not contain other variables. If a variable
* matches a single path segment, its template may be omitted, e.g. `{var}`
* is equivalent to `{var=*}`.
- *
* The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
* contains any reserved character, such characters should be percent-encoded
* before the matching.
- *
* If a variable contains exactly one path segment, such as `"{var}"` or
* `"{var=*}"`, when such a variable is expanded into a URL path on the client
* side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
@@ -228,7 +192,6 @@
* [Discovery
* Document](https://developers.google.com/discovery/v1/reference/apis) as
* `{var}`.
- *
* If a variable contains multiple path segments, such as `"{var=foo/*}"`
* or `"{var=**}"`, when such a variable is expanded into a URL path on the
* client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
@@ -237,14 +200,11 @@
* [Discovery
* Document](https://developers.google.com/discovery/v1/reference/apis) as
* `{+var}`.
- *
* Using gRPC API Service Configuration
- *
* gRPC API Service Configuration (service config) is a configuration language
* for configuring a gRPC service to become a user-facing product. The
* service config is simply the YAML representation of the `google.api.Service`
* proto message.
- *
* As an alternative to annotating your proto file, you can configure gRPC
* transcoding in your service config YAML files. You do this by specifying a
* `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
@@ -252,20 +212,15 @@
* have a proto that is reused in multiple services. Note that any transcoding
* specified in the service config will override any matching transcoding
* configuration in the proto.
- *
* The following example selects a gRPC method and applies an `HttpRule` to it:
- *
* http:
* rules:
* - selector: example.v1.Messaging.GetMessage
* get: /v1/messages/{message_id}/{sub.subfield}
- *
* Special notes
- *
* When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
* proto to JSON conversion must follow the [proto3
* specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
- *
* While the single segment variable follows the semantics of
* [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
* Expansion, the multi segment variable **does not** follow RFC 6570 Section
@@ -273,17 +228,13 @@
* does not expand special characters like `?` and `#`, which would lead
* to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
* for multi segment variables.
- *
* The path variables **must not** refer to any repeated or mapped field,
* because client libraries are not capable of handling such variable expansion.
- *
* The path variables **must not** capture the leading "/" character. The reason
* is that the most common use case "{var}" does not capture the leading "/"
* character. For consistency, all path variables must share the same behavior.
- *
* Repeated message fields must not be mapped to URL query parameters, because
* no client library can support such complicated mapping.
- *
* If an API needs to use a JSON array for request or response body, it can map
* the request or response body to a repeated field. However, some gRPC
* Transcoding implementations may not support this feature.
@@ -315,6 +266,135 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new HttpRule();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private HttpRule(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ selector_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ patternCase_ = 2;
+ pattern_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ patternCase_ = 3;
+ pattern_ = s;
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ patternCase_ = 4;
+ pattern_ = s;
+ break;
+ }
+ case 42:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ patternCase_ = 5;
+ pattern_ = s;
+ break;
+ }
+ case 50:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ patternCase_ = 6;
+ pattern_ = s;
+ break;
+ }
+ case 58:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ body_ = s;
+ break;
+ }
+ case 66:
+ {
+ com.google.api.CustomHttpPattern.Builder subBuilder = null;
+ if (patternCase_ == 8) {
+ subBuilder = ((com.google.api.CustomHttpPattern) pattern_).toBuilder();
+ }
+ pattern_ =
+ input.readMessage(com.google.api.CustomHttpPattern.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.google.api.CustomHttpPattern) pattern_);
+ pattern_ = subBuilder.buildPartial();
+ }
+ patternCase_ = 8;
+ break;
+ }
+ case 90:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ additionalBindings_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ additionalBindings_.add(
+ input.readMessage(com.google.api.HttpRule.parser(), extensionRegistry));
+ break;
+ }
+ case 98:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ responseBody_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ additionalBindings_ = java.util.Collections.unmodifiableList(additionalBindings_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.HttpProto.internal_static_google_api_HttpRule_descriptor;
}
@@ -328,8 +408,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
private int patternCase_ = 0;
-
- @SuppressWarnings("serial")
private java.lang.Object pattern_;
public enum PatternCase
@@ -390,16 +468,13 @@ public PatternCase getPatternCase() {
}
public static final int SELECTOR_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object selector_ = "";
+ private volatile java.lang.Object selector_;
/**
*
*
*
* Selects a method to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -426,7 +501,6 @@ public java.lang.String getSelector() {
*
*
* Selects a method to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -880,9 +954,7 @@ public com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() {
}
public static final int BODY_FIELD_NUMBER = 7;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object body_ = "";
+ private volatile java.lang.Object body_;
/**
*
@@ -891,7 +963,6 @@ public com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() {
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
- *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -920,7 +991,6 @@ public java.lang.String getBody() {
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
- *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -943,9 +1013,7 @@ public com.google.protobuf.ByteString getBodyBytes() {
}
public static final int RESPONSE_BODY_FIELD_NUMBER = 12;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object responseBody_ = "";
+ private volatile java.lang.Object responseBody_;
/**
*
@@ -954,7 +1022,6 @@ public com.google.protobuf.ByteString getBodyBytes() {
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
- *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -983,7 +1050,6 @@ public java.lang.String getResponseBody() {
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
- *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -1006,8 +1072,6 @@ public com.google.protobuf.ByteString getResponseBodyBytes() {
}
public static final int ADDITIONAL_BINDINGS_FIELD_NUMBER = 11;
-
- @SuppressWarnings("serial")
private java.util.List additionalBindings_;
/**
@@ -1135,7 +1199,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseBody_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, responseBody_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -1177,7 +1241,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseBody_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, responseBody_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -1219,7 +1283,7 @@ public boolean equals(final java.lang.Object obj) {
case 0:
default:
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -1268,7 +1332,7 @@ public int hashCode() {
case 0:
default:
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -1373,7 +1437,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* gRPC Transcoding
- *
* gRPC Transcoding is a feature for mapping between a gRPC method and one or
* more HTTP REST endpoints. It allows developers to build a single API service
* that supports both gRPC APIs and REST APIs. Many systems, including [Google
@@ -1382,21 +1445,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
* and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
* and use it for large scale production services.
- *
* `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
* how different portions of the gRPC request message are mapped to the URL
* path, URL query parameters, and HTTP request body. It also controls how the
* gRPC response message is mapped to the HTTP response body. `HttpRule` is
* typically specified as an `google.api.http` annotation on the gRPC method.
- *
* Each mapping specifies a URL path template and an HTTP method. The path
* template may refer to one or more fields in the gRPC request message, as long
* as each field is a non-repeated field with a primitive (non-message) type.
* The path template controls how fields of the request message are mapped to
* the URL path.
- *
* Example:
- *
* service Messaging {
* rpc GetMessage(GetMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -1410,16 +1469,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* message Message {
* string text = 1; // The resource content.
* }
- *
* This enables an HTTP REST to gRPC mapping as below:
- *
* - HTTP: `GET /v1/messages/123456`
* - gRPC: `GetMessage(name: "messages/123456")`
- *
* Any fields in the request message which are not bound by the path template
* automatically become HTTP query parameters if there is no HTTP request body.
* For example:
- *
* service Messaging {
* rpc GetMessage(GetMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -1435,24 +1490,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* int64 revision = 2; // Mapped to URL query parameter `revision`.
* SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
* }
- *
* This enables a HTTP JSON to RPC mapping as below:
- *
* - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo`
* - gRPC: `GetMessage(message_id: "123456" revision: 2 sub:
* SubMessage(subfield: "foo"))`
- *
* Note that fields which are mapped to URL query parameters must have a
* primitive type or a repeated primitive type or a non-repeated message type.
* In the case of a repeated type, the parameter can be repeated in the URL
* as `...?param=A¶m=B`. In the case of a message type, each field of the
* message is mapped to a separate parameter, such as
* `...?foo.a=A&foo.b=B&foo.c=C`.
- *
* For HTTP methods that allow a request body, the `body` field
* specifies the mapping. Consider a REST update method on the
* message resource collection:
- *
* service Messaging {
* rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -1465,19 +1515,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* string message_id = 1; // mapped to the URL
* Message message = 2; // mapped to the body
* }
- *
* The following HTTP JSON to RPC mapping is enabled, where the
* representation of the JSON in the request body is determined by
* protos JSON encoding:
- *
* - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
* - gRPC: `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
- *
* The special name `*` can be used in the body mapping to define that
* every field not bound by the path template should be mapped to the
* request body. This enables the following alternative definition of
* the update method:
- *
* service Messaging {
* rpc UpdateMessage(Message) returns (Message) {
* option (google.api.http) = {
@@ -1490,22 +1536,16 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* string message_id = 1;
* string text = 2;
* }
- *
- *
* The following HTTP JSON to RPC mapping is enabled:
- *
* - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
* - gRPC: `UpdateMessage(message_id: "123456" text: "Hi!")`
- *
* Note that when using `*` in the body mapping, it is not possible to
* have HTTP parameters, as all fields not bound by the path end in
* the body. This makes this option more rarely used in practice when
* defining REST APIs. The common usage of `*` is in custom methods
* which don't use the URL at all for transferring data.
- *
* It is possible to define multiple HTTP methods for one RPC by using
* the `additional_bindings` option. Example:
- *
* service Messaging {
* rpc GetMessage(GetMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -1520,17 +1560,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* string message_id = 1;
* string user_id = 2;
* }
- *
* This enables the following two alternative HTTP JSON to RPC mappings:
- *
* - HTTP: `GET /v1/messages/123456`
* - gRPC: `GetMessage(message_id: "123456")`
- *
* - HTTP: `GET /v1/users/me/messages/123456`
* - gRPC: `GetMessage(user_id: "me" message_id: "123456")`
- *
* Rules for HTTP mapping
- *
* 1. Leaf request fields (recursive expansion nested messages in the request
* message) are classified into three categories:
* - Fields referred by the path template. They are passed via the URL path.
@@ -1547,29 +1582,23 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
* request body, all
* fields are passed via URL path and URL query parameters.
- *
* Path template syntax
- *
* Template = "/" Segments [ Verb ] ;
* Segments = Segment { "/" Segment } ;
* Segment = "*" | "**" | LITERAL | Variable ;
* Variable = "{" FieldPath [ "=" Segments ] "}" ;
* FieldPath = IDENT { "." IDENT } ;
* Verb = ":" LITERAL ;
- *
* The syntax `*` matches a single URL path segment. The syntax `**` matches
* zero or more URL path segments, which must be the last part of the URL path
* except the `Verb`.
- *
* The syntax `Variable` matches part of the URL path as specified by its
* template. A variable template must not contain other variables. If a variable
* matches a single path segment, its template may be omitted, e.g. `{var}`
* is equivalent to `{var=*}`.
- *
* The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
* contains any reserved character, such characters should be percent-encoded
* before the matching.
- *
* If a variable contains exactly one path segment, such as `"{var}"` or
* `"{var=*}"`, when such a variable is expanded into a URL path on the client
* side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
@@ -1577,7 +1606,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* [Discovery
* Document](https://developers.google.com/discovery/v1/reference/apis) as
* `{var}`.
- *
* If a variable contains multiple path segments, such as `"{var=foo/*}"`
* or `"{var=**}"`, when such a variable is expanded into a URL path on the
* client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
@@ -1586,14 +1614,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* [Discovery
* Document](https://developers.google.com/discovery/v1/reference/apis) as
* `{+var}`.
- *
* Using gRPC API Service Configuration
- *
* gRPC API Service Configuration (service config) is a configuration language
* for configuring a gRPC service to become a user-facing product. The
* service config is simply the YAML representation of the `google.api.Service`
* proto message.
- *
* As an alternative to annotating your proto file, you can configure gRPC
* transcoding in your service config YAML files. You do this by specifying a
* `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
@@ -1601,20 +1626,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* have a proto that is reused in multiple services. Note that any transcoding
* specified in the service config will override any matching transcoding
* configuration in the proto.
- *
* The following example selects a gRPC method and applies an `HttpRule` to it:
- *
* http:
* rules:
* - selector: example.v1.Messaging.GetMessage
* get: /v1/messages/{message_id}/{sub.subfield}
- *
* Special notes
- *
* When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
* proto to JSON conversion must follow the [proto3
* specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
- *
* While the single segment variable follows the semantics of
* [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
* Expansion, the multi segment variable **does not** follow RFC 6570 Section
@@ -1622,17 +1642,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* does not expand special characters like `?` and `#`, which would lead
* to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
* for multi segment variables.
- *
* The path variables **must not** refer to any repeated or mapped field,
* because client libraries are not capable of handling such variable expansion.
- *
* The path variables **must not** capture the leading "/" character. The reason
* is that the most common use case "{var}" does not capture the leading "/"
* character. For consistency, all path variables must share the same behavior.
- *
* Repeated message fields must not be mapped to URL query parameters, because
* no client library can support such complicated mapping.
- *
* If an API needs to use a JSON array for request or response body, it can map
* the request or response body to a repeated field. However, some gRPC
* Transcoding implementations may not support this feature.
@@ -1657,29 +1673,36 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.HttpRule.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getAdditionalBindingsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
selector_ = "";
- if (customBuilder_ != null) {
- customBuilder_.clear();
- }
+
body_ = "";
+
responseBody_ = "";
+
if (additionalBindingsBuilder_ == null) {
additionalBindings_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- additionalBindings_ = null;
additionalBindingsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000200);
patternCase_ = 0;
pattern_ = null;
return this;
@@ -1707,46 +1730,44 @@ public com.google.api.HttpRule build() {
@java.lang.Override
public com.google.api.HttpRule buildPartial() {
com.google.api.HttpRule result = new com.google.api.HttpRule(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ int from_bitField0_ = bitField0_;
+ result.selector_ = selector_;
+ if (patternCase_ == 2) {
+ result.pattern_ = pattern_;
}
- buildPartialOneofs(result);
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.HttpRule result) {
+ if (patternCase_ == 3) {
+ result.pattern_ = pattern_;
+ }
+ if (patternCase_ == 4) {
+ result.pattern_ = pattern_;
+ }
+ if (patternCase_ == 5) {
+ result.pattern_ = pattern_;
+ }
+ if (patternCase_ == 6) {
+ result.pattern_ = pattern_;
+ }
+ if (patternCase_ == 8) {
+ if (customBuilder_ == null) {
+ result.pattern_ = pattern_;
+ } else {
+ result.pattern_ = customBuilder_.build();
+ }
+ }
+ result.body_ = body_;
+ result.responseBody_ = responseBody_;
if (additionalBindingsBuilder_ == null) {
- if (((bitField0_ & 0x00000200) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
additionalBindings_ = java.util.Collections.unmodifiableList(additionalBindings_);
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.additionalBindings_ = additionalBindings_;
} else {
result.additionalBindings_ = additionalBindingsBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.HttpRule result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.selector_ = selector_;
- }
- if (((from_bitField0_ & 0x00000080) != 0)) {
- result.body_ = body_;
- }
- if (((from_bitField0_ & 0x00000100) != 0)) {
- result.responseBody_ = responseBody_;
- }
- }
-
- private void buildPartialOneofs(com.google.api.HttpRule result) {
result.patternCase_ = patternCase_;
- result.pattern_ = this.pattern_;
- if (patternCase_ == 8 && customBuilder_ != null) {
- result.pattern_ = customBuilder_.build();
- }
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -1796,24 +1817,21 @@ public Builder mergeFrom(com.google.api.HttpRule other) {
if (other == com.google.api.HttpRule.getDefaultInstance()) return this;
if (!other.getSelector().isEmpty()) {
selector_ = other.selector_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getBody().isEmpty()) {
body_ = other.body_;
- bitField0_ |= 0x00000080;
onChanged();
}
if (!other.getResponseBody().isEmpty()) {
responseBody_ = other.responseBody_;
- bitField0_ |= 0x00000100;
onChanged();
}
if (additionalBindingsBuilder_ == null) {
if (!other.additionalBindings_.isEmpty()) {
if (additionalBindings_.isEmpty()) {
additionalBindings_ = other.additionalBindings_;
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAdditionalBindingsIsMutable();
additionalBindings_.addAll(other.additionalBindings_);
@@ -1826,7 +1844,7 @@ public Builder mergeFrom(com.google.api.HttpRule other) {
additionalBindingsBuilder_.dispose();
additionalBindingsBuilder_ = null;
additionalBindings_ = other.additionalBindings_;
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000001);
additionalBindingsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getAdditionalBindingsFieldBuilder()
@@ -1882,7 +1900,7 @@ public Builder mergeFrom(com.google.api.HttpRule other) {
break;
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -1897,102 +1915,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.HttpRule parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- selector_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- java.lang.String s = input.readStringRequireUtf8();
- patternCase_ = 2;
- pattern_ = s;
- break;
- } // case 18
- case 26:
- {
- java.lang.String s = input.readStringRequireUtf8();
- patternCase_ = 3;
- pattern_ = s;
- break;
- } // case 26
- case 34:
- {
- java.lang.String s = input.readStringRequireUtf8();
- patternCase_ = 4;
- pattern_ = s;
- break;
- } // case 34
- case 42:
- {
- java.lang.String s = input.readStringRequireUtf8();
- patternCase_ = 5;
- pattern_ = s;
- break;
- } // case 42
- case 50:
- {
- java.lang.String s = input.readStringRequireUtf8();
- patternCase_ = 6;
- pattern_ = s;
- break;
- } // case 50
- case 58:
- {
- body_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000080;
- break;
- } // case 58
- case 66:
- {
- input.readMessage(getCustomFieldBuilder().getBuilder(), extensionRegistry);
- patternCase_ = 8;
- break;
- } // case 66
- case 90:
- {
- com.google.api.HttpRule m =
- input.readMessage(com.google.api.HttpRule.parser(), extensionRegistry);
- if (additionalBindingsBuilder_ == null) {
- ensureAdditionalBindingsIsMutable();
- additionalBindings_.add(m);
- } else {
- additionalBindingsBuilder_.addMessage(m);
- }
- break;
- } // case 90
- case 98:
- {
- responseBody_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000100;
- break;
- } // case 98
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.HttpRule) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -2019,7 +1952,6 @@ public Builder clearPattern() {
*
*
* Selects a method to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -2045,7 +1977,6 @@ public java.lang.String getSelector() {
*
*
* Selects a method to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -2071,7 +2002,6 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
*
* Selects a method to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -2085,8 +2015,8 @@ public Builder setSelector(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -2096,7 +2026,6 @@ public Builder setSelector(java.lang.String value) {
*
*
* Selects a method to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -2106,8 +2035,8 @@ public Builder setSelector(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearSelector() {
+
selector_ = getDefaultInstance().getSelector();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -2117,7 +2046,6 @@ public Builder clearSelector() {
*
*
* Selects a method to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -2132,8 +2060,8 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3078,6 +3006,7 @@ public com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() {
}
patternCase_ = 8;
onChanged();
+ ;
return customBuilder_;
}
@@ -3090,7 +3019,6 @@ public com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() {
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
- *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -3118,7 +3046,6 @@ public java.lang.String getBody() {
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
- *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -3146,7 +3073,6 @@ public com.google.protobuf.ByteString getBodyBytes() {
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
- *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -3160,8 +3086,8 @@ public Builder setBody(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
body_ = value;
- bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -3173,7 +3099,6 @@ public Builder setBody(java.lang.String value) {
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
- *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -3183,8 +3108,8 @@ public Builder setBody(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearBody() {
+
body_ = getDefaultInstance().getBody();
- bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
@@ -3196,7 +3121,6 @@ public Builder clearBody() {
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
- *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -3211,8 +3135,8 @@ public Builder setBodyBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
body_ = value;
- bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -3226,7 +3150,6 @@ public Builder setBodyBytes(com.google.protobuf.ByteString value) {
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
- *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -3254,7 +3177,6 @@ public java.lang.String getResponseBody() {
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
- *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -3282,7 +3204,6 @@ public com.google.protobuf.ByteString getResponseBodyBytes() {
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
- *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -3296,8 +3217,8 @@ public Builder setResponseBody(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
responseBody_ = value;
- bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -3309,7 +3230,6 @@ public Builder setResponseBody(java.lang.String value) {
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
- *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -3319,8 +3239,8 @@ public Builder setResponseBody(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearResponseBody() {
+
responseBody_ = getDefaultInstance().getResponseBody();
- bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
@@ -3332,7 +3252,6 @@ public Builder clearResponseBody() {
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
- *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -3347,8 +3266,8 @@ public Builder setResponseBodyBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
responseBody_ = value;
- bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -3357,9 +3276,9 @@ public Builder setResponseBodyBytes(com.google.protobuf.ByteString value) {
java.util.Collections.emptyList();
private void ensureAdditionalBindingsIsMutable() {
- if (!((bitField0_ & 0x00000200) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
additionalBindings_ = new java.util.ArrayList(additionalBindings_);
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000001;
}
}
@@ -3606,7 +3525,7 @@ public Builder addAllAdditionalBindings(
public Builder clearAdditionalBindings() {
if (additionalBindingsBuilder_ == null) {
additionalBindings_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
additionalBindingsBuilder_.clear();
@@ -3749,7 +3668,7 @@ public java.util.List getAdditionalBindingsBuil
com.google.api.HttpRule.Builder,
com.google.api.HttpRuleOrBuilder>(
additionalBindings_,
- ((bitField0_ & 0x00000200) != 0),
+ ((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
additionalBindings_ = null;
@@ -3789,18 +3708,7 @@ public HttpRule parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new HttpRule(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java
index ec08dfd773..00873f86f6 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/http.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface HttpRuleOrBuilder
@@ -29,7 +28,6 @@ public interface HttpRuleOrBuilder
*
*
* Selects a method to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -45,7 +43,6 @@ public interface HttpRuleOrBuilder
*
*
* Selects a method to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -307,7 +304,6 @@ public interface HttpRuleOrBuilder
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
- *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -325,7 +321,6 @@ public interface HttpRuleOrBuilder
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
- *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -343,7 +338,6 @@ public interface HttpRuleOrBuilder
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
- *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -361,7 +355,6 @@ public interface HttpRuleOrBuilder
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
- *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -437,5 +430,5 @@ public interface HttpRuleOrBuilder
*/
com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(int index);
- com.google.api.HttpRule.PatternCase getPatternCase();
+ public com.google.api.HttpRule.PatternCase getPatternCase();
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java
index 8f0bf37264..732c90d555 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -49,14 +48,98 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new JavaSettings();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private JavaSettings(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ libraryPackage_ = s;
+ break;
+ }
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ serviceClassNames_ =
+ com.google.protobuf.MapField.newMapField(
+ ServiceClassNamesDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
+ }
+ com.google.protobuf.MapEntry serviceClassNames__ =
+ input.readMessage(
+ ServiceClassNamesDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ serviceClassNames_
+ .getMutableMap()
+ .put(serviceClassNames__.getKey(), serviceClassNames__.getValue());
+ break;
+ }
+ case 26:
+ {
+ com.google.api.CommonLanguageSettings.Builder subBuilder = null;
+ if (common_ != null) {
+ subBuilder = common_.toBuilder();
+ }
+ common_ =
+ input.readMessage(
+ com.google.api.CommonLanguageSettings.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(common_);
+ common_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_JavaSettings_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetServiceClassNames();
@@ -73,11 +156,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
com.google.api.JavaSettings.class, com.google.api.JavaSettings.Builder.class);
}
- private int bitField0_;
public static final int LIBRARY_PACKAGE_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object libraryPackage_ = "";
+ private volatile java.lang.Object libraryPackage_;
/**
*
@@ -88,9 +168,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -122,9 +200,7 @@ public java.lang.String getLibraryPackage() {
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -160,7 +236,6 @@ private static final class ServiceClassNamesDefaultEntryHolder {
"");
}
- @SuppressWarnings("serial")
private com.google.protobuf.MapField serviceClassNames_;
private com.google.protobuf.MapField
@@ -186,9 +261,7 @@ public int getServiceClassNamesCount() {
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
@@ -223,9 +296,7 @@ public java.util.Map getServiceClassNames()
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
@@ -250,9 +321,7 @@ public java.util.Map getServiceClassNamesMap
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
@@ -263,10 +332,8 @@ public java.util.Map getServiceClassNamesMap
* map<string, string> service_class_names = 2;
*/
@java.lang.Override
- public /* nullable */ java.lang.String getServiceClassNamesOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
+ public java.lang.String getServiceClassNamesOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -284,9 +351,7 @@ public java.util.Map getServiceClassNamesMap
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
@@ -324,7 +389,7 @@ public java.lang.String getServiceClassNamesOrThrow(java.lang.String key) {
*/
@java.lang.Override
public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
+ return common_ != null;
}
/**
@@ -354,7 +419,7 @@ public com.google.api.CommonLanguageSettings getCommon() {
*/
@java.lang.Override
public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() {
- return common_ == null ? com.google.api.CommonLanguageSettings.getDefaultInstance() : common_;
+ return getCommon();
}
private byte memoizedIsInitialized = -1;
@@ -379,10 +444,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
internalGetServiceClassNames(),
ServiceClassNamesDefaultEntryHolder.defaultEntry,
2);
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (common_ != null) {
output.writeMessage(3, getCommon());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -404,10 +469,10 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, serviceClassNames__);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (common_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCommon());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -428,7 +493,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasCommon()) {
if (!getCommon().equals(other.getCommon())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -449,7 +514,7 @@ public int hashCode() {
hash = (37 * hash) + COMMON_FIELD_NUMBER;
hash = (53 * hash) + getCommon().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -567,8 +632,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetServiceClassNames();
@@ -578,8 +642,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
switch (number) {
case 2:
return internalGetMutableServiceClassNames();
@@ -607,20 +670,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getCommonFieldBuilder();
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
libraryPackage_ = "";
+
internalGetMutableServiceClassNames().clear();
- common_ = null;
- if (commonBuilder_ != null) {
- commonBuilder_.dispose();
+ if (commonBuilder_ == null) {
+ common_ = null;
+ } else {
+ common_ = null;
commonBuilder_ = null;
}
return this;
@@ -648,30 +710,19 @@ public com.google.api.JavaSettings build() {
@java.lang.Override
public com.google.api.JavaSettings buildPartial() {
com.google.api.JavaSettings result = new com.google.api.JavaSettings(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ int from_bitField0_ = bitField0_;
+ result.libraryPackage_ = libraryPackage_;
+ result.serviceClassNames_ = internalGetServiceClassNames();
+ result.serviceClassNames_.makeImmutable();
+ if (commonBuilder_ == null) {
+ result.common_ = common_;
+ } else {
+ result.common_ = commonBuilder_.build();
}
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.JavaSettings result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.libraryPackage_ = libraryPackage_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.serviceClassNames_ = internalGetServiceClassNames();
- result.serviceClassNames_.makeImmutable();
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -719,15 +770,13 @@ public Builder mergeFrom(com.google.api.JavaSettings other) {
if (other == com.google.api.JavaSettings.getDefaultInstance()) return this;
if (!other.getLibraryPackage().isEmpty()) {
libraryPackage_ = other.libraryPackage_;
- bitField0_ |= 0x00000001;
onChanged();
}
internalGetMutableServiceClassNames().mergeFrom(other.internalGetServiceClassNames());
- bitField0_ |= 0x00000002;
if (other.hasCommon()) {
mergeCommon(other.getCommon());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -742,56 +791,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.JavaSettings parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- libraryPackage_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- com.google.protobuf.MapEntry
- serviceClassNames__ =
- input.readMessage(
- ServiceClassNamesDefaultEntryHolder.defaultEntry.getParserForType(),
- extensionRegistry);
- internalGetMutableServiceClassNames()
- .getMutableMap()
- .put(serviceClassNames__.getKey(), serviceClassNames__.getValue());
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26:
- {
- input.readMessage(getCommonFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.JavaSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -808,9 +818,7 @@ public Builder mergeFrom(
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -841,9 +849,7 @@ public java.lang.String getLibraryPackage() {
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -874,9 +880,7 @@ public com.google.protobuf.ByteString getLibraryPackageBytes() {
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -891,8 +895,8 @@ public Builder setLibraryPackage(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
libraryPackage_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -906,9 +910,7 @@ public Builder setLibraryPackage(java.lang.String value) {
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -919,8 +921,8 @@ public Builder setLibraryPackage(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearLibraryPackage() {
+
libraryPackage_ = getDefaultInstance().getLibraryPackage();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -934,9 +936,7 @@ public Builder clearLibraryPackage() {
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -952,8 +952,8 @@ public Builder setLibraryPackageBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
libraryPackage_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -971,6 +971,8 @@ public Builder setLibraryPackageBytes(com.google.protobuf.ByteString value) {
private com.google.protobuf.MapField
internalGetMutableServiceClassNames() {
+ onChanged();
+ ;
if (serviceClassNames_ == null) {
serviceClassNames_ =
com.google.protobuf.MapField.newMapField(
@@ -979,8 +981,6 @@ public Builder setLibraryPackageBytes(com.google.protobuf.ByteString value) {
if (!serviceClassNames_.isMutable()) {
serviceClassNames_ = serviceClassNames_.copy();
}
- bitField0_ |= 0x00000002;
- onChanged();
return serviceClassNames_;
}
@@ -998,9 +998,7 @@ public int getServiceClassNamesCount() {
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
@@ -1035,9 +1033,7 @@ public java.util.Map getServiceClassNames()
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
@@ -1062,9 +1058,7 @@ public java.util.Map getServiceClassNamesMap
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
@@ -1075,10 +1069,8 @@ public java.util.Map getServiceClassNamesMap
* map<string, string> service_class_names = 2;
*/
@java.lang.Override
- public /* nullable */ java.lang.String getServiceClassNamesOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
+ public java.lang.String getServiceClassNamesOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -1097,9 +1089,7 @@ public java.util.Map getServiceClassNamesMap
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
@@ -1123,7 +1113,6 @@ public java.lang.String getServiceClassNamesOrThrow(java.lang.String key) {
}
public Builder clearServiceClassNames() {
- bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableServiceClassNames().getMutableMap().clear();
return this;
}
@@ -1138,9 +1127,7 @@ public Builder clearServiceClassNames() {
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
@@ -1161,7 +1148,6 @@ public Builder removeServiceClassNames(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableServiceClassNames() {
- bitField0_ |= 0x00000002;
return internalGetMutableServiceClassNames().getMutableMap();
}
@@ -1175,9 +1161,7 @@ public java.util.Map getMutableServiceClassN
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
@@ -1194,8 +1178,8 @@ public Builder putServiceClassNames(java.lang.String key, java.lang.String value
if (value == null) {
throw new NullPointerException("map value");
}
+
internalGetMutableServiceClassNames().getMutableMap().put(key, value);
- bitField0_ |= 0x00000002;
return this;
}
@@ -1209,9 +1193,7 @@ public Builder putServiceClassNames(java.lang.String key, java.lang.String value
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
@@ -1224,7 +1206,6 @@ public Builder putServiceClassNames(java.lang.String key, java.lang.String value
public Builder putAllServiceClassNames(
java.util.Map values) {
internalGetMutableServiceClassNames().getMutableMap().putAll(values);
- bitField0_ |= 0x00000002;
return this;
}
@@ -1247,7 +1228,7 @@ public Builder putAllServiceClassNames(
* @return Whether the common field is set.
*/
public boolean hasCommon() {
- return ((bitField0_ & 0x00000004) != 0);
+ return commonBuilder_ != null || common_ != null;
}
/**
@@ -1286,11 +1267,11 @@ public Builder setCommon(com.google.api.CommonLanguageSettings value) {
throw new NullPointerException();
}
common_ = value;
+ onChanged();
} else {
commonBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000004;
- onChanged();
+
return this;
}
@@ -1306,11 +1287,11 @@ public Builder setCommon(com.google.api.CommonLanguageSettings value) {
public Builder setCommon(com.google.api.CommonLanguageSettings.Builder builderForValue) {
if (commonBuilder_ == null) {
common_ = builderForValue.build();
+ onChanged();
} else {
commonBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000004;
- onChanged();
+
return this;
}
@@ -1325,20 +1306,19 @@ public Builder setCommon(com.google.api.CommonLanguageSettings.Builder builderFo
*/
public Builder mergeCommon(com.google.api.CommonLanguageSettings value) {
if (commonBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)
- && common_ != null
- && common_ != com.google.api.CommonLanguageSettings.getDefaultInstance()) {
- getCommonBuilder().mergeFrom(value);
+ if (common_ != null) {
+ common_ =
+ com.google.api.CommonLanguageSettings.newBuilder(common_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
common_ = value;
}
+ onChanged();
} else {
commonBuilder_.mergeFrom(value);
}
- if (common_ != null) {
- bitField0_ |= 0x00000004;
- onChanged();
- }
+
return this;
}
@@ -1352,13 +1332,14 @@ public Builder mergeCommon(com.google.api.CommonLanguageSettings value) {
* .google.api.CommonLanguageSettings common = 3;
*/
public Builder clearCommon() {
- bitField0_ = (bitField0_ & ~0x00000004);
- common_ = null;
- if (commonBuilder_ != null) {
- commonBuilder_.dispose();
+ if (commonBuilder_ == null) {
+ common_ = null;
+ onChanged();
+ } else {
+ common_ = null;
commonBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -1372,7 +1353,7 @@ public Builder clearCommon() {
* .google.api.CommonLanguageSettings common = 3;
*/
public com.google.api.CommonLanguageSettings.Builder getCommonBuilder() {
- bitField0_ |= 0x00000004;
+
onChanged();
return getCommonFieldBuilder().getBuilder();
}
@@ -1454,18 +1435,7 @@ public JavaSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new JavaSettings(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java
index 23bcf75015..34737b3c32 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface JavaSettingsOrBuilder
@@ -33,9 +32,7 @@ public interface JavaSettingsOrBuilder
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -56,9 +53,7 @@ public interface JavaSettingsOrBuilder
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -80,9 +75,7 @@ public interface JavaSettingsOrBuilder
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
@@ -104,9 +97,7 @@ public interface JavaSettingsOrBuilder
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
@@ -132,9 +123,7 @@ public interface JavaSettingsOrBuilder
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
@@ -156,9 +145,7 @@ public interface JavaSettingsOrBuilder
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
@@ -168,6 +155,7 @@ public interface JavaSettingsOrBuilder
*
* map<string, string> service_class_names = 2;
*/
+
/* nullable */
java.lang.String getServiceClassNamesOrDefault(
java.lang.String key,
@@ -184,9 +172,7 @@ java.lang.String getServiceClassNamesOrDefault(
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
- *
* Example of a YAML configuration::
- *
* publishing:
* java_settings:
* service_class_names:
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java
index 03366f6346..609a26af7c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/auth.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -49,6 +48,78 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new JwtLocation();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private JwtLocation(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ inCase_ = 1;
+ in_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ inCase_ = 2;
+ in_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ valuePrefix_ = s;
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ inCase_ = 4;
+ in_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.AuthProto.internal_static_google_api_JwtLocation_descriptor;
}
@@ -62,8 +133,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
private int inCase_ = 0;
-
- @SuppressWarnings("serial")
private java.lang.Object in_;
public enum InCase
@@ -334,9 +403,7 @@ public com.google.protobuf.ByteString getCookieBytes() {
}
public static final int VALUE_PREFIX_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object valuePrefix_ = "";
+ private volatile java.lang.Object valuePrefix_;
/**
*
@@ -347,7 +414,6 @@ public com.google.protobuf.ByteString getCookieBytes() {
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
- *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -378,7 +444,6 @@ public java.lang.String getValuePrefix() {
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
- *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -426,7 +491,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (inCase_ == 4) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, in_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -447,7 +512,7 @@ public int getSerializedSize() {
if (inCase_ == 4) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, in_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -477,7 +542,7 @@ public boolean equals(final java.lang.Object obj) {
case 0:
default:
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -506,7 +571,7 @@ public int hashCode() {
case 0:
default:
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -632,17 +697,24 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.JwtLocation.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
valuePrefix_ = "";
+
inCase_ = 0;
in_ = null;
return this;
@@ -670,24 +742,19 @@ public com.google.api.JwtLocation build() {
@java.lang.Override
public com.google.api.JwtLocation buildPartial() {
com.google.api.JwtLocation result = new com.google.api.JwtLocation(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ if (inCase_ == 1) {
+ result.in_ = in_;
}
- buildPartialOneofs(result);
- onBuilt();
- return result;
- }
-
- private void buildPartial0(com.google.api.JwtLocation result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.valuePrefix_ = valuePrefix_;
+ if (inCase_ == 2) {
+ result.in_ = in_;
}
- }
-
- private void buildPartialOneofs(com.google.api.JwtLocation result) {
+ if (inCase_ == 4) {
+ result.in_ = in_;
+ }
+ result.valuePrefix_ = valuePrefix_;
result.inCase_ = inCase_;
- result.in_ = this.in_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -737,7 +804,6 @@ public Builder mergeFrom(com.google.api.JwtLocation other) {
if (other == com.google.api.JwtLocation.getDefaultInstance()) return this;
if (!other.getValuePrefix().isEmpty()) {
valuePrefix_ = other.valuePrefix_;
- bitField0_ |= 0x00000008;
onChanged();
}
switch (other.getInCase()) {
@@ -767,7 +833,7 @@ public Builder mergeFrom(com.google.api.JwtLocation other) {
break;
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -782,58 +848,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.JwtLocation parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- java.lang.String s = input.readStringRequireUtf8();
- inCase_ = 1;
- in_ = s;
- break;
- } // case 10
- case 18:
- {
- java.lang.String s = input.readStringRequireUtf8();
- inCase_ = 2;
- in_ = s;
- break;
- } // case 18
- case 26:
- {
- valuePrefix_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- break;
- } // case 26
- case 34:
- {
- java.lang.String s = input.readStringRequireUtf8();
- inCase_ = 4;
- in_ = s;
- break;
- } // case 34
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.JwtLocation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -851,8 +876,6 @@ public Builder clearIn() {
return this;
}
- private int bitField0_;
-
/**
*
*
@@ -1281,7 +1304,6 @@ public Builder setCookieBytes(com.google.protobuf.ByteString value) {
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
- *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -1311,7 +1333,6 @@ public java.lang.String getValuePrefix() {
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
- *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -1341,7 +1362,6 @@ public com.google.protobuf.ByteString getValuePrefixBytes() {
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
- *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -1355,8 +1375,8 @@ public Builder setValuePrefix(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
valuePrefix_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1370,7 +1390,6 @@ public Builder setValuePrefix(java.lang.String value) {
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
- *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -1380,8 +1399,8 @@ public Builder setValuePrefix(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearValuePrefix() {
+
valuePrefix_ = getDefaultInstance().getValuePrefix();
- bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1395,7 +1414,6 @@ public Builder clearValuePrefix() {
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
- *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -1410,8 +1428,8 @@ public Builder setValuePrefixBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
valuePrefix_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1448,18 +1466,7 @@ public JwtLocation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new JwtLocation(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java
index c9a56790e4..7e3585e8d1 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/auth.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface JwtLocationOrBuilder
@@ -150,7 +149,6 @@ public interface JwtLocationOrBuilder
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
- *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -170,7 +168,6 @@ public interface JwtLocationOrBuilder
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
- *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -181,5 +178,5 @@ public interface JwtLocationOrBuilder
*/
com.google.protobuf.ByteString getValuePrefixBytes();
- com.google.api.JwtLocation.InCase getInCase();
+ public com.google.api.JwtLocation.InCase getInCase();
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java
index 6497bd8e96..6349e354d2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/label.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -51,6 +50,71 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new LabelDescriptor();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private LabelDescriptor(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ case 16:
+ {
+ int rawValue = input.readEnum();
+
+ valueType_ = rawValue;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ description_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.LabelProto.internal_static_google_api_LabelDescriptor_descriptor;
}
@@ -223,9 +287,7 @@ private ValueType(int value) {
}
public static final int KEY_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object key_ = "";
+ private volatile java.lang.Object key_;
/**
*
@@ -276,7 +338,7 @@ public com.google.protobuf.ByteString getKeyBytes() {
}
public static final int VALUE_TYPE_FIELD_NUMBER = 2;
- private int valueType_ = 0;
+ private int valueType_;
/**
*
@@ -307,15 +369,14 @@ public int getValueTypeValue() {
*/
@java.lang.Override
public com.google.api.LabelDescriptor.ValueType getValueType() {
+ @SuppressWarnings("deprecation")
com.google.api.LabelDescriptor.ValueType result =
- com.google.api.LabelDescriptor.ValueType.forNumber(valueType_);
+ com.google.api.LabelDescriptor.ValueType.valueOf(valueType_);
return result == null ? com.google.api.LabelDescriptor.ValueType.UNRECOGNIZED : result;
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object description_ = "";
+ private volatile java.lang.Object description_;
/**
*
@@ -388,7 +449,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -406,7 +467,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -424,7 +485,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getKey().equals(other.getKey())) return false;
if (valueType_ != other.valueType_) return false;
if (!getDescription().equals(other.getDescription())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -441,7 +502,7 @@ public int hashCode() {
hash = (53 * hash) + valueType_;
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -567,19 +628,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.LabelDescriptor.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
key_ = "";
+
valueType_ = 0;
+
description_ = "";
+
return this;
}
@@ -605,26 +675,13 @@ public com.google.api.LabelDescriptor build() {
@java.lang.Override
public com.google.api.LabelDescriptor buildPartial() {
com.google.api.LabelDescriptor result = new com.google.api.LabelDescriptor(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
+ result.key_ = key_;
+ result.valueType_ = valueType_;
+ result.description_ = description_;
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.LabelDescriptor result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.key_ = key_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.valueType_ = valueType_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.description_ = description_;
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -672,7 +729,6 @@ public Builder mergeFrom(com.google.api.LabelDescriptor other) {
if (other == com.google.api.LabelDescriptor.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (other.valueType_ != 0) {
@@ -680,10 +736,9 @@ public Builder mergeFrom(com.google.api.LabelDescriptor other) {
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
- bitField0_ |= 0x00000004;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -698,54 +753,20 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.LabelDescriptor parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- key_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 16:
- {
- valueType_ = input.readEnum();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 26:
- {
- description_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.LabelDescriptor) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private java.lang.Object key_ = "";
/**
@@ -810,8 +831,8 @@ public Builder setKey(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
key_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -828,8 +849,8 @@ public Builder setKey(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearKey() {
+
key_ = getDefaultInstance().getKey();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -851,8 +872,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
key_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -888,8 +909,8 @@ public int getValueTypeValue() {
* @return This builder for chaining.
*/
public Builder setValueTypeValue(int value) {
+
valueType_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -907,8 +928,9 @@ public Builder setValueTypeValue(int value) {
*/
@java.lang.Override
public com.google.api.LabelDescriptor.ValueType getValueType() {
+ @SuppressWarnings("deprecation")
com.google.api.LabelDescriptor.ValueType result =
- com.google.api.LabelDescriptor.ValueType.forNumber(valueType_);
+ com.google.api.LabelDescriptor.ValueType.valueOf(valueType_);
return result == null ? com.google.api.LabelDescriptor.ValueType.UNRECOGNIZED : result;
}
@@ -928,7 +950,7 @@ public Builder setValueType(com.google.api.LabelDescriptor.ValueType value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000002;
+
valueType_ = value.getNumber();
onChanged();
return this;
@@ -946,7 +968,7 @@ public Builder setValueType(com.google.api.LabelDescriptor.ValueType value) {
* @return This builder for chaining.
*/
public Builder clearValueType() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
valueType_ = 0;
onChanged();
return this;
@@ -1016,8 +1038,8 @@ public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
description_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1034,8 +1056,8 @@ public Builder setDescription(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDescription() {
+
description_ = getDefaultInstance().getDescription();
- bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1057,8 +1079,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
description_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1095,18 +1117,7 @@ public LabelDescriptor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new LabelDescriptor(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptorOrBuilder.java
index 456276e19c..81851404b2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptorOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptorOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/label.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface LabelDescriptorOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelProto.java
index 587157ba1b..b72b54293d 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/label.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class LabelProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStage.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStage.java
index f32728f3bf..dc48887971 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStage.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStage.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/launch_stage.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStageProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStageProto.java
index 65d44d5e60..b730fedb74 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStageProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStageProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/launch_stage.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class LaunchStageProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java
index 2622feaacd..06db14f0b3 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/log.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -24,7 +23,6 @@
*
*
* A description of a log type. Example in YAML format:
- *
* - name: library.googleapis.com/activity_history
* description: The history of borrowing and returning library items.
* display_name: Activity
@@ -59,6 +57,85 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new LogDescriptor();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private LogDescriptor(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ labels_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ labels_.add(
+ input.readMessage(com.google.api.LabelDescriptor.parser(), extensionRegistry));
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ description_ = s;
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ displayName_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ labels_ = java.util.Collections.unmodifiableList(labels_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.LogProto.internal_static_google_api_LogDescriptor_descriptor;
}
@@ -72,9 +149,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object name_ = "";
+ private volatile java.lang.Object name_;
/**
*
@@ -131,8 +206,6 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int LABELS_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
private java.util.List labels_;
/**
@@ -217,9 +290,7 @@ public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object description_ = "";
+ private volatile java.lang.Object description_;
/**
*
@@ -272,9 +343,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 4;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object displayName_ = "";
+ private volatile java.lang.Object displayName_;
/**
*
@@ -352,7 +421,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -373,7 +442,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -392,7 +461,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getLabelsList().equals(other.getLabelsList())) return false;
if (!getDescription().equals(other.getDescription())) return false;
if (!getDisplayName().equals(other.getDisplayName())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -413,7 +482,7 @@ public int hashCode() {
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -518,7 +587,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* A description of a log type. Example in YAML format:
- *
* - name: library.googleapis.com/activity_history
* description: The history of borrowing and returning library items.
* display_name: Activity
@@ -546,26 +614,36 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.LogDescriptor.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getLabelsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
name_ = "";
+
if (labelsBuilder_ == null) {
labels_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- labels_ = null;
labelsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
description_ = "";
+
displayName_ = "";
+
return this;
}
@@ -591,37 +669,21 @@ public com.google.api.LogDescriptor build() {
@java.lang.Override
public com.google.api.LogDescriptor buildPartial() {
com.google.api.LogDescriptor result = new com.google.api.LogDescriptor(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.LogDescriptor result) {
+ int from_bitField0_ = bitField0_;
+ result.name_ = name_;
if (labelsBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
labels_ = java.util.Collections.unmodifiableList(labels_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.labels_ = labels_;
} else {
result.labels_ = labelsBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.LogDescriptor result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.name_ = name_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.description_ = description_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.displayName_ = displayName_;
- }
+ result.description_ = description_;
+ result.displayName_ = displayName_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -671,14 +733,13 @@ public Builder mergeFrom(com.google.api.LogDescriptor other) {
if (other == com.google.api.LogDescriptor.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (labelsBuilder_ == null) {
if (!other.labels_.isEmpty()) {
if (labels_.isEmpty()) {
labels_ = other.labels_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLabelsIsMutable();
labels_.addAll(other.labels_);
@@ -691,7 +752,7 @@ public Builder mergeFrom(com.google.api.LogDescriptor other) {
labelsBuilder_.dispose();
labelsBuilder_ = null;
labels_ = other.labels_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
labelsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getLabelsFieldBuilder()
@@ -703,15 +764,13 @@ public Builder mergeFrom(com.google.api.LogDescriptor other) {
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
- bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
- bitField0_ |= 0x00000008;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -726,61 +785,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.LogDescriptor parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- name_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- com.google.api.LabelDescriptor m =
- input.readMessage(com.google.api.LabelDescriptor.parser(), extensionRegistry);
- if (labelsBuilder_ == null) {
- ensureLabelsIsMutable();
- labels_.add(m);
- } else {
- labelsBuilder_.addMessage(m);
- }
- break;
- } // case 18
- case 26:
- {
- description_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 34:
- {
- displayName_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- break;
- } // case 34
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.LogDescriptor) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -859,8 +874,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
name_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -880,8 +895,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
+
name_ = getDefaultInstance().getName();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -906,8 +921,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
name_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -916,9 +931,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
java.util.Collections.emptyList();
private void ensureLabelsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
labels_ = new java.util.ArrayList(labels_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000001;
}
}
@@ -1163,7 +1178,7 @@ public Builder addAllLabels(
public Builder clearLabels() {
if (labelsBuilder_ == null) {
labels_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
labelsBuilder_.clear();
@@ -1305,7 +1320,7 @@ public java.util.List getLabelsBuilderLi
com.google.api.LabelDescriptor,
com.google.api.LabelDescriptor.Builder,
com.google.api.LabelDescriptorOrBuilder>(
- labels_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+ labels_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
labels_ = null;
}
return labelsBuilder_;
@@ -1378,8 +1393,8 @@ public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
description_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1397,8 +1412,8 @@ public Builder setDescription(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDescription() {
+
description_ = getDefaultInstance().getDescription();
- bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1421,8 +1436,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
description_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1494,8 +1509,8 @@ public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
displayName_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1513,8 +1528,8 @@ public Builder setDisplayName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
+
displayName_ = getDefaultInstance().getDisplayName();
- bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1537,8 +1552,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
displayName_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1575,18 +1590,7 @@ public LogDescriptor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new LogDescriptor(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptorOrBuilder.java
index 55ea16fd4b..976d352166 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptorOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptorOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/log.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface LogDescriptorOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogProto.java
index 839580fb4f..481a408584 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/log.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class LogProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java
index fb7ea3721d..77ec76d4d6 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/logging.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -24,12 +23,10 @@
*
*
* Logging configuration of the service.
- *
* The following example shows how to configure logs to be sent to the
* producer and consumer projects. In the example, the `activity_history`
* log is sent to both the producer and consumer projects, whereas the
* `purchase_history` log is only sent to the producer project.
- *
* monitored_resources:
* - type: library.googleapis.com/branch
* labels:
@@ -78,6 +75,81 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Logging();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Logging(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ producerDestinations_ =
+ new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ producerDestinations_.add(
+ input.readMessage(
+ com.google.api.Logging.LoggingDestination.parser(), extensionRegistry));
+ break;
+ }
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ consumerDestinations_ =
+ new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ consumerDestinations_.add(
+ input.readMessage(
+ com.google.api.Logging.LoggingDestination.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ producerDestinations_ = java.util.Collections.unmodifiableList(producerDestinations_);
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ consumerDestinations_ = java.util.Collections.unmodifiableList(consumerDestinations_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.LoggingProto.internal_static_google_api_Logging_descriptor;
}
@@ -215,7 +287,7 @@ private LoggingDestination(com.google.protobuf.GeneratedMessageV3.Builder> bui
private LoggingDestination() {
monitoredResource_ = "";
- logs_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ logs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@@ -224,6 +296,71 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new LoggingDestination();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private LoggingDestination(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ logs_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ logs_.add(s);
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ monitoredResource_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ logs_ = logs_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.LoggingProto
.internal_static_google_api_Logging_LoggingDestination_descriptor;
@@ -240,9 +377,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int MONITORED_RESOURCE_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object monitoredResource_ = "";
+ private volatile java.lang.Object monitoredResource_;
/**
*
@@ -297,10 +432,7 @@ public com.google.protobuf.ByteString getMonitoredResourceBytes() {
}
public static final int LOGS_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList logs_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList logs_;
/**
*
@@ -396,7 +528,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoredResource_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, monitoredResource_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -416,7 +548,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoredResource_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, monitoredResource_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -434,7 +566,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getMonitoredResource().equals(other.getMonitoredResource())) return false;
if (!getLogsList().equals(other.getLogsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -451,7 +583,7 @@ public int hashCode() {
hash = (37 * hash) + LOGS_FIELD_NUMBER;
hash = (53 * hash) + getLogsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -584,18 +716,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Logging.LoggingDestination.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
monitoredResource_ = "";
- logs_ = com.google.protobuf.LazyStringArrayList.emptyList();
+
+ logs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -623,24 +763,17 @@ public com.google.api.Logging.LoggingDestination build() {
public com.google.api.Logging.LoggingDestination buildPartial() {
com.google.api.Logging.LoggingDestination result =
new com.google.api.Logging.LoggingDestination(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ int from_bitField0_ = bitField0_;
+ result.monitoredResource_ = monitoredResource_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ logs_ = logs_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
}
+ result.logs_ = logs_;
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.Logging.LoggingDestination result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.monitoredResource_ = monitoredResource_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- logs_.makeImmutable();
- result.logs_ = logs_;
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -690,20 +823,19 @@ public Builder mergeFrom(com.google.api.Logging.LoggingDestination other) {
if (other == com.google.api.Logging.LoggingDestination.getDefaultInstance()) return this;
if (!other.getMonitoredResource().isEmpty()) {
monitoredResource_ = other.monitoredResource_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.logs_.isEmpty()) {
if (logs_.isEmpty()) {
logs_ = other.logs_;
- bitField0_ |= 0x00000002;
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLogsIsMutable();
logs_.addAll(other.logs_);
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -718,44 +850,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Logging.LoggingDestination parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureLogsIsMutable();
- logs_.add(s);
- break;
- } // case 10
- case 26:
- {
- monitoredResource_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 26
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Logging.LoggingDestination) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -831,8 +936,8 @@ public Builder setMonitoredResource(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
monitoredResource_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -851,8 +956,8 @@ public Builder setMonitoredResource(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearMonitoredResource() {
+
monitoredResource_ = getDefaultInstance().getMonitoredResource();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -876,20 +981,20 @@ public Builder setMonitoredResourceBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
monitoredResource_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringArrayList logs_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList logs_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureLogsIsMutable() {
- if (!logs_.isModifiable()) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
logs_ = new com.google.protobuf.LazyStringArrayList(logs_);
+ bitField0_ |= 0x00000001;
}
- bitField0_ |= 0x00000002;
}
/**
@@ -907,8 +1012,7 @@ private void ensureLogsIsMutable() {
* @return A list containing the logs.
*/
public com.google.protobuf.ProtocolStringList getLogsList() {
- logs_.makeImmutable();
- return logs_;
+ return logs_.getUnmodifiableView();
}
/**
@@ -989,7 +1093,6 @@ public Builder setLogs(int index, java.lang.String value) {
}
ensureLogsIsMutable();
logs_.set(index, value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1015,7 +1118,6 @@ public Builder addLogs(java.lang.String value) {
}
ensureLogsIsMutable();
logs_.add(value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1038,7 +1140,6 @@ public Builder addLogs(java.lang.String value) {
public Builder addAllLogs(java.lang.Iterable values) {
ensureLogsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logs_);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1058,9 +1159,8 @@ public Builder addAllLogs(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearLogs() {
- logs_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- ;
+ logs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1087,7 +1187,6 @@ public Builder addLogsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureLogsIsMutable();
logs_.add(value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1125,19 +1224,7 @@ public LoggingDestination parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException()
- .setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new LoggingDestination(input, extensionRegistry);
}
};
@@ -1157,8 +1244,6 @@ public com.google.api.Logging.LoggingDestination getDefaultInstanceForType() {
}
public static final int PRODUCER_DESTINATIONS_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
private java.util.List producerDestinations_;
/**
@@ -1249,8 +1334,6 @@ public com.google.api.Logging.LoggingDestinationOrBuilder getProducerDestination
}
public static final int CONSUMER_DESTINATIONS_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
private java.util.List consumerDestinations_;
/**
@@ -1360,7 +1443,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < consumerDestinations_.size(); i++) {
output.writeMessage(2, consumerDestinations_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -1377,7 +1460,7 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(2, consumerDestinations_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -1394,7 +1477,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getProducerDestinationsList().equals(other.getProducerDestinationsList())) return false;
if (!getConsumerDestinationsList().equals(other.getConsumerDestinationsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -1413,7 +1496,7 @@ public int hashCode() {
hash = (37 * hash) + CONSUMER_DESTINATIONS_FIELD_NUMBER;
hash = (53 * hash) + getConsumerDestinationsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -1518,12 +1601,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Logging configuration of the service.
- *
* The following example shows how to configure logs to be sent to the
* producer and consumer projects. In the example, the `activity_history`
* log is sent to both the producer and consumer projects, whereas the
* `purchase_history` log is only sent to the producer project.
- *
* monitored_resources:
* - type: library.googleapis.com/branch
* labels:
@@ -1567,30 +1648,37 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Logging.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getProducerDestinationsFieldBuilder();
+ getConsumerDestinationsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
if (producerDestinationsBuilder_ == null) {
producerDestinations_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- producerDestinations_ = null;
producerDestinationsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
if (consumerDestinationsBuilder_ == null) {
consumerDestinations_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
- consumerDestinations_ = null;
consumerDestinationsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@@ -1616,15 +1704,7 @@ public com.google.api.Logging build() {
@java.lang.Override
public com.google.api.Logging buildPartial() {
com.google.api.Logging result = new com.google.api.Logging(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.Logging result) {
+ int from_bitField0_ = bitField0_;
if (producerDestinationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
producerDestinations_ = java.util.Collections.unmodifiableList(producerDestinations_);
@@ -1643,10 +1723,8 @@ private void buildPartialRepeatedFields(com.google.api.Logging result) {
} else {
result.consumerDestinations_ = consumerDestinationsBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.Logging result) {
- int from_bitField0_ = bitField0_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -1748,7 +1826,7 @@ public Builder mergeFrom(com.google.api.Logging other) {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -1763,57 +1841,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Logging parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- com.google.api.Logging.LoggingDestination m =
- input.readMessage(
- com.google.api.Logging.LoggingDestination.parser(), extensionRegistry);
- if (producerDestinationsBuilder_ == null) {
- ensureProducerDestinationsIsMutable();
- producerDestinations_.add(m);
- } else {
- producerDestinationsBuilder_.addMessage(m);
- }
- break;
- } // case 10
- case 18:
- {
- com.google.api.Logging.LoggingDestination m =
- input.readMessage(
- com.google.api.Logging.LoggingDestination.parser(), extensionRegistry);
- if (consumerDestinationsBuilder_ == null) {
- ensureConsumerDestinationsIsMutable();
- consumerDestinations_.add(m);
- } else {
- consumerDestinationsBuilder_.addMessage(m);
- }
- break;
- } // case 18
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Logging) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -2713,18 +2751,7 @@ public Logging parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Logging(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingOrBuilder.java
index abd5aa2195..0cc597e725 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/logging.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface LoggingOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingProto.java
index 36d1bd51b3..be670d0736 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/logging.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class LoggingProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicy.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicy.java
index 4d84dbe997..73d2eeb58b 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicy.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicy.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/policy.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -50,6 +49,71 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MethodPolicy();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private MethodPolicy(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ requestPolicies_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ requestPolicies_.add(
+ input.readMessage(com.google.api.FieldPolicy.parser(), extensionRegistry));
+ break;
+ }
+ case 74:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ selector_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ requestPolicies_ = java.util.Collections.unmodifiableList(requestPolicies_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.PolicyProto.internal_static_google_api_MethodPolicy_descriptor;
}
@@ -63,9 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int SELECTOR_FIELD_NUMBER = 9;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object selector_ = "";
+ private volatile java.lang.Object selector_;
/**
*
@@ -73,10 +135,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Selects a method to which these policies should be enforced, for example,
* "google.pubsub.v1.Subscriber.CreateSubscription".
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
- *
* NOTE: This field must not be set in the proto annotation. It will be
* automatically filled by the service config compiler .
*
@@ -104,10 +164,8 @@ public java.lang.String getSelector() {
*
* Selects a method to which these policies should be enforced, for example,
* "google.pubsub.v1.Subscriber.CreateSubscription".
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
- *
* NOTE: This field must not be set in the proto annotation. It will be
* automatically filled by the service config compiler .
*
@@ -130,8 +188,6 @@ public com.google.protobuf.ByteString getSelectorBytes() {
}
public static final int REQUEST_POLICIES_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
private java.util.List requestPolicies_;
/**
@@ -225,7 +281,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selector_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, selector_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -240,7 +296,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selector_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, selector_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -257,7 +313,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getSelector().equals(other.getSelector())) return false;
if (!getRequestPoliciesList().equals(other.getRequestPoliciesList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -274,7 +330,7 @@ public int hashCode() {
hash = (37 * hash) + REQUEST_POLICIES_FIELD_NUMBER;
hash = (53 * hash) + getRequestPoliciesList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -400,24 +456,32 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.MethodPolicy.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getRequestPoliciesFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
selector_ = "";
+
if (requestPoliciesBuilder_ == null) {
requestPolicies_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- requestPolicies_ = null;
requestPoliciesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@@ -443,31 +507,19 @@ public com.google.api.MethodPolicy build() {
@java.lang.Override
public com.google.api.MethodPolicy buildPartial() {
com.google.api.MethodPolicy result = new com.google.api.MethodPolicy(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.MethodPolicy result) {
+ int from_bitField0_ = bitField0_;
+ result.selector_ = selector_;
if (requestPoliciesBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
requestPolicies_ = java.util.Collections.unmodifiableList(requestPolicies_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.requestPolicies_ = requestPolicies_;
} else {
result.requestPolicies_ = requestPoliciesBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.MethodPolicy result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.selector_ = selector_;
- }
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -517,14 +569,13 @@ public Builder mergeFrom(com.google.api.MethodPolicy other) {
if (other == com.google.api.MethodPolicy.getDefaultInstance()) return this;
if (!other.getSelector().isEmpty()) {
selector_ = other.selector_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (requestPoliciesBuilder_ == null) {
if (!other.requestPolicies_.isEmpty()) {
if (requestPolicies_.isEmpty()) {
requestPolicies_ = other.requestPolicies_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRequestPoliciesIsMutable();
requestPolicies_.addAll(other.requestPolicies_);
@@ -537,7 +588,7 @@ public Builder mergeFrom(com.google.api.MethodPolicy other) {
requestPoliciesBuilder_.dispose();
requestPoliciesBuilder_ = null;
requestPolicies_ = other.requestPolicies_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
requestPoliciesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getRequestPoliciesFieldBuilder()
@@ -547,7 +598,7 @@ public Builder mergeFrom(com.google.api.MethodPolicy other) {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -562,49 +613,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.MethodPolicy parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 18:
- {
- com.google.api.FieldPolicy m =
- input.readMessage(com.google.api.FieldPolicy.parser(), extensionRegistry);
- if (requestPoliciesBuilder_ == null) {
- ensureRequestPoliciesIsMutable();
- requestPolicies_.add(m);
- } else {
- requestPoliciesBuilder_.addMessage(m);
- }
- break;
- } // case 18
- case 74:
- {
- selector_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 74
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.MethodPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -618,10 +637,8 @@ public Builder mergeFrom(
*
* Selects a method to which these policies should be enforced, for example,
* "google.pubsub.v1.Subscriber.CreateSubscription".
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
- *
* NOTE: This field must not be set in the proto annotation. It will be
* automatically filled by the service config compiler .
*
@@ -648,10 +665,8 @@ public java.lang.String getSelector() {
*
* Selects a method to which these policies should be enforced, for example,
* "google.pubsub.v1.Subscriber.CreateSubscription".
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
- *
* NOTE: This field must not be set in the proto annotation. It will be
* automatically filled by the service config compiler .
*
@@ -678,10 +693,8 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
* Selects a method to which these policies should be enforced, for example,
* "google.pubsub.v1.Subscriber.CreateSubscription".
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
- *
* NOTE: This field must not be set in the proto annotation. It will be
* automatically filled by the service config compiler .
*
@@ -695,8 +708,8 @@ public Builder setSelector(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -707,10 +720,8 @@ public Builder setSelector(java.lang.String value) {
*
* Selects a method to which these policies should be enforced, for example,
* "google.pubsub.v1.Subscriber.CreateSubscription".
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
- *
* NOTE: This field must not be set in the proto annotation. It will be
* automatically filled by the service config compiler .
*
@@ -720,8 +731,8 @@ public Builder setSelector(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearSelector() {
+
selector_ = getDefaultInstance().getSelector();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -732,10 +743,8 @@ public Builder clearSelector() {
*
* Selects a method to which these policies should be enforced, for example,
* "google.pubsub.v1.Subscriber.CreateSubscription".
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
- *
* NOTE: This field must not be set in the proto annotation. It will be
* automatically filled by the service config compiler .
*
@@ -750,8 +759,8 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -760,9 +769,9 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
java.util.Collections.emptyList();
private void ensureRequestPoliciesIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
requestPolicies_ = new java.util.ArrayList(requestPolicies_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000001;
}
}
@@ -987,7 +996,7 @@ public Builder addAllRequestPolicies(
public Builder clearRequestPolicies() {
if (requestPoliciesBuilder_ == null) {
requestPolicies_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
requestPoliciesBuilder_.clear();
@@ -1116,7 +1125,7 @@ public java.util.List getRequestPoliciesBuil
com.google.api.FieldPolicy.Builder,
com.google.api.FieldPolicyOrBuilder>(
requestPolicies_,
- ((bitField0_ & 0x00000002) != 0),
+ ((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
requestPolicies_ = null;
@@ -1156,18 +1165,7 @@ public MethodPolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new MethodPolicy(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicyOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicyOrBuilder.java
index 75a6ad668b..c02f51a48f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicyOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicyOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/policy.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface MethodPolicyOrBuilder
@@ -30,10 +29,8 @@ public interface MethodPolicyOrBuilder
*
* Selects a method to which these policies should be enforced, for example,
* "google.pubsub.v1.Subscriber.CreateSubscription".
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
- *
* NOTE: This field must not be set in the proto annotation. It will be
* automatically filled by the service config compiler .
*
@@ -50,10 +47,8 @@ public interface MethodPolicyOrBuilder
*
* Selects a method to which these policies should be enforced, for example,
* "google.pubsub.v1.Subscriber.CreateSubscription".
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
- *
* NOTE: This field must not be set in the proto annotation. It will be
* automatically filled by the service config compiler .
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java
index 82e99b0660..763ce88a50 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -41,7 +40,7 @@ private MethodSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder
private MethodSettings() {
selector_ = "";
- autoPopulatedFields_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ autoPopulatedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@@ -50,6 +49,87 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MethodSettings();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private MethodSettings(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ selector_ = s;
+ break;
+ }
+ case 18:
+ {
+ com.google.api.MethodSettings.LongRunning.Builder subBuilder = null;
+ if (longRunning_ != null) {
+ subBuilder = longRunning_.toBuilder();
+ }
+ longRunning_ =
+ input.readMessage(
+ com.google.api.MethodSettings.LongRunning.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(longRunning_);
+ longRunning_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ autoPopulatedFields_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ autoPopulatedFields_.add(s);
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ autoPopulatedFields_ = autoPopulatedFields_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_MethodSettings_descriptor;
}
@@ -235,6 +315,100 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new LongRunning();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private LongRunning(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.protobuf.Duration.Builder subBuilder = null;
+ if (initialPollDelay_ != null) {
+ subBuilder = initialPollDelay_.toBuilder();
+ }
+ initialPollDelay_ =
+ input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(initialPollDelay_);
+ initialPollDelay_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 21:
+ {
+ pollDelayMultiplier_ = input.readFloat();
+ break;
+ }
+ case 26:
+ {
+ com.google.protobuf.Duration.Builder subBuilder = null;
+ if (maxPollDelay_ != null) {
+ subBuilder = maxPollDelay_.toBuilder();
+ }
+ maxPollDelay_ =
+ input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(maxPollDelay_);
+ maxPollDelay_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 34:
+ {
+ com.google.protobuf.Duration.Builder subBuilder = null;
+ if (totalPollTimeout_ != null) {
+ subBuilder = totalPollTimeout_.toBuilder();
+ }
+ totalPollTimeout_ =
+ input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(totalPollTimeout_);
+ totalPollTimeout_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto
.internal_static_google_api_MethodSettings_LongRunning_descriptor;
@@ -250,7 +424,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.api.MethodSettings.LongRunning.Builder.class);
}
- private int bitField0_;
public static final int INITIAL_POLL_DELAY_FIELD_NUMBER = 1;
private com.google.protobuf.Duration initialPollDelay_;
@@ -268,7 +441,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasInitialPollDelay() {
- return ((bitField0_ & 0x00000001) != 0);
+ return initialPollDelay_ != null;
}
/**
@@ -302,13 +475,11 @@ public com.google.protobuf.Duration getInitialPollDelay() {
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getInitialPollDelayOrBuilder() {
- return initialPollDelay_ == null
- ? com.google.protobuf.Duration.getDefaultInstance()
- : initialPollDelay_;
+ return getInitialPollDelay();
}
public static final int POLL_DELAY_MULTIPLIER_FIELD_NUMBER = 2;
- private float pollDelayMultiplier_ = 0F;
+ private float pollDelayMultiplier_;
/**
*
@@ -345,7 +516,7 @@ public float getPollDelayMultiplier() {
*/
@java.lang.Override
public boolean hasMaxPollDelay() {
- return ((bitField0_ & 0x00000002) != 0);
+ return maxPollDelay_ != null;
}
/**
@@ -379,9 +550,7 @@ public com.google.protobuf.Duration getMaxPollDelay() {
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getMaxPollDelayOrBuilder() {
- return maxPollDelay_ == null
- ? com.google.protobuf.Duration.getDefaultInstance()
- : maxPollDelay_;
+ return getMaxPollDelay();
}
public static final int TOTAL_POLL_TIMEOUT_FIELD_NUMBER = 4;
@@ -401,7 +570,7 @@ public com.google.protobuf.DurationOrBuilder getMaxPollDelayOrBuilder() {
*/
@java.lang.Override
public boolean hasTotalPollTimeout() {
- return ((bitField0_ & 0x00000004) != 0);
+ return totalPollTimeout_ != null;
}
/**
@@ -435,9 +604,7 @@ public com.google.protobuf.Duration getTotalPollTimeout() {
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getTotalPollTimeoutOrBuilder() {
- return totalPollTimeout_ == null
- ? com.google.protobuf.Duration.getDefaultInstance()
- : totalPollTimeout_;
+ return getTotalPollTimeout();
}
private byte memoizedIsInitialized = -1;
@@ -454,19 +621,19 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (initialPollDelay_ != null) {
output.writeMessage(1, getInitialPollDelay());
}
if (java.lang.Float.floatToRawIntBits(pollDelayMultiplier_) != 0) {
output.writeFloat(2, pollDelayMultiplier_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (maxPollDelay_ != null) {
output.writeMessage(3, getMaxPollDelay());
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (totalPollTimeout_ != null) {
output.writeMessage(4, getTotalPollTimeout());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -475,19 +642,19 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (initialPollDelay_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInitialPollDelay());
}
if (java.lang.Float.floatToRawIntBits(pollDelayMultiplier_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, pollDelayMultiplier_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (maxPollDelay_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMaxPollDelay());
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (totalPollTimeout_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTotalPollTimeout());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -517,7 +684,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasTotalPollTimeout()) {
if (!getTotalPollTimeout().equals(other.getTotalPollTimeout())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -542,7 +709,7 @@ public int hashCode() {
hash = (37 * hash) + TOTAL_POLL_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getTotalPollTimeout().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -688,31 +855,30 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getInitialPollDelayFieldBuilder();
- getMaxPollDelayFieldBuilder();
- getTotalPollTimeoutFieldBuilder();
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- initialPollDelay_ = null;
- if (initialPollDelayBuilder_ != null) {
- initialPollDelayBuilder_.dispose();
+ if (initialPollDelayBuilder_ == null) {
+ initialPollDelay_ = null;
+ } else {
+ initialPollDelay_ = null;
initialPollDelayBuilder_ = null;
}
pollDelayMultiplier_ = 0F;
- maxPollDelay_ = null;
- if (maxPollDelayBuilder_ != null) {
- maxPollDelayBuilder_.dispose();
+
+ if (maxPollDelayBuilder_ == null) {
+ maxPollDelay_ = null;
+ } else {
+ maxPollDelay_ = null;
maxPollDelayBuilder_ = null;
}
- totalPollTimeout_ = null;
- if (totalPollTimeoutBuilder_ != null) {
- totalPollTimeoutBuilder_.dispose();
+ if (totalPollTimeoutBuilder_ == null) {
+ totalPollTimeout_ = null;
+ } else {
+ totalPollTimeout_ = null;
totalPollTimeoutBuilder_ = null;
}
return this;
@@ -742,39 +908,24 @@ public com.google.api.MethodSettings.LongRunning build() {
public com.google.api.MethodSettings.LongRunning buildPartial() {
com.google.api.MethodSettings.LongRunning result =
new com.google.api.MethodSettings.LongRunning(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(com.google.api.MethodSettings.LongRunning result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.initialPollDelay_ =
- initialPollDelayBuilder_ == null
- ? initialPollDelay_
- : initialPollDelayBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.pollDelayMultiplier_ = pollDelayMultiplier_;
+ if (initialPollDelayBuilder_ == null) {
+ result.initialPollDelay_ = initialPollDelay_;
+ } else {
+ result.initialPollDelay_ = initialPollDelayBuilder_.build();
}
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.maxPollDelay_ =
- maxPollDelayBuilder_ == null ? maxPollDelay_ : maxPollDelayBuilder_.build();
- to_bitField0_ |= 0x00000002;
+ result.pollDelayMultiplier_ = pollDelayMultiplier_;
+ if (maxPollDelayBuilder_ == null) {
+ result.maxPollDelay_ = maxPollDelay_;
+ } else {
+ result.maxPollDelay_ = maxPollDelayBuilder_.build();
}
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.totalPollTimeout_ =
- totalPollTimeoutBuilder_ == null
- ? totalPollTimeout_
- : totalPollTimeoutBuilder_.build();
- to_bitField0_ |= 0x00000004;
+ if (totalPollTimeoutBuilder_ == null) {
+ result.totalPollTimeout_ = totalPollTimeout_;
+ } else {
+ result.totalPollTimeout_ = totalPollTimeoutBuilder_.build();
}
- result.bitField0_ |= to_bitField0_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -836,7 +987,7 @@ public Builder mergeFrom(com.google.api.MethodSettings.LongRunning other) {
if (other.hasTotalPollTimeout()) {
mergeTotalPollTimeout(other.getTotalPollTimeout());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -851,62 +1002,20 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.MethodSettings.LongRunning parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- input.readMessage(
- getInitialPollDelayFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 21:
- {
- pollDelayMultiplier_ = input.readFloat();
- bitField0_ |= 0x00000002;
- break;
- } // case 21
- case 26:
- {
- input.readMessage(getMaxPollDelayFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 34:
- {
- input.readMessage(
- getTotalPollTimeoutFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000008;
- break;
- } // case 34
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.MethodSettings.LongRunning) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private com.google.protobuf.Duration initialPollDelay_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
@@ -927,7 +1036,7 @@ public Builder mergeFrom(
* @return Whether the initialPollDelay field is set.
*/
public boolean hasInitialPollDelay() {
- return ((bitField0_ & 0x00000001) != 0);
+ return initialPollDelayBuilder_ != null || initialPollDelay_ != null;
}
/**
@@ -968,11 +1077,11 @@ public Builder setInitialPollDelay(com.google.protobuf.Duration value) {
throw new NullPointerException();
}
initialPollDelay_ = value;
+ onChanged();
} else {
initialPollDelayBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -989,11 +1098,11 @@ public Builder setInitialPollDelay(com.google.protobuf.Duration value) {
public Builder setInitialPollDelay(com.google.protobuf.Duration.Builder builderForValue) {
if (initialPollDelayBuilder_ == null) {
initialPollDelay_ = builderForValue.build();
+ onChanged();
} else {
initialPollDelayBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -1009,20 +1118,19 @@ public Builder setInitialPollDelay(com.google.protobuf.Duration.Builder builderF
*/
public Builder mergeInitialPollDelay(com.google.protobuf.Duration value) {
if (initialPollDelayBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)
- && initialPollDelay_ != null
- && initialPollDelay_ != com.google.protobuf.Duration.getDefaultInstance()) {
- getInitialPollDelayBuilder().mergeFrom(value);
+ if (initialPollDelay_ != null) {
+ initialPollDelay_ =
+ com.google.protobuf.Duration.newBuilder(initialPollDelay_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
initialPollDelay_ = value;
}
+ onChanged();
} else {
initialPollDelayBuilder_.mergeFrom(value);
}
- if (initialPollDelay_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
@@ -1037,13 +1145,14 @@ public Builder mergeInitialPollDelay(com.google.protobuf.Duration value) {
* .google.protobuf.Duration initial_poll_delay = 1;
*/
public Builder clearInitialPollDelay() {
- bitField0_ = (bitField0_ & ~0x00000001);
- initialPollDelay_ = null;
- if (initialPollDelayBuilder_ != null) {
- initialPollDelayBuilder_.dispose();
+ if (initialPollDelayBuilder_ == null) {
+ initialPollDelay_ = null;
+ onChanged();
+ } else {
+ initialPollDelay_ = null;
initialPollDelayBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -1058,7 +1167,7 @@ public Builder clearInitialPollDelay() {
* .google.protobuf.Duration initial_poll_delay = 1;
*/
public com.google.protobuf.Duration.Builder getInitialPollDelayBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getInitialPollDelayFieldBuilder().getBuilder();
}
@@ -1147,7 +1256,6 @@ public float getPollDelayMultiplier() {
public Builder setPollDelayMultiplier(float value) {
pollDelayMultiplier_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1166,7 +1274,7 @@ public Builder setPollDelayMultiplier(float value) {
* @return This builder for chaining.
*/
public Builder clearPollDelayMultiplier() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
pollDelayMultiplier_ = 0F;
onChanged();
return this;
@@ -1192,7 +1300,7 @@ public Builder clearPollDelayMultiplier() {
* @return Whether the maxPollDelay field is set.
*/
public boolean hasMaxPollDelay() {
- return ((bitField0_ & 0x00000004) != 0);
+ return maxPollDelayBuilder_ != null || maxPollDelay_ != null;
}
/**
@@ -1233,11 +1341,11 @@ public Builder setMaxPollDelay(com.google.protobuf.Duration value) {
throw new NullPointerException();
}
maxPollDelay_ = value;
+ onChanged();
} else {
maxPollDelayBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000004;
- onChanged();
+
return this;
}
@@ -1254,11 +1362,11 @@ public Builder setMaxPollDelay(com.google.protobuf.Duration value) {
public Builder setMaxPollDelay(com.google.protobuf.Duration.Builder builderForValue) {
if (maxPollDelayBuilder_ == null) {
maxPollDelay_ = builderForValue.build();
+ onChanged();
} else {
maxPollDelayBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000004;
- onChanged();
+
return this;
}
@@ -1274,20 +1382,19 @@ public Builder setMaxPollDelay(com.google.protobuf.Duration.Builder builderForVa
*/
public Builder mergeMaxPollDelay(com.google.protobuf.Duration value) {
if (maxPollDelayBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)
- && maxPollDelay_ != null
- && maxPollDelay_ != com.google.protobuf.Duration.getDefaultInstance()) {
- getMaxPollDelayBuilder().mergeFrom(value);
+ if (maxPollDelay_ != null) {
+ maxPollDelay_ =
+ com.google.protobuf.Duration.newBuilder(maxPollDelay_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
maxPollDelay_ = value;
}
+ onChanged();
} else {
maxPollDelayBuilder_.mergeFrom(value);
}
- if (maxPollDelay_ != null) {
- bitField0_ |= 0x00000004;
- onChanged();
- }
+
return this;
}
@@ -1302,13 +1409,14 @@ public Builder mergeMaxPollDelay(com.google.protobuf.Duration value) {
* .google.protobuf.Duration max_poll_delay = 3;
*/
public Builder clearMaxPollDelay() {
- bitField0_ = (bitField0_ & ~0x00000004);
- maxPollDelay_ = null;
- if (maxPollDelayBuilder_ != null) {
- maxPollDelayBuilder_.dispose();
+ if (maxPollDelayBuilder_ == null) {
+ maxPollDelay_ = null;
+ onChanged();
+ } else {
+ maxPollDelay_ = null;
maxPollDelayBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -1323,7 +1431,7 @@ public Builder clearMaxPollDelay() {
* .google.protobuf.Duration max_poll_delay = 3;
*/
public com.google.protobuf.Duration.Builder getMaxPollDelayBuilder() {
- bitField0_ |= 0x00000004;
+
onChanged();
return getMaxPollDelayFieldBuilder().getBuilder();
}
@@ -1395,7 +1503,7 @@ public com.google.protobuf.DurationOrBuilder getMaxPollDelayOrBuilder() {
* @return Whether the totalPollTimeout field is set.
*/
public boolean hasTotalPollTimeout() {
- return ((bitField0_ & 0x00000008) != 0);
+ return totalPollTimeoutBuilder_ != null || totalPollTimeout_ != null;
}
/**
@@ -1436,11 +1544,11 @@ public Builder setTotalPollTimeout(com.google.protobuf.Duration value) {
throw new NullPointerException();
}
totalPollTimeout_ = value;
+ onChanged();
} else {
totalPollTimeoutBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000008;
- onChanged();
+
return this;
}
@@ -1457,11 +1565,11 @@ public Builder setTotalPollTimeout(com.google.protobuf.Duration value) {
public Builder setTotalPollTimeout(com.google.protobuf.Duration.Builder builderForValue) {
if (totalPollTimeoutBuilder_ == null) {
totalPollTimeout_ = builderForValue.build();
+ onChanged();
} else {
totalPollTimeoutBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000008;
- onChanged();
+
return this;
}
@@ -1477,20 +1585,19 @@ public Builder setTotalPollTimeout(com.google.protobuf.Duration.Builder builderF
*/
public Builder mergeTotalPollTimeout(com.google.protobuf.Duration value) {
if (totalPollTimeoutBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0)
- && totalPollTimeout_ != null
- && totalPollTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
- getTotalPollTimeoutBuilder().mergeFrom(value);
+ if (totalPollTimeout_ != null) {
+ totalPollTimeout_ =
+ com.google.protobuf.Duration.newBuilder(totalPollTimeout_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
totalPollTimeout_ = value;
}
+ onChanged();
} else {
totalPollTimeoutBuilder_.mergeFrom(value);
}
- if (totalPollTimeout_ != null) {
- bitField0_ |= 0x00000008;
- onChanged();
- }
+
return this;
}
@@ -1505,13 +1612,14 @@ public Builder mergeTotalPollTimeout(com.google.protobuf.Duration value) {
* .google.protobuf.Duration total_poll_timeout = 4;
*/
public Builder clearTotalPollTimeout() {
- bitField0_ = (bitField0_ & ~0x00000008);
- totalPollTimeout_ = null;
- if (totalPollTimeoutBuilder_ != null) {
- totalPollTimeoutBuilder_.dispose();
+ if (totalPollTimeoutBuilder_ == null) {
+ totalPollTimeout_ = null;
+ onChanged();
+ } else {
+ totalPollTimeout_ = null;
totalPollTimeoutBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -1526,7 +1634,7 @@ public Builder clearTotalPollTimeout() {
* .google.protobuf.Duration total_poll_timeout = 4;
*/
public com.google.protobuf.Duration.Builder getTotalPollTimeoutBuilder() {
- bitField0_ |= 0x00000008;
+
onChanged();
return getTotalPollTimeoutFieldBuilder().getBuilder();
}
@@ -1611,19 +1719,7 @@ public LongRunning parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException()
- .setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new LongRunning(input, extensionRegistry);
}
};
@@ -1642,11 +1738,8 @@ public com.google.api.MethodSettings.LongRunning getDefaultInstanceForType() {
}
}
- private int bitField0_;
public static final int SELECTOR_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object selector_ = "";
+ private volatile java.lang.Object selector_;
/**
*
@@ -1654,9 +1747,7 @@ public com.google.api.MethodSettings.LongRunning getDefaultInstanceForType() {
*
* The fully qualified name of the method, for which the options below apply.
* This is used to find the method to apply the options.
- *
* Example:
- *
* publishing:
* method_settings:
* - selector: google.storage.control.v2.StorageControl.CreateFolder
@@ -1686,9 +1777,7 @@ public java.lang.String getSelector() {
*
* The fully qualified name of the method, for which the options below apply.
* This is used to find the method to apply the options.
- *
* Example:
- *
* publishing:
* method_settings:
* - selector: google.storage.control.v2.StorageControl.CreateFolder
@@ -1722,9 +1811,7 @@ public com.google.protobuf.ByteString getSelectorBytes() {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
- *
* Example of a YAML configuration::
- *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -1741,7 +1828,7 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*/
@java.lang.Override
public boolean hasLongRunning() {
- return ((bitField0_ & 0x00000001) != 0);
+ return longRunning_ != null;
}
/**
@@ -1751,9 +1838,7 @@ public boolean hasLongRunning() {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
- *
* Example of a YAML configuration::
- *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -1782,9 +1867,7 @@ public com.google.api.MethodSettings.LongRunning getLongRunning() {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
- *
* Example of a YAML configuration::
- *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -1799,16 +1882,11 @@ public com.google.api.MethodSettings.LongRunning getLongRunning() {
*/
@java.lang.Override
public com.google.api.MethodSettings.LongRunningOrBuilder getLongRunningOrBuilder() {
- return longRunning_ == null
- ? com.google.api.MethodSettings.LongRunning.getDefaultInstance()
- : longRunning_;
+ return getLongRunning();
}
public static final int AUTO_POPULATED_FIELDS_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList autoPopulatedFields_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList autoPopulatedFields_;
/**
*
@@ -1817,9 +1895,7 @@ public com.google.api.MethodSettings.LongRunningOrBuilder getLongRunningOrBuilde
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -1842,9 +1918,7 @@ public com.google.protobuf.ProtocolStringList getAutoPopulatedFieldsList() {
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -1867,9 +1941,7 @@ public int getAutoPopulatedFieldsCount() {
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -1893,9 +1965,7 @@ public java.lang.String getAutoPopulatedFields(int index) {
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -1929,13 +1999,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selector_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (longRunning_ != null) {
output.writeMessage(2, getLongRunning());
}
for (int i = 0; i < autoPopulatedFields_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, autoPopulatedFields_.getRaw(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -1947,7 +2017,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selector_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selector_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (longRunning_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLongRunning());
}
{
@@ -1958,7 +2028,7 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getAutoPopulatedFieldsList().size();
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -1979,7 +2049,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getLongRunning().equals(other.getLongRunning())) return false;
}
if (!getAutoPopulatedFieldsList().equals(other.getAutoPopulatedFieldsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -2000,7 +2070,7 @@ public int hashCode() {
hash = (37 * hash) + AUTO_POPULATED_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getAutoPopulatedFieldsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -2136,22 +2206,22 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getLongRunningFieldBuilder();
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
selector_ = "";
- longRunning_ = null;
- if (longRunningBuilder_ != null) {
- longRunningBuilder_.dispose();
+
+ if (longRunningBuilder_ == null) {
+ longRunning_ = null;
+ } else {
+ longRunning_ = null;
longRunningBuilder_ = null;
}
- autoPopulatedFields_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ autoPopulatedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -2177,29 +2247,20 @@ public com.google.api.MethodSettings build() {
@java.lang.Override
public com.google.api.MethodSettings buildPartial() {
com.google.api.MethodSettings result = new com.google.api.MethodSettings(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(com.google.api.MethodSettings result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.selector_ = selector_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.longRunning_ =
- longRunningBuilder_ == null ? longRunning_ : longRunningBuilder_.build();
- to_bitField0_ |= 0x00000001;
+ result.selector_ = selector_;
+ if (longRunningBuilder_ == null) {
+ result.longRunning_ = longRunning_;
+ } else {
+ result.longRunning_ = longRunningBuilder_.build();
}
- if (((from_bitField0_ & 0x00000004) != 0)) {
- autoPopulatedFields_.makeImmutable();
- result.autoPopulatedFields_ = autoPopulatedFields_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ autoPopulatedFields_ = autoPopulatedFields_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
}
- result.bitField0_ |= to_bitField0_;
+ result.autoPopulatedFields_ = autoPopulatedFields_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -2249,7 +2310,6 @@ public Builder mergeFrom(com.google.api.MethodSettings other) {
if (other == com.google.api.MethodSettings.getDefaultInstance()) return this;
if (!other.getSelector().isEmpty()) {
selector_ = other.selector_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasLongRunning()) {
@@ -2258,14 +2318,14 @@ public Builder mergeFrom(com.google.api.MethodSettings other) {
if (!other.autoPopulatedFields_.isEmpty()) {
if (autoPopulatedFields_.isEmpty()) {
autoPopulatedFields_ = other.autoPopulatedFields_;
- bitField0_ |= 0x00000004;
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAutoPopulatedFieldsIsMutable();
autoPopulatedFields_.addAll(other.autoPopulatedFields_);
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -2280,50 +2340,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.MethodSettings parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- selector_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- input.readMessage(getLongRunningFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureAutoPopulatedFieldsIsMutable();
- autoPopulatedFields_.add(s);
- break;
- } // case 26
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.MethodSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -2337,9 +2364,7 @@ public Builder mergeFrom(
*
* The fully qualified name of the method, for which the options below apply.
* This is used to find the method to apply the options.
- *
* Example:
- *
* publishing:
* method_settings:
* - selector: google.storage.control.v2.StorageControl.CreateFolder
@@ -2368,9 +2393,7 @@ public java.lang.String getSelector() {
*
* The fully qualified name of the method, for which the options below apply.
* This is used to find the method to apply the options.
- *
* Example:
- *
* publishing:
* method_settings:
* - selector: google.storage.control.v2.StorageControl.CreateFolder
@@ -2399,9 +2422,7 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
* The fully qualified name of the method, for which the options below apply.
* This is used to find the method to apply the options.
- *
* Example:
- *
* publishing:
* method_settings:
* - selector: google.storage.control.v2.StorageControl.CreateFolder
@@ -2417,8 +2438,8 @@ public Builder setSelector(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -2429,9 +2450,7 @@ public Builder setSelector(java.lang.String value) {
*
* The fully qualified name of the method, for which the options below apply.
* This is used to find the method to apply the options.
- *
* Example:
- *
* publishing:
* method_settings:
* - selector: google.storage.control.v2.StorageControl.CreateFolder
@@ -2443,8 +2462,8 @@ public Builder setSelector(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearSelector() {
+
selector_ = getDefaultInstance().getSelector();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -2455,9 +2474,7 @@ public Builder clearSelector() {
*
* The fully qualified name of the method, for which the options below apply.
* This is used to find the method to apply the options.
- *
* Example:
- *
* publishing:
* method_settings:
* - selector: google.storage.control.v2.StorageControl.CreateFolder
@@ -2474,8 +2491,8 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -2494,9 +2511,7 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
- *
* Example of a YAML configuration::
- *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2512,7 +2527,7 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
* @return Whether the longRunning field is set.
*/
public boolean hasLongRunning() {
- return ((bitField0_ & 0x00000002) != 0);
+ return longRunningBuilder_ != null || longRunning_ != null;
}
/**
@@ -2522,9 +2537,7 @@ public boolean hasLongRunning() {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
- *
* Example of a YAML configuration::
- *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2556,9 +2569,7 @@ public com.google.api.MethodSettings.LongRunning getLongRunning() {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
- *
* Example of a YAML configuration::
- *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2577,11 +2588,11 @@ public Builder setLongRunning(com.google.api.MethodSettings.LongRunning value) {
throw new NullPointerException();
}
longRunning_ = value;
+ onChanged();
} else {
longRunningBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
@@ -2592,9 +2603,7 @@ public Builder setLongRunning(com.google.api.MethodSettings.LongRunning value) {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
- *
* Example of a YAML configuration::
- *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2611,11 +2620,11 @@ public Builder setLongRunning(
com.google.api.MethodSettings.LongRunning.Builder builderForValue) {
if (longRunningBuilder_ == null) {
longRunning_ = builderForValue.build();
+ onChanged();
} else {
longRunningBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
@@ -2626,9 +2635,7 @@ public Builder setLongRunning(
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
- *
* Example of a YAML configuration::
- *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2643,20 +2650,19 @@ public Builder setLongRunning(
*/
public Builder mergeLongRunning(com.google.api.MethodSettings.LongRunning value) {
if (longRunningBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)
- && longRunning_ != null
- && longRunning_ != com.google.api.MethodSettings.LongRunning.getDefaultInstance()) {
- getLongRunningBuilder().mergeFrom(value);
+ if (longRunning_ != null) {
+ longRunning_ =
+ com.google.api.MethodSettings.LongRunning.newBuilder(longRunning_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
longRunning_ = value;
}
+ onChanged();
} else {
longRunningBuilder_.mergeFrom(value);
}
- if (longRunning_ != null) {
- bitField0_ |= 0x00000002;
- onChanged();
- }
+
return this;
}
@@ -2667,9 +2673,7 @@ public Builder mergeLongRunning(com.google.api.MethodSettings.LongRunning value)
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
- *
* Example of a YAML configuration::
- *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2683,13 +2687,14 @@ public Builder mergeLongRunning(com.google.api.MethodSettings.LongRunning value)
* .google.api.MethodSettings.LongRunning long_running = 2;
*/
public Builder clearLongRunning() {
- bitField0_ = (bitField0_ & ~0x00000002);
- longRunning_ = null;
- if (longRunningBuilder_ != null) {
- longRunningBuilder_.dispose();
+ if (longRunningBuilder_ == null) {
+ longRunning_ = null;
+ onChanged();
+ } else {
+ longRunning_ = null;
longRunningBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -2700,9 +2705,7 @@ public Builder clearLongRunning() {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
- *
* Example of a YAML configuration::
- *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2716,7 +2719,7 @@ public Builder clearLongRunning() {
* .google.api.MethodSettings.LongRunning long_running = 2;
*/
public com.google.api.MethodSettings.LongRunning.Builder getLongRunningBuilder() {
- bitField0_ |= 0x00000002;
+
onChanged();
return getLongRunningFieldBuilder().getBuilder();
}
@@ -2728,9 +2731,7 @@ public com.google.api.MethodSettings.LongRunning.Builder getLongRunningBuilder()
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
- *
* Example of a YAML configuration::
- *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2760,9 +2761,7 @@ public com.google.api.MethodSettings.LongRunningOrBuilder getLongRunningOrBuilde
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
- *
* Example of a YAML configuration::
- *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2792,14 +2791,14 @@ public com.google.api.MethodSettings.LongRunningOrBuilder getLongRunningOrBuilde
return longRunningBuilder_;
}
- private com.google.protobuf.LazyStringArrayList autoPopulatedFields_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList autoPopulatedFields_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAutoPopulatedFieldsIsMutable() {
- if (!autoPopulatedFields_.isModifiable()) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
autoPopulatedFields_ = new com.google.protobuf.LazyStringArrayList(autoPopulatedFields_);
+ bitField0_ |= 0x00000001;
}
- bitField0_ |= 0x00000004;
}
/**
@@ -2809,9 +2808,7 @@ private void ensureAutoPopulatedFieldsIsMutable() {
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -2824,8 +2821,7 @@ private void ensureAutoPopulatedFieldsIsMutable() {
* @return A list containing the autoPopulatedFields.
*/
public com.google.protobuf.ProtocolStringList getAutoPopulatedFieldsList() {
- autoPopulatedFields_.makeImmutable();
- return autoPopulatedFields_;
+ return autoPopulatedFields_.getUnmodifiableView();
}
/**
@@ -2835,9 +2831,7 @@ public com.google.protobuf.ProtocolStringList getAutoPopulatedFieldsList() {
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -2860,9 +2854,7 @@ public int getAutoPopulatedFieldsCount() {
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -2886,9 +2878,7 @@ public java.lang.String getAutoPopulatedFields(int index) {
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -2912,9 +2902,7 @@ public com.google.protobuf.ByteString getAutoPopulatedFieldsBytes(int index) {
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -2934,7 +2922,6 @@ public Builder setAutoPopulatedFields(int index, java.lang.String value) {
}
ensureAutoPopulatedFieldsIsMutable();
autoPopulatedFields_.set(index, value);
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -2946,9 +2933,7 @@ public Builder setAutoPopulatedFields(int index, java.lang.String value) {
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -2967,7 +2952,6 @@ public Builder addAutoPopulatedFields(java.lang.String value) {
}
ensureAutoPopulatedFieldsIsMutable();
autoPopulatedFields_.add(value);
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -2979,9 +2963,7 @@ public Builder addAutoPopulatedFields(java.lang.String value) {
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -2997,7 +2979,6 @@ public Builder addAutoPopulatedFields(java.lang.String value) {
public Builder addAllAutoPopulatedFields(java.lang.Iterable values) {
ensureAutoPopulatedFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, autoPopulatedFields_);
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -3009,9 +2990,7 @@ public Builder addAllAutoPopulatedFields(java.lang.Iterable va
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -3024,9 +3003,8 @@ public Builder addAllAutoPopulatedFields(java.lang.Iterable va
* @return This builder for chaining.
*/
public Builder clearAutoPopulatedFields() {
- autoPopulatedFields_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- ;
+ autoPopulatedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -3038,9 +3016,7 @@ public Builder clearAutoPopulatedFields() {
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -3060,7 +3036,6 @@ public Builder addAutoPopulatedFieldsBytes(com.google.protobuf.ByteString value)
checkByteStringIsUtf8(value);
ensureAutoPopulatedFieldsIsMutable();
autoPopulatedFields_.add(value);
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -3097,18 +3072,7 @@ public MethodSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new MethodSettings(input, extensionRegistry);
}
};
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 7ad43d4e72..bec5a3bd03 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
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface MethodSettingsOrBuilder
@@ -30,9 +29,7 @@ public interface MethodSettingsOrBuilder
*
* The fully qualified name of the method, for which the options below apply.
* This is used to find the method to apply the options.
- *
* Example:
- *
* publishing:
* method_settings:
* - selector: google.storage.control.v2.StorageControl.CreateFolder
@@ -51,9 +48,7 @@ public interface MethodSettingsOrBuilder
*
* The fully qualified name of the method, for which the options below apply.
* This is used to find the method to apply the options.
- *
* Example:
- *
* publishing:
* method_settings:
* - selector: google.storage.control.v2.StorageControl.CreateFolder
@@ -73,9 +68,7 @@ public interface MethodSettingsOrBuilder
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
- *
* Example of a YAML configuration::
- *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -99,9 +92,7 @@ public interface MethodSettingsOrBuilder
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
- *
* Example of a YAML configuration::
- *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -125,9 +116,7 @@ public interface MethodSettingsOrBuilder
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
- *
* Example of a YAML configuration::
- *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -149,9 +138,7 @@ public interface MethodSettingsOrBuilder
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -172,9 +159,7 @@ public interface MethodSettingsOrBuilder
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -195,9 +180,7 @@ public interface MethodSettingsOrBuilder
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
@@ -219,9 +202,7 @@ public interface MethodSettingsOrBuilder
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4.
- *
* Example of a YAML configuration:
- *
* publishing:
* method_settings:
* - selector: google.example.v1.ExampleService.CreateExample
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java
index a6370cd904..97140eee9e 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/metric.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -50,14 +49,78 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Metric();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Metric(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ labels_ =
+ com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
+ }
+ com.google.protobuf.MapEntry labels__ =
+ input.readMessage(
+ LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+ labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ type_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MetricProto.internal_static_google_api_Metric_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetLabels();
@@ -75,9 +138,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
}
public static final int TYPE_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object type_ = "";
+ private volatile java.lang.Object type_;
/**
*
@@ -143,7 +204,6 @@ private static final class LabelsDefaultEntryHolder {
"");
}
- @SuppressWarnings("serial")
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
@@ -208,10 +268,7 @@ public java.util.Map getLabelsMap() {
* map<string, string> labels = 2;
*/
@java.lang.Override
- public /* nullable */ java.lang.String getLabelsOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
+ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -260,7 +317,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -282,7 +339,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -299,7 +356,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getType().equals(other.getType())) return false;
if (!internalGetLabels().equals(other.internalGetLabels())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -316,7 +373,7 @@ public int hashCode() {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -435,8 +492,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetLabels();
@@ -446,8 +502,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
switch (number) {
case 2:
return internalGetMutableLabels();
@@ -465,17 +520,24 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
}
// Construct using com.google.api.Metric.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
type_ = "";
+
internalGetMutableLabels().clear();
return this;
}
@@ -502,24 +564,14 @@ public com.google.api.Metric build() {
@java.lang.Override
public com.google.api.Metric buildPartial() {
com.google.api.Metric result = new com.google.api.Metric(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
+ int from_bitField0_ = bitField0_;
+ result.type_ = type_;
+ result.labels_ = internalGetLabels();
+ result.labels_.makeImmutable();
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.Metric result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.type_ = type_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.labels_ = internalGetLabels();
- result.labels_.makeImmutable();
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -567,12 +619,10 @@ public Builder mergeFrom(com.google.api.Metric other) {
if (other == com.google.api.Metric.getDefaultInstance()) return this;
if (!other.getType().isEmpty()) {
type_ = other.type_;
- bitField0_ |= 0x00000001;
onChanged();
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
- bitField0_ |= 0x00000002;
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -587,49 +637,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Metric parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 18:
- {
- com.google.protobuf.MapEntry labels__ =
- input.readMessage(
- LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
- extensionRegistry);
- internalGetMutableLabels()
- .getMutableMap()
- .put(labels__.getKey(), labels__.getValue());
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26:
- {
- type_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 26
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Metric) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -705,8 +723,8 @@ public Builder setType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
type_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -725,8 +743,8 @@ public Builder setType(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearType() {
+
type_ = getDefaultInstance().getType();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -750,8 +768,8 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
type_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -767,14 +785,14 @@ private com.google.protobuf.MapField interna
private com.google.protobuf.MapField
internalGetMutableLabels() {
+ onChanged();
+ ;
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
- bitField0_ |= 0x00000002;
- onChanged();
return labels_;
}
@@ -833,10 +851,8 @@ public java.util.Map getLabelsMap() {
* map<string, string> labels = 2;
*/
@java.lang.Override
- public /* nullable */ java.lang.String getLabelsOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
+ public java.lang.String getLabelsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -867,7 +883,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
}
public Builder clearLabels() {
- bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableLabels().getMutableMap().clear();
return this;
}
@@ -893,7 +908,6 @@ public Builder removeLabels(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableLabels() {
- bitField0_ |= 0x00000002;
return internalGetMutableLabels().getMutableMap();
}
@@ -914,8 +928,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
if (value == null) {
throw new NullPointerException("map value");
}
+
internalGetMutableLabels().getMutableMap().put(key, value);
- bitField0_ |= 0x00000002;
return this;
}
@@ -931,7 +945,6 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
*/
public Builder putAllLabels(java.util.Map values) {
internalGetMutableLabels().getMutableMap().putAll(values);
- bitField0_ |= 0x00000002;
return this;
}
@@ -967,18 +980,7 @@ public Metric parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Metric(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java
index 62d6ba8c30..51e1462295 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/metric.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -51,7 +50,7 @@ private MetricDescriptor() {
description_ = "";
displayName_ = "";
launchStage_ = 0;
- monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@@ -60,6 +59,150 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MetricDescriptor();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private MetricDescriptor(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ labels_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ labels_.add(
+ input.readMessage(com.google.api.LabelDescriptor.parser(), extensionRegistry));
+ break;
+ }
+ case 24:
+ {
+ int rawValue = input.readEnum();
+
+ metricKind_ = rawValue;
+ break;
+ }
+ case 32:
+ {
+ int rawValue = input.readEnum();
+
+ valueType_ = rawValue;
+ break;
+ }
+ case 42:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ unit_ = s;
+ break;
+ }
+ case 50:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ description_ = s;
+ break;
+ }
+ case 58:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ displayName_ = s;
+ break;
+ }
+ case 66:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ type_ = s;
+ break;
+ }
+ case 82:
+ {
+ com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder subBuilder = null;
+ if (metadata_ != null) {
+ subBuilder = metadata_.toBuilder();
+ }
+ metadata_ =
+ input.readMessage(
+ com.google.api.MetricDescriptor.MetricDescriptorMetadata.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(metadata_);
+ metadata_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 96:
+ {
+ int rawValue = input.readEnum();
+
+ launchStage_ = rawValue;
+ break;
+ }
+ case 106:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ monitoredResourceTypes_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ monitoredResourceTypes_.add(s);
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ labels_ = java.util.Collections.unmodifiableList(labels_);
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ monitoredResourceTypes_ = monitoredResourceTypes_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MetricProto.internal_static_google_api_MetricDescriptor_descriptor;
}
@@ -764,6 +907,118 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MetricDescriptorMetadata();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private MetricDescriptorMetadata(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ int rawValue = input.readEnum();
+
+ launchStage_ = rawValue;
+ break;
+ }
+ case 18:
+ {
+ com.google.protobuf.Duration.Builder subBuilder = null;
+ if (samplePeriod_ != null) {
+ subBuilder = samplePeriod_.toBuilder();
+ }
+ samplePeriod_ =
+ input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(samplePeriod_);
+ samplePeriod_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 26:
+ {
+ com.google.protobuf.Duration.Builder subBuilder = null;
+ if (ingestDelay_ != null) {
+ subBuilder = ingestDelay_.toBuilder();
+ }
+ ingestDelay_ =
+ input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(ingestDelay_);
+ ingestDelay_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 32:
+ {
+ int rawValue = input.readEnum();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ timeSeriesResourceHierarchyLevel_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ timeSeriesResourceHierarchyLevel_.add(rawValue);
+ break;
+ }
+ case 34:
+ {
+ int length = input.readRawVarint32();
+ int oldLimit = input.pushLimit(length);
+ while (input.getBytesUntilLimit() > 0) {
+ int rawValue = input.readEnum();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ timeSeriesResourceHierarchyLevel_ =
+ new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ timeSeriesResourceHierarchyLevel_.add(rawValue);
+ }
+ input.popLimit(oldLimit);
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ timeSeriesResourceHierarchyLevel_ =
+ java.util.Collections.unmodifiableList(timeSeriesResourceHierarchyLevel_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MetricProto
.internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor;
@@ -969,9 +1224,8 @@ private TimeSeriesResourceHierarchyLevel(int value) {
// @@protoc_insertion_point(enum_scope:google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel)
}
- private int bitField0_;
public static final int LAUNCH_STAGE_FIELD_NUMBER = 1;
- private int launchStage_ = 0;
+ private int launchStage_;
/**
*
@@ -1012,7 +1266,8 @@ public int getLaunchStageValue() {
@java.lang.Override
@java.lang.Deprecated
public com.google.api.LaunchStage getLaunchStage() {
- com.google.api.LaunchStage result = com.google.api.LaunchStage.forNumber(launchStage_);
+ @SuppressWarnings("deprecation")
+ com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_);
return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result;
}
@@ -1035,7 +1290,7 @@ public com.google.api.LaunchStage getLaunchStage() {
*/
@java.lang.Override
public boolean hasSamplePeriod() {
- return ((bitField0_ & 0x00000001) != 0);
+ return samplePeriod_ != null;
}
/**
@@ -1073,9 +1328,7 @@ public com.google.protobuf.Duration getSamplePeriod() {
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getSamplePeriodOrBuilder() {
- return samplePeriod_ == null
- ? com.google.protobuf.Duration.getDefaultInstance()
- : samplePeriod_;
+ return getSamplePeriod();
}
public static final int INGEST_DELAY_FIELD_NUMBER = 3;
@@ -1096,7 +1349,7 @@ public com.google.protobuf.DurationOrBuilder getSamplePeriodOrBuilder() {
*/
@java.lang.Override
public boolean hasIngestDelay() {
- return ((bitField0_ & 0x00000002) != 0);
+ return ingestDelay_ != null;
}
/**
@@ -1132,16 +1385,11 @@ public com.google.protobuf.Duration getIngestDelay() {
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getIngestDelayOrBuilder() {
- return ingestDelay_ == null
- ? com.google.protobuf.Duration.getDefaultInstance()
- : ingestDelay_;
+ return getIngestDelay();
}
public static final int TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_FIELD_NUMBER = 4;
-
- @SuppressWarnings("serial")
private java.util.List timeSeriesResourceHierarchyLevel_;
-
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer,
com.google.api.MetricDescriptor.MetricDescriptorMetadata
@@ -1154,11 +1402,12 @@ public com.google.protobuf.DurationOrBuilder getIngestDelayOrBuilder() {
public com.google.api.MetricDescriptor.MetricDescriptorMetadata
.TimeSeriesResourceHierarchyLevel
convert(java.lang.Integer from) {
+ @SuppressWarnings("deprecation")
com.google.api.MetricDescriptor.MetricDescriptorMetadata
.TimeSeriesResourceHierarchyLevel
result =
com.google.api.MetricDescriptor.MetricDescriptorMetadata
- .TimeSeriesResourceHierarchyLevel.forNumber(from);
+ .TimeSeriesResourceHierarchyLevel.valueOf(from);
return result == null
? com.google.api.MetricDescriptor.MetricDescriptorMetadata
.TimeSeriesResourceHierarchyLevel.UNRECOGNIZED
@@ -1289,10 +1538,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(1, launchStage_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (samplePeriod_ != null) {
output.writeMessage(2, getSamplePeriod());
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (ingestDelay_ != null) {
output.writeMessage(3, getIngestDelay());
}
if (getTimeSeriesResourceHierarchyLevelList().size() > 0) {
@@ -1302,7 +1551,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < timeSeriesResourceHierarchyLevel_.size(); i++) {
output.writeEnumNoTag(timeSeriesResourceHierarchyLevel_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -1314,10 +1563,10 @@ public int getSerializedSize() {
if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, launchStage_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (samplePeriod_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSamplePeriod());
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (ingestDelay_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIngestDelay());
}
{
@@ -1334,7 +1583,7 @@ public int getSerializedSize() {
}
timeSeriesResourceHierarchyLevelMemoizedSerializedSize = dataSize;
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -1361,7 +1610,7 @@ public boolean equals(final java.lang.Object obj) {
}
if (!timeSeriesResourceHierarchyLevel_.equals(other.timeSeriesResourceHierarchyLevel_))
return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -1386,7 +1635,7 @@ public int hashCode() {
hash = (37 * hash) + TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + timeSeriesResourceHierarchyLevel_.hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -1529,29 +1778,28 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getSamplePeriodFieldBuilder();
- getIngestDelayFieldBuilder();
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
launchStage_ = 0;
- samplePeriod_ = null;
- if (samplePeriodBuilder_ != null) {
- samplePeriodBuilder_.dispose();
+
+ if (samplePeriodBuilder_ == null) {
+ samplePeriod_ = null;
+ } else {
+ samplePeriod_ = null;
samplePeriodBuilder_ = null;
}
- ingestDelay_ = null;
- if (ingestDelayBuilder_ != null) {
- ingestDelayBuilder_.dispose();
+ if (ingestDelayBuilder_ == null) {
+ ingestDelay_ = null;
+ } else {
+ ingestDelay_ = null;
ingestDelayBuilder_ = null;
}
timeSeriesResourceHierarchyLevel_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -1579,41 +1827,26 @@ public com.google.api.MetricDescriptor.MetricDescriptorMetadata build() {
public com.google.api.MetricDescriptor.MetricDescriptorMetadata buildPartial() {
com.google.api.MetricDescriptor.MetricDescriptorMetadata result =
new com.google.api.MetricDescriptor.MetricDescriptorMetadata(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ int from_bitField0_ = bitField0_;
+ result.launchStage_ = launchStage_;
+ if (samplePeriodBuilder_ == null) {
+ result.samplePeriod_ = samplePeriod_;
+ } else {
+ result.samplePeriod_ = samplePeriodBuilder_.build();
}
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(
- com.google.api.MetricDescriptor.MetricDescriptorMetadata result) {
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (ingestDelayBuilder_ == null) {
+ result.ingestDelay_ = ingestDelay_;
+ } else {
+ result.ingestDelay_ = ingestDelayBuilder_.build();
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
timeSeriesResourceHierarchyLevel_ =
java.util.Collections.unmodifiableList(timeSeriesResourceHierarchyLevel_);
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.timeSeriesResourceHierarchyLevel_ = timeSeriesResourceHierarchyLevel_;
- }
-
- private void buildPartial0(com.google.api.MetricDescriptor.MetricDescriptorMetadata result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.launchStage_ = launchStage_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.samplePeriod_ =
- samplePeriodBuilder_ == null ? samplePeriod_ : samplePeriodBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.ingestDelay_ =
- ingestDelayBuilder_ == null ? ingestDelay_ : ingestDelayBuilder_.build();
- to_bitField0_ |= 0x00000002;
- }
- result.bitField0_ |= to_bitField0_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -1676,14 +1909,14 @@ public Builder mergeFrom(com.google.api.MetricDescriptor.MetricDescriptorMetadat
if (!other.timeSeriesResourceHierarchyLevel_.isEmpty()) {
if (timeSeriesResourceHierarchyLevel_.isEmpty()) {
timeSeriesResourceHierarchyLevel_ = other.timeSeriesResourceHierarchyLevel_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTimeSeriesResourceHierarchyLevelIsMutable();
timeSeriesResourceHierarchyLevel_.addAll(other.timeSeriesResourceHierarchyLevel_);
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -1698,68 +1931,18 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.MetricDescriptor.MetricDescriptorMetadata parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8:
- {
- launchStage_ = input.readEnum();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 18:
- {
- input.readMessage(getSamplePeriodFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26:
- {
- input.readMessage(getIngestDelayFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 32:
- {
- int tmpRaw = input.readEnum();
- ensureTimeSeriesResourceHierarchyLevelIsMutable();
- timeSeriesResourceHierarchyLevel_.add(tmpRaw);
- break;
- } // case 32
- case 34:
- {
- int length = input.readRawVarint32();
- int oldLimit = input.pushLimit(length);
- while (input.getBytesUntilLimit() > 0) {
- int tmpRaw = input.readEnum();
- ensureTimeSeriesResourceHierarchyLevelIsMutable();
- timeSeriesResourceHierarchyLevel_.add(tmpRaw);
- }
- input.popLimit(oldLimit);
- break;
- } // case 34
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.api.MetricDescriptor.MetricDescriptorMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -1806,8 +1989,8 @@ public int getLaunchStageValue() {
*/
@java.lang.Deprecated
public Builder setLaunchStageValue(int value) {
+
launchStage_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1830,7 +2013,8 @@ public Builder setLaunchStageValue(int value) {
@java.lang.Override
@java.lang.Deprecated
public com.google.api.LaunchStage getLaunchStage() {
- com.google.api.LaunchStage result = com.google.api.LaunchStage.forNumber(launchStage_);
+ @SuppressWarnings("deprecation")
+ com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_);
return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result;
}
@@ -1855,7 +2039,7 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000001;
+
launchStage_ = value.getNumber();
onChanged();
return this;
@@ -1878,7 +2062,7 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) {
*/
@java.lang.Deprecated
public Builder clearLaunchStage() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
launchStage_ = 0;
onChanged();
return this;
@@ -1906,7 +2090,7 @@ public Builder clearLaunchStage() {
* @return Whether the samplePeriod field is set.
*/
public boolean hasSamplePeriod() {
- return ((bitField0_ & 0x00000002) != 0);
+ return samplePeriodBuilder_ != null || samplePeriod_ != null;
}
/**
@@ -1951,11 +2135,11 @@ public Builder setSamplePeriod(com.google.protobuf.Duration value) {
throw new NullPointerException();
}
samplePeriod_ = value;
+ onChanged();
} else {
samplePeriodBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
@@ -1974,11 +2158,11 @@ public Builder setSamplePeriod(com.google.protobuf.Duration value) {
public Builder setSamplePeriod(com.google.protobuf.Duration.Builder builderForValue) {
if (samplePeriodBuilder_ == null) {
samplePeriod_ = builderForValue.build();
+ onChanged();
} else {
samplePeriodBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
@@ -1996,20 +2180,19 @@ public Builder setSamplePeriod(com.google.protobuf.Duration.Builder builderForVa
*/
public Builder mergeSamplePeriod(com.google.protobuf.Duration value) {
if (samplePeriodBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)
- && samplePeriod_ != null
- && samplePeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
- getSamplePeriodBuilder().mergeFrom(value);
+ if (samplePeriod_ != null) {
+ samplePeriod_ =
+ com.google.protobuf.Duration.newBuilder(samplePeriod_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
samplePeriod_ = value;
}
+ onChanged();
} else {
samplePeriodBuilder_.mergeFrom(value);
}
- if (samplePeriod_ != null) {
- bitField0_ |= 0x00000002;
- onChanged();
- }
+
return this;
}
@@ -2026,13 +2209,14 @@ public Builder mergeSamplePeriod(com.google.protobuf.Duration value) {
* .google.protobuf.Duration sample_period = 2;
*/
public Builder clearSamplePeriod() {
- bitField0_ = (bitField0_ & ~0x00000002);
- samplePeriod_ = null;
- if (samplePeriodBuilder_ != null) {
- samplePeriodBuilder_.dispose();
+ if (samplePeriodBuilder_ == null) {
+ samplePeriod_ = null;
+ onChanged();
+ } else {
+ samplePeriod_ = null;
samplePeriodBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -2049,7 +2233,7 @@ public Builder clearSamplePeriod() {
* .google.protobuf.Duration sample_period = 2;
*/
public com.google.protobuf.Duration.Builder getSamplePeriodBuilder() {
- bitField0_ |= 0x00000002;
+
onChanged();
return getSamplePeriodFieldBuilder().getBuilder();
}
@@ -2126,7 +2310,7 @@ public com.google.protobuf.DurationOrBuilder getSamplePeriodOrBuilder() {
* @return Whether the ingestDelay field is set.
*/
public boolean hasIngestDelay() {
- return ((bitField0_ & 0x00000004) != 0);
+ return ingestDelayBuilder_ != null || ingestDelay_ != null;
}
/**
@@ -2169,11 +2353,11 @@ public Builder setIngestDelay(com.google.protobuf.Duration value) {
throw new NullPointerException();
}
ingestDelay_ = value;
+ onChanged();
} else {
ingestDelayBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000004;
- onChanged();
+
return this;
}
@@ -2191,11 +2375,11 @@ public Builder setIngestDelay(com.google.protobuf.Duration value) {
public Builder setIngestDelay(com.google.protobuf.Duration.Builder builderForValue) {
if (ingestDelayBuilder_ == null) {
ingestDelay_ = builderForValue.build();
+ onChanged();
} else {
ingestDelayBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000004;
- onChanged();
+
return this;
}
@@ -2212,20 +2396,19 @@ public Builder setIngestDelay(com.google.protobuf.Duration.Builder builderForVal
*/
public Builder mergeIngestDelay(com.google.protobuf.Duration value) {
if (ingestDelayBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)
- && ingestDelay_ != null
- && ingestDelay_ != com.google.protobuf.Duration.getDefaultInstance()) {
- getIngestDelayBuilder().mergeFrom(value);
+ if (ingestDelay_ != null) {
+ ingestDelay_ =
+ com.google.protobuf.Duration.newBuilder(ingestDelay_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
ingestDelay_ = value;
}
+ onChanged();
} else {
ingestDelayBuilder_.mergeFrom(value);
}
- if (ingestDelay_ != null) {
- bitField0_ |= 0x00000004;
- onChanged();
- }
+
return this;
}
@@ -2241,13 +2424,14 @@ public Builder mergeIngestDelay(com.google.protobuf.Duration value) {
* .google.protobuf.Duration ingest_delay = 3;
*/
public Builder clearIngestDelay() {
- bitField0_ = (bitField0_ & ~0x00000004);
- ingestDelay_ = null;
- if (ingestDelayBuilder_ != null) {
- ingestDelayBuilder_.dispose();
+ if (ingestDelayBuilder_ == null) {
+ ingestDelay_ = null;
+ onChanged();
+ } else {
+ ingestDelay_ = null;
ingestDelayBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -2263,7 +2447,7 @@ public Builder clearIngestDelay() {
* .google.protobuf.Duration ingest_delay = 3;
*/
public com.google.protobuf.Duration.Builder getIngestDelayBuilder() {
- bitField0_ |= 0x00000004;
+
onChanged();
return getIngestDelayFieldBuilder().getBuilder();
}
@@ -2321,10 +2505,10 @@ public com.google.protobuf.DurationOrBuilder getIngestDelayOrBuilder() {
java.util.Collections.emptyList();
private void ensureTimeSeriesResourceHierarchyLevelIsMutable() {
- if (!((bitField0_ & 0x00000008) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
timeSeriesResourceHierarchyLevel_ =
new java.util.ArrayList(timeSeriesResourceHierarchyLevel_);
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000001;
}
}
@@ -2489,7 +2673,7 @@ public Builder addAllTimeSeriesResourceHierarchyLevel(
*/
public Builder clearTimeSeriesResourceHierarchyLevel() {
timeSeriesResourceHierarchyLevel_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -2634,19 +2818,7 @@ public MetricDescriptorMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException()
- .setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new MetricDescriptorMetadata(input, extensionRegistry);
}
};
@@ -2665,11 +2837,8 @@ public com.google.api.MetricDescriptor.MetricDescriptorMetadata getDefaultInstan
}
}
- private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object name_ = "";
+ private volatile java.lang.Object name_;
/**
*
@@ -2720,9 +2889,7 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int TYPE_FIELD_NUMBER = 8;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object type_ = "";
+ private volatile java.lang.Object type_;
/**
*
@@ -2732,7 +2899,6 @@ public com.google.protobuf.ByteString getNameBytes() {
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
- *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -2763,7 +2929,6 @@ public java.lang.String getType() {
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
- *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -2787,8 +2952,6 @@ public com.google.protobuf.ByteString getTypeBytes() {
}
public static final int LABELS_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
private java.util.List labels_;
/**
@@ -2888,7 +3051,7 @@ public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
}
public static final int METRIC_KIND_FIELD_NUMBER = 3;
- private int metricKind_ = 0;
+ private int metricKind_;
/**
*
@@ -2921,13 +3084,14 @@ public int getMetricKindValue() {
*/
@java.lang.Override
public com.google.api.MetricDescriptor.MetricKind getMetricKind() {
+ @SuppressWarnings("deprecation")
com.google.api.MetricDescriptor.MetricKind result =
- com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_);
+ com.google.api.MetricDescriptor.MetricKind.valueOf(metricKind_);
return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result;
}
public static final int VALUE_TYPE_FIELD_NUMBER = 4;
- private int valueType_ = 0;
+ private int valueType_;
/**
*
@@ -2960,15 +3124,14 @@ public int getValueTypeValue() {
*/
@java.lang.Override
public com.google.api.MetricDescriptor.ValueType getValueType() {
+ @SuppressWarnings("deprecation")
com.google.api.MetricDescriptor.ValueType result =
- com.google.api.MetricDescriptor.ValueType.forNumber(valueType_);
+ com.google.api.MetricDescriptor.ValueType.valueOf(valueType_);
return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result;
}
public static final int UNIT_FIELD_NUMBER = 5;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object unit_ = "";
+ private volatile java.lang.Object unit_;
/**
*
@@ -2977,28 +3140,22 @@ public com.google.api.MetricDescriptor.ValueType getValueType() {
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
- *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
- *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
- *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
- *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
- *
* **Basic units (UNIT)**
- *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -3006,9 +3163,7 @@ public com.google.api.MetricDescriptor.ValueType getValueType() {
* * `h` hour
* * `d` day
* * `1` dimensionless
- *
* **Prefixes (PREFIX)**
- *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -3017,7 +3172,6 @@ public com.google.api.MetricDescriptor.ValueType getValueType() {
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
- *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -3026,37 +3180,27 @@ public com.google.api.MetricDescriptor.ValueType getValueType() {
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
- *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
- *
* **Grammar**
- *
* The grammar also includes these connectors:
- *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
- *
* The grammar for a unit is as follows:
- *
* Expression = Component { "." Component } { "/" Component } ;
- *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
- *
* Annotation = "{" NAME "}" ;
- *
* Notes:
- *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -3102,28 +3246,22 @@ public java.lang.String getUnit() {
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
- *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
- *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
- *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
- *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
- *
* **Basic units (UNIT)**
- *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -3131,9 +3269,7 @@ public java.lang.String getUnit() {
* * `h` hour
* * `d` day
* * `1` dimensionless
- *
* **Prefixes (PREFIX)**
- *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -3142,7 +3278,6 @@ public java.lang.String getUnit() {
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
- *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -3151,37 +3286,27 @@ public java.lang.String getUnit() {
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
- *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
- *
* **Grammar**
- *
* The grammar also includes these connectors:
- *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
- *
* The grammar for a unit is as follows:
- *
* Expression = Component { "." Component } { "/" Component } ;
- *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
- *
* Annotation = "{" NAME "}" ;
- *
* Notes:
- *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -3221,9 +3346,7 @@ public com.google.protobuf.ByteString getUnitBytes() {
}
public static final int DESCRIPTION_FIELD_NUMBER = 6;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object description_ = "";
+ private volatile java.lang.Object description_;
/**
*
@@ -3274,9 +3397,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 7;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object displayName_ = "";
+ private volatile java.lang.Object displayName_;
/**
*
@@ -3348,7 +3469,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*/
@java.lang.Override
public boolean hasMetadata() {
- return ((bitField0_ & 0x00000001) != 0);
+ return metadata_ != null;
}
/**
@@ -3380,13 +3501,11 @@ public com.google.api.MetricDescriptor.MetricDescriptorMetadata getMetadata() {
*/
@java.lang.Override
public com.google.api.MetricDescriptor.MetricDescriptorMetadataOrBuilder getMetadataOrBuilder() {
- return metadata_ == null
- ? com.google.api.MetricDescriptor.MetricDescriptorMetadata.getDefaultInstance()
- : metadata_;
+ return getMetadata();
}
public static final int LAUNCH_STAGE_FIELD_NUMBER = 12;
- private int launchStage_ = 0;
+ private int launchStage_;
/**
*
@@ -3417,15 +3536,13 @@ public int getLaunchStageValue() {
*/
@java.lang.Override
public com.google.api.LaunchStage getLaunchStage() {
- com.google.api.LaunchStage result = com.google.api.LaunchStage.forNumber(launchStage_);
+ @SuppressWarnings("deprecation")
+ com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_);
return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result;
}
public static final int MONITORED_RESOURCE_TYPES_FIELD_NUMBER = 13;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList monitoredResourceTypes_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList monitoredResourceTypes_;
/**
*
@@ -3549,7 +3666,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, type_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (metadata_ != null) {
output.writeMessage(10, getMetadata());
}
if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) {
@@ -3559,7 +3676,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
com.google.protobuf.GeneratedMessageV3.writeString(
output, 13, monitoredResourceTypes_.getRaw(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -3594,7 +3711,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, type_);
}
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getMetadata());
}
if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) {
@@ -3608,7 +3725,7 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getMonitoredResourceTypesList().size();
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -3638,7 +3755,7 @@ public boolean equals(final java.lang.Object obj) {
if (launchStage_ != other.launchStage_) return false;
if (!getMonitoredResourceTypesList().equals(other.getMonitoredResourceTypesList()))
return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -3677,7 +3794,7 @@ public int hashCode() {
hash = (37 * hash) + MONITORED_RESOURCE_TYPES_FIELD_NUMBER;
hash = (53 * hash) + getMonitoredResourceTypesList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -3818,35 +3935,42 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getLabelsFieldBuilder();
- getMetadataFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
name_ = "";
+
type_ = "";
+
if (labelsBuilder_ == null) {
labels_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- labels_ = null;
labelsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000004);
metricKind_ = 0;
+
valueType_ = 0;
+
unit_ = "";
+
description_ = "";
+
displayName_ = "";
- metadata_ = null;
- if (metadataBuilder_ != null) {
- metadataBuilder_.dispose();
+
+ if (metadataBuilder_ == null) {
+ metadata_ = null;
+ } else {
+ metadata_ = null;
metadataBuilder_ = null;
}
launchStage_ = 0;
- monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList();
+
+ monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@@ -3872,62 +3996,36 @@ public com.google.api.MetricDescriptor build() {
@java.lang.Override
public com.google.api.MetricDescriptor buildPartial() {
com.google.api.MetricDescriptor result = new com.google.api.MetricDescriptor(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.MetricDescriptor result) {
+ int from_bitField0_ = bitField0_;
+ result.name_ = name_;
+ result.type_ = type_;
if (labelsBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
labels_ = java.util.Collections.unmodifiableList(labels_);
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.labels_ = labels_;
} else {
result.labels_ = labelsBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.MetricDescriptor result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.name_ = name_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.type_ = type_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.metricKind_ = metricKind_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.valueType_ = valueType_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.unit_ = unit_;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.description_ = description_;
- }
- if (((from_bitField0_ & 0x00000080) != 0)) {
- result.displayName_ = displayName_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000100) != 0)) {
- result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000200) != 0)) {
- result.launchStage_ = launchStage_;
+ result.metricKind_ = metricKind_;
+ result.valueType_ = valueType_;
+ result.unit_ = unit_;
+ result.description_ = description_;
+ result.displayName_ = displayName_;
+ if (metadataBuilder_ == null) {
+ result.metadata_ = metadata_;
+ } else {
+ result.metadata_ = metadataBuilder_.build();
}
- if (((from_bitField0_ & 0x00000400) != 0)) {
- monitoredResourceTypes_.makeImmutable();
- result.monitoredResourceTypes_ = monitoredResourceTypes_;
+ result.launchStage_ = launchStage_;
+ if (((bitField0_ & 0x00000002) != 0)) {
+ monitoredResourceTypes_ = monitoredResourceTypes_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000002);
}
- result.bitField0_ |= to_bitField0_;
+ result.monitoredResourceTypes_ = monitoredResourceTypes_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -3977,19 +4075,17 @@ public Builder mergeFrom(com.google.api.MetricDescriptor other) {
if (other == com.google.api.MetricDescriptor.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
- bitField0_ |= 0x00000002;
onChanged();
}
if (labelsBuilder_ == null) {
if (!other.labels_.isEmpty()) {
if (labels_.isEmpty()) {
labels_ = other.labels_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLabelsIsMutable();
labels_.addAll(other.labels_);
@@ -4002,7 +4098,7 @@ public Builder mergeFrom(com.google.api.MetricDescriptor other) {
labelsBuilder_.dispose();
labelsBuilder_ = null;
labels_ = other.labels_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
labelsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getLabelsFieldBuilder()
@@ -4020,17 +4116,14 @@ public Builder mergeFrom(com.google.api.MetricDescriptor other) {
}
if (!other.getUnit().isEmpty()) {
unit_ = other.unit_;
- bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
- bitField0_ |= 0x00000040;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
- bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasMetadata()) {
@@ -4042,14 +4135,14 @@ public Builder mergeFrom(com.google.api.MetricDescriptor other) {
if (!other.monitoredResourceTypes_.isEmpty()) {
if (monitoredResourceTypes_.isEmpty()) {
monitoredResourceTypes_ = other.monitoredResourceTypes_;
- bitField0_ |= 0x00000400;
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMonitoredResourceTypesIsMutable();
monitoredResourceTypes_.addAll(other.monitoredResourceTypes_);
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -4064,104 +4157,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.MetricDescriptor parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- name_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- com.google.api.LabelDescriptor m =
- input.readMessage(com.google.api.LabelDescriptor.parser(), extensionRegistry);
- if (labelsBuilder_ == null) {
- ensureLabelsIsMutable();
- labels_.add(m);
- } else {
- labelsBuilder_.addMessage(m);
- }
- break;
- } // case 18
- case 24:
- {
- metricKind_ = input.readEnum();
- bitField0_ |= 0x00000008;
- break;
- } // case 24
- case 32:
- {
- valueType_ = input.readEnum();
- bitField0_ |= 0x00000010;
- break;
- } // case 32
- case 42:
- {
- unit_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000020;
- break;
- } // case 42
- case 50:
- {
- description_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000040;
- break;
- } // case 50
- case 58:
- {
- displayName_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000080;
- break;
- } // case 58
- case 66:
- {
- type_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 66
- case 82:
- {
- input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000100;
- break;
- } // case 82
- case 96:
- {
- launchStage_ = input.readEnum();
- bitField0_ |= 0x00000200;
- break;
- } // case 96
- case 106:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureMonitoredResourceTypesIsMutable();
- monitoredResourceTypes_.add(s);
- break;
- } // case 106
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.MetricDescriptor) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -4231,8 +4237,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
name_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -4249,8 +4255,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
+
name_ = getDefaultInstance().getName();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -4272,8 +4278,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
name_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -4288,7 +4294,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
- *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -4318,7 +4323,6 @@ public java.lang.String getType() {
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
- *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -4348,7 +4352,6 @@ public com.google.protobuf.ByteString getTypeBytes() {
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
- *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -4363,8 +4366,8 @@ public Builder setType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
type_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4377,7 +4380,6 @@ public Builder setType(java.lang.String value) {
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
- *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -4388,8 +4390,8 @@ public Builder setType(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearType() {
+
type_ = getDefaultInstance().getType();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -4402,7 +4404,6 @@ public Builder clearType() {
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
- *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -4418,8 +4419,8 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
type_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4428,9 +4429,9 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
java.util.Collections.emptyList();
private void ensureLabelsIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
labels_ = new java.util.ArrayList(labels_);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000001;
}
}
@@ -4708,7 +4709,7 @@ public Builder addAllLabels(
public Builder clearLabels() {
if (labelsBuilder_ == null) {
labels_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
labelsBuilder_.clear();
@@ -4871,7 +4872,7 @@ public java.util.List getLabelsBuilderLi
com.google.api.LabelDescriptor,
com.google.api.LabelDescriptor.Builder,
com.google.api.LabelDescriptorOrBuilder>(
- labels_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+ labels_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
labels_ = null;
}
return labelsBuilder_;
@@ -4910,8 +4911,8 @@ public int getMetricKindValue() {
* @return This builder for chaining.
*/
public Builder setMetricKindValue(int value) {
+
metricKind_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -4930,8 +4931,9 @@ public Builder setMetricKindValue(int value) {
*/
@java.lang.Override
public com.google.api.MetricDescriptor.MetricKind getMetricKind() {
+ @SuppressWarnings("deprecation")
com.google.api.MetricDescriptor.MetricKind result =
- com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_);
+ com.google.api.MetricDescriptor.MetricKind.valueOf(metricKind_);
return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result;
}
@@ -4952,7 +4954,7 @@ public Builder setMetricKind(com.google.api.MetricDescriptor.MetricKind value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000008;
+
metricKind_ = value.getNumber();
onChanged();
return this;
@@ -4971,7 +4973,7 @@ public Builder setMetricKind(com.google.api.MetricDescriptor.MetricKind value) {
* @return This builder for chaining.
*/
public Builder clearMetricKind() {
- bitField0_ = (bitField0_ & ~0x00000008);
+
metricKind_ = 0;
onChanged();
return this;
@@ -5010,8 +5012,8 @@ public int getValueTypeValue() {
* @return This builder for chaining.
*/
public Builder setValueTypeValue(int value) {
+
valueType_ = value;
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -5030,8 +5032,9 @@ public Builder setValueTypeValue(int value) {
*/
@java.lang.Override
public com.google.api.MetricDescriptor.ValueType getValueType() {
+ @SuppressWarnings("deprecation")
com.google.api.MetricDescriptor.ValueType result =
- com.google.api.MetricDescriptor.ValueType.forNumber(valueType_);
+ com.google.api.MetricDescriptor.ValueType.valueOf(valueType_);
return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result;
}
@@ -5052,7 +5055,7 @@ public Builder setValueType(com.google.api.MetricDescriptor.ValueType value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000010;
+
valueType_ = value.getNumber();
onChanged();
return this;
@@ -5071,7 +5074,7 @@ public Builder setValueType(com.google.api.MetricDescriptor.ValueType value) {
* @return This builder for chaining.
*/
public Builder clearValueType() {
- bitField0_ = (bitField0_ & ~0x00000010);
+
valueType_ = 0;
onChanged();
return this;
@@ -5086,28 +5089,22 @@ public Builder clearValueType() {
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
- *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
- *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
- *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
- *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
- *
* **Basic units (UNIT)**
- *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -5115,9 +5112,7 @@ public Builder clearValueType() {
* * `h` hour
* * `d` day
* * `1` dimensionless
- *
* **Prefixes (PREFIX)**
- *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -5126,7 +5121,6 @@ public Builder clearValueType() {
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
- *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -5135,37 +5129,27 @@ public Builder clearValueType() {
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
- *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
- *
* **Grammar**
- *
* The grammar also includes these connectors:
- *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
- *
* The grammar for a unit is as follows:
- *
* Expression = Component { "." Component } { "/" Component } ;
- *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
- *
* Annotation = "{" NAME "}" ;
- *
* Notes:
- *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -5210,28 +5194,22 @@ public java.lang.String getUnit() {
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
- *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
- *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
- *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
- *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
- *
* **Basic units (UNIT)**
- *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -5239,9 +5217,7 @@ public java.lang.String getUnit() {
* * `h` hour
* * `d` day
* * `1` dimensionless
- *
* **Prefixes (PREFIX)**
- *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -5250,7 +5226,6 @@ public java.lang.String getUnit() {
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
- *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -5259,37 +5234,27 @@ public java.lang.String getUnit() {
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
- *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
- *
* **Grammar**
- *
* The grammar also includes these connectors:
- *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
- *
* The grammar for a unit is as follows:
- *
* Expression = Component { "." Component } { "/" Component } ;
- *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
- *
* Annotation = "{" NAME "}" ;
- *
* Notes:
- *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -5334,28 +5299,22 @@ public com.google.protobuf.ByteString getUnitBytes() {
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
- *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
- *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
- *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
- *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
- *
* **Basic units (UNIT)**
- *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -5363,9 +5322,7 @@ public com.google.protobuf.ByteString getUnitBytes() {
* * `h` hour
* * `d` day
* * `1` dimensionless
- *
* **Prefixes (PREFIX)**
- *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -5374,7 +5331,6 @@ public com.google.protobuf.ByteString getUnitBytes() {
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
- *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -5383,37 +5339,27 @@ public com.google.protobuf.ByteString getUnitBytes() {
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
- *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
- *
* **Grammar**
- *
* The grammar also includes these connectors:
- *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
- *
* The grammar for a unit is as follows:
- *
* Expression = Component { "." Component } { "/" Component } ;
- *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
- *
* Annotation = "{" NAME "}" ;
- *
* Notes:
- *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -5444,8 +5390,8 @@ public Builder setUnit(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
unit_ = value;
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -5457,28 +5403,22 @@ public Builder setUnit(java.lang.String value) {
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
- *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
- *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
- *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
- *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
- *
* **Basic units (UNIT)**
- *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -5486,9 +5426,7 @@ public Builder setUnit(java.lang.String value) {
* * `h` hour
* * `d` day
* * `1` dimensionless
- *
* **Prefixes (PREFIX)**
- *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -5497,7 +5435,6 @@ public Builder setUnit(java.lang.String value) {
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
- *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -5506,37 +5443,27 @@ public Builder setUnit(java.lang.String value) {
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
- *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
- *
* **Grammar**
- *
* The grammar also includes these connectors:
- *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
- *
* The grammar for a unit is as follows:
- *
* Expression = Component { "." Component } { "/" Component } ;
- *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
- *
* Annotation = "{" NAME "}" ;
- *
* Notes:
- *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -5563,8 +5490,8 @@ public Builder setUnit(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearUnit() {
+
unit_ = getDefaultInstance().getUnit();
- bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
@@ -5576,28 +5503,22 @@ public Builder clearUnit() {
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
- *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
- *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
- *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
- *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
- *
* **Basic units (UNIT)**
- *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -5605,9 +5526,7 @@ public Builder clearUnit() {
* * `h` hour
* * `d` day
* * `1` dimensionless
- *
* **Prefixes (PREFIX)**
- *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -5616,7 +5535,6 @@ public Builder clearUnit() {
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
- *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -5625,37 +5543,27 @@ public Builder clearUnit() {
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
- *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
- *
* **Grammar**
- *
* The grammar also includes these connectors:
- *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
- *
* The grammar for a unit is as follows:
- *
* Expression = Component { "." Component } { "/" Component } ;
- *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
- *
* Annotation = "{" NAME "}" ;
- *
* Notes:
- *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -5687,8 +5595,8 @@ public Builder setUnitBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
unit_ = value;
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -5757,8 +5665,8 @@ public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
description_ = value;
- bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -5775,8 +5683,8 @@ public Builder setDescription(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDescription() {
+
description_ = getDefaultInstance().getDescription();
- bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
@@ -5798,8 +5706,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
description_ = value;
- bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -5877,8 +5785,8 @@ public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
displayName_ = value;
- bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -5898,8 +5806,8 @@ public Builder setDisplayName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
+
displayName_ = getDefaultInstance().getDisplayName();
- bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
@@ -5924,8 +5832,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
displayName_ = value;
- bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -5949,7 +5857,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
- return ((bitField0_ & 0x00000100) != 0);
+ return metadataBuilder_ != null || metadata_ != null;
}
/**
@@ -5988,11 +5896,11 @@ public Builder setMetadata(com.google.api.MetricDescriptor.MetricDescriptorMetad
throw new NullPointerException();
}
metadata_ = value;
+ onChanged();
} else {
metadataBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000100;
- onChanged();
+
return this;
}
@@ -6009,11 +5917,11 @@ public Builder setMetadata(
com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
+ onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000100;
- onChanged();
+
return this;
}
@@ -6028,21 +5936,19 @@ public Builder setMetadata(
*/
public Builder mergeMetadata(com.google.api.MetricDescriptor.MetricDescriptorMetadata value) {
if (metadataBuilder_ == null) {
- if (((bitField0_ & 0x00000100) != 0)
- && metadata_ != null
- && metadata_
- != com.google.api.MetricDescriptor.MetricDescriptorMetadata.getDefaultInstance()) {
- getMetadataBuilder().mergeFrom(value);
+ if (metadata_ != null) {
+ metadata_ =
+ com.google.api.MetricDescriptor.MetricDescriptorMetadata.newBuilder(metadata_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
metadata_ = value;
}
+ onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
- if (metadata_ != null) {
- bitField0_ |= 0x00000100;
- onChanged();
- }
+
return this;
}
@@ -6056,13 +5962,14 @@ public Builder mergeMetadata(com.google.api.MetricDescriptor.MetricDescriptorMet
* .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10;
*/
public Builder clearMetadata() {
- bitField0_ = (bitField0_ & ~0x00000100);
- metadata_ = null;
- if (metadataBuilder_ != null) {
- metadataBuilder_.dispose();
+ if (metadataBuilder_ == null) {
+ metadata_ = null;
+ onChanged();
+ } else {
+ metadata_ = null;
metadataBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -6076,7 +5983,7 @@ public Builder clearMetadata() {
* .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10;
*/
public com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder getMetadataBuilder() {
- bitField0_ |= 0x00000100;
+
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
@@ -6158,8 +6065,8 @@ public int getLaunchStageValue() {
* @return This builder for chaining.
*/
public Builder setLaunchStageValue(int value) {
+
launchStage_ = value;
- bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -6177,7 +6084,8 @@ public Builder setLaunchStageValue(int value) {
*/
@java.lang.Override
public com.google.api.LaunchStage getLaunchStage() {
- com.google.api.LaunchStage result = com.google.api.LaunchStage.forNumber(launchStage_);
+ @SuppressWarnings("deprecation")
+ com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_);
return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result;
}
@@ -6197,7 +6105,7 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000200;
+
launchStage_ = value.getNumber();
onChanged();
return this;
@@ -6215,21 +6123,21 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) {
* @return This builder for chaining.
*/
public Builder clearLaunchStage() {
- bitField0_ = (bitField0_ & ~0x00000200);
+
launchStage_ = 0;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringArrayList monitoredResourceTypes_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList monitoredResourceTypes_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureMonitoredResourceTypesIsMutable() {
- if (!monitoredResourceTypes_.isModifiable()) {
+ if (!((bitField0_ & 0x00000002) != 0)) {
monitoredResourceTypes_ =
new com.google.protobuf.LazyStringArrayList(monitoredResourceTypes_);
+ bitField0_ |= 0x00000002;
}
- bitField0_ |= 0x00000400;
}
/**
@@ -6249,8 +6157,7 @@ private void ensureMonitoredResourceTypesIsMutable() {
* @return A list containing the monitoredResourceTypes.
*/
public com.google.protobuf.ProtocolStringList getMonitoredResourceTypesList() {
- monitoredResourceTypes_.makeImmutable();
- return monitoredResourceTypes_;
+ return monitoredResourceTypes_.getUnmodifiableView();
}
/**
@@ -6339,7 +6246,6 @@ public Builder setMonitoredResourceTypes(int index, java.lang.String value) {
}
ensureMonitoredResourceTypesIsMutable();
monitoredResourceTypes_.set(index, value);
- bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -6367,7 +6273,6 @@ public Builder addMonitoredResourceTypes(java.lang.String value) {
}
ensureMonitoredResourceTypesIsMutable();
monitoredResourceTypes_.add(value);
- bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -6392,7 +6297,6 @@ public Builder addMonitoredResourceTypes(java.lang.String value) {
public Builder addAllMonitoredResourceTypes(java.lang.Iterable values) {
ensureMonitoredResourceTypesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, monitoredResourceTypes_);
- bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -6414,9 +6318,8 @@ public Builder addAllMonitoredResourceTypes(java.lang.Iterable
* @return This builder for chaining.
*/
public Builder clearMonitoredResourceTypes() {
- monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000400);
- ;
+ monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -6445,7 +6348,6 @@ public Builder addMonitoredResourceTypesBytes(com.google.protobuf.ByteString val
checkByteStringIsUtf8(value);
ensureMonitoredResourceTypesIsMutable();
monitoredResourceTypes_.add(value);
- bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -6482,18 +6384,7 @@ public MetricDescriptor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new MetricDescriptor(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java
index 987794aee6..a3b2055e37 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/metric.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface MetricDescriptorOrBuilder
@@ -58,7 +57,6 @@ public interface MetricDescriptorOrBuilder
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
- *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -78,7 +76,6 @@ public interface MetricDescriptorOrBuilder
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
- *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -233,28 +230,22 @@ public interface MetricDescriptorOrBuilder
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
- *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
- *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
- *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
- *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
- *
* **Basic units (UNIT)**
- *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -262,9 +253,7 @@ public interface MetricDescriptorOrBuilder
* * `h` hour
* * `d` day
* * `1` dimensionless
- *
* **Prefixes (PREFIX)**
- *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -273,7 +262,6 @@ public interface MetricDescriptorOrBuilder
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
- *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -282,37 +270,27 @@ public interface MetricDescriptorOrBuilder
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
- *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
- *
* **Grammar**
- *
* The grammar also includes these connectors:
- *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
- *
* The grammar for a unit is as follows:
- *
* Expression = Component { "." Component } { "/" Component } ;
- *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
- *
* Annotation = "{" NAME "}" ;
- *
* Notes:
- *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -347,28 +325,22 @@ public interface MetricDescriptorOrBuilder
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
- *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
- *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
- *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
- *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
- *
* **Basic units (UNIT)**
- *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -376,9 +348,7 @@ public interface MetricDescriptorOrBuilder
* * `h` hour
* * `d` day
* * `1` dimensionless
- *
* **Prefixes (PREFIX)**
- *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -387,7 +357,6 @@ public interface MetricDescriptorOrBuilder
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
- *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -396,37 +365,27 @@ public interface MetricDescriptorOrBuilder
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
- *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
- *
* **Grammar**
- *
* The grammar also includes these connectors:
- *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
- *
* The grammar for a unit is as follows:
- *
* Expression = Component { "." Component } { "/" Component } ;
- *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
- *
* Annotation = "{" NAME "}" ;
- *
* Notes:
- *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricOrBuilder.java
index b96a2cda9d..15f30137e8 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/metric.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface MetricOrBuilder
@@ -104,6 +103,7 @@ public interface MetricOrBuilder
*
* map<string, string> labels = 2;
*/
+
/* nullable */
java.lang.String getLabelsOrDefault(
java.lang.String key,
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricProto.java
index 6b5914d728..f1ac5fc9a4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/metric.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class MetricProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java
index 7cb2c91dc3..5abd823107 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/quota.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -50,14 +49,80 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MetricRule();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private MetricRule(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ selector_ = s;
+ break;
+ }
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ metricCosts_ =
+ com.google.protobuf.MapField.newMapField(
+ MetricCostsDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
+ }
+ com.google.protobuf.MapEntry metricCosts__ =
+ input.readMessage(
+ MetricCostsDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ metricCosts_.getMutableMap().put(metricCosts__.getKey(), metricCosts__.getValue());
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.QuotaProto.internal_static_google_api_MetricRule_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetMetricCosts();
@@ -75,16 +140,13 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
}
public static final int SELECTOR_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object selector_ = "";
+ private volatile java.lang.Object selector_;
/**
*
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -111,7 +173,6 @@ public java.lang.String getSelector() {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -146,7 +207,6 @@ private static final class MetricCostsDefaultEntryHolder {
0L);
}
- @SuppressWarnings("serial")
private com.google.protobuf.MapField metricCosts_;
private com.google.protobuf.MapField internalGetMetricCosts() {
@@ -166,7 +226,6 @@ public int getMetricCostsCount() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -195,7 +254,6 @@ public java.util.Map getMetricCosts() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -214,7 +272,6 @@ public java.util.Map getMetricCostsMap() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -237,7 +294,6 @@ public long getMetricCostsOrDefault(java.lang.String key, long defaultValue) {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -276,7 +332,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetMetricCosts(), MetricCostsDefaultEntryHolder.defaultEntry, 2);
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -298,7 +354,7 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricCosts__);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -315,7 +371,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getSelector().equals(other.getSelector())) return false;
if (!internalGetMetricCosts().equals(other.internalGetMetricCosts())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -332,7 +388,7 @@ public int hashCode() {
hash = (37 * hash) + METRIC_COSTS_FIELD_NUMBER;
hash = (53 * hash) + internalGetMetricCosts().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -451,8 +507,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetMetricCosts();
@@ -462,8 +517,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
switch (number) {
case 2:
return internalGetMutableMetricCosts();
@@ -481,17 +535,24 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
}
// Construct using com.google.api.MetricRule.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
selector_ = "";
+
internalGetMutableMetricCosts().clear();
return this;
}
@@ -518,24 +579,14 @@ public com.google.api.MetricRule build() {
@java.lang.Override
public com.google.api.MetricRule buildPartial() {
com.google.api.MetricRule result = new com.google.api.MetricRule(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
+ int from_bitField0_ = bitField0_;
+ result.selector_ = selector_;
+ result.metricCosts_ = internalGetMetricCosts();
+ result.metricCosts_.makeImmutable();
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.MetricRule result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.selector_ = selector_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.metricCosts_ = internalGetMetricCosts();
- result.metricCosts_.makeImmutable();
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -583,12 +634,10 @@ public Builder mergeFrom(com.google.api.MetricRule other) {
if (other == com.google.api.MetricRule.getDefaultInstance()) return this;
if (!other.getSelector().isEmpty()) {
selector_ = other.selector_;
- bitField0_ |= 0x00000001;
onChanged();
}
internalGetMutableMetricCosts().mergeFrom(other.internalGetMetricCosts());
- bitField0_ |= 0x00000002;
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -603,49 +652,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.MetricRule parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- selector_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- com.google.protobuf.MapEntry metricCosts__ =
- input.readMessage(
- MetricCostsDefaultEntryHolder.defaultEntry.getParserForType(),
- extensionRegistry);
- internalGetMutableMetricCosts()
- .getMutableMap()
- .put(metricCosts__.getKey(), metricCosts__.getValue());
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.MetricRule) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -658,7 +675,6 @@ public Builder mergeFrom(
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -684,7 +700,6 @@ public java.lang.String getSelector() {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -710,7 +725,6 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -724,8 +738,8 @@ public Builder setSelector(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -735,7 +749,6 @@ public Builder setSelector(java.lang.String value) {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -745,8 +758,8 @@ public Builder setSelector(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearSelector() {
+
selector_ = getDefaultInstance().getSelector();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -756,7 +769,6 @@ public Builder clearSelector() {
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -771,8 +783,8 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
selector_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -790,6 +802,8 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
private com.google.protobuf.MapField
internalGetMutableMetricCosts() {
+ onChanged();
+ ;
if (metricCosts_ == null) {
metricCosts_ =
com.google.protobuf.MapField.newMapField(MetricCostsDefaultEntryHolder.defaultEntry);
@@ -797,8 +811,6 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
if (!metricCosts_.isMutable()) {
metricCosts_ = metricCosts_.copy();
}
- bitField0_ |= 0x00000002;
- onChanged();
return metricCosts_;
}
@@ -812,7 +824,6 @@ public int getMetricCostsCount() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -841,7 +852,6 @@ public java.util.Map getMetricCosts() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -860,7 +870,6 @@ public java.util.Map getMetricCostsMap() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -883,7 +892,6 @@ public long getMetricCostsOrDefault(java.lang.String key, long defaultValue) {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -904,7 +912,6 @@ public long getMetricCostsOrThrow(java.lang.String key) {
}
public Builder clearMetricCosts() {
- bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableMetricCosts().getMutableMap().clear();
return this;
}
@@ -915,7 +922,6 @@ public Builder clearMetricCosts() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -934,7 +940,6 @@ public Builder removeMetricCosts(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableMetricCosts() {
- bitField0_ |= 0x00000002;
return internalGetMutableMetricCosts().getMutableMap();
}
@@ -944,7 +949,6 @@ public java.util.Map getMutableMetricCosts() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -958,7 +962,6 @@ public Builder putMetricCosts(java.lang.String key, long value) {
}
internalGetMutableMetricCosts().getMutableMap().put(key, value);
- bitField0_ |= 0x00000002;
return this;
}
@@ -968,7 +971,6 @@ public Builder putMetricCosts(java.lang.String key, long value) {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -978,7 +980,6 @@ public Builder putMetricCosts(java.lang.String key, long value) {
*/
public Builder putAllMetricCosts(java.util.Map values) {
internalGetMutableMetricCosts().getMutableMap().putAll(values);
- bitField0_ |= 0x00000002;
return this;
}
@@ -1014,18 +1015,7 @@ public MetricRule parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new MetricRule(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java
index 08ed281def..e804552b91 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/quota.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface MetricRuleOrBuilder
@@ -29,7 +28,6 @@ public interface MetricRuleOrBuilder
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -45,7 +43,6 @@ public interface MetricRuleOrBuilder
*
*
* Selects the methods to which this rule applies.
- *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -62,7 +59,6 @@ public interface MetricRuleOrBuilder
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -78,7 +74,6 @@ public interface MetricRuleOrBuilder
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -98,7 +93,6 @@ public interface MetricRuleOrBuilder
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -114,7 +108,6 @@ public interface MetricRuleOrBuilder
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -130,7 +123,6 @@ public interface MetricRuleOrBuilder
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
- *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java
index 8e60faccef..80dfe27282 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/monitored_resource.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -34,7 +33,6 @@
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for
* `"gce_instance"` has labels
* `"project_id"`, `"instance_id"` and `"zone"`:
- *
* { "type": "gce_instance",
* "labels": { "project_id": "my-project",
* "instance_id": "12345678901234",
@@ -64,6 +62,71 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MonitoredResource();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private MonitoredResource(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ type_ = s;
+ break;
+ }
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ labels_ =
+ com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
+ }
+ com.google.protobuf.MapEntry labels__ =
+ input.readMessage(
+ LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+ labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MonitoredResourceProto
.internal_static_google_api_MonitoredResource_descriptor;
@@ -71,8 +134,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@SuppressWarnings({"rawtypes"})
@java.lang.Override
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetLabels();
@@ -91,9 +153,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
}
public static final int TYPE_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object type_ = "";
+ private volatile java.lang.Object type_;
/**
*
@@ -168,7 +228,6 @@ private static final class LabelsDefaultEntryHolder {
"");
}
- @SuppressWarnings("serial")
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
@@ -236,10 +295,7 @@ public java.util.Map getLabelsMap() {
* map<string, string> labels = 2;
*/
@java.lang.Override
- public /* nullable */ java.lang.String getLabelsOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
+ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -289,7 +345,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2);
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -311,7 +367,7 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -328,7 +384,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getType().equals(other.getType())) return false;
if (!internalGetLabels().equals(other.internalGetLabels())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -345,7 +401,7 @@ public int hashCode() {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -460,7 +516,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for
* `"gce_instance"` has labels
* `"project_id"`, `"instance_id"` and `"zone"`:
- *
* { "type": "gce_instance",
* "labels": { "project_id": "my-project",
* "instance_id": "12345678901234",
@@ -479,8 +534,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetLabels();
@@ -490,8 +544,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
switch (number) {
case 2:
return internalGetMutableLabels();
@@ -511,17 +564,24 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
}
// Construct using com.google.api.MonitoredResource.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
type_ = "";
+
internalGetMutableLabels().clear();
return this;
}
@@ -549,24 +609,14 @@ public com.google.api.MonitoredResource build() {
@java.lang.Override
public com.google.api.MonitoredResource buildPartial() {
com.google.api.MonitoredResource result = new com.google.api.MonitoredResource(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
+ int from_bitField0_ = bitField0_;
+ result.type_ = type_;
+ result.labels_ = internalGetLabels();
+ result.labels_.makeImmutable();
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.MonitoredResource result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.type_ = type_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.labels_ = internalGetLabels();
- result.labels_.makeImmutable();
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -614,12 +664,10 @@ public Builder mergeFrom(com.google.api.MonitoredResource other) {
if (other == com.google.api.MonitoredResource.getDefaultInstance()) return this;
if (!other.getType().isEmpty()) {
type_ = other.type_;
- bitField0_ |= 0x00000001;
onChanged();
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
- bitField0_ |= 0x00000002;
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -634,49 +682,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.MonitoredResource parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- type_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- com.google.protobuf.MapEntry labels__ =
- input.readMessage(
- LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
- extensionRegistry);
- internalGetMutableLabels()
- .getMutableMap()
- .put(labels__.getKey(), labels__.getValue());
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.MonitoredResource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -764,8 +780,8 @@ public Builder setType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
type_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -788,8 +804,8 @@ public Builder setType(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearType() {
+
type_ = getDefaultInstance().getType();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -817,8 +833,8 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
type_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -834,14 +850,14 @@ private com.google.protobuf.MapField interna
private com.google.protobuf.MapField
internalGetMutableLabels() {
+ onChanged();
+ ;
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
- bitField0_ |= 0x00000002;
- onChanged();
return labels_;
}
@@ -903,10 +919,8 @@ public java.util.Map getLabelsMap() {
* map<string, string> labels = 2;
*/
@java.lang.Override
- public /* nullable */ java.lang.String getLabelsOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
+ public java.lang.String getLabelsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -938,7 +952,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
}
public Builder clearLabels() {
- bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableLabels().getMutableMap().clear();
return this;
}
@@ -965,7 +978,6 @@ public Builder removeLabels(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableLabels() {
- bitField0_ |= 0x00000002;
return internalGetMutableLabels().getMutableMap();
}
@@ -987,8 +999,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
if (value == null) {
throw new NullPointerException("map value");
}
+
internalGetMutableLabels().getMutableMap().put(key, value);
- bitField0_ |= 0x00000002;
return this;
}
@@ -1005,7 +1017,6 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
*/
public Builder putAllLabels(java.util.Map values) {
internalGetMutableLabels().getMutableMap().putAll(values);
- bitField0_ |= 0x00000002;
return this;
}
@@ -1041,18 +1052,7 @@ public MonitoredResource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new MonitoredResource(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java
index 5377caed2d..eadc638ed1 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/monitored_resource.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -29,7 +28,6 @@
* Google Compute Engine VM instances has a type of
* `"gce_instance"` and specifies the use of the labels `"instance_id"` and
* `"zone"` to identify particular VM instances.
- *
* Different APIs can support different monitored resource types. APIs generally
* provide a `list` method that returns the monitored resource descriptors used
* by the API.
@@ -63,6 +61,99 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MonitoredResourceDescriptor();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private MonitoredResourceDescriptor(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ type_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ displayName_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ description_ = s;
+ break;
+ }
+ case 34:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ labels_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ labels_.add(
+ input.readMessage(com.google.api.LabelDescriptor.parser(), extensionRegistry));
+ break;
+ }
+ case 42:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 56:
+ {
+ int rawValue = input.readEnum();
+
+ launchStage_ = rawValue;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ labels_ = java.util.Collections.unmodifiableList(labels_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MonitoredResourceProto
.internal_static_google_api_MonitoredResourceDescriptor_descriptor;
@@ -79,9 +170,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 5;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object name_ = "";
+ private volatile java.lang.Object name_;
/**
*
@@ -142,9 +231,7 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int TYPE_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object type_ = "";
+ private volatile java.lang.Object type_;
/**
*
@@ -205,9 +292,7 @@ public com.google.protobuf.ByteString getTypeBytes() {
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object displayName_ = "";
+ private volatile java.lang.Object displayName_;
/**
*
@@ -264,9 +349,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object description_ = "";
+ private volatile java.lang.Object description_;
/**
*
@@ -319,8 +402,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
}
public static final int LABELS_FIELD_NUMBER = 4;
-
- @SuppressWarnings("serial")
private java.util.List labels_;
/**
@@ -405,7 +486,7 @@ public com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(int index) {
}
public static final int LAUNCH_STAGE_FIELD_NUMBER = 7;
- private int launchStage_ = 0;
+ private int launchStage_;
/**
*
@@ -436,7 +517,8 @@ public int getLaunchStageValue() {
*/
@java.lang.Override
public com.google.api.LaunchStage getLaunchStage() {
- com.google.api.LaunchStage result = com.google.api.LaunchStage.forNumber(launchStage_);
+ @SuppressWarnings("deprecation")
+ com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_);
return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result;
}
@@ -472,7 +554,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(7, launchStage_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -499,7 +581,7 @@ public int getSerializedSize() {
if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, launchStage_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -521,7 +603,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getDescription().equals(other.getDescription())) return false;
if (!getLabelsList().equals(other.getLabelsList())) return false;
if (launchStage_ != other.launchStage_) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -546,7 +628,7 @@ public int hashCode() {
}
hash = (37 * hash) + LAUNCH_STAGE_FIELD_NUMBER;
hash = (53 * hash) + launchStage_;
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -657,7 +739,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* Google Compute Engine VM instances has a type of
* `"gce_instance"` and specifies the use of the labels `"instance_id"` and
* `"zone"` to identify particular VM instances.
- *
* Different APIs can support different monitored resource types. APIs generally
* provide a `list` method that returns the monitored resource descriptors used
* by the API.
@@ -685,28 +766,40 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.MonitoredResourceDescriptor.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getLabelsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
name_ = "";
+
type_ = "";
+
displayName_ = "";
+
description_ = "";
+
if (labelsBuilder_ == null) {
labels_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- labels_ = null;
labelsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000010);
launchStage_ = 0;
+
return this;
}
@@ -734,43 +827,23 @@ public com.google.api.MonitoredResourceDescriptor build() {
public com.google.api.MonitoredResourceDescriptor buildPartial() {
com.google.api.MonitoredResourceDescriptor result =
new com.google.api.MonitoredResourceDescriptor(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.MonitoredResourceDescriptor result) {
+ int from_bitField0_ = bitField0_;
+ result.name_ = name_;
+ result.type_ = type_;
+ result.displayName_ = displayName_;
+ result.description_ = description_;
if (labelsBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
labels_ = java.util.Collections.unmodifiableList(labels_);
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.labels_ = labels_;
} else {
result.labels_ = labelsBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.MonitoredResourceDescriptor result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.name_ = name_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.type_ = type_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.displayName_ = displayName_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.description_ = description_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.launchStage_ = launchStage_;
- }
+ result.launchStage_ = launchStage_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -820,29 +893,25 @@ public Builder mergeFrom(com.google.api.MonitoredResourceDescriptor other) {
if (other == com.google.api.MonitoredResourceDescriptor.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
- bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
- bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
- bitField0_ |= 0x00000008;
onChanged();
}
if (labelsBuilder_ == null) {
if (!other.labels_.isEmpty()) {
if (labels_.isEmpty()) {
labels_ = other.labels_;
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLabelsIsMutable();
labels_.addAll(other.labels_);
@@ -855,7 +924,7 @@ public Builder mergeFrom(com.google.api.MonitoredResourceDescriptor other) {
labelsBuilder_.dispose();
labelsBuilder_ = null;
labels_ = other.labels_;
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000001);
labelsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getLabelsFieldBuilder()
@@ -868,7 +937,7 @@ public Builder mergeFrom(com.google.api.MonitoredResourceDescriptor other) {
if (other.launchStage_ != 0) {
setLaunchStageValue(other.getLaunchStageValue());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -883,73 +952,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.MonitoredResourceDescriptor parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- type_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 10
- case 18:
- {
- displayName_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
- break;
- } // case 18
- case 26:
- {
- description_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- break;
- } // case 26
- case 34:
- {
- com.google.api.LabelDescriptor m =
- input.readMessage(com.google.api.LabelDescriptor.parser(), extensionRegistry);
- if (labelsBuilder_ == null) {
- ensureLabelsIsMutable();
- labels_.add(m);
- } else {
- labelsBuilder_.addMessage(m);
- }
- break;
- } // case 34
- case 42:
- {
- name_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 42
- case 56:
- {
- launchStage_ = input.readEnum();
- bitField0_ |= 0x00000020;
- break;
- } // case 56
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.MonitoredResourceDescriptor) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -1034,8 +1047,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
name_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1057,8 +1070,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
+
name_ = getDefaultInstance().getName();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1085,8 +1098,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
name_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1170,8 +1183,8 @@ public Builder setType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
type_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1193,8 +1206,8 @@ public Builder setType(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearType() {
+
type_ = getDefaultInstance().getType();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1221,8 +1234,8 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
type_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1300,8 +1313,8 @@ public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
displayName_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1321,8 +1334,8 @@ public Builder setDisplayName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
+
displayName_ = getDefaultInstance().getDisplayName();
- bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1347,8 +1360,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
displayName_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1420,8 +1433,8 @@ public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
description_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1439,8 +1452,8 @@ public Builder setDescription(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDescription() {
+
description_ = getDefaultInstance().getDescription();
- bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1463,8 +1476,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
description_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1473,9 +1486,9 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
java.util.Collections.emptyList();
private void ensureLabelsIsMutable() {
- if (!((bitField0_ & 0x00000010) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
labels_ = new java.util.ArrayList(labels_);
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000001;
}
}
@@ -1720,7 +1733,7 @@ public Builder addAllLabels(
public Builder clearLabels() {
if (labelsBuilder_ == null) {
labels_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
labelsBuilder_.clear();
@@ -1862,7 +1875,7 @@ public java.util.List getLabelsBuilderLi
com.google.api.LabelDescriptor,
com.google.api.LabelDescriptor.Builder,
com.google.api.LabelDescriptorOrBuilder>(
- labels_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
+ labels_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
labels_ = null;
}
return labelsBuilder_;
@@ -1899,8 +1912,8 @@ public int getLaunchStageValue() {
* @return This builder for chaining.
*/
public Builder setLaunchStageValue(int value) {
+
launchStage_ = value;
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -1918,7 +1931,8 @@ public Builder setLaunchStageValue(int value) {
*/
@java.lang.Override
public com.google.api.LaunchStage getLaunchStage() {
- com.google.api.LaunchStage result = com.google.api.LaunchStage.forNumber(launchStage_);
+ @SuppressWarnings("deprecation")
+ com.google.api.LaunchStage result = com.google.api.LaunchStage.valueOf(launchStage_);
return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result;
}
@@ -1938,7 +1952,7 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000020;
+
launchStage_ = value.getNumber();
onChanged();
return this;
@@ -1956,7 +1970,7 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) {
* @return This builder for chaining.
*/
public Builder clearLaunchStage() {
- bitField0_ = (bitField0_ & ~0x00000020);
+
launchStage_ = 0;
onChanged();
return this;
@@ -1994,18 +2008,7 @@ public MonitoredResourceDescriptor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new MonitoredResourceDescriptor(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptorOrBuilder.java
index 404e8eeb46..378218a2f1 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptorOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptorOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/monitored_resource.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface MonitoredResourceDescriptorOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java
index 02acbeb9c2..fa25e699a0 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/monitored_resource.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -52,6 +51,81 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MonitoredResourceMetadata();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private MonitoredResourceMetadata(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.protobuf.Struct.Builder subBuilder = null;
+ if (systemLabels_ != null) {
+ subBuilder = systemLabels_.toBuilder();
+ }
+ systemLabels_ =
+ input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(systemLabels_);
+ systemLabels_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ userLabels_ =
+ com.google.protobuf.MapField.newMapField(
+ UserLabelsDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
+ }
+ com.google.protobuf.MapEntry userLabels__ =
+ input.readMessage(
+ UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ userLabels_.getMutableMap().put(userLabels__.getKey(), userLabels__.getValue());
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MonitoredResourceProto
.internal_static_google_api_MonitoredResourceMetadata_descriptor;
@@ -59,8 +133,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@SuppressWarnings({"rawtypes"})
@java.lang.Override
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetUserLabels();
@@ -79,7 +152,6 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
com.google.api.MonitoredResourceMetadata.Builder.class);
}
- private int bitField0_;
public static final int SYSTEM_LABELS_FIELD_NUMBER = 1;
private com.google.protobuf.Struct systemLabels_;
@@ -93,7 +165,6 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
- *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -105,7 +176,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
*/
@java.lang.Override
public boolean hasSystemLabels() {
- return ((bitField0_ & 0x00000001) != 0);
+ return systemLabels_ != null;
}
/**
@@ -118,7 +189,6 @@ public boolean hasSystemLabels() {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
- *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -143,7 +213,6 @@ public com.google.protobuf.Struct getSystemLabels() {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
- *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -153,7 +222,7 @@ public com.google.protobuf.Struct getSystemLabels() {
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getSystemLabelsOrBuilder() {
- return systemLabels_ == null ? com.google.protobuf.Struct.getDefaultInstance() : systemLabels_;
+ return getSystemLabels();
}
public static final int USER_LABELS_FIELD_NUMBER = 2;
@@ -169,7 +238,6 @@ private static final class UserLabelsDefaultEntryHolder {
"");
}
- @SuppressWarnings("serial")
private com.google.protobuf.MapField userLabels_;
private com.google.protobuf.MapField internalGetUserLabels() {
@@ -231,10 +299,8 @@ public java.util.Map getUserLabelsMap() {
* map<string, string> user_labels = 2;
*/
@java.lang.Override
- public /* nullable */ java.lang.String getUserLabelsOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
+ public java.lang.String getUserLabelsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -277,12 +343,12 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (systemLabels_ != null) {
output.writeMessage(1, getSystemLabels());
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 2);
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -291,7 +357,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (systemLabels_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSystemLabels());
}
for (java.util.Map.Entry entry :
@@ -304,7 +370,7 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, userLabels__);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -324,7 +390,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getSystemLabels().equals(other.getSystemLabels())) return false;
}
if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -343,7 +409,7 @@ public int hashCode() {
hash = (37 * hash) + USER_LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetUserLabels().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -468,8 +534,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetUserLabels();
@@ -479,8 +544,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
- int number) {
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
switch (number) {
case 2:
return internalGetMutableUserLabels();
@@ -510,18 +574,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getSystemLabelsFieldBuilder();
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- systemLabels_ = null;
- if (systemLabelsBuilder_ != null) {
- systemLabelsBuilder_.dispose();
+ if (systemLabelsBuilder_ == null) {
+ systemLabels_ = null;
+ } else {
+ systemLabels_ = null;
systemLabelsBuilder_ = null;
}
internalGetMutableUserLabels().clear();
@@ -552,28 +614,18 @@ public com.google.api.MonitoredResourceMetadata build() {
public com.google.api.MonitoredResourceMetadata buildPartial() {
com.google.api.MonitoredResourceMetadata result =
new com.google.api.MonitoredResourceMetadata(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ int from_bitField0_ = bitField0_;
+ if (systemLabelsBuilder_ == null) {
+ result.systemLabels_ = systemLabels_;
+ } else {
+ result.systemLabels_ = systemLabelsBuilder_.build();
}
+ result.userLabels_ = internalGetUserLabels();
+ result.userLabels_.makeImmutable();
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.MonitoredResourceMetadata result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.systemLabels_ =
- systemLabelsBuilder_ == null ? systemLabels_ : systemLabelsBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.userLabels_ = internalGetUserLabels();
- result.userLabels_.makeImmutable();
- }
- result.bitField0_ |= to_bitField0_;
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -623,8 +675,7 @@ public Builder mergeFrom(com.google.api.MonitoredResourceMetadata other) {
mergeSystemLabels(other.getSystemLabels());
}
internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
- bitField0_ |= 0x00000002;
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -639,49 +690,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.MonitoredResourceMetadata parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- input.readMessage(getSystemLabelsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- com.google.protobuf.MapEntry userLabels__ =
- input.readMessage(
- UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
- extensionRegistry);
- internalGetMutableUserLabels()
- .getMutableMap()
- .put(userLabels__.getKey(), userLabels__.getValue());
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.MonitoredResourceMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -704,7 +723,6 @@ public Builder mergeFrom(
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
- *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -715,7 +733,7 @@ public Builder mergeFrom(
* @return Whether the systemLabels field is set.
*/
public boolean hasSystemLabels() {
- return ((bitField0_ & 0x00000001) != 0);
+ return systemLabelsBuilder_ != null || systemLabels_ != null;
}
/**
@@ -728,7 +746,6 @@ public boolean hasSystemLabels() {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
- *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -758,7 +775,6 @@ public com.google.protobuf.Struct getSystemLabels() {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
- *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -772,11 +788,11 @@ public Builder setSystemLabels(com.google.protobuf.Struct value) {
throw new NullPointerException();
}
systemLabels_ = value;
+ onChanged();
} else {
systemLabelsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -790,7 +806,6 @@ public Builder setSystemLabels(com.google.protobuf.Struct value) {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
- *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -801,11 +816,11 @@ public Builder setSystemLabels(com.google.protobuf.Struct value) {
public Builder setSystemLabels(com.google.protobuf.Struct.Builder builderForValue) {
if (systemLabelsBuilder_ == null) {
systemLabels_ = builderForValue.build();
+ onChanged();
} else {
systemLabelsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -819,7 +834,6 @@ public Builder setSystemLabels(com.google.protobuf.Struct.Builder builderForValu
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
- *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -829,20 +843,17 @@ public Builder setSystemLabels(com.google.protobuf.Struct.Builder builderForValu
*/
public Builder mergeSystemLabels(com.google.protobuf.Struct value) {
if (systemLabelsBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)
- && systemLabels_ != null
- && systemLabels_ != com.google.protobuf.Struct.getDefaultInstance()) {
- getSystemLabelsBuilder().mergeFrom(value);
+ if (systemLabels_ != null) {
+ systemLabels_ =
+ com.google.protobuf.Struct.newBuilder(systemLabels_).mergeFrom(value).buildPartial();
} else {
systemLabels_ = value;
}
+ onChanged();
} else {
systemLabelsBuilder_.mergeFrom(value);
}
- if (systemLabels_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
@@ -856,7 +867,6 @@ public Builder mergeSystemLabels(com.google.protobuf.Struct value) {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
- *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -865,13 +875,14 @@ public Builder mergeSystemLabels(com.google.protobuf.Struct value) {
* .google.protobuf.Struct system_labels = 1;
*/
public Builder clearSystemLabels() {
- bitField0_ = (bitField0_ & ~0x00000001);
- systemLabels_ = null;
- if (systemLabelsBuilder_ != null) {
- systemLabelsBuilder_.dispose();
+ if (systemLabelsBuilder_ == null) {
+ systemLabels_ = null;
+ onChanged();
+ } else {
+ systemLabels_ = null;
systemLabelsBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -885,7 +896,6 @@ public Builder clearSystemLabels() {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
- *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -894,7 +904,7 @@ public Builder clearSystemLabels() {
* .google.protobuf.Struct system_labels = 1;
*/
public com.google.protobuf.Struct.Builder getSystemLabelsBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getSystemLabelsFieldBuilder().getBuilder();
}
@@ -909,7 +919,6 @@ public com.google.protobuf.Struct.Builder getSystemLabelsBuilder() {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
- *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -937,7 +946,6 @@ public com.google.protobuf.StructOrBuilder getSystemLabelsOrBuilder() {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
- *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -975,6 +983,8 @@ public com.google.protobuf.StructOrBuilder getSystemLabelsOrBuilder() {
private com.google.protobuf.MapField
internalGetMutableUserLabels() {
+ onChanged();
+ ;
if (userLabels_ == null) {
userLabels_ =
com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry);
@@ -982,8 +992,6 @@ public com.google.protobuf.StructOrBuilder getSystemLabelsOrBuilder() {
if (!userLabels_.isMutable()) {
userLabels_ = userLabels_.copy();
}
- bitField0_ |= 0x00000002;
- onChanged();
return userLabels_;
}
@@ -1039,10 +1047,8 @@ public java.util.Map getUserLabelsMap() {
* map<string, string> user_labels = 2;
*/
@java.lang.Override
- public /* nullable */ java.lang.String getUserLabelsOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
+ public java.lang.String getUserLabelsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -1072,7 +1078,6 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
}
public Builder clearUserLabels() {
- bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableUserLabels().getMutableMap().clear();
return this;
}
@@ -1097,7 +1102,6 @@ public Builder removeUserLabels(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableUserLabels() {
- bitField0_ |= 0x00000002;
return internalGetMutableUserLabels().getMutableMap();
}
@@ -1117,8 +1121,8 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) {
if (value == null) {
throw new NullPointerException("map value");
}
+
internalGetMutableUserLabels().getMutableMap().put(key, value);
- bitField0_ |= 0x00000002;
return this;
}
@@ -1133,7 +1137,6 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) {
*/
public Builder putAllUserLabels(java.util.Map values) {
internalGetMutableUserLabels().getMutableMap().putAll(values);
- bitField0_ |= 0x00000002;
return this;
}
@@ -1169,18 +1172,7 @@ public MonitoredResourceMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new MonitoredResourceMetadata(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java
index 3b240c083d..99630ecae5 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/monitored_resource.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface MonitoredResourceMetadataOrBuilder
@@ -34,7 +33,6 @@ public interface MonitoredResourceMetadataOrBuilder
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
- *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -56,7 +54,6 @@ public interface MonitoredResourceMetadataOrBuilder
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
- *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -78,7 +75,6 @@ public interface MonitoredResourceMetadataOrBuilder
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
- *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -134,6 +130,7 @@ public interface MonitoredResourceMetadataOrBuilder
*
* map<string, string> user_labels = 2;
*/
+
/* nullable */
java.lang.String getUserLabelsOrDefault(
java.lang.String key,
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceOrBuilder.java
index 80d810ce68..ac80baacf9 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/monitored_resource.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface MonitoredResourceOrBuilder
@@ -116,6 +115,7 @@ public interface MonitoredResourceOrBuilder
*
* map<string, string> labels = 2;
*/
+
/* nullable */
java.lang.String getLabelsOrDefault(
java.lang.String key,
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceProto.java
index 6383026175..a6ef8ca773 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/monitored_resource.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class MonitoredResourceProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java
index b3570ec7a1..79cc7692af 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/monitoring.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -24,14 +23,12 @@
*
*
* Monitoring configuration of the service.
- *
* The example below shows how to configure monitored resources and metrics
* for monitoring. In the example, a monitored resource and two metrics are
* defined. The `library.googleapis.com/book/returned_count` metric is sent
* to both producer and consumer projects, whereas the
* `library.googleapis.com/book/num_overdue` metric is only sent to the
* consumer project.
- *
* monitored_resources:
* - type: library.googleapis.com/Branch
* display_name: "Library Branch"
@@ -101,6 +98,81 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Monitoring();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Monitoring(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ producerDestinations_ =
+ new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ producerDestinations_.add(
+ input.readMessage(
+ com.google.api.Monitoring.MonitoringDestination.parser(), extensionRegistry));
+ break;
+ }
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ consumerDestinations_ =
+ new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ consumerDestinations_.add(
+ input.readMessage(
+ com.google.api.Monitoring.MonitoringDestination.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ producerDestinations_ = java.util.Collections.unmodifiableList(producerDestinations_);
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ consumerDestinations_ = java.util.Collections.unmodifiableList(consumerDestinations_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MonitoringProto.internal_static_google_api_Monitoring_descriptor;
}
@@ -234,7 +306,7 @@ private MonitoringDestination(com.google.protobuf.GeneratedMessageV3.Builder>
private MonitoringDestination() {
monitoredResource_ = "";
- metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@@ -243,6 +315,71 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MonitoringDestination();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private MonitoringDestination(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ monitoredResource_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ metrics_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ metrics_.add(s);
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ metrics_ = metrics_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MonitoringProto
.internal_static_google_api_Monitoring_MonitoringDestination_descriptor;
@@ -259,9 +396,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int MONITORED_RESOURCE_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object monitoredResource_ = "";
+ private volatile java.lang.Object monitoredResource_;
/**
*
@@ -316,10 +451,7 @@ public com.google.protobuf.ByteString getMonitoredResourceBytes() {
}
public static final int METRICS_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList metrics_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList metrics_;
/**
*
@@ -411,7 +543,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < metrics_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metrics_.getRaw(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -431,7 +563,7 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getMetricsList().size();
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -449,7 +581,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getMonitoredResource().equals(other.getMonitoredResource())) return false;
if (!getMetricsList().equals(other.getMetricsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -466,7 +598,7 @@ public int hashCode() {
hash = (37 * hash) + METRICS_FIELD_NUMBER;
hash = (53 * hash) + getMetricsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -599,18 +731,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Monitoring.MonitoringDestination.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
monitoredResource_ = "";
- metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
+
+ metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -638,24 +778,17 @@ public com.google.api.Monitoring.MonitoringDestination build() {
public com.google.api.Monitoring.MonitoringDestination buildPartial() {
com.google.api.Monitoring.MonitoringDestination result =
new com.google.api.Monitoring.MonitoringDestination(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ int from_bitField0_ = bitField0_;
+ result.monitoredResource_ = monitoredResource_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ metrics_ = metrics_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
}
+ result.metrics_ = metrics_;
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.Monitoring.MonitoringDestination result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.monitoredResource_ = monitoredResource_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- metrics_.makeImmutable();
- result.metrics_ = metrics_;
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -706,20 +839,19 @@ public Builder mergeFrom(com.google.api.Monitoring.MonitoringDestination other)
return this;
if (!other.getMonitoredResource().isEmpty()) {
monitoredResource_ = other.monitoredResource_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.metrics_.isEmpty()) {
if (metrics_.isEmpty()) {
metrics_ = other.metrics_;
- bitField0_ |= 0x00000002;
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMetricsIsMutable();
metrics_.addAll(other.metrics_);
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -734,44 +866,18 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Monitoring.MonitoringDestination parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- monitoredResource_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureMetricsIsMutable();
- metrics_.add(s);
- break;
- } // case 18
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.api.Monitoring.MonitoringDestination) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -847,8 +953,8 @@ public Builder setMonitoredResource(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
monitoredResource_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -867,8 +973,8 @@ public Builder setMonitoredResource(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearMonitoredResource() {
+
monitoredResource_ = getDefaultInstance().getMonitoredResource();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -892,20 +998,20 @@ public Builder setMonitoredResourceBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
monitoredResource_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringArrayList metrics_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList metrics_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureMetricsIsMutable() {
- if (!metrics_.isModifiable()) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
metrics_ = new com.google.protobuf.LazyStringArrayList(metrics_);
+ bitField0_ |= 0x00000001;
}
- bitField0_ |= 0x00000002;
}
/**
@@ -922,8 +1028,7 @@ private void ensureMetricsIsMutable() {
* @return A list containing the metrics.
*/
public com.google.protobuf.ProtocolStringList getMetricsList() {
- metrics_.makeImmutable();
- return metrics_;
+ return metrics_.getUnmodifiableView();
}
/**
@@ -1000,7 +1105,6 @@ public Builder setMetrics(int index, java.lang.String value) {
}
ensureMetricsIsMutable();
metrics_.set(index, value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1025,7 +1129,6 @@ public Builder addMetrics(java.lang.String value) {
}
ensureMetricsIsMutable();
metrics_.add(value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1047,7 +1150,6 @@ public Builder addMetrics(java.lang.String value) {
public Builder addAllMetrics(java.lang.Iterable values) {
ensureMetricsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1066,9 +1168,8 @@ public Builder addAllMetrics(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearMetrics() {
- metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- ;
+ metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -1094,7 +1195,6 @@ public Builder addMetricsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureMetricsIsMutable();
metrics_.add(value);
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1132,19 +1232,7 @@ public MonitoringDestination parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException()
- .setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new MonitoringDestination(input, extensionRegistry);
}
};
@@ -1164,8 +1252,6 @@ public com.google.api.Monitoring.MonitoringDestination getDefaultInstanceForType
}
public static final int PRODUCER_DESTINATIONS_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
private java.util.List producerDestinations_;
/**
@@ -1267,8 +1353,6 @@ public com.google.api.Monitoring.MonitoringDestinationOrBuilder getProducerDesti
}
public static final int CONSUMER_DESTINATIONS_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
private java.util.List consumerDestinations_;
/**
@@ -1389,7 +1473,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < consumerDestinations_.size(); i++) {
output.writeMessage(2, consumerDestinations_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -1406,7 +1490,7 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(2, consumerDestinations_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -1423,7 +1507,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getProducerDestinationsList().equals(other.getProducerDestinationsList())) return false;
if (!getConsumerDestinationsList().equals(other.getConsumerDestinationsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -1442,7 +1526,7 @@ public int hashCode() {
hash = (37 * hash) + CONSUMER_DESTINATIONS_FIELD_NUMBER;
hash = (53 * hash) + getConsumerDestinationsList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -1547,14 +1631,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Monitoring configuration of the service.
- *
* The example below shows how to configure monitored resources and metrics
* for monitoring. In the example, a monitored resource and two metrics are
* defined. The `library.googleapis.com/book/returned_count` metric is sent
* to both producer and consumer projects, whereas the
* `library.googleapis.com/book/num_overdue` metric is only sent to the
* consumer project.
- *
* monitored_resources:
* - type: library.googleapis.com/Branch
* display_name: "Library Branch"
@@ -1619,30 +1701,37 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Monitoring.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getProducerDestinationsFieldBuilder();
+ getConsumerDestinationsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
if (producerDestinationsBuilder_ == null) {
producerDestinations_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- producerDestinations_ = null;
producerDestinationsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
if (consumerDestinationsBuilder_ == null) {
consumerDestinations_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
- consumerDestinations_ = null;
consumerDestinationsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@@ -1668,15 +1757,7 @@ public com.google.api.Monitoring build() {
@java.lang.Override
public com.google.api.Monitoring buildPartial() {
com.google.api.Monitoring result = new com.google.api.Monitoring(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.Monitoring result) {
+ int from_bitField0_ = bitField0_;
if (producerDestinationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
producerDestinations_ = java.util.Collections.unmodifiableList(producerDestinations_);
@@ -1695,10 +1776,8 @@ private void buildPartialRepeatedFields(com.google.api.Monitoring result) {
} else {
result.consumerDestinations_ = consumerDestinationsBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.Monitoring result) {
- int from_bitField0_ = bitField0_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -1800,7 +1879,7 @@ public Builder mergeFrom(com.google.api.Monitoring other) {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -1815,59 +1894,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Monitoring parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- com.google.api.Monitoring.MonitoringDestination m =
- input.readMessage(
- com.google.api.Monitoring.MonitoringDestination.parser(),
- extensionRegistry);
- if (producerDestinationsBuilder_ == null) {
- ensureProducerDestinationsIsMutable();
- producerDestinations_.add(m);
- } else {
- producerDestinationsBuilder_.addMessage(m);
- }
- break;
- } // case 10
- case 18:
- {
- com.google.api.Monitoring.MonitoringDestination m =
- input.readMessage(
- com.google.api.Monitoring.MonitoringDestination.parser(),
- extensionRegistry);
- if (consumerDestinationsBuilder_ == null) {
- ensureConsumerDestinationsIsMutable();
- consumerDestinations_.add(m);
- } else {
- consumerDestinationsBuilder_.addMessage(m);
- }
- break;
- } // case 18
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Monitoring) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -2843,18 +2880,7 @@ public Monitoring parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Monitoring(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringOrBuilder.java
index ebbd4c28d5..6886a0af7b 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/monitoring.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface MonitoringOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringProto.java
index 51e928451c..6e06be7136 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/monitoring.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class MonitoringProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java
index 834ea57c72..d8d4b9482c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -47,6 +46,66 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new NodeSettings();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private NodeSettings(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.api.CommonLanguageSettings.Builder subBuilder = null;
+ if (common_ != null) {
+ subBuilder = common_.toBuilder();
+ }
+ common_ =
+ input.readMessage(
+ com.google.api.CommonLanguageSettings.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(common_);
+ common_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_NodeSettings_descriptor;
}
@@ -59,7 +118,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.api.NodeSettings.class, com.google.api.NodeSettings.Builder.class);
}
- private int bitField0_;
public static final int COMMON_FIELD_NUMBER = 1;
private com.google.api.CommonLanguageSettings common_;
@@ -76,7 +134,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
+ return common_ != null;
}
/**
@@ -106,7 +164,7 @@ public com.google.api.CommonLanguageSettings getCommon() {
*/
@java.lang.Override
public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() {
- return common_ == null ? com.google.api.CommonLanguageSettings.getDefaultInstance() : common_;
+ return getCommon();
}
private byte memoizedIsInitialized = -1;
@@ -123,10 +181,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (common_ != null) {
output.writeMessage(1, getCommon());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -135,10 +193,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (common_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -157,7 +215,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasCommon()) {
if (!getCommon().equals(other.getCommon())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -172,7 +230,7 @@ public int hashCode() {
hash = (37 * hash) + COMMON_FIELD_NUMBER;
hash = (53 * hash) + getCommon().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -308,18 +366,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getCommonFieldBuilder();
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- common_ = null;
- if (commonBuilder_ != null) {
- commonBuilder_.dispose();
+ if (commonBuilder_ == null) {
+ common_ = null;
+ } else {
+ common_ = null;
commonBuilder_ = null;
}
return this;
@@ -347,23 +403,15 @@ public com.google.api.NodeSettings build() {
@java.lang.Override
public com.google.api.NodeSettings buildPartial() {
com.google.api.NodeSettings result = new com.google.api.NodeSettings(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ if (commonBuilder_ == null) {
+ result.common_ = common_;
+ } else {
+ result.common_ = commonBuilder_.build();
}
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.NodeSettings result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -412,7 +460,7 @@ public Builder mergeFrom(com.google.api.NodeSettings other) {
if (other.hasCommon()) {
mergeCommon(other.getCommon());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -427,42 +475,20 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.NodeSettings parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- input.readMessage(getCommonFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.NodeSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private com.google.api.CommonLanguageSettings common_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.api.CommonLanguageSettings,
@@ -482,7 +508,7 @@ public Builder mergeFrom(
* @return Whether the common field is set.
*/
public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
+ return commonBuilder_ != null || common_ != null;
}
/**
@@ -521,11 +547,11 @@ public Builder setCommon(com.google.api.CommonLanguageSettings value) {
throw new NullPointerException();
}
common_ = value;
+ onChanged();
} else {
commonBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -541,11 +567,11 @@ public Builder setCommon(com.google.api.CommonLanguageSettings value) {
public Builder setCommon(com.google.api.CommonLanguageSettings.Builder builderForValue) {
if (commonBuilder_ == null) {
common_ = builderForValue.build();
+ onChanged();
} else {
commonBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -560,20 +586,19 @@ public Builder setCommon(com.google.api.CommonLanguageSettings.Builder builderFo
*/
public Builder mergeCommon(com.google.api.CommonLanguageSettings value) {
if (commonBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)
- && common_ != null
- && common_ != com.google.api.CommonLanguageSettings.getDefaultInstance()) {
- getCommonBuilder().mergeFrom(value);
+ if (common_ != null) {
+ common_ =
+ com.google.api.CommonLanguageSettings.newBuilder(common_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
common_ = value;
}
+ onChanged();
} else {
commonBuilder_.mergeFrom(value);
}
- if (common_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
@@ -587,13 +612,14 @@ public Builder mergeCommon(com.google.api.CommonLanguageSettings value) {
* .google.api.CommonLanguageSettings common = 1;
*/
public Builder clearCommon() {
- bitField0_ = (bitField0_ & ~0x00000001);
- common_ = null;
- if (commonBuilder_ != null) {
- commonBuilder_.dispose();
+ if (commonBuilder_ == null) {
+ common_ = null;
+ onChanged();
+ } else {
+ common_ = null;
commonBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -607,7 +633,7 @@ public Builder clearCommon() {
* .google.api.CommonLanguageSettings common = 1;
*/
public com.google.api.CommonLanguageSettings.Builder getCommonBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getCommonFieldBuilder().getBuilder();
}
@@ -689,18 +715,7 @@ public NodeSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new NodeSettings(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettingsOrBuilder.java
index 7f08c9b89d..d80410c6c2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettingsOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettingsOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface NodeSettingsOrBuilder
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 c0a38bb5ae..211f39445a 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
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/auth.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -27,17 +26,13 @@
* there are scopes defined for "Read-only access to Google Calendar" and
* "Access to Cloud Platform". Users can consent to a scope for an application,
* giving it permission to access that data on their behalf.
- *
* OAuth scope specifications should be fairly coarse grained; a user will need
* to see and understand the text description of what your scope means.
- *
* In most cases: use one or at most two OAuth scopes for an entire family of
* products. If your product has multiple APIs, you should probably be sharing
* the OAuth scope across all of those APIs.
- *
* When you need finer grained OAuth consent screens: talk with your product
* management about how developers will use them in practice.
- *
* Please note that even though each of the canonical scopes is enough for a
* request to be accepted and passed to the backend, a request can still fail
* due to the backend requiring additional scopes or permissions.
@@ -66,6 +61,57 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new OAuthRequirements();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private OAuthRequirements(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ canonicalScopes_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.AuthProto.internal_static_google_api_OAuthRequirements_descriptor;
}
@@ -79,9 +125,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int CANONICAL_SCOPES_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object canonicalScopes_ = "";
+ private volatile java.lang.Object canonicalScopes_;
/**
*
@@ -89,9 +133,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,
* https://www.googleapis.com/auth/calendar.read
*
@@ -119,9 +161,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,
* https://www.googleapis.com/auth/calendar.read
*
@@ -160,7 +200,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalScopes_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, canonicalScopes_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -172,7 +212,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalScopes_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, canonicalScopes_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -188,7 +228,7 @@ public boolean equals(final java.lang.Object obj) {
com.google.api.OAuthRequirements other = (com.google.api.OAuthRequirements) obj;
if (!getCanonicalScopes().equals(other.getCanonicalScopes())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -201,7 +241,7 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CANONICAL_SCOPES_FIELD_NUMBER;
hash = (53 * hash) + getCanonicalScopes().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -309,17 +349,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* there are scopes defined for "Read-only access to Google Calendar" and
* "Access to Cloud Platform". Users can consent to a scope for an application,
* giving it permission to access that data on their behalf.
- *
* OAuth scope specifications should be fairly coarse grained; a user will need
* to see and understand the text description of what your scope means.
- *
* In most cases: use one or at most two OAuth scopes for an entire family of
* products. If your product has multiple APIs, you should probably be sharing
* the OAuth scope across all of those APIs.
- *
* When you need finer grained OAuth consent screens: talk with your product
* management about how developers will use them in practice.
- *
* Please note that even though each of the canonical scopes is enough for a
* request to be accepted and passed to the backend, a request can still fail
* due to the backend requiring additional scopes or permissions.
@@ -346,17 +382,24 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.OAuthRequirements.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
canonicalScopes_ = "";
+
return this;
}
@@ -382,20 +425,11 @@ public com.google.api.OAuthRequirements build() {
@java.lang.Override
public com.google.api.OAuthRequirements buildPartial() {
com.google.api.OAuthRequirements result = new com.google.api.OAuthRequirements(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
+ result.canonicalScopes_ = canonicalScopes_;
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.OAuthRequirements result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.canonicalScopes_ = canonicalScopes_;
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -443,10 +477,9 @@ public Builder mergeFrom(com.google.api.OAuthRequirements other) {
if (other == com.google.api.OAuthRequirements.getDefaultInstance()) return this;
if (!other.getCanonicalScopes().isEmpty()) {
canonicalScopes_ = other.canonicalScopes_;
- bitField0_ |= 0x00000001;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -461,42 +494,20 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.OAuthRequirements parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- canonicalScopes_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.OAuthRequirements) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private java.lang.Object canonicalScopes_ = "";
/**
@@ -505,9 +516,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,
* https://www.googleapis.com/auth/calendar.read
*
@@ -534,9 +543,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,
* https://www.googleapis.com/auth/calendar.read
*
@@ -563,9 +570,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,
* https://www.googleapis.com/auth/calendar.read
*
@@ -579,8 +584,8 @@ public Builder setCanonicalScopes(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
canonicalScopes_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -591,9 +596,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,
* https://www.googleapis.com/auth/calendar.read
*
@@ -603,8 +606,8 @@ public Builder setCanonicalScopes(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearCanonicalScopes() {
+
canonicalScopes_ = getDefaultInstance().getCanonicalScopes();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -615,9 +618,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,
* https://www.googleapis.com/auth/calendar.read
*
@@ -632,8 +633,8 @@ public Builder setCanonicalScopesBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
canonicalScopes_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -670,18 +671,7 @@ public OAuthRequirements parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new OAuthRequirements(input, extensionRegistry);
}
};
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 b135771598..7c3eef4fe3 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
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/auth.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface OAuthRequirementsOrBuilder
@@ -30,9 +29,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,
* https://www.googleapis.com/auth/calendar.read
*
@@ -49,9 +46,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,
* https://www.googleapis.com/auth/calendar.read
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java
index 084718d8fd..3020c77e82 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/documentation.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -52,6 +51,77 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Page();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Page(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ content_ = s;
+ break;
+ }
+ case 26:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ subpages_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ subpages_.add(input.readMessage(com.google.api.Page.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ subpages_ = java.util.Collections.unmodifiableList(subpages_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DocumentationProto.internal_static_google_api_Page_descriptor;
}
@@ -65,9 +135,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int NAME_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object name_ = "";
+ private volatile java.lang.Object name_;
/**
*
@@ -144,9 +212,7 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int CONTENT_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object content_ = "";
+ private volatile java.lang.Object content_;
/**
*
@@ -201,8 +267,6 @@ public com.google.protobuf.ByteString getContentBytes() {
}
public static final int SUBPAGES_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
private java.util.List subpages_;
/**
@@ -303,7 +367,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < subpages_.size(); i++) {
output.writeMessage(3, subpages_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -321,7 +385,7 @@ public int getSerializedSize() {
for (int i = 0; i < subpages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, subpages_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -339,7 +403,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getName().equals(other.getName())) return false;
if (!getContent().equals(other.getContent())) return false;
if (!getSubpagesList().equals(other.getSubpagesList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -358,7 +422,7 @@ public int hashCode() {
hash = (37 * hash) + SUBPAGES_FIELD_NUMBER;
hash = (53 * hash) + getSubpagesList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -485,25 +549,34 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Page.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getSubpagesFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
name_ = "";
+
content_ = "";
+
if (subpagesBuilder_ == null) {
subpages_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- subpages_ = null;
subpagesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@@ -529,34 +602,20 @@ public com.google.api.Page build() {
@java.lang.Override
public com.google.api.Page buildPartial() {
com.google.api.Page result = new com.google.api.Page(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.Page result) {
+ int from_bitField0_ = bitField0_;
+ result.name_ = name_;
+ result.content_ = content_;
if (subpagesBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
subpages_ = java.util.Collections.unmodifiableList(subpages_);
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.subpages_ = subpages_;
} else {
result.subpages_ = subpagesBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.Page result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.name_ = name_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.content_ = content_;
- }
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -606,19 +665,17 @@ public Builder mergeFrom(com.google.api.Page other) {
if (other == com.google.api.Page.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getContent().isEmpty()) {
content_ = other.content_;
- bitField0_ |= 0x00000002;
onChanged();
}
if (subpagesBuilder_ == null) {
if (!other.subpages_.isEmpty()) {
if (subpages_.isEmpty()) {
subpages_ = other.subpages_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSubpagesIsMutable();
subpages_.addAll(other.subpages_);
@@ -631,7 +688,7 @@ public Builder mergeFrom(com.google.api.Page other) {
subpagesBuilder_.dispose();
subpagesBuilder_ = null;
subpages_ = other.subpages_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
subpagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getSubpagesFieldBuilder()
@@ -641,7 +698,7 @@ public Builder mergeFrom(com.google.api.Page other) {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -656,55 +713,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Page parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- name_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- content_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26:
- {
- com.google.api.Page m =
- input.readMessage(com.google.api.Page.parser(), extensionRegistry);
- if (subpagesBuilder_ == null) {
- ensureSubpagesIsMutable();
- subpages_.add(m);
- } else {
- subpagesBuilder_.addMessage(m);
- }
- break;
- } // case 26
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Page) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -813,8 +832,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
name_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -844,8 +863,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
+
name_ = getDefaultInstance().getName();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -880,8 +899,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
name_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -956,8 +975,8 @@ public Builder setContent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
content_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -976,8 +995,8 @@ public Builder setContent(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearContent() {
+
content_ = getDefaultInstance().getContent();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1001,8 +1020,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
content_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1010,9 +1029,9 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) {
private java.util.List subpages_ = java.util.Collections.emptyList();
private void ensureSubpagesIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
subpages_ = new java.util.ArrayList(subpages_);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000001;
}
}
@@ -1243,7 +1262,7 @@ public Builder addAllSubpages(java.lang.Iterable extends com.google.api.Page>
public Builder clearSubpages() {
if (subpagesBuilder_ == null) {
subpages_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
subpagesBuilder_.clear();
@@ -1371,7 +1390,7 @@ public java.util.List getSubpagesBuilderList() {
subpagesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.api.Page, com.google.api.Page.Builder, com.google.api.PageOrBuilder>(
- subpages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+ subpages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
subpages_ = null;
}
return subpagesBuilder_;
@@ -1409,18 +1428,7 @@ public Page parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Page(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PageOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PageOrBuilder.java
index 3edefc3aaa..60560c9e27 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PageOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PageOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/documentation.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface PageOrBuilder
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 2bbe5ed276..d877e723ea 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
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -47,6 +46,66 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PhpSettings();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private PhpSettings(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.api.CommonLanguageSettings.Builder subBuilder = null;
+ if (common_ != null) {
+ subBuilder = common_.toBuilder();
+ }
+ common_ =
+ input.readMessage(
+ com.google.api.CommonLanguageSettings.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(common_);
+ common_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_PhpSettings_descriptor;
}
@@ -59,7 +118,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.api.PhpSettings.class, com.google.api.PhpSettings.Builder.class);
}
- private int bitField0_;
public static final int COMMON_FIELD_NUMBER = 1;
private com.google.api.CommonLanguageSettings common_;
@@ -76,7 +134,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
+ return common_ != null;
}
/**
@@ -106,7 +164,7 @@ public com.google.api.CommonLanguageSettings getCommon() {
*/
@java.lang.Override
public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() {
- return common_ == null ? com.google.api.CommonLanguageSettings.getDefaultInstance() : common_;
+ return getCommon();
}
private byte memoizedIsInitialized = -1;
@@ -123,10 +181,10 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (common_ != null) {
output.writeMessage(1, getCommon());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -135,10 +193,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (common_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -157,7 +215,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasCommon()) {
if (!getCommon().equals(other.getCommon())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -172,7 +230,7 @@ public int hashCode() {
hash = (37 * hash) + COMMON_FIELD_NUMBER;
hash = (53 * hash) + getCommon().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -308,18 +366,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getCommonFieldBuilder();
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- common_ = null;
- if (commonBuilder_ != null) {
- commonBuilder_.dispose();
+ if (commonBuilder_ == null) {
+ common_ = null;
+ } else {
+ common_ = null;
commonBuilder_ = null;
}
return this;
@@ -347,23 +403,15 @@ public com.google.api.PhpSettings build() {
@java.lang.Override
public com.google.api.PhpSettings buildPartial() {
com.google.api.PhpSettings result = new com.google.api.PhpSettings(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ if (commonBuilder_ == null) {
+ result.common_ = common_;
+ } else {
+ result.common_ = commonBuilder_.build();
}
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.PhpSettings result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ |= to_bitField0_;
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -412,7 +460,7 @@ public Builder mergeFrom(com.google.api.PhpSettings other) {
if (other.hasCommon()) {
mergeCommon(other.getCommon());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -427,42 +475,20 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.PhpSettings parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- input.readMessage(getCommonFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.PhpSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private com.google.api.CommonLanguageSettings common_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.api.CommonLanguageSettings,
@@ -482,7 +508,7 @@ public Builder mergeFrom(
* @return Whether the common field is set.
*/
public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
+ return commonBuilder_ != null || common_ != null;
}
/**
@@ -521,11 +547,11 @@ public Builder setCommon(com.google.api.CommonLanguageSettings value) {
throw new NullPointerException();
}
common_ = value;
+ onChanged();
} else {
commonBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -541,11 +567,11 @@ public Builder setCommon(com.google.api.CommonLanguageSettings value) {
public Builder setCommon(com.google.api.CommonLanguageSettings.Builder builderForValue) {
if (commonBuilder_ == null) {
common_ = builderForValue.build();
+ onChanged();
} else {
commonBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -560,20 +586,19 @@ public Builder setCommon(com.google.api.CommonLanguageSettings.Builder builderFo
*/
public Builder mergeCommon(com.google.api.CommonLanguageSettings value) {
if (commonBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)
- && common_ != null
- && common_ != com.google.api.CommonLanguageSettings.getDefaultInstance()) {
- getCommonBuilder().mergeFrom(value);
+ if (common_ != null) {
+ common_ =
+ com.google.api.CommonLanguageSettings.newBuilder(common_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
common_ = value;
}
+ onChanged();
} else {
commonBuilder_.mergeFrom(value);
}
- if (common_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
@@ -587,13 +612,14 @@ public Builder mergeCommon(com.google.api.CommonLanguageSettings value) {
* .google.api.CommonLanguageSettings common = 1;
*/
public Builder clearCommon() {
- bitField0_ = (bitField0_ & ~0x00000001);
- common_ = null;
- if (commonBuilder_ != null) {
- commonBuilder_.dispose();
+ if (commonBuilder_ == null) {
+ common_ = null;
+ onChanged();
+ } else {
+ common_ = null;
commonBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -607,7 +633,7 @@ public Builder clearCommon() {
* .google.api.CommonLanguageSettings common = 1;
*/
public com.google.api.CommonLanguageSettings.Builder getCommonBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getCommonFieldBuilder().getBuilder();
}
@@ -689,18 +715,7 @@ public PhpSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new PhpSettings(input, extensionRegistry);
}
};
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 5d83a39bdb..3ce81d283b 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
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface PhpSettingsOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PolicyProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PolicyProto.java
index cfd058413e..ff277bcfb6 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PolicyProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PolicyProto.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/policy.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public final class PolicyProto {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java
index a1615e6383..fff614cf82 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/consumer.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -29,9 +28,7 @@
* associated with a school, or a business, or a government agency, a business
* type property on the project may affect how a service responds to the client.
* This descriptor defines which properties are allowed to be set on a project.
- *
* Example:
- *
* project_properties:
* properties:
* - name: NO_WATERMARK
@@ -64,6 +61,64 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ProjectProperties();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ProjectProperties(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ properties_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ properties_.add(
+ input.readMessage(com.google.api.Property.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ properties_ = java.util.Collections.unmodifiableList(properties_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ConsumerProto.internal_static_google_api_ProjectProperties_descriptor;
}
@@ -78,8 +133,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PROPERTIES_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
private java.util.List properties_;
/**
@@ -169,7 +222,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < properties_.size(); i++) {
output.writeMessage(1, properties_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -181,7 +234,7 @@ public int getSerializedSize() {
for (int i = 0; i < properties_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties_.get(i));
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -197,7 +250,7 @@ public boolean equals(final java.lang.Object obj) {
com.google.api.ProjectProperties other = (com.google.api.ProjectProperties) obj;
if (!getPropertiesList().equals(other.getPropertiesList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -212,7 +265,7 @@ public int hashCode() {
hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + getPropertiesList().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -322,9 +375,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* associated with a school, or a business, or a government agency, a business
* type property on the project may affect how a service responds to the client.
* This descriptor defines which properties are allowed to be set on a project.
- *
* Example:
- *
* project_properties:
* properties:
* - name: NO_WATERMARK
@@ -355,23 +406,30 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.ProjectProperties.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getPropertiesFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
if (propertiesBuilder_ == null) {
properties_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- properties_ = null;
propertiesBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@@ -397,15 +455,7 @@ public com.google.api.ProjectProperties build() {
@java.lang.Override
public com.google.api.ProjectProperties buildPartial() {
com.google.api.ProjectProperties result = new com.google.api.ProjectProperties(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.ProjectProperties result) {
+ int from_bitField0_ = bitField0_;
if (propertiesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
properties_ = java.util.Collections.unmodifiableList(properties_);
@@ -415,10 +465,8 @@ private void buildPartialRepeatedFields(com.google.api.ProjectProperties result)
} else {
result.properties_ = propertiesBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.ProjectProperties result) {
- int from_bitField0_ = bitField0_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -493,7 +541,7 @@ public Builder mergeFrom(com.google.api.ProjectProperties other) {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -508,43 +556,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.ProjectProperties parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- com.google.api.Property m =
- input.readMessage(com.google.api.Property.parser(), extensionRegistry);
- if (propertiesBuilder_ == null) {
- ensurePropertiesIsMutable();
- properties_.add(m);
- } else {
- propertiesBuilder_.addMessage(m);
- }
- break;
- } // case 10
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.ProjectProperties) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -941,18 +963,7 @@ public ProjectProperties parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ProjectProperties(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectPropertiesOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectPropertiesOrBuilder.java
index c8c1eb6f2d..16940a28d7 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectPropertiesOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectPropertiesOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/consumer.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface ProjectPropertiesOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java
index 359e9e6a21..4d890a7a0f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/consumer.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -24,13 +23,11 @@
*
*
* Defines project properties.
- *
* API services can define properties that can be assigned to consumer projects
* so that backends can perform response customization without having to make
* additional calls or maintain additional storage. For example, Maps API
* defines properties that controls map tile cache period, or whether to embed a
* watermark in a result.
- *
* These values can be set via API producer console. Only API providers can
* define and set these properties.
*
@@ -60,6 +57,71 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Property();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Property(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 16:
+ {
+ int rawValue = input.readEnum();
+
+ type_ = rawValue;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ description_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ConsumerProto.internal_static_google_api_Property_descriptor;
}
@@ -278,9 +340,7 @@ private PropertyType(int value) {
}
public static final int NAME_FIELD_NUMBER = 1;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object name_ = "";
+ private volatile java.lang.Object name_;
/**
*
@@ -331,7 +391,7 @@ public com.google.protobuf.ByteString getNameBytes() {
}
public static final int TYPE_FIELD_NUMBER = 2;
- private int type_ = 0;
+ private int type_;
/**
*
@@ -362,15 +422,14 @@ public int getTypeValue() {
*/
@java.lang.Override
public com.google.api.Property.PropertyType getType() {
+ @SuppressWarnings("deprecation")
com.google.api.Property.PropertyType result =
- com.google.api.Property.PropertyType.forNumber(type_);
+ com.google.api.Property.PropertyType.valueOf(type_);
return result == null ? com.google.api.Property.PropertyType.UNRECOGNIZED : result;
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object description_ = "";
+ private volatile java.lang.Object description_;
/**
*
@@ -443,7 +502,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -461,7 +520,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -479,7 +538,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getName().equals(other.getName())) return false;
if (type_ != other.type_) return false;
if (!getDescription().equals(other.getDescription())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -496,7 +555,7 @@ public int hashCode() {
hash = (53 * hash) + type_;
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -601,13 +660,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Defines project properties.
- *
* API services can define properties that can be assigned to consumer projects
* so that backends can perform response customization without having to make
* additional calls or maintain additional storage. For example, Maps API
* defines properties that controls map tile cache period, or whether to embed a
* watermark in a result.
- *
* These values can be set via API producer console. Only API providers can
* define and set these properties.
*
@@ -631,19 +688,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Property.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
name_ = "";
+
type_ = 0;
+
description_ = "";
+
return this;
}
@@ -669,26 +735,13 @@ public com.google.api.Property build() {
@java.lang.Override
public com.google.api.Property buildPartial() {
com.google.api.Property result = new com.google.api.Property(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
+ result.name_ = name_;
+ result.type_ = type_;
+ result.description_ = description_;
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.Property result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.name_ = name_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.type_ = type_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.description_ = description_;
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -736,7 +789,6 @@ public Builder mergeFrom(com.google.api.Property other) {
if (other == com.google.api.Property.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
- bitField0_ |= 0x00000001;
onChanged();
}
if (other.type_ != 0) {
@@ -744,10 +796,9 @@ public Builder mergeFrom(com.google.api.Property other) {
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
- bitField0_ |= 0x00000004;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -762,54 +813,20 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Property parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- name_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 16:
- {
- type_ = input.readEnum();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 26:
- {
- description_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Property) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private java.lang.Object name_ = "";
/**
@@ -874,8 +891,8 @@ public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
name_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -892,8 +909,8 @@ public Builder setName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearName() {
+
name_ = getDefaultInstance().getName();
- bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -915,8 +932,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
name_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -952,8 +969,8 @@ public int getTypeValue() {
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
+
type_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -971,8 +988,9 @@ public Builder setTypeValue(int value) {
*/
@java.lang.Override
public com.google.api.Property.PropertyType getType() {
+ @SuppressWarnings("deprecation")
com.google.api.Property.PropertyType result =
- com.google.api.Property.PropertyType.forNumber(type_);
+ com.google.api.Property.PropertyType.valueOf(type_);
return result == null ? com.google.api.Property.PropertyType.UNRECOGNIZED : result;
}
@@ -992,7 +1010,7 @@ public Builder setType(com.google.api.Property.PropertyType value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000002;
+
type_ = value.getNumber();
onChanged();
return this;
@@ -1010,7 +1028,7 @@ public Builder setType(com.google.api.Property.PropertyType value) {
* @return This builder for chaining.
*/
public Builder clearType() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
type_ = 0;
onChanged();
return this;
@@ -1080,8 +1098,8 @@ public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
description_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1098,8 +1116,8 @@ public Builder setDescription(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDescription() {
+
description_ = getDefaultInstance().getDescription();
- bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1121,8 +1139,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
description_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1159,18 +1177,7 @@ public Property parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Property(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PropertyOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PropertyOrBuilder.java
index e0933c5aea..23f88c4faf 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PropertyOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PropertyOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/consumer.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface PropertyOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java
index e855ca9c4d..e5044a545c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -47,7 +46,7 @@ private Publishing() {
documentationUri_ = "";
apiShortName_ = "";
githubLabel_ = "";
- codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.EMPTY;
docTagPrefix_ = "";
organization_ = 0;
librarySettings_ = java.util.Collections.emptyList();
@@ -61,6 +60,147 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Publishing();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Publishing(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ methodSettings_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ methodSettings_.add(
+ input.readMessage(com.google.api.MethodSettings.parser(), extensionRegistry));
+ break;
+ }
+ case 810:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ newIssueUri_ = s;
+ break;
+ }
+ case 818:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ documentationUri_ = s;
+ break;
+ }
+ case 826:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ apiShortName_ = s;
+ break;
+ }
+ case 834:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ githubLabel_ = s;
+ break;
+ }
+ case 842:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ codeownerGithubTeams_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ codeownerGithubTeams_.add(s);
+ break;
+ }
+ case 850:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ docTagPrefix_ = s;
+ break;
+ }
+ case 856:
+ {
+ int rawValue = input.readEnum();
+
+ organization_ = rawValue;
+ break;
+ }
+ case 874:
+ {
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+ librarySettings_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ librarySettings_.add(
+ input.readMessage(
+ com.google.api.ClientLibrarySettings.parser(), extensionRegistry));
+ break;
+ }
+ case 882:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ protoReferenceDocumentationUri_ = s;
+ break;
+ }
+ case 890:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ restReferenceDocumentationUri_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ methodSettings_ = java.util.Collections.unmodifiableList(methodSettings_);
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ codeownerGithubTeams_ = codeownerGithubTeams_.getUnmodifiableView();
+ }
+ if (((mutable_bitField0_ & 0x00000004) != 0)) {
+ librarySettings_ = java.util.Collections.unmodifiableList(librarySettings_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_Publishing_descriptor;
}
@@ -74,8 +214,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int METHOD_SETTINGS_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
private java.util.List methodSettings_;
/**
@@ -155,9 +293,7 @@ public com.google.api.MethodSettingsOrBuilder getMethodSettingsOrBuilder(int ind
}
public static final int NEW_ISSUE_URI_FIELD_NUMBER = 101;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object newIssueUri_ = "";
+ private volatile java.lang.Object newIssueUri_;
/**
*
@@ -210,9 +346,7 @@ public com.google.protobuf.ByteString getNewIssueUriBytes() {
}
public static final int DOCUMENTATION_URI_FIELD_NUMBER = 102;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object documentationUri_ = "";
+ private volatile java.lang.Object documentationUri_;
/**
*
@@ -265,9 +399,7 @@ public com.google.protobuf.ByteString getDocumentationUriBytes() {
}
public static final int API_SHORT_NAME_FIELD_NUMBER = 103;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object apiShortName_ = "";
+ private volatile java.lang.Object apiShortName_;
/**
*
@@ -322,9 +454,7 @@ public com.google.protobuf.ByteString getApiShortNameBytes() {
}
public static final int GITHUB_LABEL_FIELD_NUMBER = 104;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object githubLabel_ = "";
+ private volatile java.lang.Object githubLabel_;
/**
*
@@ -375,10 +505,7 @@ public com.google.protobuf.ByteString getGithubLabelBytes() {
}
public static final int CODEOWNER_GITHUB_TEAMS_FIELD_NUMBER = 105;
-
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList codeownerGithubTeams_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList codeownerGithubTeams_;
/**
*
@@ -447,9 +574,7 @@ public com.google.protobuf.ByteString getCodeownerGithubTeamsBytes(int index) {
}
public static final int DOC_TAG_PREFIX_FIELD_NUMBER = 106;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object docTagPrefix_ = "";
+ private volatile java.lang.Object docTagPrefix_;
/**
*
@@ -502,7 +627,7 @@ public com.google.protobuf.ByteString getDocTagPrefixBytes() {
}
public static final int ORGANIZATION_FIELD_NUMBER = 107;
- private int organization_ = 0;
+ private int organization_;
/**
*
@@ -533,14 +658,13 @@ public int getOrganizationValue() {
*/
@java.lang.Override
public com.google.api.ClientLibraryOrganization getOrganization() {
+ @SuppressWarnings("deprecation")
com.google.api.ClientLibraryOrganization result =
- com.google.api.ClientLibraryOrganization.forNumber(organization_);
+ com.google.api.ClientLibraryOrganization.valueOf(organization_);
return result == null ? com.google.api.ClientLibraryOrganization.UNRECOGNIZED : result;
}
public static final int LIBRARY_SETTINGS_FIELD_NUMBER = 109;
-
- @SuppressWarnings("serial")
private java.util.List librarySettings_;
/**
@@ -625,9 +749,7 @@ public com.google.api.ClientLibrarySettingsOrBuilder getLibrarySettingsOrBuilder
}
public static final int PROTO_REFERENCE_DOCUMENTATION_URI_FIELD_NUMBER = 110;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object protoReferenceDocumentationUri_ = "";
+ private volatile java.lang.Object protoReferenceDocumentationUri_;
/**
*
@@ -680,9 +802,7 @@ public com.google.protobuf.ByteString getProtoReferenceDocumentationUriBytes() {
}
public static final int REST_REFERENCE_DOCUMENTATION_URI_FIELD_NUMBER = 111;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object restReferenceDocumentationUri_ = "";
+ private volatile java.lang.Object restReferenceDocumentationUri_;
/**
*
@@ -786,7 +906,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
com.google.protobuf.GeneratedMessageV3.writeString(
output, 111, restReferenceDocumentationUri_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -840,7 +960,7 @@ public int getSerializedSize() {
com.google.protobuf.GeneratedMessageV3.computeStringSize(
111, restReferenceDocumentationUri_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -868,7 +988,7 @@ public boolean equals(final java.lang.Object obj) {
return false;
if (!getRestReferenceDocumentationUri().equals(other.getRestReferenceDocumentationUri()))
return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -907,7 +1027,7 @@ public int hashCode() {
hash = (53 * hash) + getProtoReferenceDocumentationUri().hashCode();
hash = (37 * hash) + REST_REFERENCE_DOCUMENTATION_URI_FIELD_NUMBER;
hash = (53 * hash) + getRestReferenceDocumentationUri().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -1035,39 +1155,55 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.Publishing.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getMethodSettingsFieldBuilder();
+ getLibrarySettingsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
if (methodSettingsBuilder_ == null) {
methodSettings_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
- methodSettings_ = null;
methodSettingsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000001);
newIssueUri_ = "";
+
documentationUri_ = "";
+
apiShortName_ = "";
+
githubLabel_ = "";
- codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.emptyList();
+
+ codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
docTagPrefix_ = "";
+
organization_ = 0;
+
if (librarySettingsBuilder_ == null) {
librarySettings_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
- librarySettings_ = null;
librarySettingsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000100);
protoReferenceDocumentationUri_ = "";
+
restReferenceDocumentationUri_ = "";
+
return this;
}
@@ -1093,15 +1229,7 @@ public com.google.api.Publishing build() {
@java.lang.Override
public com.google.api.Publishing buildPartial() {
com.google.api.Publishing result = new com.google.api.Publishing(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(com.google.api.Publishing result) {
+ int from_bitField0_ = bitField0_;
if (methodSettingsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
methodSettings_ = java.util.Collections.unmodifiableList(methodSettings_);
@@ -1111,47 +1239,30 @@ private void buildPartialRepeatedFields(com.google.api.Publishing result) {
} else {
result.methodSettings_ = methodSettingsBuilder_.build();
}
+ result.newIssueUri_ = newIssueUri_;
+ result.documentationUri_ = documentationUri_;
+ result.apiShortName_ = apiShortName_;
+ result.githubLabel_ = githubLabel_;
+ if (((bitField0_ & 0x00000002) != 0)) {
+ codeownerGithubTeams_ = codeownerGithubTeams_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.codeownerGithubTeams_ = codeownerGithubTeams_;
+ result.docTagPrefix_ = docTagPrefix_;
+ result.organization_ = organization_;
if (librarySettingsBuilder_ == null) {
- if (((bitField0_ & 0x00000100) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
librarySettings_ = java.util.Collections.unmodifiableList(librarySettings_);
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000004);
}
result.librarySettings_ = librarySettings_;
} else {
result.librarySettings_ = librarySettingsBuilder_.build();
}
- }
-
- private void buildPartial0(com.google.api.Publishing result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.newIssueUri_ = newIssueUri_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.documentationUri_ = documentationUri_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.apiShortName_ = apiShortName_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.githubLabel_ = githubLabel_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- codeownerGithubTeams_.makeImmutable();
- result.codeownerGithubTeams_ = codeownerGithubTeams_;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.docTagPrefix_ = docTagPrefix_;
- }
- if (((from_bitField0_ & 0x00000080) != 0)) {
- result.organization_ = organization_;
- }
- if (((from_bitField0_ & 0x00000200) != 0)) {
- result.protoReferenceDocumentationUri_ = protoReferenceDocumentationUri_;
- }
- if (((from_bitField0_ & 0x00000400) != 0)) {
- result.restReferenceDocumentationUri_ = restReferenceDocumentationUri_;
- }
+ result.protoReferenceDocumentationUri_ = protoReferenceDocumentationUri_;
+ result.restReferenceDocumentationUri_ = restReferenceDocumentationUri_;
+ onBuilt();
+ return result;
}
@java.lang.Override
@@ -1228,28 +1339,24 @@ public Builder mergeFrom(com.google.api.Publishing other) {
}
if (!other.getNewIssueUri().isEmpty()) {
newIssueUri_ = other.newIssueUri_;
- bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getDocumentationUri().isEmpty()) {
documentationUri_ = other.documentationUri_;
- bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getApiShortName().isEmpty()) {
apiShortName_ = other.apiShortName_;
- bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getGithubLabel().isEmpty()) {
githubLabel_ = other.githubLabel_;
- bitField0_ |= 0x00000010;
onChanged();
}
if (!other.codeownerGithubTeams_.isEmpty()) {
if (codeownerGithubTeams_.isEmpty()) {
codeownerGithubTeams_ = other.codeownerGithubTeams_;
- bitField0_ |= 0x00000020;
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCodeownerGithubTeamsIsMutable();
codeownerGithubTeams_.addAll(other.codeownerGithubTeams_);
@@ -1258,7 +1365,6 @@ public Builder mergeFrom(com.google.api.Publishing other) {
}
if (!other.getDocTagPrefix().isEmpty()) {
docTagPrefix_ = other.docTagPrefix_;
- bitField0_ |= 0x00000040;
onChanged();
}
if (other.organization_ != 0) {
@@ -1268,7 +1374,7 @@ public Builder mergeFrom(com.google.api.Publishing other) {
if (!other.librarySettings_.isEmpty()) {
if (librarySettings_.isEmpty()) {
librarySettings_ = other.librarySettings_;
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureLibrarySettingsIsMutable();
librarySettings_.addAll(other.librarySettings_);
@@ -1281,7 +1387,7 @@ public Builder mergeFrom(com.google.api.Publishing other) {
librarySettingsBuilder_.dispose();
librarySettingsBuilder_ = null;
librarySettings_ = other.librarySettings_;
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000004);
librarySettingsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getLibrarySettingsFieldBuilder()
@@ -1293,15 +1399,13 @@ public Builder mergeFrom(com.google.api.Publishing other) {
}
if (!other.getProtoReferenceDocumentationUri().isEmpty()) {
protoReferenceDocumentationUri_ = other.protoReferenceDocumentationUri_;
- bitField0_ |= 0x00000200;
onChanged();
}
if (!other.getRestReferenceDocumentationUri().isEmpty()) {
restReferenceDocumentationUri_ = other.restReferenceDocumentationUri_;
- bitField0_ |= 0x00000400;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -1316,111 +1420,17 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.Publishing parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 18:
- {
- com.google.api.MethodSettings m =
- input.readMessage(com.google.api.MethodSettings.parser(), extensionRegistry);
- if (methodSettingsBuilder_ == null) {
- ensureMethodSettingsIsMutable();
- methodSettings_.add(m);
- } else {
- methodSettingsBuilder_.addMessage(m);
- }
- break;
- } // case 18
- case 810:
- {
- newIssueUri_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000002;
- break;
- } // case 810
- case 818:
- {
- documentationUri_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
- break;
- } // case 818
- case 826:
- {
- apiShortName_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- break;
- } // case 826
- case 834:
- {
- githubLabel_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000010;
- break;
- } // case 834
- case 842:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureCodeownerGithubTeamsIsMutable();
- codeownerGithubTeams_.add(s);
- break;
- } // case 842
- case 850:
- {
- docTagPrefix_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000040;
- break;
- } // case 850
- case 856:
- {
- organization_ = input.readEnum();
- bitField0_ |= 0x00000080;
- break;
- } // case 856
- case 874:
- {
- com.google.api.ClientLibrarySettings m =
- input.readMessage(
- com.google.api.ClientLibrarySettings.parser(), extensionRegistry);
- if (librarySettingsBuilder_ == null) {
- ensureLibrarySettingsIsMutable();
- librarySettings_.add(m);
- } else {
- librarySettingsBuilder_.addMessage(m);
- }
- break;
- } // case 874
- case 882:
- {
- protoReferenceDocumentationUri_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000200;
- break;
- } // case 882
- case 890:
- {
- restReferenceDocumentationUri_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000400;
- break;
- } // case 890
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.Publishing) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
@@ -1879,8 +1889,8 @@ public Builder setNewIssueUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
newIssueUri_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1898,8 +1908,8 @@ public Builder setNewIssueUri(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearNewIssueUri() {
+
newIssueUri_ = getDefaultInstance().getNewIssueUri();
- bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -1922,8 +1932,8 @@ public Builder setNewIssueUriBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
newIssueUri_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1995,8 +2005,8 @@ public Builder setDocumentationUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
documentationUri_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -2014,8 +2024,8 @@ public Builder setDocumentationUri(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDocumentationUri() {
+
documentationUri_ = getDefaultInstance().getDocumentationUri();
- bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -2038,8 +2048,8 @@ public Builder setDocumentationUriBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
documentationUri_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -2114,8 +2124,8 @@ public Builder setApiShortName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
apiShortName_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2134,8 +2144,8 @@ public Builder setApiShortName(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearApiShortName() {
+
apiShortName_ = getDefaultInstance().getApiShortName();
- bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -2159,8 +2169,8 @@ public Builder setApiShortNameBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
apiShortName_ = value;
- bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2229,8 +2239,8 @@ public Builder setGithubLabel(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
githubLabel_ = value;
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -2247,8 +2257,8 @@ public Builder setGithubLabel(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearGithubLabel() {
+
githubLabel_ = getDefaultInstance().getGithubLabel();
- bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
@@ -2270,20 +2280,20 @@ public Builder setGithubLabelBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
githubLabel_ = value;
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringArrayList codeownerGithubTeams_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private com.google.protobuf.LazyStringList codeownerGithubTeams_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureCodeownerGithubTeamsIsMutable() {
- if (!codeownerGithubTeams_.isModifiable()) {
+ if (!((bitField0_ & 0x00000002) != 0)) {
codeownerGithubTeams_ = new com.google.protobuf.LazyStringArrayList(codeownerGithubTeams_);
+ bitField0_ |= 0x00000002;
}
- bitField0_ |= 0x00000020;
}
/**
@@ -2299,8 +2309,7 @@ private void ensureCodeownerGithubTeamsIsMutable() {
* @return A list containing the codeownerGithubTeams.
*/
public com.google.protobuf.ProtocolStringList getCodeownerGithubTeamsList() {
- codeownerGithubTeams_.makeImmutable();
- return codeownerGithubTeams_;
+ return codeownerGithubTeams_.getUnmodifiableView();
}
/**
@@ -2373,7 +2382,6 @@ public Builder setCodeownerGithubTeams(int index, java.lang.String value) {
}
ensureCodeownerGithubTeamsIsMutable();
codeownerGithubTeams_.set(index, value);
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2397,7 +2405,6 @@ public Builder addCodeownerGithubTeams(java.lang.String value) {
}
ensureCodeownerGithubTeamsIsMutable();
codeownerGithubTeams_.add(value);
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2418,7 +2425,6 @@ public Builder addCodeownerGithubTeams(java.lang.String value) {
public Builder addAllCodeownerGithubTeams(java.lang.Iterable values) {
ensureCodeownerGithubTeamsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, codeownerGithubTeams_);
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2436,9 +2442,8 @@ public Builder addAllCodeownerGithubTeams(java.lang.Iterable v
* @return This builder for chaining.
*/
public Builder clearCodeownerGithubTeams() {
- codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000020);
- ;
+ codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -2463,7 +2468,6 @@ public Builder addCodeownerGithubTeamsBytes(com.google.protobuf.ByteString value
checkByteStringIsUtf8(value);
ensureCodeownerGithubTeamsIsMutable();
codeownerGithubTeams_.add(value);
- bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2535,8 +2539,8 @@ public Builder setDocTagPrefix(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
docTagPrefix_ = value;
- bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -2554,8 +2558,8 @@ public Builder setDocTagPrefix(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearDocTagPrefix() {
+
docTagPrefix_ = getDefaultInstance().getDocTagPrefix();
- bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
@@ -2578,8 +2582,8 @@ public Builder setDocTagPrefixBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
docTagPrefix_ = value;
- bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -2615,8 +2619,8 @@ public int getOrganizationValue() {
* @return This builder for chaining.
*/
public Builder setOrganizationValue(int value) {
+
organization_ = value;
- bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -2634,8 +2638,9 @@ public Builder setOrganizationValue(int value) {
*/
@java.lang.Override
public com.google.api.ClientLibraryOrganization getOrganization() {
+ @SuppressWarnings("deprecation")
com.google.api.ClientLibraryOrganization result =
- com.google.api.ClientLibraryOrganization.forNumber(organization_);
+ com.google.api.ClientLibraryOrganization.valueOf(organization_);
return result == null ? com.google.api.ClientLibraryOrganization.UNRECOGNIZED : result;
}
@@ -2655,7 +2660,7 @@ public Builder setOrganization(com.google.api.ClientLibraryOrganization value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000080;
+
organization_ = value.getNumber();
onChanged();
return this;
@@ -2673,7 +2678,7 @@ public Builder setOrganization(com.google.api.ClientLibraryOrganization value) {
* @return This builder for chaining.
*/
public Builder clearOrganization() {
- bitField0_ = (bitField0_ & ~0x00000080);
+
organization_ = 0;
onChanged();
return this;
@@ -2683,10 +2688,10 @@ public Builder clearOrganization() {
java.util.Collections.emptyList();
private void ensureLibrarySettingsIsMutable() {
- if (!((bitField0_ & 0x00000100) != 0)) {
+ if (!((bitField0_ & 0x00000004) != 0)) {
librarySettings_ =
new java.util.ArrayList(librarySettings_);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000004;
}
}
@@ -2934,7 +2939,7 @@ public Builder addAllLibrarySettings(
public Builder clearLibrarySettings() {
if (librarySettingsBuilder_ == null) {
librarySettings_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
librarySettingsBuilder_.clear();
@@ -3078,7 +3083,7 @@ public com.google.api.ClientLibrarySettings.Builder addLibrarySettingsBuilder(in
com.google.api.ClientLibrarySettings.Builder,
com.google.api.ClientLibrarySettingsOrBuilder>(
librarySettings_,
- ((bitField0_ & 0x00000100) != 0),
+ ((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
librarySettings_ = null;
@@ -3153,8 +3158,8 @@ public Builder setProtoReferenceDocumentationUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
protoReferenceDocumentationUri_ = value;
- bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -3172,8 +3177,8 @@ public Builder setProtoReferenceDocumentationUri(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearProtoReferenceDocumentationUri() {
+
protoReferenceDocumentationUri_ = getDefaultInstance().getProtoReferenceDocumentationUri();
- bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
@@ -3196,8 +3201,8 @@ public Builder setProtoReferenceDocumentationUriBytes(com.google.protobuf.ByteSt
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
protoReferenceDocumentationUri_ = value;
- bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -3269,8 +3274,8 @@ public Builder setRestReferenceDocumentationUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
+
restReferenceDocumentationUri_ = value;
- bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -3288,8 +3293,8 @@ public Builder setRestReferenceDocumentationUri(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearRestReferenceDocumentationUri() {
+
restReferenceDocumentationUri_ = getDefaultInstance().getRestReferenceDocumentationUri();
- bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
@@ -3312,8 +3317,8 @@ public Builder setRestReferenceDocumentationUriBytes(com.google.protobuf.ByteStr
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
+
restReferenceDocumentationUri_ = value;
- bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -3350,18 +3355,7 @@ public Publishing parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new Publishing(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PublishingOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PublishingOrBuilder.java
index ce1926b552..1e18e11032 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PublishingOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PublishingOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface PublishingOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java
index f6866a9684..fb591d8fde 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -47,6 +46,83 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PythonSettings();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private PythonSettings(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.api.CommonLanguageSettings.Builder subBuilder = null;
+ if (common_ != null) {
+ subBuilder = common_.toBuilder();
+ }
+ common_ =
+ input.readMessage(
+ com.google.api.CommonLanguageSettings.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(common_);
+ common_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18:
+ {
+ com.google.api.PythonSettings.ExperimentalFeatures.Builder subBuilder = null;
+ if (experimentalFeatures_ != null) {
+ subBuilder = experimentalFeatures_.toBuilder();
+ }
+ experimentalFeatures_ =
+ input.readMessage(
+ com.google.api.PythonSettings.ExperimentalFeatures.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(experimentalFeatures_);
+ experimentalFeatures_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_PythonSettings_descriptor;
}
@@ -143,6 +219,65 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ExperimentalFeatures();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ExperimentalFeatures(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ restAsyncIoEnabled_ = input.readBool();
+ break;
+ }
+ case 16:
+ {
+ protobufPythonicTypesEnabled_ = input.readBool();
+ break;
+ }
+ case 24:
+ {
+ unversionedPackageDisabled_ = input.readBool();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto
.internal_static_google_api_PythonSettings_ExperimentalFeatures_descriptor;
@@ -159,7 +294,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int REST_ASYNC_IO_ENABLED_FIELD_NUMBER = 1;
- private boolean restAsyncIoEnabled_ = false;
+ private boolean restAsyncIoEnabled_;
/**
*
@@ -181,7 +316,7 @@ public boolean getRestAsyncIoEnabled() {
}
public static final int PROTOBUF_PYTHONIC_TYPES_ENABLED_FIELD_NUMBER = 2;
- private boolean protobufPythonicTypesEnabled_ = false;
+ private boolean protobufPythonicTypesEnabled_;
/**
*
@@ -203,7 +338,7 @@ public boolean getProtobufPythonicTypesEnabled() {
}
public static final int UNVERSIONED_PACKAGE_DISABLED_FIELD_NUMBER = 3;
- private boolean unversionedPackageDisabled_ = false;
+ private boolean unversionedPackageDisabled_;
/**
*
@@ -247,7 +382,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (unversionedPackageDisabled_ != false) {
output.writeBool(3, unversionedPackageDisabled_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -267,7 +402,7 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeBoolSize(3, unversionedPackageDisabled_);
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -287,7 +422,7 @@ public boolean equals(final java.lang.Object obj) {
if (getProtobufPythonicTypesEnabled() != other.getProtobufPythonicTypesEnabled())
return false;
if (getUnversionedPackageDisabled() != other.getUnversionedPackageDisabled()) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -306,7 +441,7 @@ public int hashCode() {
hash = (37 * hash) + UNVERSIONED_PACKAGE_DISABLED_FIELD_NUMBER;
hash =
(53 * hash) + com.google.protobuf.Internal.hashBoolean(getUnversionedPackageDisabled());
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -440,19 +575,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.api.PythonSettings.ExperimentalFeatures.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
restAsyncIoEnabled_ = false;
+
protobufPythonicTypesEnabled_ = false;
+
unversionedPackageDisabled_ = false;
+
return this;
}
@@ -480,26 +624,13 @@ public com.google.api.PythonSettings.ExperimentalFeatures build() {
public com.google.api.PythonSettings.ExperimentalFeatures buildPartial() {
com.google.api.PythonSettings.ExperimentalFeatures result =
new com.google.api.PythonSettings.ExperimentalFeatures(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
+ result.restAsyncIoEnabled_ = restAsyncIoEnabled_;
+ result.protobufPythonicTypesEnabled_ = protobufPythonicTypesEnabled_;
+ result.unversionedPackageDisabled_ = unversionedPackageDisabled_;
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.PythonSettings.ExperimentalFeatures result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.restAsyncIoEnabled_ = restAsyncIoEnabled_;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.protobufPythonicTypesEnabled_ = protobufPythonicTypesEnabled_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.unversionedPackageDisabled_ = unversionedPackageDisabled_;
- }
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -557,7 +688,7 @@ public Builder mergeFrom(com.google.api.PythonSettings.ExperimentalFeatures othe
if (other.getUnversionedPackageDisabled() != false) {
setUnversionedPackageDisabled(other.getUnversionedPackageDisabled());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -572,54 +703,21 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.PythonSettings.ExperimentalFeatures parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8:
- {
- restAsyncIoEnabled_ = input.readBool();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 16:
- {
- protobufPythonicTypesEnabled_ = input.readBool();
- bitField0_ |= 0x00000002;
- break;
- } // case 16
- case 24:
- {
- unversionedPackageDisabled_ = input.readBool();
- bitField0_ |= 0x00000004;
- break;
- } // case 24
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.api.PythonSettings.ExperimentalFeatures) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private boolean restAsyncIoEnabled_;
/**
@@ -659,7 +757,6 @@ public boolean getRestAsyncIoEnabled() {
public Builder setRestAsyncIoEnabled(boolean value) {
restAsyncIoEnabled_ = value;
- bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -679,7 +776,7 @@ public Builder setRestAsyncIoEnabled(boolean value) {
* @return This builder for chaining.
*/
public Builder clearRestAsyncIoEnabled() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
restAsyncIoEnabled_ = false;
onChanged();
return this;
@@ -724,7 +821,6 @@ public boolean getProtobufPythonicTypesEnabled() {
public Builder setProtobufPythonicTypesEnabled(boolean value) {
protobufPythonicTypesEnabled_ = value;
- bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -744,7 +840,7 @@ public Builder setProtobufPythonicTypesEnabled(boolean value) {
* @return This builder for chaining.
*/
public Builder clearProtobufPythonicTypesEnabled() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
protobufPythonicTypesEnabled_ = false;
onChanged();
return this;
@@ -789,7 +885,6 @@ public boolean getUnversionedPackageDisabled() {
public Builder setUnversionedPackageDisabled(boolean value) {
unversionedPackageDisabled_ = value;
- bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -809,7 +904,7 @@ public Builder setUnversionedPackageDisabled(boolean value) {
* @return This builder for chaining.
*/
public Builder clearUnversionedPackageDisabled() {
- bitField0_ = (bitField0_ & ~0x00000004);
+
unversionedPackageDisabled_ = false;
onChanged();
return this;
@@ -848,19 +943,7 @@ public ExperimentalFeatures parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException()
- .setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new ExperimentalFeatures(input, extensionRegistry);
}
};
@@ -879,7 +962,6 @@ public com.google.api.PythonSettings.ExperimentalFeatures getDefaultInstanceForT
}
}
- private int bitField0_;
public static final int COMMON_FIELD_NUMBER = 1;
private com.google.api.CommonLanguageSettings common_;
@@ -896,7 +978,7 @@ public com.google.api.PythonSettings.ExperimentalFeatures getDefaultInstanceForT
*/
@java.lang.Override
public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
+ return common_ != null;
}
/**
@@ -926,7 +1008,7 @@ public com.google.api.CommonLanguageSettings getCommon() {
*/
@java.lang.Override
public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() {
- return common_ == null ? com.google.api.CommonLanguageSettings.getDefaultInstance() : common_;
+ return getCommon();
}
public static final int EXPERIMENTAL_FEATURES_FIELD_NUMBER = 2;
@@ -945,7 +1027,7 @@ public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() {
*/
@java.lang.Override
public boolean hasExperimentalFeatures() {
- return ((bitField0_ & 0x00000002) != 0);
+ return experimentalFeatures_ != null;
}
/**
@@ -978,9 +1060,7 @@ public com.google.api.PythonSettings.ExperimentalFeatures getExperimentalFeature
@java.lang.Override
public com.google.api.PythonSettings.ExperimentalFeaturesOrBuilder
getExperimentalFeaturesOrBuilder() {
- return experimentalFeatures_ == null
- ? com.google.api.PythonSettings.ExperimentalFeatures.getDefaultInstance()
- : experimentalFeatures_;
+ return getExperimentalFeatures();
}
private byte memoizedIsInitialized = -1;
@@ -997,13 +1077,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (common_ != null) {
output.writeMessage(1, getCommon());
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (experimentalFeatures_ != null) {
output.writeMessage(2, getExperimentalFeatures());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -1012,14 +1092,14 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (common_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon());
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (experimentalFeatures_ != null) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExperimentalFeatures());
}
- size += getUnknownFields().getSerializedSize();
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@@ -1042,7 +1122,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasExperimentalFeatures()) {
if (!getExperimentalFeatures().equals(other.getExperimentalFeatures())) return false;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -1061,7 +1141,7 @@ public int hashCode() {
hash = (37 * hash) + EXPERIMENTAL_FEATURES_FIELD_NUMBER;
hash = (53 * hash) + getExperimentalFeatures().hashCode();
}
- hash = (29 * hash) + getUnknownFields().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -1197,24 +1277,22 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getCommonFieldBuilder();
- getExperimentalFeaturesFieldBuilder();
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- bitField0_ = 0;
- common_ = null;
- if (commonBuilder_ != null) {
- commonBuilder_.dispose();
+ if (commonBuilder_ == null) {
+ common_ = null;
+ } else {
+ common_ = null;
commonBuilder_ = null;
}
- experimentalFeatures_ = null;
- if (experimentalFeaturesBuilder_ != null) {
- experimentalFeaturesBuilder_.dispose();
+ if (experimentalFeaturesBuilder_ == null) {
+ experimentalFeatures_ = null;
+ } else {
+ experimentalFeatures_ = null;
experimentalFeaturesBuilder_ = null;
}
return this;
@@ -1242,30 +1320,20 @@ public com.google.api.PythonSettings build() {
@java.lang.Override
public com.google.api.PythonSettings buildPartial() {
com.google.api.PythonSettings result = new com.google.api.PythonSettings(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ if (commonBuilder_ == null) {
+ result.common_ = common_;
+ } else {
+ result.common_ = commonBuilder_.build();
+ }
+ if (experimentalFeaturesBuilder_ == null) {
+ result.experimentalFeatures_ = experimentalFeatures_;
+ } else {
+ result.experimentalFeatures_ = experimentalFeaturesBuilder_.build();
}
onBuilt();
return result;
}
- private void buildPartial0(com.google.api.PythonSettings result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.experimentalFeatures_ =
- experimentalFeaturesBuilder_ == null
- ? experimentalFeatures_
- : experimentalFeaturesBuilder_.build();
- to_bitField0_ |= 0x00000002;
- }
- result.bitField0_ |= to_bitField0_;
- }
-
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -1317,7 +1385,7 @@ public Builder mergeFrom(com.google.api.PythonSettings other) {
if (other.hasExperimentalFeatures()) {
mergeExperimentalFeatures(other.getExperimentalFeatures());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@@ -1332,49 +1400,20 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
+ com.google.api.PythonSettings parsedMessage = null;
try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- input.readMessage(getCommonFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18:
- {
- input.readMessage(
- getExperimentalFeaturesFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.api.PythonSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- onChanged();
- } // finally
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
return this;
}
- private int bitField0_;
-
private com.google.api.CommonLanguageSettings common_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.api.CommonLanguageSettings,
@@ -1394,7 +1433,7 @@ public Builder mergeFrom(
* @return Whether the common field is set.
*/
public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
+ return commonBuilder_ != null || common_ != null;
}
/**
@@ -1433,11 +1472,11 @@ public Builder setCommon(com.google.api.CommonLanguageSettings value) {
throw new NullPointerException();
}
common_ = value;
+ onChanged();
} else {
commonBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -1453,11 +1492,11 @@ public Builder setCommon(com.google.api.CommonLanguageSettings value) {
public Builder setCommon(com.google.api.CommonLanguageSettings.Builder builderForValue) {
if (commonBuilder_ == null) {
common_ = builderForValue.build();
+ onChanged();
} else {
commonBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000001;
- onChanged();
+
return this;
}
@@ -1472,20 +1511,19 @@ public Builder setCommon(com.google.api.CommonLanguageSettings.Builder builderFo
*/
public Builder mergeCommon(com.google.api.CommonLanguageSettings value) {
if (commonBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)
- && common_ != null
- && common_ != com.google.api.CommonLanguageSettings.getDefaultInstance()) {
- getCommonBuilder().mergeFrom(value);
+ if (common_ != null) {
+ common_ =
+ com.google.api.CommonLanguageSettings.newBuilder(common_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
common_ = value;
}
+ onChanged();
} else {
commonBuilder_.mergeFrom(value);
}
- if (common_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
+
return this;
}
@@ -1499,13 +1537,14 @@ public Builder mergeCommon(com.google.api.CommonLanguageSettings value) {
* .google.api.CommonLanguageSettings common = 1;
*/
public Builder clearCommon() {
- bitField0_ = (bitField0_ & ~0x00000001);
- common_ = null;
- if (commonBuilder_ != null) {
- commonBuilder_.dispose();
+ if (commonBuilder_ == null) {
+ common_ = null;
+ onChanged();
+ } else {
+ common_ = null;
commonBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -1519,7 +1558,7 @@ public Builder clearCommon() {
* .google.api.CommonLanguageSettings common = 1;
*/
public com.google.api.CommonLanguageSettings.Builder getCommonBuilder() {
- bitField0_ |= 0x00000001;
+
onChanged();
return getCommonFieldBuilder().getBuilder();
}
@@ -1588,7 +1627,7 @@ public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() {
* @return Whether the experimentalFeatures field is set.
*/
public boolean hasExperimentalFeatures() {
- return ((bitField0_ & 0x00000002) != 0);
+ return experimentalFeaturesBuilder_ != null || experimentalFeatures_ != null;
}
/**
@@ -1628,11 +1667,11 @@ public Builder setExperimentalFeatures(
throw new NullPointerException();
}
experimentalFeatures_ = value;
+ onChanged();
} else {
experimentalFeaturesBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
@@ -1649,11 +1688,11 @@ public Builder setExperimentalFeatures(
com.google.api.PythonSettings.ExperimentalFeatures.Builder builderForValue) {
if (experimentalFeaturesBuilder_ == null) {
experimentalFeatures_ = builderForValue.build();
+ onChanged();
} else {
experimentalFeaturesBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000002;
- onChanged();
+
return this;
}
@@ -1669,21 +1708,19 @@ public Builder setExperimentalFeatures(
public Builder mergeExperimentalFeatures(
com.google.api.PythonSettings.ExperimentalFeatures value) {
if (experimentalFeaturesBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)
- && experimentalFeatures_ != null
- && experimentalFeatures_
- != com.google.api.PythonSettings.ExperimentalFeatures.getDefaultInstance()) {
- getExperimentalFeaturesBuilder().mergeFrom(value);
+ if (experimentalFeatures_ != null) {
+ experimentalFeatures_ =
+ com.google.api.PythonSettings.ExperimentalFeatures.newBuilder(experimentalFeatures_)
+ .mergeFrom(value)
+ .buildPartial();
} else {
experimentalFeatures_ = value;
}
+ onChanged();
} else {
experimentalFeaturesBuilder_.mergeFrom(value);
}
- if (experimentalFeatures_ != null) {
- bitField0_ |= 0x00000002;
- onChanged();
- }
+
return this;
}
@@ -1697,13 +1734,14 @@ public Builder mergeExperimentalFeatures(
* .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2;
*/
public Builder clearExperimentalFeatures() {
- bitField0_ = (bitField0_ & ~0x00000002);
- experimentalFeatures_ = null;
- if (experimentalFeaturesBuilder_ != null) {
- experimentalFeaturesBuilder_.dispose();
+ if (experimentalFeaturesBuilder_ == null) {
+ experimentalFeatures_ = null;
+ onChanged();
+ } else {
+ experimentalFeatures_ = null;
experimentalFeaturesBuilder_ = null;
}
- onChanged();
+
return this;
}
@@ -1718,7 +1756,7 @@ public Builder clearExperimentalFeatures() {
*/
public com.google.api.PythonSettings.ExperimentalFeatures.Builder
getExperimentalFeaturesBuilder() {
- bitField0_ |= 0x00000002;
+
onChanged();
return getExperimentalFeaturesFieldBuilder().getBuilder();
}
@@ -1801,18 +1839,7 @@ public PythonSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ return new PythonSettings(input, extensionRegistry);
}
};
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettingsOrBuilder.java
index e6e4ec46cd..e76ce30434 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettingsOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettingsOrBuilder.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/client.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
public interface PythonSettingsOrBuilder
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java
index 9669edd108..e69bca2fd4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java
@@ -16,7 +16,6 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/quota.proto
-// Protobuf Java Version: 3.25.8
package com.google.api;
/**
@@ -25,26 +24,20 @@
*
* Quota configuration helps to achieve fairness and budgeting in service
* usage.
- *
* The metric based quota configuration works this way:
* - The service configuration defines a set of metrics.
* - For API calls, the quota.metric_rules maps methods to metrics with
* corresponding costs.
* - The quota.limits defines limits on the metrics, which will be used for
* quota checks at runtime.
- *
* An example quota configuration in yaml format:
- *
* quota:
* limits:
- *
* - name: apiWriteQpsPerProject
* metric: library.googleapis.com/write_calls
* unit: "1/min/{project}" # rate limit for consumer projects
* values:
* STANDARD: 10000
- *
- *
* (The metric rules bind all methods to the read_calls metric,
* except for the UpdateBook and DeleteBook methods. These two methods
* are mapped to the write_calls metric, with the UpdateBook method
@@ -59,15 +52,12 @@
* - selector: google.example.library.v1.LibraryService.DeleteBook
* metric_costs:
* library.googleapis.com/write_calls: 1
- *
* Corresponding Metric definition:
- *
* metrics:
* - name: library.googleapis.com/read_calls
* display_name: Read requests
* metric_kind: DELTA
* value_type: INT64
- *
* - name: library.googleapis.com/write_calls
* display_name: Write requests
* metric_kind: DELTA
@@ -98,6 +88,76 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Quota();
}
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Quota(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 26:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ limits_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ limits_.add(input.readMessage(com.google.api.QuotaLimit.parser(), extensionRegistry));
+ break;
+ }
+ case 34:
+ {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ metricRules_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ metricRules_.add(
+ input.readMessage(com.google.api.MetricRule.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ limits_ = java.util.Collections.unmodifiableList(limits_);
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ metricRules_ = java.util.Collections.unmodifiableList(metricRules_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.QuotaProto.internal_static_google_api_Quota_descriptor;
}
@@ -111,8 +171,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int LIMITS_FIELD_NUMBER = 3;
-
- @SuppressWarnings("serial")
private java.util.List limits_;
/**
@@ -186,8 +244,6 @@ public com.google.api.QuotaLimitOrBuilder getLimitsOrBuilder(int index) {
}
public static final int METRIC_RULES_FIELD_NUMBER = 4;
-
- @SuppressWarnings("serial")
private java.util.List