This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class GrpcEchoServiceShouldGeneratePartialStub extends EchoServiceShouldGeneratePartialStub {
+ private static final MethodDescriptor
* Generated advice about this change, used for providing more
* information about how a change will affect the existing service.
@@ -29,27 +12,28 @@
*
* Protobuf type {@code google.api.Advice}
*/
-public final class Advice extends com.google.protobuf.GeneratedMessageV3
- implements
+public final class Advice extends
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.api.Advice)
AdviceOrBuilder {
- private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
// Use Advice.newBuilder() to construct.
private Advice(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
-
private Advice() {
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
return new Advice();
}
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
return com.google.api.ConfigChangeProto.internal_static_google_api_Advice_descriptor;
}
@@ -62,19 +46,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
-
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
- *
- *
*
* Useful description for why this advice was applied and what actions should
* be taken to mitigate any implied risks.
*
*
* string description = 2;
- *
* @return The description.
*/
@java.lang.Override
@@ -83,30 +63,30 @@ public java.lang.String getDescription() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
- *
- *
*
* Useful description for why this advice was applied and what actions should
* be taken to mitigate any implied risks.
*
*
* string description = 2;
- *
* @return The bytes for description.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getDescriptionBytes() {
+ public com.google.protobuf.ByteString
+ getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
description_ = b;
return b;
} else {
@@ -115,7 +95,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
}
private byte memoizedIsInitialized = -1;
-
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -127,7 +106,8 @@ public final boolean isInitialized() {
}
@java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
@@ -151,14 +131,15 @@ public int getSerializedSize() {
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
if (!(obj instanceof com.google.api.Advice)) {
return super.equals(obj);
}
com.google.api.Advice other = (com.google.api.Advice) obj;
- if (!getDescription().equals(other.getDescription())) return false;
+ if (!getDescription()
+ .equals(other.getDescription())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -177,103 +158,99 @@ public int hashCode() {
return hash;
}
- public static com.google.api.Advice parseFrom(java.nio.ByteBuffer data)
+ public static com.google.api.Advice parseFrom(
+ java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.Advice parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
- public static com.google.api.Advice parseFrom(com.google.protobuf.ByteString data)
+ public static com.google.api.Advice parseFrom(
+ com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.Advice parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.api.Advice parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.Advice parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.api.Advice parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.api.Advice parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.Advice parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static com.google.api.Advice parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
-
- public static com.google.api.Advice parseFrom(com.google.protobuf.CodedInputStream input)
+ public static com.google.api.Advice parseFrom(
+ com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.api.Advice parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
+ public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
-
public static Builder newBuilder(com.google.api.Advice prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
-
@java.lang.Override
public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- *
- *
*
* Generated advice about this change, used for providing more
* information about how a change will affect the existing service.
@@ -281,11 +258,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* Protobuf type {@code google.api.Advice}
*/
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* Useful description for why this advice was applied and what actions should
* be taken to mitigate any implied risks.
*
*
* string description = 2;
- *
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
@@ -474,22 +448,21 @@ public java.lang.String getDescription() {
}
}
/**
- *
- *
*
* Useful description for why this advice was applied and what actions should
* be taken to mitigate any implied risks.
*
*
* string description = 2;
- *
* @return The bytes for description.
*/
- public com.google.protobuf.ByteString getDescriptionBytes() {
+ public com.google.protobuf.ByteString
+ getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
description_ = b;
return b;
} else {
@@ -497,37 +470,30 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
}
}
/**
- *
- *
*
* Useful description for why this advice was applied and what actions should
* be taken to mitigate any implied risks.
*
*
* string description = 2;
- *
* @param value The description to set.
* @return This builder for chaining.
*/
- public Builder setDescription(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setDescription(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
description_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
- *
- *
*
* Useful description for why this advice was applied and what actions should
* be taken to mitigate any implied risks.
*
*
* string description = 2;
- *
* @return This builder for chaining.
*/
public Builder clearDescription() {
@@ -537,31 +503,27 @@ public Builder clearDescription() {
return this;
}
/**
- *
- *
*
* Useful description for why this advice was applied and what actions should
* be taken to mitigate any implied risks.
*
*
* string description = 2;
- *
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
- public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setDescriptionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
-
@java.lang.Override
- public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@@ -571,12 +533,12 @@ public final Builder mergeUnknownFields(
return super.mergeUnknownFields(unknownFields);
}
+
// @@protoc_insertion_point(builder_scope:google.api.Advice)
}
// @@protoc_insertion_point(class_scope:google.api.Advice)
private static final com.google.api.Advice DEFAULT_INSTANCE;
-
static {
DEFAULT_INSTANCE = new com.google.api.Advice();
}
@@ -585,27 +547,27 @@ public static com.google.api.Advice getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
* Useful description for why this advice was applied and what actions should
* be taken to mitigate any implied risks.
*
*
* string description = 2;
- *
* @return The description.
*/
java.lang.String getDescription();
/**
- *
- *
*
* Useful description for why this advice was applied and what actions should
* be taken to mitigate any implied risks.
*
*
* string description = 2;
- *
* @return The bytes for description.
*/
- com.google.protobuf.ByteString getDescriptionBytes();
+ com.google.protobuf.ByteString
+ getDescriptionBytes();
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java
index f57265d31e..554f2706cb 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * 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!
// source: google/api/annotations.proto
@@ -21,55 +6,55 @@
public final class AnnotationsProto {
private AnnotationsProto() {}
-
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
registry.add(com.google.api.AnnotationsProto.http);
}
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
}
-
public static final int HTTP_FIELD_NUMBER = 72295728;
/**
- *
- *
*
* See `HttpRule`.
*
*
* extend .google.protobuf.MethodOptions { ... }
*/
- public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.google.protobuf.DescriptorProtos.MethodOptions, com.google.api.HttpRule>
- http =
- com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension(
- com.google.api.HttpRule.class, com.google.api.HttpRule.getDefaultInstance());
+ public static final
+ com.google.protobuf.GeneratedMessage.GeneratedExtension<
+ com.google.protobuf.DescriptorProtos.MethodOptions,
+ com.google.api.HttpRule> http = com.google.protobuf.GeneratedMessage
+ .newFileScopedGeneratedExtension(
+ com.google.api.HttpRule.class,
+ com.google.api.HttpRule.getDefaultInstance());
- public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
return descriptor;
}
-
- private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
static {
java.lang.String[] descriptorData = {
- "\n\034google/api/annotations.proto\022\ngoogle.a"
- + "pi\032\025google/api/http.proto\032 google/protob"
- + "uf/descriptor.proto:E\n\004http\022\036.google.pro"
- + "tobuf.MethodOptions\030\260\312\274\" \001(\0132\024.google.ap"
- + "i.HttpRuleBn\n\016com.google.apiB\020Annotation"
- + "sProtoP\001ZAgoogle.golang.org/genproto/goo"
- + "gleapis/api/annotations;annotations\242\002\004GA"
- + "PIb\006proto3"
+ "\n\034google/api/annotations.proto\022\ngoogle.a" +
+ "pi\032\025google/api/http.proto\032 google/protob" +
+ "uf/descriptor.proto:E\n\004http\022\036.google.pro" +
+ "tobuf.MethodOptions\030\260\312\274\" \001(\0132\024.google.ap" +
+ "i.HttpRuleBn\n\016com.google.apiB\020Annotation" +
+ "sProtoP\001ZAgoogle.golang.org/genproto/goo" +
+ "gleapis/api/annotations;annotations\242\002\004GA" +
+ "PIb\006proto3"
};
- descriptor =
- com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
- descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- com.google.api.HttpProto.getDescriptor(),
- com.google.protobuf.DescriptorProtos.getDescriptor(),
- });
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.HttpProto.getDescriptor(),
+ com.google.protobuf.DescriptorProtos.getDescriptor(),
+ });
http.internalInit(descriptor.getExtensions().get(0));
com.google.api.HttpProto.getDescriptor();
com.google.protobuf.DescriptorProtos.getDescriptor();
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java
index ace9e55c13..fe6cf2a535 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * 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!
// source: google/api/auth.proto
@@ -21,115 +6,115 @@
public final class AuthProto {
private AuthProto() {}
-
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
-
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ public static 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_api_Authentication_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_api_Authentication_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_Authentication_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_api_AuthenticationRule_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_api_AuthenticationRule_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_AuthenticationRule_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_api_JwtLocation_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_api_JwtLocation_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_JwtLocation_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_api_AuthProvider_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_api_AuthProvider_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_AuthProvider_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_api_OAuthRequirements_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_api_OAuthRequirements_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_OAuthRequirements_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_api_AuthRequirement_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_api_AuthRequirement_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_AuthRequirement_fieldAccessorTable;
- public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
return descriptor;
}
-
- private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
static {
java.lang.String[] descriptorData = {
- "\n\025google/api/auth.proto\022\ngoogle.api\"l\n\016A"
- + "uthentication\022-\n\005rules\030\003 \003(\0132\036.google.ap"
- + "i.AuthenticationRule\022+\n\tproviders\030\004 \003(\0132"
- + "\030.google.api.AuthProvider\"\251\001\n\022Authentica"
- + "tionRule\022\020\n\010selector\030\001 \001(\t\022,\n\005oauth\030\002 \001("
- + "\0132\035.google.api.OAuthRequirements\022 \n\030allo"
- + "w_without_credential\030\005 \001(\010\0221\n\014requiremen"
- + "ts\030\007 \003(\0132\033.google.api.AuthRequirement\"^\n"
- + "\013JwtLocation\022\020\n\006header\030\001 \001(\tH\000\022\017\n\005query\030"
- + "\002 \001(\tH\000\022\020\n\006cookie\030\004 \001(\tH\000\022\024\n\014value_prefi"
- + "x\030\003 \001(\tB\004\n\002in\"\232\001\n\014AuthProvider\022\n\n\002id\030\001 \001"
- + "(\t\022\016\n\006issuer\030\002 \001(\t\022\020\n\010jwks_uri\030\003 \001(\t\022\021\n\t"
- + "audiences\030\004 \001(\t\022\031\n\021authorization_url\030\005 \001"
- + "(\t\022.\n\rjwt_locations\030\006 \003(\0132\027.google.api.J"
- + "wtLocation\"-\n\021OAuthRequirements\022\030\n\020canon"
- + "ical_scopes\030\001 \001(\t\"9\n\017AuthRequirement\022\023\n\013"
- + "provider_id\030\001 \001(\t\022\021\n\taudiences\030\002 \001(\tBk\n\016"
- + "com.google.apiB\tAuthProtoP\001ZEgoogle.gola"
- + "ng.org/genproto/googleapis/api/serviceco"
- + "nfig;serviceconfig\242\002\004GAPIb\006proto3"
+ "\n\025google/api/auth.proto\022\ngoogle.api\"l\n\016A" +
+ "uthentication\022-\n\005rules\030\003 \003(\0132\036.google.ap" +
+ "i.AuthenticationRule\022+\n\tproviders\030\004 \003(\0132" +
+ "\030.google.api.AuthProvider\"\251\001\n\022Authentica" +
+ "tionRule\022\020\n\010selector\030\001 \001(\t\022,\n\005oauth\030\002 \001(" +
+ "\0132\035.google.api.OAuthRequirements\022 \n\030allo" +
+ "w_without_credential\030\005 \001(\010\0221\n\014requiremen" +
+ "ts\030\007 \003(\0132\033.google.api.AuthRequirement\"^\n" +
+ "\013JwtLocation\022\020\n\006header\030\001 \001(\tH\000\022\017\n\005query\030" +
+ "\002 \001(\tH\000\022\020\n\006cookie\030\004 \001(\tH\000\022\024\n\014value_prefi" +
+ "x\030\003 \001(\tB\004\n\002in\"\232\001\n\014AuthProvider\022\n\n\002id\030\001 \001" +
+ "(\t\022\016\n\006issuer\030\002 \001(\t\022\020\n\010jwks_uri\030\003 \001(\t\022\021\n\t" +
+ "audiences\030\004 \001(\t\022\031\n\021authorization_url\030\005 \001" +
+ "(\t\022.\n\rjwt_locations\030\006 \003(\0132\027.google.api.J" +
+ "wtLocation\"-\n\021OAuthRequirements\022\030\n\020canon" +
+ "ical_scopes\030\001 \001(\t\"9\n\017AuthRequirement\022\023\n\013" +
+ "provider_id\030\001 \001(\t\022\021\n\taudiences\030\002 \001(\tBk\n\016" +
+ "com.google.apiB\tAuthProtoP\001ZEgoogle.gola" +
+ "ng.org/genproto/googleapis/api/serviceco" +
+ "nfig;serviceconfig\242\002\004GAPIb\006proto3"
};
- descriptor =
- com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
- descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
- internal_static_google_api_Authentication_descriptor = getDescriptor().getMessageTypes().get(0);
- internal_static_google_api_Authentication_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_api_Authentication_descriptor,
- new java.lang.String[] {
- "Rules", "Providers",
- });
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_google_api_Authentication_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_api_Authentication_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_api_Authentication_descriptor,
+ new java.lang.String[] { "Rules", "Providers", });
internal_static_google_api_AuthenticationRule_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_google_api_AuthenticationRule_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_api_AuthenticationRule_descriptor,
- new java.lang.String[] {
- "Selector", "Oauth", "AllowWithoutCredential", "Requirements",
- });
- internal_static_google_api_JwtLocation_descriptor = getDescriptor().getMessageTypes().get(2);
- internal_static_google_api_JwtLocation_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_api_JwtLocation_descriptor,
- new java.lang.String[] {
- "Header", "Query", "Cookie", "ValuePrefix", "In",
- });
- internal_static_google_api_AuthProvider_descriptor = getDescriptor().getMessageTypes().get(3);
- internal_static_google_api_AuthProvider_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_api_AuthProvider_descriptor,
- new java.lang.String[] {
- "Id", "Issuer", "JwksUri", "Audiences", "AuthorizationUrl", "JwtLocations",
- });
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_api_AuthenticationRule_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_api_AuthenticationRule_descriptor,
+ new java.lang.String[] { "Selector", "Oauth", "AllowWithoutCredential", "Requirements", });
+ internal_static_google_api_JwtLocation_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_api_JwtLocation_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_api_JwtLocation_descriptor,
+ new java.lang.String[] { "Header", "Query", "Cookie", "ValuePrefix", "In", });
+ internal_static_google_api_AuthProvider_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_api_AuthProvider_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_api_AuthProvider_descriptor,
+ new java.lang.String[] { "Id", "Issuer", "JwksUri", "Audiences", "AuthorizationUrl", "JwtLocations", });
internal_static_google_api_OAuthRequirements_descriptor =
- getDescriptor().getMessageTypes().get(4);
- internal_static_google_api_OAuthRequirements_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_api_OAuthRequirements_descriptor,
- new java.lang.String[] {
- "CanonicalScopes",
- });
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_google_api_OAuthRequirements_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_api_OAuthRequirements_descriptor,
+ new java.lang.String[] { "CanonicalScopes", });
internal_static_google_api_AuthRequirement_descriptor =
- getDescriptor().getMessageTypes().get(5);
- internal_static_google_api_AuthRequirement_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_api_AuthRequirement_descriptor,
- new java.lang.String[] {
- "ProviderId", "Audiences",
- });
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_google_api_AuthRequirement_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_api_AuthRequirement_descriptor,
+ new java.lang.String[] { "ProviderId", "Audiences", });
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java
index 73e2a86cc2..3ee585db06 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * 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!
// source: google/api/auth.proto
@@ -20,8 +5,6 @@
package com.google.api;
/**
- *
- *
*
* Configuration for an authentication provider, including support for
* [JSON Web Token
@@ -30,16 +13,15 @@
*
* Protobuf type {@code google.api.AuthProvider}
*/
-public final class AuthProvider extends com.google.protobuf.GeneratedMessageV3
- implements
+public final class AuthProvider extends
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.api.AuthProvider)
AuthProviderOrBuilder {
- private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
// Use AuthProvider.newBuilder() to construct.
private AuthProvider(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
-
private AuthProvider() {
id_ = "";
issuer_ = "";
@@ -51,11 +33,13 @@ private AuthProvider() {
@java.lang.Override
@SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
return new AuthProvider();
}
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
return com.google.api.AuthProto.internal_static_google_api_AuthProvider_descriptor;
}
@@ -68,12 +52,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int ID_FIELD_NUMBER = 1;
-
@SuppressWarnings("serial")
private volatile java.lang.Object id_ = "";
/**
- *
- *
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -82,7 +63,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* string id = 1;
- *
* @return The id.
*/
@java.lang.Override
@@ -91,15 +71,14 @@ public java.lang.String getId() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
- *
- *
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -108,15 +87,16 @@ public java.lang.String getId() {
*
*
* string id = 1;
- *
* @return The bytes for id.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getIdBytes() {
+ public com.google.protobuf.ByteString
+ getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
id_ = b;
return b;
} else {
@@ -125,12 +105,9 @@ public com.google.protobuf.ByteString getIdBytes() {
}
public static final int ISSUER_FIELD_NUMBER = 2;
-
@SuppressWarnings("serial")
private volatile java.lang.Object issuer_ = "";
/**
- *
- *
*
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
@@ -141,7 +118,6 @@ public com.google.protobuf.ByteString getIdBytes() {
*
*
* string issuer = 2;
- *
* @return The issuer.
*/
@java.lang.Override
@@ -150,15 +126,14 @@ public java.lang.String getIssuer() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
issuer_ = s;
return s;
}
}
/**
- *
- *
*
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
@@ -169,15 +144,16 @@ public java.lang.String getIssuer() {
*
*
* string issuer = 2;
- *
* @return The bytes for issuer.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getIssuerBytes() {
+ public com.google.protobuf.ByteString
+ getIssuerBytes() {
java.lang.Object ref = issuer_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
issuer_ = b;
return b;
} else {
@@ -186,12 +162,9 @@ public com.google.protobuf.ByteString getIssuerBytes() {
}
public static final int JWKS_URI_FIELD_NUMBER = 3;
-
@SuppressWarnings("serial")
private volatile java.lang.Object jwksUri_ = "";
/**
- *
- *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -208,7 +181,6 @@ public com.google.protobuf.ByteString getIssuerBytes() {
*
*
* string jwks_uri = 3;
- *
* @return The jwksUri.
*/
@java.lang.Override
@@ -217,15 +189,14 @@ public java.lang.String getJwksUri() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
jwksUri_ = s;
return s;
}
}
/**
- *
- *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -242,15 +213,16 @@ public java.lang.String getJwksUri() {
*
*
* string jwks_uri = 3;
- *
* @return The bytes for jwksUri.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getJwksUriBytes() {
+ public com.google.protobuf.ByteString
+ getJwksUriBytes() {
java.lang.Object ref = jwksUri_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
jwksUri_ = b;
return b;
} else {
@@ -259,12 +231,9 @@ public com.google.protobuf.ByteString getJwksUriBytes() {
}
public static final int AUDIENCES_FIELD_NUMBER = 4;
-
@SuppressWarnings("serial")
private volatile java.lang.Object audiences_ = "";
/**
- *
- *
*
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -286,7 +255,6 @@ public com.google.protobuf.ByteString getJwksUriBytes() {
*
*
* string audiences = 4;
- *
* @return The audiences.
*/
@java.lang.Override
@@ -295,15 +263,14 @@ public java.lang.String getAudiences() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
audiences_ = s;
return s;
}
}
/**
- *
- *
*
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -325,15 +292,16 @@ public java.lang.String getAudiences() {
*
*
* string audiences = 4;
- *
* @return The bytes for audiences.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getAudiencesBytes() {
+ public com.google.protobuf.ByteString
+ getAudiencesBytes() {
java.lang.Object ref = audiences_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
audiences_ = b;
return b;
} else {
@@ -342,19 +310,15 @@ public com.google.protobuf.ByteString getAudiencesBytes() {
}
public static final int AUTHORIZATION_URL_FIELD_NUMBER = 5;
-
@SuppressWarnings("serial")
private volatile java.lang.Object authorizationUrl_ = "";
/**
- *
- *
*
* Redirect URL if JWT token is required but not present or is expired.
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
*
*
* string authorization_url = 5;
- *
* @return The authorizationUrl.
*/
@java.lang.Override
@@ -363,30 +327,30 @@ public java.lang.String getAuthorizationUrl() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
authorizationUrl_ = s;
return s;
}
}
/**
- *
- *
*
* Redirect URL if JWT token is required but not present or is expired.
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
*
*
* string authorization_url = 5;
- *
* @return The bytes for authorizationUrl.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getAuthorizationUrlBytes() {
+ public com.google.protobuf.ByteString
+ getAuthorizationUrlBytes() {
java.lang.Object ref = authorizationUrl_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
authorizationUrl_ = b;
return b;
} else {
@@ -395,12 +359,9 @@ public com.google.protobuf.ByteString getAuthorizationUrlBytes() {
}
public static final int JWT_LOCATIONS_FIELD_NUMBER = 6;
-
@SuppressWarnings("serial")
private java.util.List
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -429,8 +390,6 @@ public java.util.List
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -455,13 +414,11 @@ public java.util.List
repeated .google.api.JwtLocation jwt_locations = 6;
*/
@java.lang.Override
- public java.util.List extends com.google.api.JwtLocationOrBuilder>
+ public java.util.List extends com.google.api.JwtLocationOrBuilder>
getJwtLocationsOrBuilderList() {
return jwtLocations_;
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -490,8 +447,6 @@ public int getJwtLocationsCount() {
return jwtLocations_.size();
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -520,8 +475,6 @@ public com.google.api.JwtLocation getJwtLocations(int index) {
return jwtLocations_.get(index);
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -546,12 +499,12 @@ public com.google.api.JwtLocation getJwtLocations(int index) {
*
repeated .google.api.JwtLocation jwt_locations = 6;
*/
@java.lang.Override
- public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index) {
+ public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(
+ int index) {
return jwtLocations_.get(index);
}
private byte memoizedIsInitialized = -1;
-
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -563,7 +516,8 @@ public final boolean isInitialized() {
}
@java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
@@ -607,7 +561,8 @@ public int getSerializedSize() {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, authorizationUrl_);
}
for (int i = 0; i < jwtLocations_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, jwtLocations_.get(i));
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, jwtLocations_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -617,19 +572,25 @@ public int getSerializedSize() {
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
if (!(obj instanceof com.google.api.AuthProvider)) {
return super.equals(obj);
}
com.google.api.AuthProvider other = (com.google.api.AuthProvider) obj;
- if (!getId().equals(other.getId())) return false;
- if (!getIssuer().equals(other.getIssuer())) return false;
- if (!getJwksUri().equals(other.getJwksUri())) return false;
- if (!getAudiences().equals(other.getAudiences())) return false;
- if (!getAuthorizationUrl().equals(other.getAuthorizationUrl())) return false;
- if (!getJwtLocationsList().equals(other.getJwtLocationsList())) return false;
+ if (!getId()
+ .equals(other.getId())) return false;
+ if (!getIssuer()
+ .equals(other.getIssuer())) return false;
+ if (!getJwksUri()
+ .equals(other.getJwksUri())) return false;
+ if (!getAudiences()
+ .equals(other.getAudiences())) return false;
+ if (!getAuthorizationUrl()
+ .equals(other.getAuthorizationUrl())) return false;
+ if (!getJwtLocationsList()
+ .equals(other.getJwtLocationsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -660,103 +621,99 @@ public int hashCode() {
return hash;
}
- public static com.google.api.AuthProvider parseFrom(java.nio.ByteBuffer data)
+ public static com.google.api.AuthProvider parseFrom(
+ java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.AuthProvider parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
- public static com.google.api.AuthProvider parseFrom(com.google.protobuf.ByteString data)
+ public static com.google.api.AuthProvider parseFrom(
+ com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.AuthProvider parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.api.AuthProvider parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.AuthProvider parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.api.AuthProvider parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.api.AuthProvider parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.AuthProvider parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static com.google.api.AuthProvider parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
-
- public static com.google.api.AuthProvider parseFrom(com.google.protobuf.CodedInputStream input)
+ public static com.google.api.AuthProvider parseFrom(
+ com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.api.AuthProvider parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
+ public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
-
public static Builder newBuilder(com.google.api.AuthProvider prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
-
@java.lang.Override
public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- *
- *
*
* Configuration for an authentication provider, including support for
* [JSON Web Token
@@ -765,11 +722,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* Protobuf type {@code google.api.AuthProvider}
*/
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -1064,13 +1014,13 @@ public Builder mergeFrom(
*
*
* string id = 1;
- *
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
@@ -1079,8 +1029,6 @@ public java.lang.String getId() {
}
}
/**
- *
- *
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -1089,14 +1037,15 @@ public java.lang.String getId() {
*
*
* string id = 1;
- *
* @return The bytes for id.
*/
- public com.google.protobuf.ByteString getIdBytes() {
+ public com.google.protobuf.ByteString
+ getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
id_ = b;
return b;
} else {
@@ -1104,8 +1053,6 @@ public com.google.protobuf.ByteString getIdBytes() {
}
}
/**
- *
- *
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -1114,22 +1061,18 @@ public com.google.protobuf.ByteString getIdBytes() {
*
*
* string id = 1;
- *
* @param value The id to set.
* @return This builder for chaining.
*/
- public Builder setId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
- *
- *
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -1138,7 +1081,6 @@ public Builder setId(java.lang.String value) {
*
*
* string id = 1;
- *
* @return This builder for chaining.
*/
public Builder clearId() {
@@ -1148,8 +1090,6 @@ public Builder clearId() {
return this;
}
/**
- *
- *
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -1158,14 +1098,12 @@ public Builder clearId() {
*
*
* string id = 1;
- *
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
- public Builder setIdBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
id_ = value;
bitField0_ |= 0x00000001;
@@ -1175,8 +1113,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
private java.lang.Object issuer_ = "";
/**
- *
- *
*
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
@@ -1187,13 +1123,13 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
*
*
* string issuer = 2;
- *
* @return The issuer.
*/
public java.lang.String getIssuer() {
java.lang.Object ref = issuer_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
issuer_ = s;
return s;
@@ -1202,8 +1138,6 @@ public java.lang.String getIssuer() {
}
}
/**
- *
- *
*
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
@@ -1214,14 +1148,15 @@ public java.lang.String getIssuer() {
*
*
* string issuer = 2;
- *
* @return The bytes for issuer.
*/
- public com.google.protobuf.ByteString getIssuerBytes() {
+ public com.google.protobuf.ByteString
+ getIssuerBytes() {
java.lang.Object ref = issuer_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
issuer_ = b;
return b;
} else {
@@ -1229,8 +1164,6 @@ public com.google.protobuf.ByteString getIssuerBytes() {
}
}
/**
- *
- *
*
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
@@ -1241,22 +1174,18 @@ public com.google.protobuf.ByteString getIssuerBytes() {
*
*
* string issuer = 2;
- *
* @param value The issuer to set.
* @return This builder for chaining.
*/
- public Builder setIssuer(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setIssuer(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
issuer_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
- *
- *
*
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
@@ -1267,7 +1196,6 @@ public Builder setIssuer(java.lang.String value) {
*
*
* string issuer = 2;
- *
* @return This builder for chaining.
*/
public Builder clearIssuer() {
@@ -1277,8 +1205,6 @@ public Builder clearIssuer() {
return this;
}
/**
- *
- *
*
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
@@ -1289,14 +1215,12 @@ public Builder clearIssuer() {
*
*
* string issuer = 2;
- *
* @param value The bytes for issuer to set.
* @return This builder for chaining.
*/
- public Builder setIssuerBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setIssuerBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
issuer_ = value;
bitField0_ |= 0x00000002;
@@ -1306,8 +1230,6 @@ public Builder setIssuerBytes(com.google.protobuf.ByteString value) {
private java.lang.Object jwksUri_ = "";
/**
- *
- *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -1324,13 +1246,13 @@ public Builder setIssuerBytes(com.google.protobuf.ByteString value) {
*
*
* string jwks_uri = 3;
- *
* @return The jwksUri.
*/
public java.lang.String getJwksUri() {
java.lang.Object ref = jwksUri_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
jwksUri_ = s;
return s;
@@ -1339,8 +1261,6 @@ public java.lang.String getJwksUri() {
}
}
/**
- *
- *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -1357,14 +1277,15 @@ public java.lang.String getJwksUri() {
*
*
* string jwks_uri = 3;
- *
* @return The bytes for jwksUri.
*/
- public com.google.protobuf.ByteString getJwksUriBytes() {
+ public com.google.protobuf.ByteString
+ getJwksUriBytes() {
java.lang.Object ref = jwksUri_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
jwksUri_ = b;
return b;
} else {
@@ -1372,8 +1293,6 @@ public com.google.protobuf.ByteString getJwksUriBytes() {
}
}
/**
- *
- *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -1390,22 +1309,18 @@ public com.google.protobuf.ByteString getJwksUriBytes() {
*
*
* string jwks_uri = 3;
- *
* @param value The jwksUri to set.
* @return This builder for chaining.
*/
- public Builder setJwksUri(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setJwksUri(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
jwksUri_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
- *
- *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -1422,7 +1337,6 @@ public Builder setJwksUri(java.lang.String value) {
*
*
* string jwks_uri = 3;
- *
* @return This builder for chaining.
*/
public Builder clearJwksUri() {
@@ -1432,8 +1346,6 @@ public Builder clearJwksUri() {
return this;
}
/**
- *
- *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -1450,14 +1362,12 @@ public Builder clearJwksUri() {
*
*
* string jwks_uri = 3;
- *
* @param value The bytes for jwksUri to set.
* @return This builder for chaining.
*/
- public Builder setJwksUriBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setJwksUriBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
jwksUri_ = value;
bitField0_ |= 0x00000004;
@@ -1467,8 +1377,6 @@ public Builder setJwksUriBytes(com.google.protobuf.ByteString value) {
private java.lang.Object audiences_ = "";
/**
- *
- *
*
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -1490,13 +1398,13 @@ public Builder setJwksUriBytes(com.google.protobuf.ByteString value) {
*
*
* string audiences = 4;
- *
* @return The audiences.
*/
public java.lang.String getAudiences() {
java.lang.Object ref = audiences_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
audiences_ = s;
return s;
@@ -1505,8 +1413,6 @@ public java.lang.String getAudiences() {
}
}
/**
- *
- *
*
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -1528,14 +1434,15 @@ public java.lang.String getAudiences() {
*
*
* string audiences = 4;
- *
* @return The bytes for audiences.
*/
- public com.google.protobuf.ByteString getAudiencesBytes() {
+ public com.google.protobuf.ByteString
+ getAudiencesBytes() {
java.lang.Object ref = audiences_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
audiences_ = b;
return b;
} else {
@@ -1543,8 +1450,6 @@ public com.google.protobuf.ByteString getAudiencesBytes() {
}
}
/**
- *
- *
*
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -1566,22 +1471,18 @@ public com.google.protobuf.ByteString getAudiencesBytes() {
*
*
* string audiences = 4;
- *
* @param value The audiences to set.
* @return This builder for chaining.
*/
- public Builder setAudiences(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setAudiences(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
audiences_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
- *
- *
*
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -1603,7 +1504,6 @@ public Builder setAudiences(java.lang.String value) {
*
*
* string audiences = 4;
- *
* @return This builder for chaining.
*/
public Builder clearAudiences() {
@@ -1613,8 +1513,6 @@ public Builder clearAudiences() {
return this;
}
/**
- *
- *
*
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -1636,14 +1534,12 @@ public Builder clearAudiences() {
*
*
* string audiences = 4;
- *
* @param value The bytes for audiences to set.
* @return This builder for chaining.
*/
- public Builder setAudiencesBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setAudiencesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
audiences_ = value;
bitField0_ |= 0x00000008;
@@ -1653,21 +1549,19 @@ public Builder setAudiencesBytes(com.google.protobuf.ByteString value) {
private java.lang.Object authorizationUrl_ = "";
/**
- *
- *
*
* Redirect URL if JWT token is required but not present or is expired.
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
*
*
* string authorization_url = 5;
- *
* @return The authorizationUrl.
*/
public java.lang.String getAuthorizationUrl() {
java.lang.Object ref = authorizationUrl_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
authorizationUrl_ = s;
return s;
@@ -1676,22 +1570,21 @@ public java.lang.String getAuthorizationUrl() {
}
}
/**
- *
- *
*
* Redirect URL if JWT token is required but not present or is expired.
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
*
*
* string authorization_url = 5;
- *
* @return The bytes for authorizationUrl.
*/
- public com.google.protobuf.ByteString getAuthorizationUrlBytes() {
+ public com.google.protobuf.ByteString
+ getAuthorizationUrlBytes() {
java.lang.Object ref = authorizationUrl_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
authorizationUrl_ = b;
return b;
} else {
@@ -1699,37 +1592,30 @@ public com.google.protobuf.ByteString getAuthorizationUrlBytes() {
}
}
/**
- *
- *
*
* Redirect URL if JWT token is required but not present or is expired.
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
*
*
* string authorization_url = 5;
- *
* @param value The authorizationUrl to set.
* @return This builder for chaining.
*/
- public Builder setAuthorizationUrl(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setAuthorizationUrl(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
authorizationUrl_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
- *
- *
*
* Redirect URL if JWT token is required but not present or is expired.
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
*
*
* string authorization_url = 5;
- *
* @return This builder for chaining.
*/
public Builder clearAuthorizationUrl() {
@@ -1739,22 +1625,18 @@ public Builder clearAuthorizationUrl() {
return this;
}
/**
- *
- *
*
* Redirect URL if JWT token is required but not present or is expired.
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
*
*
* string authorization_url = 5;
- *
* @param value The bytes for authorizationUrl to set.
* @return This builder for chaining.
*/
- public Builder setAuthorizationUrlBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setAuthorizationUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
authorizationUrl_ = value;
bitField0_ |= 0x00000010;
@@ -1763,24 +1645,18 @@ public Builder setAuthorizationUrlBytes(com.google.protobuf.ByteString value) {
}
private java.util.List
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -1812,8 +1688,6 @@ public java.util.List
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -1845,8 +1719,6 @@ public int getJwtLocationsCount() {
}
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -1878,8 +1750,6 @@ public com.google.api.JwtLocation getJwtLocations(int index) {
}
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -1903,7 +1773,8 @@ public com.google.api.JwtLocation getJwtLocations(int index) {
*
*
repeated .google.api.JwtLocation jwt_locations = 6;
*/
- public Builder setJwtLocations(int index, com.google.api.JwtLocation value) {
+ public Builder setJwtLocations(
+ int index, com.google.api.JwtLocation value) {
if (jwtLocationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1917,8 +1788,6 @@ public Builder setJwtLocations(int index, com.google.api.JwtLocation value) {
return this;
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -1942,7 +1811,8 @@ public Builder setJwtLocations(int index, com.google.api.JwtLocation value) {
*
*
repeated .google.api.JwtLocation jwt_locations = 6;
*/
- public Builder setJwtLocations(int index, com.google.api.JwtLocation.Builder builderForValue) {
+ public Builder setJwtLocations(
+ int index, com.google.api.JwtLocation.Builder builderForValue) {
if (jwtLocationsBuilder_ == null) {
ensureJwtLocationsIsMutable();
jwtLocations_.set(index, builderForValue.build());
@@ -1953,8 +1823,6 @@ public Builder setJwtLocations(int index, com.google.api.JwtLocation.Builder bui
return this;
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -1992,8 +1860,6 @@ public Builder addJwtLocations(com.google.api.JwtLocation value) {
return this;
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -2017,7 +1883,8 @@ public Builder addJwtLocations(com.google.api.JwtLocation value) {
*
*
repeated .google.api.JwtLocation jwt_locations = 6;
*/
- public Builder addJwtLocations(int index, com.google.api.JwtLocation value) {
+ public Builder addJwtLocations(
+ int index, com.google.api.JwtLocation value) {
if (jwtLocationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2031,8 +1898,6 @@ public Builder addJwtLocations(int index, com.google.api.JwtLocation value) {
return this;
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -2056,7 +1921,8 @@ public Builder addJwtLocations(int index, com.google.api.JwtLocation value) {
*
*
repeated .google.api.JwtLocation jwt_locations = 6;
*/
- public Builder addJwtLocations(com.google.api.JwtLocation.Builder builderForValue) {
+ public Builder addJwtLocations(
+ com.google.api.JwtLocation.Builder builderForValue) {
if (jwtLocationsBuilder_ == null) {
ensureJwtLocationsIsMutable();
jwtLocations_.add(builderForValue.build());
@@ -2067,8 +1933,6 @@ public Builder addJwtLocations(com.google.api.JwtLocation.Builder builderForValu
return this;
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -2092,7 +1956,8 @@ public Builder addJwtLocations(com.google.api.JwtLocation.Builder builderForValu
*
*
repeated .google.api.JwtLocation jwt_locations = 6;
*/
- public Builder addJwtLocations(int index, com.google.api.JwtLocation.Builder builderForValue) {
+ public Builder addJwtLocations(
+ int index, com.google.api.JwtLocation.Builder builderForValue) {
if (jwtLocationsBuilder_ == null) {
ensureJwtLocationsIsMutable();
jwtLocations_.add(index, builderForValue.build());
@@ -2103,8 +1968,6 @@ public Builder addJwtLocations(int index, com.google.api.JwtLocation.Builder bui
return this;
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -2132,7 +1995,8 @@ public Builder addAllJwtLocations(
java.lang.Iterable extends com.google.api.JwtLocation> values) {
if (jwtLocationsBuilder_ == null) {
ensureJwtLocationsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jwtLocations_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, jwtLocations_);
onChanged();
} else {
jwtLocationsBuilder_.addAllMessages(values);
@@ -2140,8 +2004,6 @@ public Builder addAllJwtLocations(
return this;
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -2176,8 +2038,6 @@ public Builder clearJwtLocations() {
return this;
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -2212,8 +2072,6 @@ public Builder removeJwtLocations(int index) {
return this;
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -2237,12 +2095,11 @@ public Builder removeJwtLocations(int index) {
*
*
repeated .google.api.JwtLocation jwt_locations = 6;
*/
- public com.google.api.JwtLocation.Builder getJwtLocationsBuilder(int index) {
+ public com.google.api.JwtLocation.Builder getJwtLocationsBuilder(
+ int index) {
return getJwtLocationsFieldBuilder().getBuilder(index);
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -2266,16 +2123,14 @@ public com.google.api.JwtLocation.Builder getJwtLocationsBuilder(int index) {
*
*
repeated .google.api.JwtLocation jwt_locations = 6;
*/
- public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index) {
+ public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(
+ int index) {
if (jwtLocationsBuilder_ == null) {
- return jwtLocations_.get(index);
- } else {
+ return jwtLocations_.get(index); } else {
return jwtLocationsBuilder_.getMessageOrBuilder(index);
}
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -2299,8 +2154,8 @@ public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index) {
*
*
repeated .google.api.JwtLocation jwt_locations = 6;
*/
- public java.util.List extends com.google.api.JwtLocationOrBuilder>
- getJwtLocationsOrBuilderList() {
+ public java.util.List extends com.google.api.JwtLocationOrBuilder>
+ getJwtLocationsOrBuilderList() {
if (jwtLocationsBuilder_ != null) {
return jwtLocationsBuilder_.getMessageOrBuilderList();
} else {
@@ -2308,8 +2163,6 @@ public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index) {
}
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -2334,12 +2187,10 @@ public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index) {
*
repeated .google.api.JwtLocation jwt_locations = 6;
*/
public com.google.api.JwtLocation.Builder addJwtLocationsBuilder() {
- return getJwtLocationsFieldBuilder()
- .addBuilder(com.google.api.JwtLocation.getDefaultInstance());
+ return getJwtLocationsFieldBuilder().addBuilder(
+ com.google.api.JwtLocation.getDefaultInstance());
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -2363,13 +2214,12 @@ public com.google.api.JwtLocation.Builder addJwtLocationsBuilder() {
*
*
repeated .google.api.JwtLocation jwt_locations = 6;
*/
- public com.google.api.JwtLocation.Builder addJwtLocationsBuilder(int index) {
- return getJwtLocationsFieldBuilder()
- .addBuilder(index, com.google.api.JwtLocation.getDefaultInstance());
+ public com.google.api.JwtLocation.Builder addJwtLocationsBuilder(
+ int index) {
+ return getJwtLocationsFieldBuilder().addBuilder(
+ index, com.google.api.JwtLocation.getDefaultInstance());
}
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -2393,29 +2243,27 @@ public com.google.api.JwtLocation.Builder addJwtLocationsBuilder(int index) {
*
*
repeated .google.api.JwtLocation jwt_locations = 6;
*/
- public java.util.List
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -35,13 +17,10 @@ public interface AuthProviderOrBuilder
*
*
* string id = 1;
- *
* @return The id.
*/
java.lang.String getId();
/**
- *
- *
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -50,14 +29,12 @@ public interface AuthProviderOrBuilder
*
*
* string id = 1;
- *
* @return The bytes for id.
*/
- com.google.protobuf.ByteString getIdBytes();
+ com.google.protobuf.ByteString
+ getIdBytes();
/**
- *
- *
*
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
@@ -68,13 +45,10 @@ public interface AuthProviderOrBuilder
*
*
* string issuer = 2;
- *
* @return The issuer.
*/
java.lang.String getIssuer();
/**
- *
- *
*
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
@@ -85,14 +59,12 @@ public interface AuthProviderOrBuilder
*
*
* string issuer = 2;
- *
* @return The bytes for issuer.
*/
- com.google.protobuf.ByteString getIssuerBytes();
+ com.google.protobuf.ByteString
+ getIssuerBytes();
/**
- *
- *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -109,13 +81,10 @@ public interface AuthProviderOrBuilder
*
*
* string jwks_uri = 3;
- *
* @return The jwksUri.
*/
java.lang.String getJwksUri();
/**
- *
- *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -132,14 +101,12 @@ public interface AuthProviderOrBuilder
*
*
* string jwks_uri = 3;
- *
* @return The bytes for jwksUri.
*/
- com.google.protobuf.ByteString getJwksUriBytes();
+ com.google.protobuf.ByteString
+ getJwksUriBytes();
/**
- *
- *
*
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -161,13 +128,10 @@ public interface AuthProviderOrBuilder
*
*
* string audiences = 4;
- *
* @return The audiences.
*/
java.lang.String getAudiences();
/**
- *
- *
*
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -189,41 +153,34 @@ public interface AuthProviderOrBuilder
*
*
* string audiences = 4;
- *
* @return The bytes for audiences.
*/
- com.google.protobuf.ByteString getAudiencesBytes();
+ com.google.protobuf.ByteString
+ getAudiencesBytes();
/**
- *
- *
*
* Redirect URL if JWT token is required but not present or is expired.
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
*
*
* string authorization_url = 5;
- *
* @return The authorizationUrl.
*/
java.lang.String getAuthorizationUrl();
/**
- *
- *
*
* Redirect URL if JWT token is required but not present or is expired.
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
*
*
* string authorization_url = 5;
- *
* @return The bytes for authorizationUrl.
*/
- com.google.protobuf.ByteString getAuthorizationUrlBytes();
+ com.google.protobuf.ByteString
+ getAuthorizationUrlBytes();
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -247,10 +204,9 @@ public interface AuthProviderOrBuilder
*
*
repeated .google.api.JwtLocation jwt_locations = 6;
*/
- java.util.List
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -276,8 +232,6 @@ public interface AuthProviderOrBuilder
*/
com.google.api.JwtLocation getJwtLocations(int index);
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -303,8 +257,6 @@ public interface AuthProviderOrBuilder
*/
int getJwtLocationsCount();
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -328,10 +280,9 @@ public interface AuthProviderOrBuilder
*
*
repeated .google.api.JwtLocation jwt_locations = 6;
*/
- java.util.List extends com.google.api.JwtLocationOrBuilder> getJwtLocationsOrBuilderList();
+ java.util.List extends com.google.api.JwtLocationOrBuilder>
+ getJwtLocationsOrBuilderList();
/**
- *
- *
*
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
@@ -355,5 +306,6 @@ public interface AuthProviderOrBuilder
*
*
repeated .google.api.JwtLocation jwt_locations = 6;
*/
- com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index);
+ com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(
+ int index);
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java
index 4a501ca093..9d1cd6c1df 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * 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!
// source: google/api/auth.proto
@@ -20,8 +5,6 @@
package com.google.api;
/**
- *
- *
*
* User-defined authentication requirements, including support for
* [JSON Web Token
@@ -30,16 +13,15 @@
*
* Protobuf type {@code google.api.AuthRequirement}
*/
-public final class AuthRequirement extends com.google.protobuf.GeneratedMessageV3
- implements
+public final class AuthRequirement extends
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.api.AuthRequirement)
AuthRequirementOrBuilder {
- private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
// Use AuthRequirement.newBuilder() to construct.
private AuthRequirement(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
-
private AuthRequirement() {
providerId_ = "";
audiences_ = "";
@@ -47,11 +29,13 @@ private AuthRequirement() {
@java.lang.Override
@SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
return new AuthRequirement();
}
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_descriptor;
}
@@ -64,12 +48,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int PROVIDER_ID_FIELD_NUMBER = 1;
-
@SuppressWarnings("serial")
private volatile java.lang.Object providerId_ = "";
/**
- *
- *
*
* [id][google.api.AuthProvider.id] from authentication provider.
*
@@ -79,7 +60,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* string provider_id = 1;
- *
* @return The providerId.
*/
@java.lang.Override
@@ -88,15 +68,14 @@ public java.lang.String getProviderId() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
providerId_ = s;
return s;
}
}
/**
- *
- *
*
* [id][google.api.AuthProvider.id] from authentication provider.
*
@@ -106,15 +85,16 @@ public java.lang.String getProviderId() {
*
*
* string provider_id = 1;
- *
* @return The bytes for providerId.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getProviderIdBytes() {
+ public com.google.protobuf.ByteString
+ getProviderIdBytes() {
java.lang.Object ref = providerId_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
providerId_ = b;
return b;
} else {
@@ -123,12 +103,9 @@ public com.google.protobuf.ByteString getProviderIdBytes() {
}
public static final int AUDIENCES_FIELD_NUMBER = 2;
-
@SuppressWarnings("serial")
private volatile java.lang.Object audiences_ = "";
/**
- *
- *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -149,7 +126,6 @@ public com.google.protobuf.ByteString getProviderIdBytes() {
*
*
* string audiences = 2;
- *
* @return The audiences.
*/
@java.lang.Override
@@ -158,15 +134,14 @@ public java.lang.String getAudiences() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
audiences_ = s;
return s;
}
}
/**
- *
- *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -187,15 +162,16 @@ public java.lang.String getAudiences() {
*
*
* string audiences = 2;
- *
* @return The bytes for audiences.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getAudiencesBytes() {
+ public com.google.protobuf.ByteString
+ getAudiencesBytes() {
java.lang.Object ref = audiences_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
audiences_ = b;
return b;
} else {
@@ -204,7 +180,6 @@ public com.google.protobuf.ByteString getAudiencesBytes() {
}
private byte memoizedIsInitialized = -1;
-
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -216,7 +191,8 @@ public final boolean isInitialized() {
}
@java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(providerId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, providerId_);
}
@@ -246,15 +222,17 @@ public int getSerializedSize() {
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
if (!(obj instanceof com.google.api.AuthRequirement)) {
return super.equals(obj);
}
com.google.api.AuthRequirement other = (com.google.api.AuthRequirement) obj;
- if (!getProviderId().equals(other.getProviderId())) return false;
- if (!getAudiences().equals(other.getAudiences())) return false;
+ if (!getProviderId()
+ .equals(other.getProviderId())) return false;
+ if (!getAudiences()
+ .equals(other.getAudiences())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -275,103 +253,99 @@ public int hashCode() {
return hash;
}
- public static com.google.api.AuthRequirement parseFrom(java.nio.ByteBuffer data)
+ public static com.google.api.AuthRequirement parseFrom(
+ java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.AuthRequirement parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
- public static com.google.api.AuthRequirement parseFrom(com.google.protobuf.ByteString data)
+ public static com.google.api.AuthRequirement parseFrom(
+ com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.AuthRequirement parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.api.AuthRequirement parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.AuthRequirement parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.api.AuthRequirement parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.api.AuthRequirement parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.AuthRequirement parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static com.google.api.AuthRequirement parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
-
- public static com.google.api.AuthRequirement parseFrom(com.google.protobuf.CodedInputStream input)
+ public static com.google.api.AuthRequirement parseFrom(
+ com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.api.AuthRequirement parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
+ public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
-
public static Builder newBuilder(com.google.api.AuthRequirement prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
-
@java.lang.Override
public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- *
- *
*
* User-defined authentication requirements, including support for
* [JSON Web Token
@@ -380,11 +354,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* Protobuf type {@code google.api.AuthRequirement}
*/
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* [id][google.api.AuthProvider.id] from authentication provider.
*
@@ -576,13 +546,13 @@ public Builder mergeFrom(
*
*
* string provider_id = 1;
- *
* @return The providerId.
*/
public java.lang.String getProviderId() {
java.lang.Object ref = providerId_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
providerId_ = s;
return s;
@@ -591,8 +561,6 @@ public java.lang.String getProviderId() {
}
}
/**
- *
- *
*
* [id][google.api.AuthProvider.id] from authentication provider.
*
@@ -602,14 +570,15 @@ public java.lang.String getProviderId() {
*
*
* string provider_id = 1;
- *
* @return The bytes for providerId.
*/
- public com.google.protobuf.ByteString getProviderIdBytes() {
+ public com.google.protobuf.ByteString
+ getProviderIdBytes() {
java.lang.Object ref = providerId_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
providerId_ = b;
return b;
} else {
@@ -617,8 +586,6 @@ public com.google.protobuf.ByteString getProviderIdBytes() {
}
}
/**
- *
- *
*
* [id][google.api.AuthProvider.id] from authentication provider.
*
@@ -628,22 +595,18 @@ public com.google.protobuf.ByteString getProviderIdBytes() {
*
*
* string provider_id = 1;
- *
* @param value The providerId to set.
* @return This builder for chaining.
*/
- public Builder setProviderId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setProviderId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
providerId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
- *
- *
*
* [id][google.api.AuthProvider.id] from authentication provider.
*
@@ -653,7 +616,6 @@ public Builder setProviderId(java.lang.String value) {
*
*
* string provider_id = 1;
- *
* @return This builder for chaining.
*/
public Builder clearProviderId() {
@@ -663,8 +625,6 @@ public Builder clearProviderId() {
return this;
}
/**
- *
- *
*
* [id][google.api.AuthProvider.id] from authentication provider.
*
@@ -674,14 +634,12 @@ public Builder clearProviderId() {
*
*
* string provider_id = 1;
- *
* @param value The bytes for providerId to set.
* @return This builder for chaining.
*/
- public Builder setProviderIdBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setProviderIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
providerId_ = value;
bitField0_ |= 0x00000001;
@@ -691,8 +649,6 @@ public Builder setProviderIdBytes(com.google.protobuf.ByteString value) {
private java.lang.Object audiences_ = "";
/**
- *
- *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -713,13 +669,13 @@ public Builder setProviderIdBytes(com.google.protobuf.ByteString value) {
*
*
* string audiences = 2;
- *
* @return The audiences.
*/
public java.lang.String getAudiences() {
java.lang.Object ref = audiences_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
audiences_ = s;
return s;
@@ -728,8 +684,6 @@ public java.lang.String getAudiences() {
}
}
/**
- *
- *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -750,14 +704,15 @@ public java.lang.String getAudiences() {
*
*
* string audiences = 2;
- *
* @return The bytes for audiences.
*/
- public com.google.protobuf.ByteString getAudiencesBytes() {
+ public com.google.protobuf.ByteString
+ getAudiencesBytes() {
java.lang.Object ref = audiences_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
audiences_ = b;
return b;
} else {
@@ -765,8 +720,6 @@ public com.google.protobuf.ByteString getAudiencesBytes() {
}
}
/**
- *
- *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -787,22 +740,18 @@ public com.google.protobuf.ByteString getAudiencesBytes() {
*
*
* string audiences = 2;
- *
* @param value The audiences to set.
* @return This builder for chaining.
*/
- public Builder setAudiences(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setAudiences(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
audiences_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
- *
- *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -823,7 +772,6 @@ public Builder setAudiences(java.lang.String value) {
*
*
* string audiences = 2;
- *
* @return This builder for chaining.
*/
public Builder clearAudiences() {
@@ -833,8 +781,6 @@ public Builder clearAudiences() {
return this;
}
/**
- *
- *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -855,23 +801,21 @@ public Builder clearAudiences() {
*
*
* string audiences = 2;
- *
* @param value The bytes for audiences to set.
* @return This builder for chaining.
*/
- public Builder setAudiencesBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setAudiencesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
audiences_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
-
@java.lang.Override
- public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@@ -881,12 +825,12 @@ public final Builder mergeUnknownFields(
return super.mergeUnknownFields(unknownFields);
}
+
// @@protoc_insertion_point(builder_scope:google.api.AuthRequirement)
}
// @@protoc_insertion_point(class_scope:google.api.AuthRequirement)
private static final com.google.api.AuthRequirement DEFAULT_INSTANCE;
-
static {
DEFAULT_INSTANCE = new com.google.api.AuthRequirement();
}
@@ -895,27 +839,27 @@ public static com.google.api.AuthRequirement getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
* [id][google.api.AuthProvider.id] from authentication provider.
*
@@ -36,13 +18,10 @@ public interface AuthRequirementOrBuilder
*
*
* string provider_id = 1;
- *
* @return The providerId.
*/
java.lang.String getProviderId();
/**
- *
- *
*
* [id][google.api.AuthProvider.id] from authentication provider.
*
@@ -52,14 +31,12 @@ public interface AuthRequirementOrBuilder
*
*
* string provider_id = 1;
- *
* @return The bytes for providerId.
*/
- com.google.protobuf.ByteString getProviderIdBytes();
+ com.google.protobuf.ByteString
+ getProviderIdBytes();
/**
- *
- *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -80,13 +57,10 @@ public interface AuthRequirementOrBuilder
*
*
* string audiences = 2;
- *
* @return The audiences.
*/
java.lang.String getAudiences();
/**
- *
- *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -107,8 +81,8 @@ public interface AuthRequirementOrBuilder
*
*
* string audiences = 2;
- *
* @return The bytes for audiences.
*/
- com.google.protobuf.ByteString getAudiencesBytes();
+ com.google.protobuf.ByteString
+ getAudiencesBytes();
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java
index 8fad3a0bb0..eb809a5066 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * 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!
// source: google/api/auth.proto
@@ -20,8 +5,6 @@
package com.google.api;
/**
- *
- *
*
* `Authentication` defines the authentication configuration for API methods
* provided by an API service.
@@ -45,16 +28,15 @@
*
* Protobuf type {@code google.api.Authentication}
*/
-public final class Authentication extends com.google.protobuf.GeneratedMessageV3
- implements
+public final class Authentication extends
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.api.Authentication)
AuthenticationOrBuilder {
- private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
// Use Authentication.newBuilder() to construct.
private Authentication(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
-
private Authentication() {
rules_ = java.util.Collections.emptyList();
providers_ = java.util.Collections.emptyList();
@@ -62,11 +44,13 @@ private Authentication() {
@java.lang.Override
@SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
return new Authentication();
}
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
return com.google.api.AuthProto.internal_static_google_api_Authentication_descriptor;
}
@@ -79,12 +63,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int RULES_FIELD_NUMBER = 3;
-
@SuppressWarnings("serial")
private java.util.List
* A list of authentication rules that apply to individual API methods.
*
@@ -98,8 +79,6 @@ public java.util.List
* A list of authentication rules that apply to individual API methods.
*
@@ -109,13 +88,11 @@ public java.util.List
repeated .google.api.AuthenticationRule rules = 3;
*/
@java.lang.Override
- public java.util.List extends com.google.api.AuthenticationRuleOrBuilder>
+ public java.util.List extends com.google.api.AuthenticationRuleOrBuilder>
getRulesOrBuilderList() {
return rules_;
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -129,8 +106,6 @@ public int getRulesCount() {
return rules_.size();
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -144,8 +119,6 @@ public com.google.api.AuthenticationRule getRules(int index) {
return rules_.get(index);
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -155,17 +128,15 @@ public com.google.api.AuthenticationRule getRules(int index) {
*
repeated .google.api.AuthenticationRule rules = 3;
*/
@java.lang.Override
- public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(int index) {
+ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(
+ int index) {
return rules_.get(index);
}
public static final int PROVIDERS_FIELD_NUMBER = 4;
-
@SuppressWarnings("serial")
private java.util.List
* Defines a set of authentication providers that a service supports.
*
@@ -177,8 +148,6 @@ public java.util.List
* Defines a set of authentication providers that a service supports.
*
@@ -186,13 +155,11 @@ public java.util.Listrepeated .google.api.AuthProvider providers = 4;
*/
@java.lang.Override
- public java.util.List extends com.google.api.AuthProviderOrBuilder>
+ public java.util.List extends com.google.api.AuthProviderOrBuilder>
getProvidersOrBuilderList() {
return providers_;
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
@@ -204,8 +171,6 @@ public int getProvidersCount() {
return providers_.size();
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
@@ -217,8 +182,6 @@ public com.google.api.AuthProvider getProviders(int index) {
return providers_.get(index);
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
@@ -226,12 +189,12 @@ public com.google.api.AuthProvider getProviders(int index) {
* repeated .google.api.AuthProvider providers = 4;
*/
@java.lang.Override
- public com.google.api.AuthProviderOrBuilder getProvidersOrBuilder(int index) {
+ public com.google.api.AuthProviderOrBuilder getProvidersOrBuilder(
+ int index) {
return providers_.get(index);
}
private byte memoizedIsInitialized = -1;
-
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -243,7 +206,8 @@ public final boolean isInitialized() {
}
@java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
for (int i = 0; i < rules_.size(); i++) {
output.writeMessage(3, rules_.get(i));
}
@@ -260,10 +224,12 @@ public int getSerializedSize() {
size = 0;
for (int i = 0; i < rules_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rules_.get(i));
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, rules_.get(i));
}
for (int i = 0; i < providers_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, providers_.get(i));
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, providers_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -273,15 +239,17 @@ public int getSerializedSize() {
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
if (!(obj instanceof com.google.api.Authentication)) {
return super.equals(obj);
}
com.google.api.Authentication other = (com.google.api.Authentication) obj;
- if (!getRulesList().equals(other.getRulesList())) return false;
- if (!getProvidersList().equals(other.getProvidersList())) return false;
+ if (!getRulesList()
+ .equals(other.getRulesList())) return false;
+ if (!getProvidersList()
+ .equals(other.getProvidersList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -306,103 +274,99 @@ public int hashCode() {
return hash;
}
- public static com.google.api.Authentication parseFrom(java.nio.ByteBuffer data)
+ public static com.google.api.Authentication parseFrom(
+ java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.Authentication parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
- public static com.google.api.Authentication parseFrom(com.google.protobuf.ByteString data)
+ public static com.google.api.Authentication parseFrom(
+ com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.Authentication parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.api.Authentication parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.Authentication parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.api.Authentication parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.api.Authentication parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.Authentication parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static com.google.api.Authentication parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
-
- public static com.google.api.Authentication parseFrom(com.google.protobuf.CodedInputStream input)
+ public static com.google.api.Authentication parseFrom(
+ com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.api.Authentication parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
+ public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
-
public static Builder newBuilder(com.google.api.Authentication prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
-
@java.lang.Override
public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- *
- *
*
* `Authentication` defines the authentication configuration for API methods
* provided by an API service.
@@ -426,11 +390,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* Protobuf type {@code google.api.Authentication}
*/
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* A list of authentication rules that apply to individual API methods.
*
@@ -729,8 +686,6 @@ public java.util.List
* A list of authentication rules that apply to individual API methods.
*
@@ -747,8 +702,6 @@ public int getRulesCount() {
}
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -765,8 +718,6 @@ public com.google.api.AuthenticationRule getRules(int index) {
}
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -775,7 +726,8 @@ public com.google.api.AuthenticationRule getRules(int index) {
*
*
repeated .google.api.AuthenticationRule rules = 3;
*/
- public Builder setRules(int index, com.google.api.AuthenticationRule value) {
+ public Builder setRules(
+ int index, com.google.api.AuthenticationRule value) {
if (rulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -789,8 +741,6 @@ public Builder setRules(int index, com.google.api.AuthenticationRule value) {
return this;
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -799,7 +749,8 @@ public Builder setRules(int index, com.google.api.AuthenticationRule value) {
*
*
repeated .google.api.AuthenticationRule rules = 3;
*/
- public Builder setRules(int index, com.google.api.AuthenticationRule.Builder builderForValue) {
+ public Builder setRules(
+ int index, com.google.api.AuthenticationRule.Builder builderForValue) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.set(index, builderForValue.build());
@@ -810,8 +761,6 @@ public Builder setRules(int index, com.google.api.AuthenticationRule.Builder bui
return this;
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -834,8 +783,6 @@ public Builder addRules(com.google.api.AuthenticationRule value) {
return this;
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -844,7 +791,8 @@ public Builder addRules(com.google.api.AuthenticationRule value) {
*
*
repeated .google.api.AuthenticationRule rules = 3;
*/
- public Builder addRules(int index, com.google.api.AuthenticationRule value) {
+ public Builder addRules(
+ int index, com.google.api.AuthenticationRule value) {
if (rulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -858,8 +806,6 @@ public Builder addRules(int index, com.google.api.AuthenticationRule value) {
return this;
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -868,7 +814,8 @@ public Builder addRules(int index, com.google.api.AuthenticationRule value) {
*
*
repeated .google.api.AuthenticationRule rules = 3;
*/
- public Builder addRules(com.google.api.AuthenticationRule.Builder builderForValue) {
+ public Builder addRules(
+ com.google.api.AuthenticationRule.Builder builderForValue) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.add(builderForValue.build());
@@ -879,8 +826,6 @@ public Builder addRules(com.google.api.AuthenticationRule.Builder builderForValu
return this;
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -889,7 +834,8 @@ public Builder addRules(com.google.api.AuthenticationRule.Builder builderForValu
*
*
repeated .google.api.AuthenticationRule rules = 3;
*/
- public Builder addRules(int index, com.google.api.AuthenticationRule.Builder builderForValue) {
+ public Builder addRules(
+ int index, com.google.api.AuthenticationRule.Builder builderForValue) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.add(index, builderForValue.build());
@@ -900,8 +846,6 @@ public Builder addRules(int index, com.google.api.AuthenticationRule.Builder bui
return this;
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -914,7 +858,8 @@ public Builder addAllRules(
java.lang.Iterable extends com.google.api.AuthenticationRule> values) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, rules_);
onChanged();
} else {
rulesBuilder_.addAllMessages(values);
@@ -922,8 +867,6 @@ public Builder addAllRules(
return this;
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -943,8 +886,6 @@ public Builder clearRules() {
return this;
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -964,8 +905,6 @@ public Builder removeRules(int index) {
return this;
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -974,12 +913,11 @@ public Builder removeRules(int index) {
*
*
repeated .google.api.AuthenticationRule rules = 3;
*/
- public com.google.api.AuthenticationRule.Builder getRulesBuilder(int index) {
+ public com.google.api.AuthenticationRule.Builder getRulesBuilder(
+ int index) {
return getRulesFieldBuilder().getBuilder(index);
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -988,16 +926,14 @@ public com.google.api.AuthenticationRule.Builder getRulesBuilder(int index) {
*
*
repeated .google.api.AuthenticationRule rules = 3;
*/
- public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(int index) {
+ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(
+ int index) {
if (rulesBuilder_ == null) {
- return rules_.get(index);
- } else {
+ return rules_.get(index); } else {
return rulesBuilder_.getMessageOrBuilder(index);
}
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -1006,8 +942,8 @@ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(int index) {
*
*
repeated .google.api.AuthenticationRule rules = 3;
*/
- public java.util.List extends com.google.api.AuthenticationRuleOrBuilder>
- getRulesOrBuilderList() {
+ public java.util.List extends com.google.api.AuthenticationRuleOrBuilder>
+ getRulesOrBuilderList() {
if (rulesBuilder_ != null) {
return rulesBuilder_.getMessageOrBuilderList();
} else {
@@ -1015,8 +951,6 @@ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(int index) {
}
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -1026,12 +960,10 @@ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(int index) {
*
repeated .google.api.AuthenticationRule rules = 3;
*/
public com.google.api.AuthenticationRule.Builder addRulesBuilder() {
- return getRulesFieldBuilder()
- .addBuilder(com.google.api.AuthenticationRule.getDefaultInstance());
+ return getRulesFieldBuilder().addBuilder(
+ com.google.api.AuthenticationRule.getDefaultInstance());
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -1040,13 +972,12 @@ public com.google.api.AuthenticationRule.Builder addRulesBuilder() {
*
*
repeated .google.api.AuthenticationRule rules = 3;
*/
- public com.google.api.AuthenticationRule.Builder addRulesBuilder(int index) {
- return getRulesFieldBuilder()
- .addBuilder(index, com.google.api.AuthenticationRule.getDefaultInstance());
+ public com.google.api.AuthenticationRule.Builder addRulesBuilder(
+ int index) {
+ return getRulesFieldBuilder().addBuilder(
+ index, com.google.api.AuthenticationRule.getDefaultInstance());
}
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -1055,46 +986,38 @@ public com.google.api.AuthenticationRule.Builder addRulesBuilder(int index) {
*
*
repeated .google.api.AuthenticationRule rules = 3;
*/
- public java.util.List
* Defines a set of authentication providers that a service supports.
*
@@ -1109,8 +1032,6 @@ public java.util.List
* Defines a set of authentication providers that a service supports.
*
@@ -1125,8 +1046,6 @@ public int getProvidersCount() {
}
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
@@ -1141,15 +1060,14 @@ public com.google.api.AuthProvider getProviders(int index) {
}
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public Builder setProviders(int index, com.google.api.AuthProvider value) {
+ public Builder setProviders(
+ int index, com.google.api.AuthProvider value) {
if (providersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1163,15 +1081,14 @@ public Builder setProviders(int index, com.google.api.AuthProvider value) {
return this;
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public Builder setProviders(int index, com.google.api.AuthProvider.Builder builderForValue) {
+ public Builder setProviders(
+ int index, com.google.api.AuthProvider.Builder builderForValue) {
if (providersBuilder_ == null) {
ensureProvidersIsMutable();
providers_.set(index, builderForValue.build());
@@ -1182,8 +1099,6 @@ public Builder setProviders(int index, com.google.api.AuthProvider.Builder build
return this;
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
@@ -1204,15 +1119,14 @@ public Builder addProviders(com.google.api.AuthProvider value) {
return this;
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public Builder addProviders(int index, com.google.api.AuthProvider value) {
+ public Builder addProviders(
+ int index, com.google.api.AuthProvider value) {
if (providersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1226,15 +1140,14 @@ public Builder addProviders(int index, com.google.api.AuthProvider value) {
return this;
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public Builder addProviders(com.google.api.AuthProvider.Builder builderForValue) {
+ public Builder addProviders(
+ com.google.api.AuthProvider.Builder builderForValue) {
if (providersBuilder_ == null) {
ensureProvidersIsMutable();
providers_.add(builderForValue.build());
@@ -1245,15 +1158,14 @@ public Builder addProviders(com.google.api.AuthProvider.Builder builderForValue)
return this;
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public Builder addProviders(int index, com.google.api.AuthProvider.Builder builderForValue) {
+ public Builder addProviders(
+ int index, com.google.api.AuthProvider.Builder builderForValue) {
if (providersBuilder_ == null) {
ensureProvidersIsMutable();
providers_.add(index, builderForValue.build());
@@ -1264,8 +1176,6 @@ public Builder addProviders(int index, com.google.api.AuthProvider.Builder build
return this;
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
@@ -1276,7 +1186,8 @@ public Builder addAllProviders(
java.lang.Iterable extends com.google.api.AuthProvider> values) {
if (providersBuilder_ == null) {
ensureProvidersIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, providers_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, providers_);
onChanged();
} else {
providersBuilder_.addAllMessages(values);
@@ -1284,8 +1195,6 @@ public Builder addAllProviders(
return this;
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
@@ -1303,8 +1212,6 @@ public Builder clearProviders() {
return this;
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
@@ -1322,44 +1229,39 @@ public Builder removeProviders(int index) {
return this;
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public com.google.api.AuthProvider.Builder getProvidersBuilder(int index) {
+ public com.google.api.AuthProvider.Builder getProvidersBuilder(
+ int index) {
return getProvidersFieldBuilder().getBuilder(index);
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public com.google.api.AuthProviderOrBuilder getProvidersOrBuilder(int index) {
+ public com.google.api.AuthProviderOrBuilder getProvidersOrBuilder(
+ int index) {
if (providersBuilder_ == null) {
- return providers_.get(index);
- } else {
+ return providers_.get(index); } else {
return providersBuilder_.getMessageOrBuilder(index);
}
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public java.util.List extends com.google.api.AuthProviderOrBuilder>
- getProvidersOrBuilderList() {
+ public java.util.List extends com.google.api.AuthProviderOrBuilder>
+ getProvidersOrBuilderList() {
if (providersBuilder_ != null) {
return providersBuilder_.getMessageOrBuilderList();
} else {
@@ -1367,8 +1269,6 @@ public com.google.api.AuthProviderOrBuilder getProvidersOrBuilder(int index) {
}
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
@@ -1376,54 +1276,49 @@ public com.google.api.AuthProviderOrBuilder getProvidersOrBuilder(int index) {
* repeated .google.api.AuthProvider providers = 4;
*/
public com.google.api.AuthProvider.Builder addProvidersBuilder() {
- return getProvidersFieldBuilder()
- .addBuilder(com.google.api.AuthProvider.getDefaultInstance());
+ return getProvidersFieldBuilder().addBuilder(
+ com.google.api.AuthProvider.getDefaultInstance());
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public com.google.api.AuthProvider.Builder addProvidersBuilder(int index) {
- return getProvidersFieldBuilder()
- .addBuilder(index, com.google.api.AuthProvider.getDefaultInstance());
+ public com.google.api.AuthProvider.Builder addProvidersBuilder(
+ int index) {
+ return getProvidersFieldBuilder().addBuilder(
+ index, com.google.api.AuthProvider.getDefaultInstance());
}
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public java.util.List
* A list of authentication rules that apply to individual API methods.
*
@@ -35,10 +17,9 @@ public interface AuthenticationOrBuilder
*
*
repeated .google.api.AuthenticationRule rules = 3;
*/
- java.util.List
* A list of authentication rules that apply to individual API methods.
*
@@ -49,8 +30,6 @@ public interface AuthenticationOrBuilder
*/
com.google.api.AuthenticationRule getRules(int index);
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -61,8 +40,6 @@ public interface AuthenticationOrBuilder
*/
int getRulesCount();
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -71,10 +48,9 @@ public interface AuthenticationOrBuilder
*
*
repeated .google.api.AuthenticationRule rules = 3;
*/
- java.util.List extends com.google.api.AuthenticationRuleOrBuilder> getRulesOrBuilderList();
+ java.util.List extends com.google.api.AuthenticationRuleOrBuilder>
+ getRulesOrBuilderList();
/**
- *
- *
*
* A list of authentication rules that apply to individual API methods.
*
@@ -83,21 +59,19 @@ public interface AuthenticationOrBuilder
*
*
repeated .google.api.AuthenticationRule rules = 3;
*/
- com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(int index);
+ com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(
+ int index);
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- java.util.List
* Defines a set of authentication providers that a service supports.
*
@@ -106,8 +80,6 @@ public interface AuthenticationOrBuilder
*/
com.google.api.AuthProvider getProviders(int index);
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
@@ -116,23 +88,21 @@ public interface AuthenticationOrBuilder
*/
int getProvidersCount();
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- java.util.List extends com.google.api.AuthProviderOrBuilder> getProvidersOrBuilderList();
+ java.util.List extends com.google.api.AuthProviderOrBuilder>
+ getProvidersOrBuilderList();
/**
- *
- *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- com.google.api.AuthProviderOrBuilder getProvidersOrBuilder(int index);
+ com.google.api.AuthProviderOrBuilder getProvidersOrBuilder(
+ int index);
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java
index 0e790747a8..68494129f9 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * 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!
// source: google/api/auth.proto
@@ -20,8 +5,6 @@
package com.google.api;
/**
- *
- *
*
* Authentication rules for the service.
*
@@ -36,16 +19,15 @@
*
* Protobuf type {@code google.api.AuthenticationRule}
*/
-public final class AuthenticationRule extends com.google.protobuf.GeneratedMessageV3
- implements
+public final class AuthenticationRule extends
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.api.AuthenticationRule)
AuthenticationRuleOrBuilder {
- private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
// Use AuthenticationRule.newBuilder() to construct.
private AuthenticationRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
-
private AuthenticationRule() {
selector_ = "";
requirements_ = java.util.Collections.emptyList();
@@ -53,11 +35,13 @@ private AuthenticationRule() {
@java.lang.Override
@SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
return new AuthenticationRule();
}
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
return com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_descriptor;
}
@@ -66,18 +50,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
internalGetFieldAccessorTable() {
return com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.api.AuthenticationRule.class,
- com.google.api.AuthenticationRule.Builder.class);
+ com.google.api.AuthenticationRule.class, com.google.api.AuthenticationRule.Builder.class);
}
private int bitField0_;
public static final int SELECTOR_FIELD_NUMBER = 1;
-
@SuppressWarnings("serial")
private volatile java.lang.Object selector_ = "";
/**
- *
- *
*
* Selects the methods to which this rule applies.
*
@@ -86,7 +66,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* string selector = 1;
- *
* @return The selector.
*/
@java.lang.Override
@@ -95,15 +74,14 @@ public java.lang.String getSelector() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
selector_ = s;
return s;
}
}
/**
- *
- *
*
* Selects the methods to which this rule applies.
*
@@ -112,15 +90,16 @@ public java.lang.String getSelector() {
*
*
* string selector = 1;
- *
* @return The bytes for selector.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getSelectorBytes() {
+ public com.google.protobuf.ByteString
+ getSelectorBytes() {
java.lang.Object ref = selector_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
selector_ = b;
return b;
} else {
@@ -131,14 +110,11 @@ public com.google.protobuf.ByteString getSelectorBytes() {
public static final int OAUTH_FIELD_NUMBER = 2;
private com.google.api.OAuthRequirements oauth_;
/**
- *
- *
*
* The requirements for OAuth credentials.
*
*
* .google.api.OAuthRequirements oauth = 2;
- *
* @return Whether the oauth field is set.
*/
@java.lang.Override
@@ -146,14 +122,11 @@ public boolean hasOauth() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- *
- *
*
* The requirements for OAuth credentials.
*
*
* .google.api.OAuthRequirements oauth = 2;
- *
* @return The oauth.
*/
@java.lang.Override
@@ -161,8 +134,6 @@ public com.google.api.OAuthRequirements getOauth() {
return oauth_ == null ? com.google.api.OAuthRequirements.getDefaultInstance() : oauth_;
}
/**
- *
- *
*
* The requirements for OAuth credentials.
*
@@ -177,15 +148,12 @@ public com.google.api.OAuthRequirementsOrBuilder getOauthOrBuilder() {
public static final int ALLOW_WITHOUT_CREDENTIAL_FIELD_NUMBER = 5;
private boolean allowWithoutCredential_ = false;
/**
- *
- *
*
* If true, the service accepts API keys without any other credential.
* This flag only applies to HTTP and gRPC requests.
*
*
* bool allow_without_credential = 5;
- *
* @return The allowWithoutCredential.
*/
@java.lang.Override
@@ -194,12 +162,9 @@ public boolean getAllowWithoutCredential() {
}
public static final int REQUIREMENTS_FIELD_NUMBER = 7;
-
@SuppressWarnings("serial")
private java.util.List
* Requirements for additional authentication providers.
*
@@ -211,8 +176,6 @@ public java.util.List
* Requirements for additional authentication providers.
*
@@ -220,13 +183,11 @@ public java.util.Listrepeated .google.api.AuthRequirement requirements = 7;
*/
@java.lang.Override
- public java.util.List extends com.google.api.AuthRequirementOrBuilder>
+ public java.util.List extends com.google.api.AuthRequirementOrBuilder>
getRequirementsOrBuilderList() {
return requirements_;
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
@@ -238,8 +199,6 @@ public int getRequirementsCount() {
return requirements_.size();
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
@@ -251,8 +210,6 @@ public com.google.api.AuthRequirement getRequirements(int index) {
return requirements_.get(index);
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
@@ -260,12 +217,12 @@ public com.google.api.AuthRequirement getRequirements(int index) {
* repeated .google.api.AuthRequirement requirements = 7;
*/
@java.lang.Override
- public com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder(int index) {
+ public com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder(
+ int index) {
return requirements_.get(index);
}
private byte memoizedIsInitialized = -1;
-
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -277,7 +234,8 @@ public final boolean isInitialized() {
}
@java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selector_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_);
}
@@ -303,13 +261,16 @@ public int getSerializedSize() {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selector_);
}
if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOauth());
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getOauth());
}
if (allowWithoutCredential_ != false) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowWithoutCredential_);
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(5, allowWithoutCredential_);
}
for (int i = 0; i < requirements_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, requirements_.get(i));
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, requirements_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -319,20 +280,24 @@ public int getSerializedSize() {
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
if (!(obj instanceof com.google.api.AuthenticationRule)) {
return super.equals(obj);
}
com.google.api.AuthenticationRule other = (com.google.api.AuthenticationRule) obj;
- if (!getSelector().equals(other.getSelector())) return false;
+ if (!getSelector()
+ .equals(other.getSelector())) return false;
if (hasOauth() != other.hasOauth()) return false;
if (hasOauth()) {
- if (!getOauth().equals(other.getOauth())) return false;
+ if (!getOauth()
+ .equals(other.getOauth())) return false;
}
- if (getAllowWithoutCredential() != other.getAllowWithoutCredential()) return false;
- if (!getRequirementsList().equals(other.getRequirementsList())) return false;
+ if (getAllowWithoutCredential()
+ != other.getAllowWithoutCredential()) return false;
+ if (!getRequirementsList()
+ .equals(other.getRequirementsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -351,7 +316,8 @@ public int hashCode() {
hash = (53 * hash) + getOauth().hashCode();
}
hash = (37 * hash) + ALLOW_WITHOUT_CREDENTIAL_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowWithoutCredential());
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getAllowWithoutCredential());
if (getRequirementsCount() > 0) {
hash = (37 * hash) + REQUIREMENTS_FIELD_NUMBER;
hash = (53 * hash) + getRequirementsList().hashCode();
@@ -361,103 +327,99 @@ public int hashCode() {
return hash;
}
- public static com.google.api.AuthenticationRule parseFrom(java.nio.ByteBuffer data)
+ public static com.google.api.AuthenticationRule parseFrom(
+ java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.AuthenticationRule parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
- public static com.google.api.AuthenticationRule parseFrom(com.google.protobuf.ByteString data)
+ public static com.google.api.AuthenticationRule parseFrom(
+ com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.AuthenticationRule parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.api.AuthenticationRule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.AuthenticationRule parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.api.AuthenticationRule parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.api.AuthenticationRule parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.AuthenticationRule parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static com.google.api.AuthenticationRule parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
-
public static com.google.api.AuthenticationRule parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.api.AuthenticationRule parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
+ public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
-
public static Builder newBuilder(com.google.api.AuthenticationRule prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
-
@java.lang.Override
public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- *
- *
*
* Authentication rules for the service.
*
@@ -472,22 +434,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* Protobuf type {@code google.api.AuthenticationRule}
*/
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* Selects the methods to which this rule applies.
*
@@ -756,13 +712,13 @@ public Builder mergeFrom(
*
*
* string selector = 1;
- *
* @return The selector.
*/
public java.lang.String getSelector() {
java.lang.Object ref = selector_;
if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
selector_ = s;
return s;
@@ -771,8 +727,6 @@ public java.lang.String getSelector() {
}
}
/**
- *
- *
*
* Selects the methods to which this rule applies.
*
@@ -781,14 +735,15 @@ public java.lang.String getSelector() {
*
*
* string selector = 1;
- *
* @return The bytes for selector.
*/
- public com.google.protobuf.ByteString getSelectorBytes() {
+ public com.google.protobuf.ByteString
+ getSelectorBytes() {
java.lang.Object ref = selector_;
if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
selector_ = b;
return b;
} else {
@@ -796,8 +751,6 @@ public com.google.protobuf.ByteString getSelectorBytes() {
}
}
/**
- *
- *
*
* Selects the methods to which this rule applies.
*
@@ -806,22 +759,18 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
*
* string selector = 1;
- *
* @param value The selector to set.
* @return This builder for chaining.
*/
- public Builder setSelector(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setSelector(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
selector_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
- *
- *
*
* Selects the methods to which this rule applies.
*
@@ -830,7 +779,6 @@ public Builder setSelector(java.lang.String value) {
*
*
* string selector = 1;
- *
* @return This builder for chaining.
*/
public Builder clearSelector() {
@@ -840,8 +788,6 @@ public Builder clearSelector() {
return this;
}
/**
- *
- *
*
* Selects the methods to which this rule applies.
*
@@ -850,14 +796,12 @@ public Builder clearSelector() {
*
*
* string selector = 1;
- *
* @param value The bytes for selector to set.
* @return This builder for chaining.
*/
- public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setSelectorBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
selector_ = value;
bitField0_ |= 0x00000001;
@@ -867,33 +811,24 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
private com.google.api.OAuthRequirements oauth_;
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.api.OAuthRequirements,
- com.google.api.OAuthRequirements.Builder,
- com.google.api.OAuthRequirementsOrBuilder>
- oauthBuilder_;
+ com.google.api.OAuthRequirements, com.google.api.OAuthRequirements.Builder, com.google.api.OAuthRequirementsOrBuilder> oauthBuilder_;
/**
- *
- *
*
* The requirements for OAuth credentials.
*
*
* .google.api.OAuthRequirements oauth = 2;
- *
* @return Whether the oauth field is set.
*/
public boolean hasOauth() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
- *
- *
*
* The requirements for OAuth credentials.
*
*
* .google.api.OAuthRequirements oauth = 2;
- *
* @return The oauth.
*/
public com.google.api.OAuthRequirements getOauth() {
@@ -904,8 +839,6 @@ public com.google.api.OAuthRequirements getOauth() {
}
}
/**
- *
- *
*
* The requirements for OAuth credentials.
*
@@ -926,15 +859,14 @@ public Builder setOauth(com.google.api.OAuthRequirements value) {
return this;
}
/**
- *
- *
*
* The requirements for OAuth credentials.
*
*
* .google.api.OAuthRequirements oauth = 2;
*/
- public Builder setOauth(com.google.api.OAuthRequirements.Builder builderForValue) {
+ public Builder setOauth(
+ com.google.api.OAuthRequirements.Builder builderForValue) {
if (oauthBuilder_ == null) {
oauth_ = builderForValue.build();
} else {
@@ -945,8 +877,6 @@ public Builder setOauth(com.google.api.OAuthRequirements.Builder builderForValue
return this;
}
/**
- *
- *
*
* The requirements for OAuth credentials.
*
@@ -955,9 +885,9 @@ public Builder setOauth(com.google.api.OAuthRequirements.Builder builderForValue
*/
public Builder mergeOauth(com.google.api.OAuthRequirements value) {
if (oauthBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)
- && oauth_ != null
- && oauth_ != com.google.api.OAuthRequirements.getDefaultInstance()) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ oauth_ != null &&
+ oauth_ != com.google.api.OAuthRequirements.getDefaultInstance()) {
getOauthBuilder().mergeFrom(value);
} else {
oauth_ = value;
@@ -972,8 +902,6 @@ public Builder mergeOauth(com.google.api.OAuthRequirements value) {
return this;
}
/**
- *
- *
*
* The requirements for OAuth credentials.
*
@@ -991,8 +919,6 @@ public Builder clearOauth() {
return this;
}
/**
- *
- *
*
* The requirements for OAuth credentials.
*
@@ -1005,8 +931,6 @@ public com.google.api.OAuthRequirements.Builder getOauthBuilder() {
return getOauthFieldBuilder().getBuilder();
}
/**
- *
- *
*
* The requirements for OAuth credentials.
*
@@ -1017,12 +941,11 @@ public com.google.api.OAuthRequirementsOrBuilder getOauthOrBuilder() {
if (oauthBuilder_ != null) {
return oauthBuilder_.getMessageOrBuilder();
} else {
- return oauth_ == null ? com.google.api.OAuthRequirements.getDefaultInstance() : oauth_;
+ return oauth_ == null ?
+ com.google.api.OAuthRequirements.getDefaultInstance() : oauth_;
}
}
/**
- *
- *
*
* The requirements for OAuth credentials.
*
@@ -1030,33 +953,27 @@ public com.google.api.OAuthRequirementsOrBuilder getOauthOrBuilder() {
* .google.api.OAuthRequirements oauth = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.api.OAuthRequirements,
- com.google.api.OAuthRequirements.Builder,
- com.google.api.OAuthRequirementsOrBuilder>
+ com.google.api.OAuthRequirements, com.google.api.OAuthRequirements.Builder, com.google.api.OAuthRequirementsOrBuilder>
getOauthFieldBuilder() {
if (oauthBuilder_ == null) {
- oauthBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.api.OAuthRequirements,
- com.google.api.OAuthRequirements.Builder,
- com.google.api.OAuthRequirementsOrBuilder>(
- getOauth(), getParentForChildren(), isClean());
+ oauthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.api.OAuthRequirements, com.google.api.OAuthRequirements.Builder, com.google.api.OAuthRequirementsOrBuilder>(
+ getOauth(),
+ getParentForChildren(),
+ isClean());
oauth_ = null;
}
return oauthBuilder_;
}
- private boolean allowWithoutCredential_;
+ private boolean allowWithoutCredential_ ;
/**
- *
- *
*
* If true, the service accepts API keys without any other credential.
* This flag only applies to HTTP and gRPC requests.
*
*
* bool allow_without_credential = 5;
- *
* @return The allowWithoutCredential.
*/
@java.lang.Override
@@ -1064,15 +981,12 @@ public boolean getAllowWithoutCredential() {
return allowWithoutCredential_;
}
/**
- *
- *
*
* If true, the service accepts API keys without any other credential.
* This flag only applies to HTTP and gRPC requests.
*
*
* bool allow_without_credential = 5;
- *
* @param value The allowWithoutCredential to set.
* @return This builder for chaining.
*/
@@ -1084,15 +998,12 @@ public Builder setAllowWithoutCredential(boolean value) {
return this;
}
/**
- *
- *
*
* If true, the service accepts API keys without any other credential.
* This flag only applies to HTTP and gRPC requests.
*
*
* bool allow_without_credential = 5;
- *
* @return This builder for chaining.
*/
public Builder clearAllowWithoutCredential() {
@@ -1103,24 +1014,18 @@ public Builder clearAllowWithoutCredential() {
}
private java.util.List
* Requirements for additional authentication providers.
*
@@ -1135,8 +1040,6 @@ public java.util.List
* Requirements for additional authentication providers.
*
@@ -1151,8 +1054,6 @@ public int getRequirementsCount() {
}
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
@@ -1167,15 +1068,14 @@ public com.google.api.AuthRequirement getRequirements(int index) {
}
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public Builder setRequirements(int index, com.google.api.AuthRequirement value) {
+ public Builder setRequirements(
+ int index, com.google.api.AuthRequirement value) {
if (requirementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1189,8 +1089,6 @@ public Builder setRequirements(int index, com.google.api.AuthRequirement value)
return this;
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
@@ -1209,8 +1107,6 @@ public Builder setRequirements(
return this;
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
@@ -1231,15 +1127,14 @@ public Builder addRequirements(com.google.api.AuthRequirement value) {
return this;
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public Builder addRequirements(int index, com.google.api.AuthRequirement value) {
+ public Builder addRequirements(
+ int index, com.google.api.AuthRequirement value) {
if (requirementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1253,15 +1148,14 @@ public Builder addRequirements(int index, com.google.api.AuthRequirement value)
return this;
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public Builder addRequirements(com.google.api.AuthRequirement.Builder builderForValue) {
+ public Builder addRequirements(
+ com.google.api.AuthRequirement.Builder builderForValue) {
if (requirementsBuilder_ == null) {
ensureRequirementsIsMutable();
requirements_.add(builderForValue.build());
@@ -1272,8 +1166,6 @@ public Builder addRequirements(com.google.api.AuthRequirement.Builder builderFor
return this;
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
@@ -1292,8 +1184,6 @@ public Builder addRequirements(
return this;
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
@@ -1304,7 +1194,8 @@ public Builder addAllRequirements(
java.lang.Iterable extends com.google.api.AuthRequirement> values) {
if (requirementsBuilder_ == null) {
ensureRequirementsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requirements_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, requirements_);
onChanged();
} else {
requirementsBuilder_.addAllMessages(values);
@@ -1312,8 +1203,6 @@ public Builder addAllRequirements(
return this;
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
@@ -1331,8 +1220,6 @@ public Builder clearRequirements() {
return this;
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
@@ -1350,44 +1237,39 @@ public Builder removeRequirements(int index) {
return this;
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public com.google.api.AuthRequirement.Builder getRequirementsBuilder(int index) {
+ public com.google.api.AuthRequirement.Builder getRequirementsBuilder(
+ int index) {
return getRequirementsFieldBuilder().getBuilder(index);
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder(int index) {
+ public com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder(
+ int index) {
if (requirementsBuilder_ == null) {
- return requirements_.get(index);
- } else {
+ return requirements_.get(index); } else {
return requirementsBuilder_.getMessageOrBuilder(index);
}
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public java.util.List extends com.google.api.AuthRequirementOrBuilder>
- getRequirementsOrBuilderList() {
+ public java.util.List extends com.google.api.AuthRequirementOrBuilder>
+ getRequirementsOrBuilderList() {
if (requirementsBuilder_ != null) {
return requirementsBuilder_.getMessageOrBuilderList();
} else {
@@ -1395,8 +1277,6 @@ public com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder(int inde
}
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
@@ -1404,54 +1284,49 @@ public com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder(int inde
* repeated .google.api.AuthRequirement requirements = 7;
*/
public com.google.api.AuthRequirement.Builder addRequirementsBuilder() {
- return getRequirementsFieldBuilder()
- .addBuilder(com.google.api.AuthRequirement.getDefaultInstance());
+ return getRequirementsFieldBuilder().addBuilder(
+ com.google.api.AuthRequirement.getDefaultInstance());
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public com.google.api.AuthRequirement.Builder addRequirementsBuilder(int index) {
- return getRequirementsFieldBuilder()
- .addBuilder(index, com.google.api.AuthRequirement.getDefaultInstance());
+ public com.google.api.AuthRequirement.Builder addRequirementsBuilder(
+ int index) {
+ return getRequirementsFieldBuilder().addBuilder(
+ index, com.google.api.AuthRequirement.getDefaultInstance());
}
/**
- *
- *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public java.util.List
* Selects the methods to which this rule applies.
*
@@ -35,13 +17,10 @@ public interface AuthenticationRuleOrBuilder
*
*
* string selector = 1;
- *
* @return The selector.
*/
java.lang.String getSelector();
/**
- *
- *
*
* Selects the methods to which this rule applies.
*
@@ -50,38 +29,30 @@ public interface AuthenticationRuleOrBuilder
*
*
* string selector = 1;
- *
* @return The bytes for selector.
*/
- com.google.protobuf.ByteString getSelectorBytes();
+ com.google.protobuf.ByteString
+ getSelectorBytes();
/**
- *
- *
*
* The requirements for OAuth credentials.
*
*
* .google.api.OAuthRequirements oauth = 2;
- *
* @return Whether the oauth field is set.
*/
boolean hasOauth();
/**
- *
- *
*
* The requirements for OAuth credentials.
*
*
* .google.api.OAuthRequirements oauth = 2;
- *
* @return The oauth.
*/
com.google.api.OAuthRequirements getOauth();
/**
- *
- *
*
* The requirements for OAuth credentials.
*
@@ -91,32 +62,26 @@ public interface AuthenticationRuleOrBuilder
com.google.api.OAuthRequirementsOrBuilder getOauthOrBuilder();
/**
- *
- *
*
* If true, the service accepts API keys without any other credential.
* This flag only applies to HTTP and gRPC requests.
*
*
* bool allow_without_credential = 5;
- *
* @return The allowWithoutCredential.
*/
boolean getAllowWithoutCredential();
/**
- *
- *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- java.util.List
* Requirements for additional authentication providers.
*
@@ -125,8 +90,6 @@ public interface AuthenticationRuleOrBuilder
*/
com.google.api.AuthRequirement getRequirements(int index);
/**
- *
- *
*
* Requirements for additional authentication providers.
*
@@ -135,23 +98,21 @@ public interface AuthenticationRuleOrBuilder
*/
int getRequirementsCount();
/**
- *
- *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- java.util.List extends com.google.api.AuthRequirementOrBuilder> getRequirementsOrBuilderList();
+ java.util.List extends com.google.api.AuthRequirementOrBuilder>
+ getRequirementsOrBuilderList();
/**
- *
- *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder(int index);
+ com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder(
+ int index);
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java
index bfee32d91f..541f6f1c66 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * 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!
// source: google/api/backend.proto
@@ -20,35 +5,34 @@
package com.google.api;
/**
- *
- *
*
* `Backend` defines the backend configuration for a service.
*
*
* Protobuf type {@code google.api.Backend}
*/
-public final class Backend extends com.google.protobuf.GeneratedMessageV3
- implements
+public final class Backend extends
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.api.Backend)
BackendOrBuilder {
- private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
// Use Backend.newBuilder() to construct.
private Backend(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
-
private Backend() {
rules_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
return new Backend();
}
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
return com.google.api.BackendProto.internal_static_google_api_Backend_descriptor;
}
@@ -61,12 +45,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int RULES_FIELD_NUMBER = 1;
-
@SuppressWarnings("serial")
private java.util.List
* A list of API backend rules that apply to individual API methods.
*
@@ -80,8 +61,6 @@ public java.util.List
* A list of API backend rules that apply to individual API methods.
*
@@ -91,12 +70,11 @@ public java.util.List
repeated .google.api.BackendRule rules = 1;
*/
@java.lang.Override
- public java.util.List extends com.google.api.BackendRuleOrBuilder> getRulesOrBuilderList() {
+ public java.util.List extends com.google.api.BackendRuleOrBuilder>
+ getRulesOrBuilderList() {
return rules_;
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -110,8 +88,6 @@ public int getRulesCount() {
return rules_.size();
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -125,8 +101,6 @@ public com.google.api.BackendRule getRules(int index) {
return rules_.get(index);
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -136,12 +110,12 @@ public com.google.api.BackendRule getRules(int index) {
*
repeated .google.api.BackendRule rules = 1;
*/
@java.lang.Override
- public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(int index) {
+ public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(
+ int index) {
return rules_.get(index);
}
private byte memoizedIsInitialized = -1;
-
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -153,7 +127,8 @@ public final boolean isInitialized() {
}
@java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
for (int i = 0; i < rules_.size(); i++) {
output.writeMessage(1, rules_.get(i));
}
@@ -167,7 +142,8 @@ public int getSerializedSize() {
size = 0;
for (int i = 0; i < rules_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rules_.get(i));
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, rules_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -177,14 +153,15 @@ public int getSerializedSize() {
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
if (!(obj instanceof com.google.api.Backend)) {
return super.equals(obj);
}
com.google.api.Backend other = (com.google.api.Backend) obj;
- if (!getRulesList().equals(other.getRulesList())) return false;
+ if (!getRulesList()
+ .equals(other.getRulesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -205,114 +182,111 @@ public int hashCode() {
return hash;
}
- public static com.google.api.Backend parseFrom(java.nio.ByteBuffer data)
+ public static com.google.api.Backend parseFrom(
+ java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.Backend parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
- public static com.google.api.Backend parseFrom(com.google.protobuf.ByteString data)
+ public static com.google.api.Backend parseFrom(
+ com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.Backend parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.api.Backend parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
-
public static com.google.api.Backend parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
-
public static com.google.api.Backend parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.api.Backend parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.Backend parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static com.google.api.Backend parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
-
- public static com.google.api.Backend parseFrom(com.google.protobuf.CodedInputStream input)
+ public static com.google.api.Backend parseFrom(
+ com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
-
public static com.google.api.Backend parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
+ public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
-
public static Builder newBuilder(com.google.api.Backend prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
-
@java.lang.Override
public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- *
- *
*
* `Backend` defines the backend configuration for a service.
*
*
* Protobuf type {@code google.api.Backend}
*/
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* A list of API backend rules that apply to individual API methods.
*
@@ -554,8 +522,6 @@ public java.util.List
* A list of API backend rules that apply to individual API methods.
*
@@ -572,8 +538,6 @@ public int getRulesCount() {
}
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -590,8 +554,6 @@ public com.google.api.BackendRule getRules(int index) {
}
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -600,7 +562,8 @@ public com.google.api.BackendRule getRules(int index) {
*
*
repeated .google.api.BackendRule rules = 1;
*/
- public Builder setRules(int index, com.google.api.BackendRule value) {
+ public Builder setRules(
+ int index, com.google.api.BackendRule value) {
if (rulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -614,8 +577,6 @@ public Builder setRules(int index, com.google.api.BackendRule value) {
return this;
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -624,7 +585,8 @@ public Builder setRules(int index, com.google.api.BackendRule value) {
*
*
repeated .google.api.BackendRule rules = 1;
*/
- public Builder setRules(int index, com.google.api.BackendRule.Builder builderForValue) {
+ public Builder setRules(
+ int index, com.google.api.BackendRule.Builder builderForValue) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.set(index, builderForValue.build());
@@ -635,8 +597,6 @@ public Builder setRules(int index, com.google.api.BackendRule.Builder builderFor
return this;
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -659,8 +619,6 @@ public Builder addRules(com.google.api.BackendRule value) {
return this;
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -669,7 +627,8 @@ public Builder addRules(com.google.api.BackendRule value) {
*
*
repeated .google.api.BackendRule rules = 1;
*/
- public Builder addRules(int index, com.google.api.BackendRule value) {
+ public Builder addRules(
+ int index, com.google.api.BackendRule value) {
if (rulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -683,8 +642,6 @@ public Builder addRules(int index, com.google.api.BackendRule value) {
return this;
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -693,7 +650,8 @@ public Builder addRules(int index, com.google.api.BackendRule value) {
*
*
repeated .google.api.BackendRule rules = 1;
*/
- public Builder addRules(com.google.api.BackendRule.Builder builderForValue) {
+ public Builder addRules(
+ com.google.api.BackendRule.Builder builderForValue) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.add(builderForValue.build());
@@ -704,8 +662,6 @@ public Builder addRules(com.google.api.BackendRule.Builder builderForValue) {
return this;
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -714,7 +670,8 @@ public Builder addRules(com.google.api.BackendRule.Builder builderForValue) {
*
*
repeated .google.api.BackendRule rules = 1;
*/
- public Builder addRules(int index, com.google.api.BackendRule.Builder builderForValue) {
+ public Builder addRules(
+ int index, com.google.api.BackendRule.Builder builderForValue) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.add(index, builderForValue.build());
@@ -725,8 +682,6 @@ public Builder addRules(int index, com.google.api.BackendRule.Builder builderFor
return this;
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -735,10 +690,12 @@ public Builder addRules(int index, com.google.api.BackendRule.Builder builderFor
*
*
repeated .google.api.BackendRule rules = 1;
*/
- public Builder addAllRules(java.lang.Iterable extends com.google.api.BackendRule> values) {
+ public Builder addAllRules(
+ java.lang.Iterable extends com.google.api.BackendRule> values) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, rules_);
onChanged();
} else {
rulesBuilder_.addAllMessages(values);
@@ -746,8 +703,6 @@ public Builder addAllRules(java.lang.Iterable extends com.google.api.BackendRu
return this;
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -767,8 +722,6 @@ public Builder clearRules() {
return this;
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -788,8 +741,6 @@ public Builder removeRules(int index) {
return this;
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -798,12 +749,11 @@ public Builder removeRules(int index) {
*
*
repeated .google.api.BackendRule rules = 1;
*/
- public com.google.api.BackendRule.Builder getRulesBuilder(int index) {
+ public com.google.api.BackendRule.Builder getRulesBuilder(
+ int index) {
return getRulesFieldBuilder().getBuilder(index);
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -812,16 +762,14 @@ public com.google.api.BackendRule.Builder getRulesBuilder(int index) {
*
*
repeated .google.api.BackendRule rules = 1;
*/
- public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(int index) {
+ public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(
+ int index) {
if (rulesBuilder_ == null) {
- return rules_.get(index);
- } else {
+ return rules_.get(index); } else {
return rulesBuilder_.getMessageOrBuilder(index);
}
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -830,7 +778,8 @@ public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(int index) {
*
*
repeated .google.api.BackendRule rules = 1;
*/
- public java.util.List extends com.google.api.BackendRuleOrBuilder> getRulesOrBuilderList() {
+ public java.util.List extends com.google.api.BackendRuleOrBuilder>
+ getRulesOrBuilderList() {
if (rulesBuilder_ != null) {
return rulesBuilder_.getMessageOrBuilderList();
} else {
@@ -838,8 +787,6 @@ public java.util.List extends com.google.api.BackendRuleOrBuilder> getRulesOrB
}
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -849,11 +796,10 @@ public java.util.List extends com.google.api.BackendRuleOrBuilder> getRulesOrB
*
repeated .google.api.BackendRule rules = 1;
*/
public com.google.api.BackendRule.Builder addRulesBuilder() {
- return getRulesFieldBuilder().addBuilder(com.google.api.BackendRule.getDefaultInstance());
+ return getRulesFieldBuilder().addBuilder(
+ com.google.api.BackendRule.getDefaultInstance());
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -862,13 +808,12 @@ public com.google.api.BackendRule.Builder addRulesBuilder() {
*
*
repeated .google.api.BackendRule rules = 1;
*/
- public com.google.api.BackendRule.Builder addRulesBuilder(int index) {
- return getRulesFieldBuilder()
- .addBuilder(index, com.google.api.BackendRule.getDefaultInstance());
+ public com.google.api.BackendRule.Builder addRulesBuilder(
+ int index) {
+ return getRulesFieldBuilder().addBuilder(
+ index, com.google.api.BackendRule.getDefaultInstance());
}
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -877,29 +822,27 @@ public com.google.api.BackendRule.Builder addRulesBuilder(int index) {
*
*
repeated .google.api.BackendRule rules = 1;
*/
- public java.util.List
* A list of API backend rules that apply to individual API methods.
*
@@ -35,10 +17,9 @@ public interface BackendOrBuilder
*
*
repeated .google.api.BackendRule rules = 1;
*/
- java.util.List
* A list of API backend rules that apply to individual API methods.
*
@@ -49,8 +30,6 @@ public interface BackendOrBuilder
*/
com.google.api.BackendRule getRules(int index);
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -61,8 +40,6 @@ public interface BackendOrBuilder
*/
int getRulesCount();
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -71,10 +48,9 @@ public interface BackendOrBuilder
*
*
repeated .google.api.BackendRule rules = 1;
*/
- java.util.List extends com.google.api.BackendRuleOrBuilder> getRulesOrBuilderList();
+ java.util.List extends com.google.api.BackendRuleOrBuilder>
+ getRulesOrBuilderList();
/**
- *
- *
*
* A list of API backend rules that apply to individual API methods.
*
@@ -83,5 +59,6 @@ public interface BackendOrBuilder
*
*
repeated .google.api.BackendRule rules = 1;
*/
- com.google.api.BackendRuleOrBuilder getRulesOrBuilder(int index);
+ com.google.api.BackendRuleOrBuilder getRulesOrBuilder(
+ int index);
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java
index 6ce6cc0365..46bce59718 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * 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!
// source: google/api/backend.proto
@@ -21,90 +6,82 @@
public final class BackendProto {
private BackendProto() {}
-
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
-
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ public static 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_api_Backend_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_api_Backend_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_Backend_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_api_BackendRule_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_api_BackendRule_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_BackendRule_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_api_BackendRule_OverridesByRequestProtocolEntry_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_api_BackendRule_OverridesByRequestProtocolEntry_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_BackendRule_OverridesByRequestProtocolEntry_fieldAccessorTable;
- public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
return descriptor;
}
-
- private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
static {
java.lang.String[] descriptorData = {
- "\n\030google/api/backend.proto\022\ngoogle.api\"1"
- + "\n\007Backend\022&\n\005rules\030\001 \003(\0132\027.google.api.Ba"
- + "ckendRule\"\262\004\n\013BackendRule\022\020\n\010selector\030\001 "
- + "\001(\t\022\017\n\007address\030\002 \001(\t\022\020\n\010deadline\030\003 \001(\001\022\030"
- + "\n\014min_deadline\030\004 \001(\001B\002\030\001\022\032\n\022operation_de"
- + "adline\030\005 \001(\001\022A\n\020path_translation\030\006 \001(\0162\'"
- + ".google.api.BackendRule.PathTranslation\022"
- + "\026\n\014jwt_audience\030\007 \001(\tH\000\022\026\n\014disable_auth\030"
- + "\010 \001(\010H\000\022\020\n\010protocol\030\t \001(\t\022^\n\035overrides_b"
- + "y_request_protocol\030\n \003(\01327.google.api.Ba"
- + "ckendRule.OverridesByRequestProtocolEntr"
- + "y\032Z\n\037OverridesByRequestProtocolEntry\022\013\n\003"
- + "key\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027.google.api.Ba"
- + "ckendRule:\0028\001\"e\n\017PathTranslation\022 \n\034PATH"
- + "_TRANSLATION_UNSPECIFIED\020\000\022\024\n\020CONSTANT_A"
- + "DDRESS\020\001\022\032\n\026APPEND_PATH_TO_ADDRESS\020\002B\020\n\016"
- + "authenticationBn\n\016com.google.apiB\014Backen"
- + "dProtoP\001ZEgoogle.golang.org/genproto/goo"
- + "gleapis/api/serviceconfig;serviceconfig\242"
- + "\002\004GAPIb\006proto3"
+ "\n\030google/api/backend.proto\022\ngoogle.api\"1" +
+ "\n\007Backend\022&\n\005rules\030\001 \003(\0132\027.google.api.Ba" +
+ "ckendRule\"\262\004\n\013BackendRule\022\020\n\010selector\030\001 " +
+ "\001(\t\022\017\n\007address\030\002 \001(\t\022\020\n\010deadline\030\003 \001(\001\022\030" +
+ "\n\014min_deadline\030\004 \001(\001B\002\030\001\022\032\n\022operation_de" +
+ "adline\030\005 \001(\001\022A\n\020path_translation\030\006 \001(\0162\'" +
+ ".google.api.BackendRule.PathTranslation\022" +
+ "\026\n\014jwt_audience\030\007 \001(\tH\000\022\026\n\014disable_auth\030" +
+ "\010 \001(\010H\000\022\020\n\010protocol\030\t \001(\t\022^\n\035overrides_b" +
+ "y_request_protocol\030\n \003(\01327.google.api.Ba" +
+ "ckendRule.OverridesByRequestProtocolEntr" +
+ "y\032Z\n\037OverridesByRequestProtocolEntry\022\013\n\003" +
+ "key\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027.google.api.Ba" +
+ "ckendRule:\0028\001\"e\n\017PathTranslation\022 \n\034PATH" +
+ "_TRANSLATION_UNSPECIFIED\020\000\022\024\n\020CONSTANT_A" +
+ "DDRESS\020\001\022\032\n\026APPEND_PATH_TO_ADDRESS\020\002B\020\n\016" +
+ "authenticationBn\n\016com.google.apiB\014Backen" +
+ "dProtoP\001ZEgoogle.golang.org/genproto/goo" +
+ "gleapis/api/serviceconfig;serviceconfig\242" +
+ "\002\004GAPIb\006proto3"
};
- descriptor =
- com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
- descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
- internal_static_google_api_Backend_descriptor = getDescriptor().getMessageTypes().get(0);
- internal_static_google_api_Backend_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_api_Backend_descriptor,
- new java.lang.String[] {
- "Rules",
- });
- internal_static_google_api_BackendRule_descriptor = getDescriptor().getMessageTypes().get(1);
- internal_static_google_api_BackendRule_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_api_BackendRule_descriptor,
- new java.lang.String[] {
- "Selector",
- "Address",
- "Deadline",
- "MinDeadline",
- "OperationDeadline",
- "PathTranslation",
- "JwtAudience",
- "DisableAuth",
- "Protocol",
- "OverridesByRequestProtocol",
- "Authentication",
- });
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_google_api_Backend_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_api_Backend_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_api_Backend_descriptor,
+ new java.lang.String[] { "Rules", });
+ internal_static_google_api_BackendRule_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_api_BackendRule_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_api_BackendRule_descriptor,
+ new java.lang.String[] { "Selector", "Address", "Deadline", "MinDeadline", "OperationDeadline", "PathTranslation", "JwtAudience", "DisableAuth", "Protocol", "OverridesByRequestProtocol", "Authentication", });
internal_static_google_api_BackendRule_OverridesByRequestProtocolEntry_descriptor =
- internal_static_google_api_BackendRule_descriptor.getNestedTypes().get(0);
- internal_static_google_api_BackendRule_OverridesByRequestProtocolEntry_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_api_BackendRule_OverridesByRequestProtocolEntry_descriptor,
- new java.lang.String[] {
- "Key", "Value",
- });
+ internal_static_google_api_BackendRule_descriptor.getNestedTypes().get(0);
+ internal_static_google_api_BackendRule_OverridesByRequestProtocolEntry_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_api_BackendRule_OverridesByRequestProtocolEntry_descriptor,
+ new java.lang.String[] { "Key", "Value", });
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java
index ca377a1f62..4e1181a230 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * 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!
// source: google/api/backend.proto
@@ -20,24 +5,21 @@
package com.google.api;
/**
- *
- *
*
* A backend rule provides configuration for an individual API element.
*
*
* Protobuf type {@code google.api.BackendRule}
*/
-public final class BackendRule extends com.google.protobuf.GeneratedMessageV3
- implements
+public final class BackendRule extends
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.api.BackendRule)
BackendRuleOrBuilder {
- private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
// Use BackendRule.newBuilder() to construct.
private BackendRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
-
private BackendRule() {
selector_ = "";
address_ = "";
@@ -47,11 +29,13 @@ private BackendRule() {
@java.lang.Override
@SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
return new BackendRule();
}
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
return com.google.api.BackendProto.internal_static_google_api_BackendRule_descriptor;
}
@@ -63,10 +47,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
case 10:
return internalGetOverridesByRequestProtocol();
default:
- throw new RuntimeException("Invalid map field number: " + number);
+ throw new RuntimeException(
+ "Invalid map field number: " + number);
}
}
-
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
@@ -76,8 +60,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
@@ -90,12 +72,13 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
*
* Protobuf enum {@code google.api.BackendRule.PathTranslation}
*/
- public enum PathTranslation implements com.google.protobuf.ProtocolMessageEnum {
- /**
PATH_TRANSLATION_UNSPECIFIED = 0;
*/
+ public enum PathTranslation
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * PATH_TRANSLATION_UNSPECIFIED = 0;
+ */
PATH_TRANSLATION_UNSPECIFIED(0),
/**
- *
- *
*
* Use the backend address as-is, with no modification to the path. If the
* URL pattern contains variables, the variable names and values will be
@@ -126,8 +109,6 @@ public enum PathTranslation implements com.google.protobuf.ProtocolMessageEnum {
*/
CONSTANT_ADDRESS(1),
/**
- *
- *
*