diff --git a/generation_config.yaml b/generation_config.yaml index 1f990ecb3540..2b29a83603eb 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -3039,10 +3039,9 @@ libraries: release_level: stable client_documentation: https://cloud.google.com/java/docs/reference/proto-google-common-protos/latest/history distribution_name: com.google.api.grpc:proto-google-common-protos - excluded_dependencies: proto-google-common-protos,grpc-google-common-protos,proto-google-common-protos-parent + excluded_dependencies: grpc-google-common-protos,proto-google-common-protos,proto-google-common-protos-parent excluded_poms: proto-google-common-protos-bom,proto-google-common-protos library_type: OTHER - GAPICs: - proto_path: google/api - proto_path: google/apps/card/v1 diff --git a/java-common-protos/.repo-metadata.json b/java-common-protos/.repo-metadata.json index 6c9331f54b78..b6749af2e1c7 100644 --- a/java-common-protos/.repo-metadata.json +++ b/java-common-protos/.repo-metadata.json @@ -12,6 +12,6 @@ "distribution_name": "com.google.api.grpc:proto-google-common-protos", "library_type": "OTHER", "requires_billing": true, - "excluded_dependencies": "proto-google-common-protos,grpc-google-common-protos,proto-google-common-protos-parent", + "excluded_dependencies": "grpc-google-common-protos,proto-google-common-protos,proto-google-common-protos-parent", "excluded_poms": "proto-google-common-protos-bom,proto-google-common-protos" } \ No newline at end of file diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HttpHeader.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HttpHeader.java new file mode 100644 index 000000000000..02ac888729c4 --- /dev/null +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HttpHeader.java @@ -0,0 +1,774 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/rpc/http.proto +// Protobuf Java Version: 4.33.2 + +package com.google.rpc; + +/** + * + * + *
+ * Represents an HTTP header. + *+ * + * Protobuf type {@code google.rpc.HttpHeader} + */ +@com.google.protobuf.Generated +public final class HttpHeader extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.rpc.HttpHeader) + HttpHeaderOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HttpHeader"); + } + + // Use HttpHeader.newBuilder() to construct. + private HttpHeader(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private HttpHeader() { + key_ = ""; + value_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.HttpProto.internal_static_google_rpc_HttpHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.HttpProto.internal_static_google_rpc_HttpHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.HttpHeader.class, com.google.rpc.HttpHeader.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + * + * + *
+ * The HTTP header key. It is case insensitive. + *+ * + *
string key = 1;
+ *
+ * @return The key.
+ */
+ @java.lang.Override
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP header key. It is case insensitive. + *+ * + *
string key = 1;
+ *
+ * @return The bytes for key.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object value_ = "";
+
+ /**
+ *
+ *
+ * + * The HTTP header value. + *+ * + *
string value = 2;
+ *
+ * @return The value.
+ */
+ @java.lang.Override
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP header value. + *+ * + *
string value = 2;
+ *
+ * @return The bytes for value.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, key_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, value_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.rpc.HttpHeader)) {
+ return super.equals(obj);
+ }
+ com.google.rpc.HttpHeader other = (com.google.rpc.HttpHeader) obj;
+
+ if (!getKey().equals(other.getKey())) return false;
+ if (!getValue().equals(other.getValue())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.rpc.HttpHeader parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.rpc.HttpHeader parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.rpc.HttpHeader parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.rpc.HttpHeader parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.rpc.HttpHeader parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.rpc.HttpHeader parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.rpc.HttpHeader parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.rpc.HttpHeader parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.rpc.HttpHeader parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.rpc.HttpHeader parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.rpc.HttpHeader parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.rpc.HttpHeader parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.rpc.HttpHeader prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Represents an HTTP header. + *+ * + * Protobuf type {@code google.rpc.HttpHeader} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The HTTP header key. It is case insensitive. + *+ * + *
string key = 1;
+ *
+ * @return The key.
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP header key. It is case insensitive. + *+ * + *
string key = 1;
+ *
+ * @return The bytes for key.
+ */
+ public com.google.protobuf.ByteString getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP header key. It is case insensitive. + *+ * + *
string key = 1;
+ *
+ * @param value The key to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKey(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ key_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP header key. It is case insensitive. + *+ * + *
string key = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKey() {
+ key_ = getDefaultInstance().getKey();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP header key. It is case insensitive. + *+ * + *
string key = 1;
+ *
+ * @param value The bytes for key to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKeyBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ key_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object value_ = "";
+
+ /**
+ *
+ *
+ * + * The HTTP header value. + *+ * + *
string value = 2;
+ *
+ * @return The value.
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP header value. + *+ * + *
string value = 2;
+ *
+ * @return The bytes for value.
+ */
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP header value. + *+ * + *
string value = 2;
+ *
+ * @param value The value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValue(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ value_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP header value. + *+ * + *
string value = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+ value_ = getDefaultInstance().getValue();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP header value. + *+ * + *
string value = 2;
+ *
+ * @param value The bytes for value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValueBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ value_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.rpc.HttpHeader)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.rpc.HttpHeader)
+ private static final com.google.rpc.HttpHeader DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.rpc.HttpHeader();
+ }
+
+ public static com.google.rpc.HttpHeader getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The HTTP header key. It is case insensitive. + *+ * + *
string key = 1;
+ *
+ * @return The key.
+ */
+ java.lang.String getKey();
+
+ /**
+ *
+ *
+ * + * The HTTP header key. It is case insensitive. + *+ * + *
string key = 1;
+ *
+ * @return The bytes for key.
+ */
+ com.google.protobuf.ByteString getKeyBytes();
+
+ /**
+ *
+ *
+ * + * The HTTP header value. + *+ * + *
string value = 2;
+ *
+ * @return The value.
+ */
+ java.lang.String getValue();
+
+ /**
+ *
+ *
+ * + * The HTTP header value. + *+ * + *
string value = 2;
+ *
+ * @return The bytes for value.
+ */
+ com.google.protobuf.ByteString getValueBytes();
+}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HttpProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HttpProto.java
new file mode 100644
index 000000000000..03a4c4a55d16
--- /dev/null
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HttpProto.java
@@ -0,0 +1,112 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/rpc/http.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.rpc;
+
+@com.google.protobuf.Generated
+public final class HttpProto extends com.google.protobuf.GeneratedFile {
+ private HttpProto() {}
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "HttpProto");
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_rpc_HttpRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_rpc_HttpRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_rpc_HttpResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_rpc_HttpResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_rpc_HttpHeader_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_rpc_HttpHeader_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n"
+ + "\025google/rpc/http.proto\022\n"
+ + "google.rpc\"a\n"
+ + "\013HttpRequest\022\016\n"
+ + "\006method\030\001 \001(\t\022\013\n"
+ + "\003uri\030\002 \001(\t\022\'\n"
+ + "\007headers\030\003 \003(\0132\026.google.rpc.HttpHeader\022\014\n"
+ + "\004body\030\004 \001(\014\"e\n"
+ + "\014HttpResponse\022\016\n"
+ + "\006status\030\001 \001(\005\022\016\n"
+ + "\006reason\030\002 \001(\t\022\'\n"
+ + "\007headers\030\003 \003(\0132\026.google.rpc.HttpHeader\022\014\n"
+ + "\004body\030\004 \001(\014\"(\n"
+ + "\n"
+ + "HttpHeader\022\013\n"
+ + "\003key\030\001 \001(\t\022\r\n"
+ + "\005value\030\002 \001(\tBX\n"
+ + "\016com.google.rpcB\tHttpProtoP\001Z3google.golang.org/genproto/googleapis/rpc/http;h"
+ + "ttp\242\002\003RPCb\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+ internal_static_google_rpc_HttpRequest_descriptor = getDescriptor().getMessageType(0);
+ internal_static_google_rpc_HttpRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_rpc_HttpRequest_descriptor,
+ new java.lang.String[] {
+ "Method", "Uri", "Headers", "Body",
+ });
+ internal_static_google_rpc_HttpResponse_descriptor = getDescriptor().getMessageType(1);
+ internal_static_google_rpc_HttpResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_rpc_HttpResponse_descriptor,
+ new java.lang.String[] {
+ "Status", "Reason", "Headers", "Body",
+ });
+ internal_static_google_rpc_HttpHeader_descriptor = getDescriptor().getMessageType(2);
+ internal_static_google_rpc_HttpHeader_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_rpc_HttpHeader_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ descriptor.resolveAllFeaturesImmutable();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HttpRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HttpRequest.java
new file mode 100644
index 000000000000..4932f84a31a2
--- /dev/null
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HttpRequest.java
@@ -0,0 +1,1403 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/rpc/http.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.rpc;
+
+/**
+ *
+ *
+ * + * Represents an HTTP request. + *+ * + * Protobuf type {@code google.rpc.HttpRequest} + */ +@com.google.protobuf.Generated +public final class HttpRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.rpc.HttpRequest) + HttpRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HttpRequest"); + } + + // Use HttpRequest.newBuilder() to construct. + private HttpRequest(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private HttpRequest() { + method_ = ""; + uri_ = ""; + headers_ = java.util.Collections.emptyList(); + body_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.HttpProto.internal_static_google_rpc_HttpRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.HttpProto.internal_static_google_rpc_HttpRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.HttpRequest.class, com.google.rpc.HttpRequest.Builder.class); + } + + public static final int METHOD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object method_ = ""; + + /** + * + * + *
+ * The HTTP request method. + *+ * + *
string method = 1;
+ *
+ * @return The method.
+ */
+ @java.lang.Override
+ public java.lang.String getMethod() {
+ java.lang.Object ref = method_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ method_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request method. + *+ * + *
string method = 1;
+ *
+ * @return The bytes for method.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMethodBytes() {
+ java.lang.Object ref = method_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ method_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int URI_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object uri_ = "";
+
+ /**
+ *
+ *
+ * + * The HTTP request URI. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ @java.lang.Override
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request URI. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int HEADERS_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ @java.lang.Override
+ public java.util.List+ * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.rpc.HttpHeaderOrBuilder> getHeadersOrBuilderList() {
+ return headers_;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ @java.lang.Override
+ public int getHeadersCount() {
+ return headers_.size();
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ @java.lang.Override
+ public com.google.rpc.HttpHeader getHeaders(int index) {
+ return headers_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ @java.lang.Override
+ public com.google.rpc.HttpHeaderOrBuilder getHeadersOrBuilder(int index) {
+ return headers_.get(index);
+ }
+
+ public static final int BODY_FIELD_NUMBER = 4;
+ private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ * + * The HTTP request body. If the body is not expected, it should be empty. + *+ * + *
bytes body = 4;
+ *
+ * @return The body.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBody() {
+ return body_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(method_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, method_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_);
+ }
+ for (int i = 0; i < headers_.size(); i++) {
+ output.writeMessage(3, headers_.get(i));
+ }
+ if (!body_.isEmpty()) {
+ output.writeBytes(4, body_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(method_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, method_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_);
+ }
+ for (int i = 0; i < headers_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, headers_.get(i));
+ }
+ if (!body_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, body_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.rpc.HttpRequest)) {
+ return super.equals(obj);
+ }
+ com.google.rpc.HttpRequest other = (com.google.rpc.HttpRequest) obj;
+
+ if (!getMethod().equals(other.getMethod())) return false;
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getHeadersList().equals(other.getHeadersList())) return false;
+ if (!getBody().equals(other.getBody())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + METHOD_FIELD_NUMBER;
+ hash = (53 * hash) + getMethod().hashCode();
+ hash = (37 * hash) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ if (getHeadersCount() > 0) {
+ hash = (37 * hash) + HEADERS_FIELD_NUMBER;
+ hash = (53 * hash) + getHeadersList().hashCode();
+ }
+ hash = (37 * hash) + BODY_FIELD_NUMBER;
+ hash = (53 * hash) + getBody().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.rpc.HttpRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.rpc.HttpRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.rpc.HttpRequest parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.rpc.HttpRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.rpc.HttpRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.rpc.HttpRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.rpc.HttpRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.rpc.HttpRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.rpc.HttpRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.rpc.HttpRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.rpc.HttpRequest parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.rpc.HttpRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.rpc.HttpRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Represents an HTTP request. + *+ * + * Protobuf type {@code google.rpc.HttpRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The HTTP request method. + *+ * + *
string method = 1;
+ *
+ * @return The method.
+ */
+ public java.lang.String getMethod() {
+ java.lang.Object ref = method_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ method_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request method. + *+ * + *
string method = 1;
+ *
+ * @return The bytes for method.
+ */
+ public com.google.protobuf.ByteString getMethodBytes() {
+ java.lang.Object ref = method_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ method_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request method. + *+ * + *
string method = 1;
+ *
+ * @param value The method to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMethod(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ method_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request method. + *+ * + *
string method = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMethod() {
+ method_ = getDefaultInstance().getMethod();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request method. + *+ * + *
string method = 1;
+ *
+ * @param value The bytes for method to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMethodBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ method_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object uri_ = "";
+
+ /**
+ *
+ *
+ * + * The HTTP request URI. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request URI. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request URI. + *+ * + *
string uri = 2;
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request URI. + *+ * + *
string uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request URI. + *+ * + *
string uri = 2;
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public java.util.List+ * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public int getHeadersCount() {
+ if (headersBuilder_ == null) {
+ return headers_.size();
+ } else {
+ return headersBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public com.google.rpc.HttpHeader getHeaders(int index) {
+ if (headersBuilder_ == null) {
+ return headers_.get(index);
+ } else {
+ return headersBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder setHeaders(int index, com.google.rpc.HttpHeader value) {
+ if (headersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHeadersIsMutable();
+ headers_.set(index, value);
+ onChanged();
+ } else {
+ headersBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder setHeaders(int index, com.google.rpc.HttpHeader.Builder builderForValue) {
+ if (headersBuilder_ == null) {
+ ensureHeadersIsMutable();
+ headers_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ headersBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder addHeaders(com.google.rpc.HttpHeader value) {
+ if (headersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHeadersIsMutable();
+ headers_.add(value);
+ onChanged();
+ } else {
+ headersBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder addHeaders(int index, com.google.rpc.HttpHeader value) {
+ if (headersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHeadersIsMutable();
+ headers_.add(index, value);
+ onChanged();
+ } else {
+ headersBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder addHeaders(com.google.rpc.HttpHeader.Builder builderForValue) {
+ if (headersBuilder_ == null) {
+ ensureHeadersIsMutable();
+ headers_.add(builderForValue.build());
+ onChanged();
+ } else {
+ headersBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder addHeaders(int index, com.google.rpc.HttpHeader.Builder builderForValue) {
+ if (headersBuilder_ == null) {
+ ensureHeadersIsMutable();
+ headers_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ headersBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder addAllHeaders(java.lang.Iterable extends com.google.rpc.HttpHeader> values) {
+ if (headersBuilder_ == null) {
+ ensureHeadersIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_);
+ onChanged();
+ } else {
+ headersBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder clearHeaders() {
+ if (headersBuilder_ == null) {
+ headers_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ headersBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder removeHeaders(int index) {
+ if (headersBuilder_ == null) {
+ ensureHeadersIsMutable();
+ headers_.remove(index);
+ onChanged();
+ } else {
+ headersBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public com.google.rpc.HttpHeader.Builder getHeadersBuilder(int index) {
+ return internalGetHeadersFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public com.google.rpc.HttpHeaderOrBuilder getHeadersOrBuilder(int index) {
+ if (headersBuilder_ == null) {
+ return headers_.get(index);
+ } else {
+ return headersBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public java.util.List extends com.google.rpc.HttpHeaderOrBuilder> getHeadersOrBuilderList() {
+ if (headersBuilder_ != null) {
+ return headersBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(headers_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public com.google.rpc.HttpHeader.Builder addHeadersBuilder() {
+ return internalGetHeadersFieldBuilder()
+ .addBuilder(com.google.rpc.HttpHeader.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public com.google.rpc.HttpHeader.Builder addHeadersBuilder(int index) {
+ return internalGetHeadersFieldBuilder()
+ .addBuilder(index, com.google.rpc.HttpHeader.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public java.util.List+ * The HTTP request body. If the body is not expected, it should be empty. + *+ * + *
bytes body = 4;
+ *
+ * @return The body.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBody() {
+ return body_;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request body. If the body is not expected, it should be empty. + *+ * + *
bytes body = 4;
+ *
+ * @param value The body to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBody(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ body_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP request body. If the body is not expected, it should be empty. + *+ * + *
bytes body = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBody() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ body_ = getDefaultInstance().getBody();
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.rpc.HttpRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.rpc.HttpRequest)
+ private static final com.google.rpc.HttpRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.rpc.HttpRequest();
+ }
+
+ public static com.google.rpc.HttpRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The HTTP request method. + *+ * + *
string method = 1;
+ *
+ * @return The method.
+ */
+ java.lang.String getMethod();
+
+ /**
+ *
+ *
+ * + * The HTTP request method. + *+ * + *
string method = 1;
+ *
+ * @return The bytes for method.
+ */
+ com.google.protobuf.ByteString getMethodBytes();
+
+ /**
+ *
+ *
+ * + * The HTTP request URI. + *+ * + *
string uri = 2;
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+
+ /**
+ *
+ *
+ * + * The HTTP request URI. + *+ * + *
string uri = 2;
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ java.util.List+ * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ com.google.rpc.HttpHeader getHeaders(int index);
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ int getHeadersCount();
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ java.util.List extends com.google.rpc.HttpHeaderOrBuilder> getHeadersOrBuilderList();
+
+ /**
+ *
+ *
+ * + * The HTTP request headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the request. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ com.google.rpc.HttpHeaderOrBuilder getHeadersOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * The HTTP request body. If the body is not expected, it should be empty. + *+ * + *
bytes body = 4;
+ *
+ * @return The body.
+ */
+ com.google.protobuf.ByteString getBody();
+}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HttpResponse.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HttpResponse.java
new file mode 100644
index 000000000000..8a3be7120421
--- /dev/null
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HttpResponse.java
@@ -0,0 +1,1311 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/rpc/http.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.rpc;
+
+/**
+ *
+ *
+ * + * Represents an HTTP response. + *+ * + * Protobuf type {@code google.rpc.HttpResponse} + */ +@com.google.protobuf.Generated +public final class HttpResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.rpc.HttpResponse) + HttpResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HttpResponse"); + } + + // Use HttpResponse.newBuilder() to construct. + private HttpResponse(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private HttpResponse() { + reason_ = ""; + headers_ = java.util.Collections.emptyList(); + body_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.HttpProto.internal_static_google_rpc_HttpResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.HttpProto.internal_static_google_rpc_HttpResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.HttpResponse.class, com.google.rpc.HttpResponse.Builder.class); + } + + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + + /** + * + * + *
+ * The HTTP status code, such as 200 or 404. + *+ * + *
int32 status = 1;
+ *
+ * @return The status.
+ */
+ @java.lang.Override
+ public int getStatus() {
+ return status_;
+ }
+
+ public static final int REASON_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object reason_ = "";
+
+ /**
+ *
+ *
+ * + * The HTTP reason phrase, such as "OK" or "Not Found". + *+ * + *
string reason = 2;
+ *
+ * @return The reason.
+ */
+ @java.lang.Override
+ public java.lang.String getReason() {
+ java.lang.Object ref = reason_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ reason_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP reason phrase, such as "OK" or "Not Found". + *+ * + *
string reason = 2;
+ *
+ * @return The bytes for reason.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getReasonBytes() {
+ java.lang.Object ref = reason_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ reason_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int HEADERS_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ @java.lang.Override
+ public java.util.List+ * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.rpc.HttpHeaderOrBuilder> getHeadersOrBuilderList() {
+ return headers_;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ @java.lang.Override
+ public int getHeadersCount() {
+ return headers_.size();
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ @java.lang.Override
+ public com.google.rpc.HttpHeader getHeaders(int index) {
+ return headers_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ @java.lang.Override
+ public com.google.rpc.HttpHeaderOrBuilder getHeadersOrBuilder(int index) {
+ return headers_.get(index);
+ }
+
+ public static final int BODY_FIELD_NUMBER = 4;
+ private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ * + * The HTTP response body. If the body is not expected, it should be empty. + *+ * + *
bytes body = 4;
+ *
+ * @return The body.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBody() {
+ return body_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (status_ != 0) {
+ output.writeInt32(1, status_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reason_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, reason_);
+ }
+ for (int i = 0; i < headers_.size(); i++) {
+ output.writeMessage(3, headers_.get(i));
+ }
+ if (!body_.isEmpty()) {
+ output.writeBytes(4, body_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (status_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, status_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reason_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, reason_);
+ }
+ for (int i = 0; i < headers_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, headers_.get(i));
+ }
+ if (!body_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, body_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.rpc.HttpResponse)) {
+ return super.equals(obj);
+ }
+ com.google.rpc.HttpResponse other = (com.google.rpc.HttpResponse) obj;
+
+ if (getStatus() != other.getStatus()) return false;
+ if (!getReason().equals(other.getReason())) return false;
+ if (!getHeadersList().equals(other.getHeadersList())) return false;
+ if (!getBody().equals(other.getBody())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getStatus();
+ hash = (37 * hash) + REASON_FIELD_NUMBER;
+ hash = (53 * hash) + getReason().hashCode();
+ if (getHeadersCount() > 0) {
+ hash = (37 * hash) + HEADERS_FIELD_NUMBER;
+ hash = (53 * hash) + getHeadersList().hashCode();
+ }
+ hash = (37 * hash) + BODY_FIELD_NUMBER;
+ hash = (53 * hash) + getBody().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.rpc.HttpResponse parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.rpc.HttpResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.rpc.HttpResponse parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.rpc.HttpResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.rpc.HttpResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.rpc.HttpResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.rpc.HttpResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.rpc.HttpResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.rpc.HttpResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.rpc.HttpResponse parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.rpc.HttpResponse parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.rpc.HttpResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.rpc.HttpResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Represents an HTTP response. + *+ * + * Protobuf type {@code google.rpc.HttpResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The HTTP status code, such as 200 or 404. + *+ * + *
int32 status = 1;
+ *
+ * @return The status.
+ */
+ @java.lang.Override
+ public int getStatus() {
+ return status_;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP status code, such as 200 or 404. + *+ * + *
int32 status = 1;
+ *
+ * @param value The status to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStatus(int value) {
+
+ status_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP status code, such as 200 or 404. + *+ * + *
int32 status = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearStatus() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ status_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object reason_ = "";
+
+ /**
+ *
+ *
+ * + * The HTTP reason phrase, such as "OK" or "Not Found". + *+ * + *
string reason = 2;
+ *
+ * @return The reason.
+ */
+ public java.lang.String getReason() {
+ java.lang.Object ref = reason_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ reason_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP reason phrase, such as "OK" or "Not Found". + *+ * + *
string reason = 2;
+ *
+ * @return The bytes for reason.
+ */
+ public com.google.protobuf.ByteString getReasonBytes() {
+ java.lang.Object ref = reason_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ reason_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP reason phrase, such as "OK" or "Not Found". + *+ * + *
string reason = 2;
+ *
+ * @param value The reason to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReason(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ reason_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP reason phrase, such as "OK" or "Not Found". + *+ * + *
string reason = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearReason() {
+ reason_ = getDefaultInstance().getReason();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP reason phrase, such as "OK" or "Not Found". + *+ * + *
string reason = 2;
+ *
+ * @param value The bytes for reason to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReasonBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ reason_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public java.util.List+ * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public int getHeadersCount() {
+ if (headersBuilder_ == null) {
+ return headers_.size();
+ } else {
+ return headersBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public com.google.rpc.HttpHeader getHeaders(int index) {
+ if (headersBuilder_ == null) {
+ return headers_.get(index);
+ } else {
+ return headersBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder setHeaders(int index, com.google.rpc.HttpHeader value) {
+ if (headersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHeadersIsMutable();
+ headers_.set(index, value);
+ onChanged();
+ } else {
+ headersBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder setHeaders(int index, com.google.rpc.HttpHeader.Builder builderForValue) {
+ if (headersBuilder_ == null) {
+ ensureHeadersIsMutable();
+ headers_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ headersBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder addHeaders(com.google.rpc.HttpHeader value) {
+ if (headersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHeadersIsMutable();
+ headers_.add(value);
+ onChanged();
+ } else {
+ headersBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder addHeaders(int index, com.google.rpc.HttpHeader value) {
+ if (headersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureHeadersIsMutable();
+ headers_.add(index, value);
+ onChanged();
+ } else {
+ headersBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder addHeaders(com.google.rpc.HttpHeader.Builder builderForValue) {
+ if (headersBuilder_ == null) {
+ ensureHeadersIsMutable();
+ headers_.add(builderForValue.build());
+ onChanged();
+ } else {
+ headersBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder addHeaders(int index, com.google.rpc.HttpHeader.Builder builderForValue) {
+ if (headersBuilder_ == null) {
+ ensureHeadersIsMutable();
+ headers_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ headersBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder addAllHeaders(java.lang.Iterable extends com.google.rpc.HttpHeader> values) {
+ if (headersBuilder_ == null) {
+ ensureHeadersIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_);
+ onChanged();
+ } else {
+ headersBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder clearHeaders() {
+ if (headersBuilder_ == null) {
+ headers_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ headersBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public Builder removeHeaders(int index) {
+ if (headersBuilder_ == null) {
+ ensureHeadersIsMutable();
+ headers_.remove(index);
+ onChanged();
+ } else {
+ headersBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public com.google.rpc.HttpHeader.Builder getHeadersBuilder(int index) {
+ return internalGetHeadersFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public com.google.rpc.HttpHeaderOrBuilder getHeadersOrBuilder(int index) {
+ if (headersBuilder_ == null) {
+ return headers_.get(index);
+ } else {
+ return headersBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public java.util.List extends com.google.rpc.HttpHeaderOrBuilder> getHeadersOrBuilderList() {
+ if (headersBuilder_ != null) {
+ return headersBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(headers_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public com.google.rpc.HttpHeader.Builder addHeadersBuilder() {
+ return internalGetHeadersFieldBuilder()
+ .addBuilder(com.google.rpc.HttpHeader.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public com.google.rpc.HttpHeader.Builder addHeadersBuilder(int index) {
+ return internalGetHeadersFieldBuilder()
+ .addBuilder(index, com.google.rpc.HttpHeader.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ public java.util.List+ * The HTTP response body. If the body is not expected, it should be empty. + *+ * + *
bytes body = 4;
+ *
+ * @return The body.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBody() {
+ return body_;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response body. If the body is not expected, it should be empty. + *+ * + *
bytes body = 4;
+ *
+ * @param value The body to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBody(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ body_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The HTTP response body. If the body is not expected, it should be empty. + *+ * + *
bytes body = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBody() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ body_ = getDefaultInstance().getBody();
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.rpc.HttpResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.rpc.HttpResponse)
+ private static final com.google.rpc.HttpResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.rpc.HttpResponse();
+ }
+
+ public static com.google.rpc.HttpResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The HTTP status code, such as 200 or 404. + *+ * + *
int32 status = 1;
+ *
+ * @return The status.
+ */
+ int getStatus();
+
+ /**
+ *
+ *
+ * + * The HTTP reason phrase, such as "OK" or "Not Found". + *+ * + *
string reason = 2;
+ *
+ * @return The reason.
+ */
+ java.lang.String getReason();
+
+ /**
+ *
+ *
+ * + * The HTTP reason phrase, such as "OK" or "Not Found". + *+ * + *
string reason = 2;
+ *
+ * @return The bytes for reason.
+ */
+ com.google.protobuf.ByteString getReasonBytes();
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ java.util.List+ * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ com.google.rpc.HttpHeader getHeaders(int index);
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ int getHeadersCount();
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ java.util.List extends com.google.rpc.HttpHeaderOrBuilder> getHeadersOrBuilderList();
+
+ /**
+ *
+ *
+ * + * The HTTP response headers. The ordering of the headers is significant. + * Multiple headers with the same key may present for the response. + *+ * + *
repeated .google.rpc.HttpHeader headers = 3;
+ */
+ com.google.rpc.HttpHeaderOrBuilder getHeadersOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * The HTTP response body. If the body is not expected, it should be empty. + *+ * + *
bytes body = 4;
+ *
+ * @return The body.
+ */
+ com.google.protobuf.ByteString getBody();
+}
diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/rpc/http.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/rpc/http.proto
new file mode 100644
index 000000000000..9d97b601d9fb
--- /dev/null
+++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/rpc/http.proto
@@ -0,0 +1,64 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.rpc;
+
+option go_package = "google.golang.org/genproto/googleapis/rpc/http;http";
+option java_multiple_files = true;
+option java_outer_classname = "HttpProto";
+option java_package = "com.google.rpc";
+option objc_class_prefix = "RPC";
+
+// Represents an HTTP request.
+message HttpRequest {
+ // The HTTP request method.
+ string method = 1;
+
+ // The HTTP request URI.
+ string uri = 2;
+
+ // The HTTP request headers. The ordering of the headers is significant.
+ // Multiple headers with the same key may present for the request.
+ repeated HttpHeader headers = 3;
+
+ // The HTTP request body. If the body is not expected, it should be empty.
+ bytes body = 4;
+}
+
+// Represents an HTTP response.
+message HttpResponse {
+ // The HTTP status code, such as 200 or 404.
+ int32 status = 1;
+
+ // The HTTP reason phrase, such as "OK" or "Not Found".
+ string reason = 2;
+
+ // The HTTP response headers. The ordering of the headers is significant.
+ // Multiple headers with the same key may present for the response.
+ repeated HttpHeader headers = 3;
+
+ // The HTTP response body. If the body is not expected, it should be empty.
+ bytes body = 4;
+}
+
+// Represents an HTTP header.
+message HttpHeader {
+ // The HTTP header key. It is case insensitive.
+ string key = 1;
+
+ // The HTTP header value.
+ string value = 2;
+}
diff --git a/java-maps-mapmanagement/google-maps-mapmanagement-bom/pom.xml b/java-maps-mapmanagement/google-maps-mapmanagement-bom/pom.xml
index ee5a696206b0..e55d8057938d 100644
--- a/java-maps-mapmanagement/google-maps-mapmanagement-bom/pom.xml
+++ b/java-maps-mapmanagement/google-maps-mapmanagement-bom/pom.xml
@@ -8,7 +8,7 @@