diff --git a/proto-google-common-protos/src/main/java/com/google/api/Advice.java b/proto-google-common-protos/src/main/java/com/google/api/Advice.java
index 70c2dbf6..a1194c32 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/Advice.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/Advice.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 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/config_change.proto
package com.google.api;
/**
+ *
+ *
*
* Generated advice about this change, used for providing more
* information about how a change will affect the existing service.
@@ -11,33 +28,39 @@
*
* 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_ = "";
}
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Advice();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
+
private Advice(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
- throw new NullPointerException();
+ throw new java.lang.NullPointerException();
}
- int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
@@ -48,81 +71,86 @@ private Advice(
case 0:
done = true;
break;
- case 18: {
- String s = input.readStringRequireUtf8();
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
- description_ = s;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
+ description_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
}
- break;
- }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- 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;
}
- @Override
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.api.ConfigChangeProto.internal_static_google_api_Advice_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- Advice.class, Builder.class);
+ com.google.api.Advice.class, com.google.api.Advice.Builder.class);
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
- private volatile Object description_;
+ 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.
*/
- public String getDescription() {
- Object ref = description_;
- if (ref instanceof String) {
- return (String) ref;
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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.
*/
- public com.google.protobuf.ByteString
- getDescriptionBytes() {
- Object ref = description_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ 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);
description_ = b;
return b;
} else {
@@ -131,7 +159,8 @@ public String getDescription() {
}
private byte memoizedIsInitialized = -1;
- @Override
+
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -141,16 +170,15 @@ public final boolean isInitialized() {
return true;
}
- @Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
unknownFields.writeTo(output);
}
- @Override
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -164,23 +192,22 @@ public int getSerializedSize() {
return size;
}
- @Override
- public boolean equals(final Object obj) {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
- if (!(obj instanceof Advice)) {
+ if (!(obj instanceof com.google.api.Advice)) {
return super.equals(obj);
}
- Advice other = (Advice) 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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
- @Override
+ @java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
@@ -194,97 +221,103 @@ public int hashCode() {
return hash;
}
- public static 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 Advice parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.Advice parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static 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 Advice parseFrom(
+
+ 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 Advice parseFrom(byte[] data)
+
+ public static com.google.api.Advice parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Advice parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.Advice parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Advice parseFrom(java.io.InputStream input)
+
+ 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 Advice parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.Advice parseFrom(
+ 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 Advice parseDelimitedFrom(java.io.InputStream input)
+
+ 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 Advice parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.Advice parseDelimitedFrom(
+ 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 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 Advice parseFrom(
+
+ 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();
}
- @Override
- public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(Advice prototype) {
+
+ public static Builder newBuilder(com.google.api.Advice prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
- @Override
+
+ @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);
}
- @Override
- protected Builder newBuilderForType(
- BuilderParent parent) {
+ @java.lang.Override
+ 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.
@@ -292,21 +325,20 @@ protected Builder newBuilderForType(
*
* Protobuf type {@code google.api.Advice}
*/
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
// @@protoc_insertion_point(builder_implements:google.api.Advice)
com.google.api.AdviceOrBuilder {
- 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;
}
- @Override
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.api.ConfigChangeProto.internal_static_google_api_Advice_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- Advice.class, Builder.class);
+ com.google.api.Advice.class, com.google.api.Advice.Builder.class);
}
// Construct using com.google.api.Advice.newBuilder()
@@ -314,17 +346,16 @@ private Builder() {
maybeForceBuilderInitialization();
}
- private Builder(
- BuilderParent parent) {
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
+
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
- @Override
+
+ @java.lang.Override
public Builder clear() {
super.clear();
description_ = "";
@@ -332,78 +363,78 @@ public Builder clear() {
return this;
}
- @Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.api.ConfigChangeProto.internal_static_google_api_Advice_descriptor;
}
- @Override
- public Advice getDefaultInstanceForType() {
- return Advice.getDefaultInstance();
+ @java.lang.Override
+ public com.google.api.Advice getDefaultInstanceForType() {
+ return com.google.api.Advice.getDefaultInstance();
}
- @Override
- public Advice build() {
- Advice result = buildPartial();
+ @java.lang.Override
+ public com.google.api.Advice build() {
+ com.google.api.Advice result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- @Override
- public Advice buildPartial() {
- Advice result = new Advice(this);
+ @java.lang.Override
+ public com.google.api.Advice buildPartial() {
+ com.google.api.Advice result = new com.google.api.Advice(this);
result.description_ = description_;
onBuilt();
return result;
}
- @Override
+ @java.lang.Override
public Builder clone() {
return super.clone();
}
- @Override
+
+ @java.lang.Override
public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
- @Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
- @Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
- @Override
+
+ @java.lang.Override
public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
- @Override
+
+ @java.lang.Override
public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
- @Override
+
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof Advice) {
- return mergeFrom((Advice)other);
+ if (other instanceof com.google.api.Advice) {
+ return mergeFrom((com.google.api.Advice) other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(Advice other) {
- if (other == Advice.getDefaultInstance()) return this;
+ public Builder mergeFrom(com.google.api.Advice other) {
+ if (other == com.google.api.Advice.getDefaultInstance()) return this;
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
@@ -413,21 +444,21 @@ public Builder mergeFrom(Advice other) {
return this;
}
- @Override
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
- @Override
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Advice parsedMessage = null;
+ com.google.api.Advice parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Advice) e.getUnfinishedMessage();
+ parsedMessage = (com.google.api.Advice) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@@ -437,42 +468,47 @@ public Builder mergeFrom(
return this;
}
- private Object description_ = "";
+ private 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.
*/
- public String getDescription() {
- Object ref = description_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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;
+ java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
+ *
+ *
*
* 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() {
- Object ref = description_;
+ 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(
- (String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
@@ -480,106 +516,116 @@ public String getDescription() {
}
}
/**
+ *
+ *
*
* 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(
- String value) {
+ public Builder setDescription(java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
description_ = value;
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() {
-
+
description_ = getDefaultInstance().getDescription();
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;
+ *
+ * @param value The bytes for description to set.
+ * @return This builder for chaining.
*/
- public Builder setDescriptionBytes(
- com.google.protobuf.ByteString value) {
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
description_ = value;
onChanged();
return this;
}
- @Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
- @Override
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
-
// @@protoc_insertion_point(builder_scope:google.api.Advice)
}
// @@protoc_insertion_point(class_scope:google.api.Advice)
- private static final Advice DEFAULT_INSTANCE;
+ private static final com.google.api.Advice DEFAULT_INSTANCE;
+
static {
- DEFAULT_INSTANCE = new Advice();
+ DEFAULT_INSTANCE = new com.google.api.Advice();
}
- public static Advice getDefaultInstance() {
+ public static com.google.api.Advice getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @Override
- public Advice parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Advice(input, extensionRegistry);
- }
- };
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Advice parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Advice(input, extensionRegistry);
+ }
+ };
public static com.google.protobuf.Parser parser() {
return PARSER;
}
- @Override
+ @java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- @Override
- public Advice getDefaultInstanceForType() {
+ @java.lang.Override
+ public com.google.api.Advice getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
-
}
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java
index aa5b14ae..313e6ff8 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java
@@ -1,29 +1,52 @@
+/*
+ * Copyright 2020 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/config_change.proto
package com.google.api;
-public interface AdviceOrBuilder extends
+public interface AdviceOrBuilder
+ extends
// @@protoc_insertion_point(interface_extends:google.api.Advice)
com.google.protobuf.MessageOrBuilder {
/**
+ *
+ *
*
* 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.
*/
- String getDescription();
+ 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/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java b/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java
index 77218ace..fb7f8ed5 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2020 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
@@ -5,65 +20,57 @@
public final class AnnotationsProto {
private AnnotationsProto() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- registry.add(AnnotationsProto.http);
+
+ 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,
- HttpRule> http = com.google.protobuf.GeneratedMessage
- .newFileScopedGeneratedExtension(
- HttpRule.class,
- 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 {
- 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"
+ 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"
};
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- HttpProto.getDescriptor(),
- com.google.protobuf.DescriptorProtos.getDescriptor(),
- }, assigner);
+ 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));
- HttpProto.getDescriptor();
+ com.google.api.HttpProto.getDescriptor();
com.google.protobuf.DescriptorProtos.getDescriptor();
}
diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java b/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java
index 793d7e1a..cb30bf70 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2020 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
@@ -5,109 +20,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_AuthProvider_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_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 {
- 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\"j\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\taudiences\030\004 \001(\t\022\031" +
- "\n\021authorization_url\030\005 \001(\t\"-\n\021OAuthRequir" +
- "ements\022\030\n\020canonical_scopes\030\001 \001(\t\"9\n\017Auth" +
- "Requirement\022\023\n\013provider_id\030\001 \001(\t\022\021\n\taudi" +
- "ences\030\002 \001(\tBk\n\016com.google.apiB\tAuthProto" +
- "P\001ZEgoogle.golang.org/genproto/googleapi" +
- "s/api/serviceconfig;serviceconfig\242\002\004GAPI" +
- "b\006proto3"
+ 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\"L\n"
+ + "\013JwtLocation\022\020\n\006header\030\001 \001(\tH\000\022\017\n\005query\030"
+ + "\002 \001(\tH\000\022\024\n\014value_prefix\030\003 \001(\tB\004\n\002in\"\232\001\n\014"
+ + "AuthProvider\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\taudiences\030\004 \001(\t\022\031\n"
+ + "\021authorization_url\030\005 \001(\t\022.\n\rjwt_location"
+ + "s\030\006 \003(\0132\027.google.api.JwtLocation\"-\n\021OAut"
+ + "hRequirements\022\030\n\020canonical_scopes\030\001 \001(\t\""
+ + "9\n\017AuthRequirement\022\023\n\013provider_id\030\001 \001(\t\022"
+ + "\021\n\taudiences\030\002 \001(\tBk\n\016com.google.apiB\tAu"
+ + "thProtoP\001ZEgoogle.golang.org/genproto/go"
+ + "ogleapis/api/serviceconfig;serviceconfig"
+ + "\242\002\004GAPIb\006proto3"
};
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- }, assigner);
- 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 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 String[] { "Selector", "Oauth", "AllowWithoutCredential", "Requirements", });
- internal_static_google_api_AuthProvider_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_google_api_AuthProvider_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_api_AuthProvider_descriptor,
- new String[] { "Id", "Issuer", "JwksUri", "Audiences", "AuthorizationUrl", });
+ 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", "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(3);
- internal_static_google_api_OAuthRequirements_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_api_OAuthRequirements_descriptor,
- new 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(4);
- internal_static_google_api_AuthRequirement_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_api_AuthRequirement_descriptor,
- new 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/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java b/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java
index 8c7e46cf..a9eae78e 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 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
package com.google.api;
/**
+ *
+ *
*
* Configuration for an authentication provider, including support for
* [JSON Web Token
@@ -12,35 +29,43 @@
*
* 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_ = "";
jwksUri_ = "";
audiences_ = "";
authorizationUrl_ = "";
+ jwtLocations_ = java.util.Collections.emptyList();
}
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new AuthProvider();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
+
private AuthProvider(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
- throw new NullPointerException();
+ throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -53,71 +78,90 @@ private AuthProvider(
case 0:
done = true;
break;
- case 10: {
- String s = input.readStringRequireUtf8();
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
- id_ = s;
- break;
- }
- case 18: {
- String s = input.readStringRequireUtf8();
+ id_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
- issuer_ = s;
- break;
- }
- case 26: {
- String s = input.readStringRequireUtf8();
+ issuer_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
- jwksUri_ = s;
- break;
- }
- case 34: {
- String s = input.readStringRequireUtf8();
+ jwksUri_ = s;
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
- audiences_ = s;
- break;
- }
- case 42: {
- String s = input.readStringRequireUtf8();
+ audiences_ = s;
+ break;
+ }
+ case 42:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
- authorizationUrl_ = s;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
+ authorizationUrl_ = s;
+ break;
+ }
+ case 50:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ jwtLocations_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ jwtLocations_.add(
+ input.readMessage(com.google.api.JwtLocation.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
}
- break;
- }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ jwtLocations_ = java.util.Collections.unmodifiableList(jwtLocations_);
+ }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return AuthProto.internal_static_google_api_AuthProvider_descriptor;
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.api.AuthProto.internal_static_google_api_AuthProvider_descriptor;
}
- @Override
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return AuthProto.internal_static_google_api_AuthProvider_fieldAccessorTable
+ return com.google.api.AuthProto.internal_static_google_api_AuthProvider_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- AuthProvider.class, Builder.class);
+ com.google.api.AuthProvider.class, com.google.api.AuthProvider.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
- private volatile Object id_;
+ private volatile java.lang.Object id_;
/**
+ *
+ *
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -125,20 +169,23 @@ private AuthProvider(
*
*
* string id = 1;
+ *
+ * @return The id.
*/
- public String getId() {
- Object ref = id_;
- if (ref instanceof String) {
- return (String) ref;
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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`.
@@ -146,14 +193,14 @@ public String getId() {
*
*
* string id = 1;
+ *
+ * @return The bytes for id.
*/
- public com.google.protobuf.ByteString
- getIdBytes() {
- Object ref = id_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ 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);
id_ = b;
return b;
} else {
@@ -162,8 +209,10 @@ public String getId() {
}
public static final int ISSUER_FIELD_NUMBER = 2;
- private volatile Object issuer_;
+ 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
@@ -173,20 +222,23 @@ public String getId() {
*
*
* string issuer = 2;
+ *
+ * @return The issuer.
*/
- public String getIssuer() {
- Object ref = issuer_;
- if (ref instanceof String) {
- return (String) ref;
+ public java.lang.String getIssuer() {
+ java.lang.Object ref = issuer_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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
@@ -196,14 +248,14 @@ public String getIssuer() {
*
*
* string issuer = 2;
+ *
+ * @return The bytes for issuer.
*/
- public com.google.protobuf.ByteString
- getIssuerBytes() {
- Object ref = issuer_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ 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);
issuer_ = b;
return b;
} else {
@@ -212,8 +264,10 @@ public String getIssuer() {
}
public static final int JWKS_URI_FIELD_NUMBER = 3;
- private volatile Object jwksUri_;
+ private volatile java.lang.Object jwksUri_;
/**
+ *
+ *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -229,20 +283,23 @@ public String getIssuer() {
*
*
* string jwks_uri = 3;
+ *
+ * @return The jwksUri.
*/
- public String getJwksUri() {
- Object ref = jwksUri_;
- if (ref instanceof String) {
- return (String) ref;
+ public java.lang.String getJwksUri() {
+ java.lang.Object ref = jwksUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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
@@ -258,14 +315,14 @@ public String getJwksUri() {
*
*
* string jwks_uri = 3;
+ *
+ * @return The bytes for jwksUri.
*/
- public com.google.protobuf.ByteString
- getJwksUriBytes() {
- Object ref = jwksUri_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ 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);
jwksUri_ = b;
return b;
} else {
@@ -274,8 +331,10 @@ public String getJwksUri() {
}
public static final int AUDIENCES_FIELD_NUMBER = 4;
- private volatile Object audiences_;
+ 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).
@@ -291,20 +350,23 @@ public String getJwksUri() {
*
*
* string audiences = 4;
+ *
+ * @return The audiences.
*/
- public String getAudiences() {
- Object ref = audiences_;
- if (ref instanceof String) {
- return (String) ref;
+ public java.lang.String getAudiences() {
+ java.lang.Object ref = audiences_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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).
@@ -320,14 +382,14 @@ public String getAudiences() {
*
*
* string audiences = 4;
+ *
+ * @return The bytes for audiences.
*/
- public com.google.protobuf.ByteString
- getAudiencesBytes() {
- Object ref = audiences_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ 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);
audiences_ = b;
return b;
} else {
@@ -336,42 +398,47 @@ public String getAudiences() {
}
public static final int AUTHORIZATION_URL_FIELD_NUMBER = 5;
- private volatile Object authorizationUrl_;
+ 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.
*/
- public String getAuthorizationUrl() {
- Object ref = authorizationUrl_;
- if (ref instanceof String) {
- return (String) ref;
+ public java.lang.String getAuthorizationUrl() {
+ java.lang.Object ref = authorizationUrl_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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.
*/
- public com.google.protobuf.ByteString
- getAuthorizationUrlBytes() {
- Object ref = authorizationUrl_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ 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);
authorizationUrl_ = b;
return b;
} else {
@@ -379,8 +446,138 @@ public String getAuthorizationUrl() {
}
}
+ public static final int JWT_LOCATIONS_FIELD_NUMBER = 6;
+ private java.util.List jwtLocations_;
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public java.util.List getJwtLocationsList() {
+ return jwtLocations_;
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public java.util.List extends com.google.api.JwtLocationOrBuilder>
+ getJwtLocationsOrBuilderList() {
+ return jwtLocations_;
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public int getJwtLocationsCount() {
+ return jwtLocations_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public com.google.api.JwtLocation getJwtLocations(int index) {
+ return jwtLocations_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index) {
+ return jwtLocations_.get(index);
+ }
+
private byte memoizedIsInitialized = -1;
- @Override
+
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -390,9 +587,8 @@ public final boolean isInitialized() {
return true;
}
- @Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
@@ -408,10 +604,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!getAuthorizationUrlBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, authorizationUrl_);
}
+ for (int i = 0; i < jwtLocations_.size(); i++) {
+ output.writeMessage(6, jwtLocations_.get(i));
+ }
unknownFields.writeTo(output);
}
- @Override
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -432,36 +631,35 @@ public int getSerializedSize() {
if (!getAuthorizationUrlBytes().isEmpty()) {
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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
- @Override
- public boolean equals(final Object obj) {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
- if (!(obj instanceof AuthProvider)) {
+ if (!(obj instanceof com.google.api.AuthProvider)) {
return super.equals(obj);
}
- AuthProvider other = (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;
+ 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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
- @Override
+ @java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
@@ -478,102 +676,112 @@ public int hashCode() {
hash = (53 * hash) + getAudiences().hashCode();
hash = (37 * hash) + AUTHORIZATION_URL_FIELD_NUMBER;
hash = (53 * hash) + getAuthorizationUrl().hashCode();
+ if (getJwtLocationsCount() > 0) {
+ hash = (37 * hash) + JWT_LOCATIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getJwtLocationsList().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
- public static 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 AuthProvider parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.AuthProvider parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static 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 AuthProvider parseFrom(
+
+ 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 AuthProvider parseFrom(byte[] data)
+
+ public static com.google.api.AuthProvider parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static AuthProvider parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.AuthProvider parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static AuthProvider parseFrom(java.io.InputStream input)
+
+ 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 AuthProvider parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.AuthProvider parseFrom(
+ 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 AuthProvider parseDelimitedFrom(java.io.InputStream input)
+
+ 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 AuthProvider parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.AuthProvider parseDelimitedFrom(
+ 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 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 AuthProvider parseFrom(
+
+ 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();
}
- @Override
- public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(AuthProvider prototype) {
+
+ public static Builder newBuilder(com.google.api.AuthProvider prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
- @Override
+
+ @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);
}
- @Override
- protected Builder newBuilderForType(
- BuilderParent parent) {
+ @java.lang.Override
+ 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
@@ -582,21 +790,20 @@ protected Builder newBuilderForType(
*
* Protobuf type {@code google.api.AuthProvider}
*/
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
// @@protoc_insertion_point(builder_implements:google.api.AuthProvider)
com.google.api.AuthProviderOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return AuthProto.internal_static_google_api_AuthProvider_descriptor;
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.api.AuthProto.internal_static_google_api_AuthProvider_descriptor;
}
- @Override
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return AuthProto.internal_static_google_api_AuthProvider_fieldAccessorTable
+ return com.google.api.AuthProto.internal_static_google_api_AuthProvider_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- AuthProvider.class, Builder.class);
+ com.google.api.AuthProvider.class, com.google.api.AuthProvider.Builder.class);
}
// Construct using com.google.api.AuthProvider.newBuilder()
@@ -604,17 +811,18 @@ private Builder() {
maybeForceBuilderInitialization();
}
- private Builder(
- BuilderParent parent) {
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
+
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getJwtLocationsFieldBuilder();
}
}
- @Override
+
+ @java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
@@ -627,85 +835,101 @@ public Builder clear() {
authorizationUrl_ = "";
+ if (jwtLocationsBuilder_ == null) {
+ jwtLocations_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ jwtLocationsBuilder_.clear();
+ }
return this;
}
- @Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return AuthProto.internal_static_google_api_AuthProvider_descriptor;
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.api.AuthProto.internal_static_google_api_AuthProvider_descriptor;
}
- @Override
- public AuthProvider getDefaultInstanceForType() {
- return AuthProvider.getDefaultInstance();
+ @java.lang.Override
+ public com.google.api.AuthProvider getDefaultInstanceForType() {
+ return com.google.api.AuthProvider.getDefaultInstance();
}
- @Override
- public AuthProvider build() {
- AuthProvider result = buildPartial();
+ @java.lang.Override
+ public com.google.api.AuthProvider build() {
+ com.google.api.AuthProvider result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- @Override
- public AuthProvider buildPartial() {
- AuthProvider result = new AuthProvider(this);
+ @java.lang.Override
+ public com.google.api.AuthProvider buildPartial() {
+ com.google.api.AuthProvider result = new com.google.api.AuthProvider(this);
+ int from_bitField0_ = bitField0_;
result.id_ = id_;
result.issuer_ = issuer_;
result.jwksUri_ = jwksUri_;
result.audiences_ = audiences_;
result.authorizationUrl_ = authorizationUrl_;
+ if (jwtLocationsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ jwtLocations_ = java.util.Collections.unmodifiableList(jwtLocations_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.jwtLocations_ = jwtLocations_;
+ } else {
+ result.jwtLocations_ = jwtLocationsBuilder_.build();
+ }
onBuilt();
return result;
}
- @Override
+ @java.lang.Override
public Builder clone() {
return super.clone();
}
- @Override
+
+ @java.lang.Override
public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
- @Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
- @Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
- @Override
+
+ @java.lang.Override
public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
- @Override
+
+ @java.lang.Override
public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
- @Override
+
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof AuthProvider) {
- return mergeFrom((AuthProvider)other);
+ if (other instanceof com.google.api.AuthProvider) {
+ return mergeFrom((com.google.api.AuthProvider) other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(AuthProvider other) {
- if (other == AuthProvider.getDefaultInstance()) return this;
+ public Builder mergeFrom(com.google.api.AuthProvider other) {
+ if (other == com.google.api.AuthProvider.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
@@ -726,26 +950,53 @@ public Builder mergeFrom(AuthProvider other) {
authorizationUrl_ = other.authorizationUrl_;
onChanged();
}
+ if (jwtLocationsBuilder_ == null) {
+ if (!other.jwtLocations_.isEmpty()) {
+ if (jwtLocations_.isEmpty()) {
+ jwtLocations_ = other.jwtLocations_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureJwtLocationsIsMutable();
+ jwtLocations_.addAll(other.jwtLocations_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.jwtLocations_.isEmpty()) {
+ if (jwtLocationsBuilder_.isEmpty()) {
+ jwtLocationsBuilder_.dispose();
+ jwtLocationsBuilder_ = null;
+ jwtLocations_ = other.jwtLocations_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ jwtLocationsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getJwtLocationsFieldBuilder()
+ : null;
+ } else {
+ jwtLocationsBuilder_.addAllMessages(other.jwtLocations_);
+ }
+ }
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
- @Override
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
- @Override
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- AuthProvider parsedMessage = null;
+ com.google.api.AuthProvider parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (AuthProvider) e.getUnfinishedMessage();
+ parsedMessage = (com.google.api.AuthProvider) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@@ -755,8 +1006,12 @@ public Builder mergeFrom(
return this;
}
- private Object id_ = "";
+ private int bitField0_;
+
+ private java.lang.Object id_ = "";
/**
+ *
+ *
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -764,20 +1019,23 @@ public Builder mergeFrom(
*
*
* string id = 1;
+ *
+ * @return The id.
*/
- public String getId() {
- Object ref = id_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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;
+ java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
+ *
+ *
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -785,14 +1043,14 @@ public String getId() {
*
*
* string id = 1;
+ *
+ * @return The bytes for id.
*/
- public com.google.protobuf.ByteString
- getIdBytes() {
- Object ref = id_;
+ 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(
- (String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
id_ = b;
return b;
} else {
@@ -800,6 +1058,8 @@ public String getId() {
}
}
/**
+ *
+ *
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -807,18 +1067,22 @@ public String getId() {
*
*
* string id = 1;
+ *
+ * @param value The id to set.
+ * @return This builder for chaining.
*/
- public Builder setId(
- String value) {
+ public Builder setId(java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
id_ = value;
onChanged();
return this;
}
/**
+ *
+ *
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -826,14 +1090,18 @@ public Builder setId(
*
*
* string id = 1;
+ *
+ * @return This builder for chaining.
*/
public Builder clearId() {
-
+
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
+ *
+ *
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -841,21 +1109,25 @@ 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) {
+ public Builder setIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
id_ = value;
onChanged();
return this;
}
- private Object issuer_ = "";
+ 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
@@ -865,20 +1137,23 @@ public Builder setIdBytes(
*
*
* string issuer = 2;
+ *
+ * @return The issuer.
*/
- public String getIssuer() {
- Object ref = issuer_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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;
+ java.lang.String s = bs.toStringUtf8();
issuer_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
+ *
+ *
*
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
@@ -888,14 +1163,14 @@ public String getIssuer() {
*
*
* string issuer = 2;
+ *
+ * @return The bytes for issuer.
*/
- public com.google.protobuf.ByteString
- getIssuerBytes() {
- Object ref = issuer_;
+ 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(
- (String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
issuer_ = b;
return b;
} else {
@@ -903,6 +1178,8 @@ public 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
@@ -912,18 +1189,22 @@ public String getIssuer() {
*
*
* string issuer = 2;
+ *
+ * @param value The issuer to set.
+ * @return This builder for chaining.
*/
- public Builder setIssuer(
- String value) {
+ public Builder setIssuer(java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
issuer_ = value;
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
@@ -933,14 +1214,18 @@ public Builder setIssuer(
*
*
* string issuer = 2;
+ *
+ * @return This builder for chaining.
*/
public Builder clearIssuer() {
-
+
issuer_ = getDefaultInstance().getIssuer();
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
@@ -950,21 +1235,25 @@ 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) {
+ public Builder setIssuerBytes(com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
issuer_ = value;
onChanged();
return this;
}
- private Object jwksUri_ = "";
+ private java.lang.Object jwksUri_ = "";
/**
+ *
+ *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -980,20 +1269,23 @@ public Builder setIssuerBytes(
*
*
* string jwks_uri = 3;
+ *
+ * @return The jwksUri.
*/
- public String getJwksUri() {
- Object ref = jwksUri_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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;
+ java.lang.String s = bs.toStringUtf8();
jwksUri_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
+ *
+ *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -1009,14 +1301,14 @@ public String getJwksUri() {
*
*
* string jwks_uri = 3;
+ *
+ * @return The bytes for jwksUri.
*/
- public com.google.protobuf.ByteString
- getJwksUriBytes() {
- Object ref = jwksUri_;
+ 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(
- (String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
jwksUri_ = b;
return b;
} else {
@@ -1024,6 +1316,8 @@ public String getJwksUri() {
}
}
/**
+ *
+ *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -1039,18 +1333,22 @@ public String getJwksUri() {
*
*
* string jwks_uri = 3;
+ *
+ * @param value The jwksUri to set.
+ * @return This builder for chaining.
*/
- public Builder setJwksUri(
- String value) {
+ public Builder setJwksUri(java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
jwksUri_ = value;
onChanged();
return this;
}
/**
+ *
+ *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -1066,14 +1364,18 @@ public Builder setJwksUri(
*
*
* string jwks_uri = 3;
+ *
+ * @return This builder for chaining.
*/
public Builder clearJwksUri() {
-
+
jwksUri_ = getDefaultInstance().getJwksUri();
onChanged();
return this;
}
/**
+ *
+ *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -1089,21 +1391,25 @@ 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) {
+ public Builder setJwksUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
jwksUri_ = value;
onChanged();
return this;
}
- private Object audiences_ = "";
+ 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).
@@ -1119,20 +1425,23 @@ public Builder setJwksUriBytes(
*
*
* string audiences = 4;
+ *
+ * @return The audiences.
*/
- public String getAudiences() {
- Object ref = audiences_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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;
+ java.lang.String s = bs.toStringUtf8();
audiences_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
+ *
+ *
*
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -1148,14 +1457,14 @@ public String getAudiences() {
*
*
* string audiences = 4;
+ *
+ * @return The bytes for audiences.
*/
- public com.google.protobuf.ByteString
- getAudiencesBytes() {
- Object ref = audiences_;
+ 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(
- (String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
audiences_ = b;
return b;
} else {
@@ -1163,6 +1472,8 @@ public String getAudiences() {
}
}
/**
+ *
+ *
*
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -1178,18 +1489,22 @@ public String getAudiences() {
*
*
* string audiences = 4;
+ *
+ * @param value The audiences to set.
+ * @return This builder for chaining.
*/
- public Builder setAudiences(
- String value) {
+ public Builder setAudiences(java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
audiences_ = value;
onChanged();
return this;
}
/**
+ *
+ *
*
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -1205,14 +1520,18 @@ public Builder setAudiences(
*
*
* string audiences = 4;
+ *
+ * @return This builder for chaining.
*/
public Builder clearAudiences() {
-
+
audiences_ = getDefaultInstance().getAudiences();
onChanged();
return this;
}
/**
+ *
+ *
*
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
@@ -1228,55 +1547,62 @@ 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) {
+ public Builder setAudiencesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
audiences_ = value;
onChanged();
return this;
}
- private Object authorizationUrl_ = "";
+ 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 String getAuthorizationUrl() {
- Object ref = authorizationUrl_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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;
+ java.lang.String s = bs.toStringUtf8();
authorizationUrl_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
+ *
+ *
*
* 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() {
- Object ref = authorizationUrl_;
+ 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(
- (String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
authorizationUrl_ = b;
return b;
} else {
@@ -1284,106 +1610,696 @@ public 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;
+ *
+ * @param value The authorizationUrl to set.
+ * @return This builder for chaining.
*/
- public Builder setAuthorizationUrl(
- String value) {
+ public Builder setAuthorizationUrl(java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
authorizationUrl_ = value;
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() {
-
+
authorizationUrl_ = getDefaultInstance().getAuthorizationUrl();
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;
+ *
+ * @param value The bytes for authorizationUrl to set.
+ * @return This builder for chaining.
*/
- public Builder setAuthorizationUrlBytes(
- com.google.protobuf.ByteString value) {
+ public Builder setAuthorizationUrlBytes(com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
authorizationUrl_ = value;
onChanged();
return this;
}
- @Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+ private java.util.List jwtLocations_ =
+ java.util.Collections.emptyList();
+
+ private void ensureJwtLocationsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ jwtLocations_ = new java.util.ArrayList(jwtLocations_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.api.JwtLocation,
+ com.google.api.JwtLocation.Builder,
+ com.google.api.JwtLocationOrBuilder>
+ jwtLocationsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public java.util.List getJwtLocationsList() {
+ if (jwtLocationsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(jwtLocations_);
+ } else {
+ return jwtLocationsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public int getJwtLocationsCount() {
+ if (jwtLocationsBuilder_ == null) {
+ return jwtLocations_.size();
+ } else {
+ return jwtLocationsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public com.google.api.JwtLocation getJwtLocations(int index) {
+ if (jwtLocationsBuilder_ == null) {
+ return jwtLocations_.get(index);
+ } else {
+ return jwtLocationsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public Builder setJwtLocations(int index, com.google.api.JwtLocation value) {
+ if (jwtLocationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureJwtLocationsIsMutable();
+ jwtLocations_.set(index, value);
+ onChanged();
+ } else {
+ jwtLocationsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public Builder setJwtLocations(int index, com.google.api.JwtLocation.Builder builderForValue) {
+ if (jwtLocationsBuilder_ == null) {
+ ensureJwtLocationsIsMutable();
+ jwtLocations_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ jwtLocationsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public Builder addJwtLocations(com.google.api.JwtLocation value) {
+ if (jwtLocationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureJwtLocationsIsMutable();
+ jwtLocations_.add(value);
+ onChanged();
+ } else {
+ jwtLocationsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public Builder addJwtLocations(int index, com.google.api.JwtLocation value) {
+ if (jwtLocationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureJwtLocationsIsMutable();
+ jwtLocations_.add(index, value);
+ onChanged();
+ } else {
+ jwtLocationsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public Builder addJwtLocations(com.google.api.JwtLocation.Builder builderForValue) {
+ if (jwtLocationsBuilder_ == null) {
+ ensureJwtLocationsIsMutable();
+ jwtLocations_.add(builderForValue.build());
+ onChanged();
+ } else {
+ jwtLocationsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public Builder addJwtLocations(int index, com.google.api.JwtLocation.Builder builderForValue) {
+ if (jwtLocationsBuilder_ == null) {
+ ensureJwtLocationsIsMutable();
+ jwtLocations_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ jwtLocationsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public Builder addAllJwtLocations(
+ java.lang.Iterable extends com.google.api.JwtLocation> values) {
+ if (jwtLocationsBuilder_ == null) {
+ ensureJwtLocationsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jwtLocations_);
+ onChanged();
+ } else {
+ jwtLocationsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public Builder clearJwtLocations() {
+ if (jwtLocationsBuilder_ == null) {
+ jwtLocations_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ jwtLocationsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public Builder removeJwtLocations(int index) {
+ if (jwtLocationsBuilder_ == null) {
+ ensureJwtLocationsIsMutable();
+ jwtLocations_.remove(index);
+ onChanged();
+ } else {
+ jwtLocationsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public com.google.api.JwtLocation.Builder getJwtLocationsBuilder(int index) {
+ return getJwtLocationsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index) {
+ if (jwtLocationsBuilder_ == null) {
+ return jwtLocations_.get(index);
+ } else {
+ return jwtLocationsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public java.util.List extends com.google.api.JwtLocationOrBuilder>
+ getJwtLocationsOrBuilderList() {
+ if (jwtLocationsBuilder_ != null) {
+ return jwtLocationsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(jwtLocations_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public com.google.api.JwtLocation.Builder addJwtLocationsBuilder() {
+ return getJwtLocationsFieldBuilder()
+ .addBuilder(com.google.api.JwtLocation.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * 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());
+ }
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ public java.util.List getJwtLocationsBuilderList() {
+ return getJwtLocationsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.api.JwtLocation,
+ com.google.api.JwtLocation.Builder,
+ com.google.api.JwtLocationOrBuilder>
+ getJwtLocationsFieldBuilder() {
+ if (jwtLocationsBuilder_ == null) {
+ jwtLocationsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.api.JwtLocation,
+ com.google.api.JwtLocation.Builder,
+ com.google.api.JwtLocationOrBuilder>(
+ jwtLocations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ jwtLocations_ = null;
+ }
+ return jwtLocationsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
- @Override
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
-
// @@protoc_insertion_point(builder_scope:google.api.AuthProvider)
}
// @@protoc_insertion_point(class_scope:google.api.AuthProvider)
- private static final AuthProvider DEFAULT_INSTANCE;
+ private static final com.google.api.AuthProvider DEFAULT_INSTANCE;
+
static {
- DEFAULT_INSTANCE = new AuthProvider();
+ DEFAULT_INSTANCE = new com.google.api.AuthProvider();
}
- public static AuthProvider getDefaultInstance() {
+ public static com.google.api.AuthProvider getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @Override
- public AuthProvider parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new AuthProvider(input, extensionRegistry);
- }
- };
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public AuthProvider parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new AuthProvider(input, extensionRegistry);
+ }
+ };
public static com.google.protobuf.Parser parser() {
return PARSER;
}
- @Override
+ @java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- @Override
- public AuthProvider getDefaultInstanceForType() {
+ @java.lang.Override
+ public com.google.api.AuthProvider getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
-
}
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java
index b24c56f0..e285ada7 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
package com.google.api;
-public interface AuthProviderOrBuilder extends
+public interface AuthProviderOrBuilder
+ extends
// @@protoc_insertion_point(interface_extends:google.api.AuthProvider)
com.google.protobuf.MessageOrBuilder {
/**
+ *
+ *
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -15,9 +33,13 @@ public interface AuthProviderOrBuilder extends
*
*
* string id = 1;
+ *
+ * @return The id.
*/
- String getId();
+ java.lang.String getId();
/**
+ *
+ *
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
@@ -25,11 +47,14 @@ public interface AuthProviderOrBuilder extends
*
*
* 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
@@ -39,9 +64,13 @@ public interface AuthProviderOrBuilder extends
*
*
* string issuer = 2;
+ *
+ * @return The issuer.
*/
- String getIssuer();
+ 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
@@ -51,11 +80,14 @@ public interface AuthProviderOrBuilder extends
*
*
* 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
@@ -71,9 +103,13 @@ public interface AuthProviderOrBuilder extends
*
*
* string jwks_uri = 3;
+ *
+ * @return The jwksUri.
*/
- String getJwksUri();
+ java.lang.String getJwksUri();
/**
+ *
+ *
*
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID
@@ -89,11 +125,14 @@ public interface AuthProviderOrBuilder extends
*
*
* 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).
@@ -109,9 +148,13 @@ public interface AuthProviderOrBuilder extends
*
*
* string audiences = 4;
+ *
+ * @return The audiences.
*/
- String getAudiences();
+ 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).
@@ -127,27 +170,151 @@ public interface AuthProviderOrBuilder extends
*
*
* 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.
*/
- String getAuthorizationUrl();
+ 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();
+
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ java.util.List getJwtLocationsList();
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ com.google.api.JwtLocation getJwtLocations(int index);
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ int getJwtLocationsCount();
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
+ */
+ java.util.List extends com.google.api.JwtLocationOrBuilder> getJwtLocationsOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Defines the locations to extract the JWT.
+ * JWT locations can be either from HTTP headers or URL query parameters.
+ * The rule is that the first match wins. The checking order is: checking
+ * all headers first, then URL query parameters.
+ * If not specified, default to use following 3 locations:
+ * 1) Authorization: Bearer
+ * 2) x-goog-iap-jwt-assertion
+ * 3) access_token query parameter
+ * Default locations can be specified as followings:
+ * jwt_locations:
+ * - header: Authorization
+ * value_prefix: "Bearer "
+ * - header: x-goog-iap-jwt-assertion
+ * - query: access_token
+ *
+ *
+ * repeated .google.api.JwtLocation jwt_locations = 6;
*/
- com.google.protobuf.ByteString
- getAuthorizationUrlBytes();
+ com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index);
}
diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java b/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java
index 3b16541f..4c2f5840 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 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
package com.google.api;
/**
+ *
+ *
*
* User-defined authentication requirements, including support for
* [JSON Web Token
@@ -12,34 +29,40 @@
*
* 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_ = "";
}
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new AuthRequirement();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
+
private AuthRequirement(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
- throw new NullPointerException();
+ throw new java.lang.NullPointerException();
}
- int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
@@ -50,53 +73,56 @@ private AuthRequirement(
case 0:
done = true;
break;
- case 10: {
- String s = input.readStringRequireUtf8();
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
- providerId_ = s;
- break;
- }
- case 18: {
- String s = input.readStringRequireUtf8();
+ providerId_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
- audiences_ = s;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
+ audiences_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
}
- break;
- }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return AuthProto.internal_static_google_api_AuthRequirement_descriptor;
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_descriptor;
}
- @Override
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return AuthProto.internal_static_google_api_AuthRequirement_fieldAccessorTable
+ return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- AuthRequirement.class, Builder.class);
+ com.google.api.AuthRequirement.class, com.google.api.AuthRequirement.Builder.class);
}
public static final int PROVIDER_ID_FIELD_NUMBER = 1;
- private volatile Object providerId_;
+ private volatile java.lang.Object providerId_;
/**
+ *
+ *
*
* [id][google.api.AuthProvider.id] from authentication provider.
* Example:
@@ -104,20 +130,23 @@ private AuthRequirement(
*
*
* string provider_id = 1;
+ *
+ * @return The providerId.
*/
- public String getProviderId() {
- Object ref = providerId_;
- if (ref instanceof String) {
- return (String) ref;
+ public java.lang.String getProviderId() {
+ java.lang.Object ref = providerId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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.
* Example:
@@ -125,14 +154,14 @@ public String getProviderId() {
*
*
* string provider_id = 1;
+ *
+ * @return The bytes for providerId.
*/
- public com.google.protobuf.ByteString
- getProviderIdBytes() {
- Object ref = providerId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ 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);
providerId_ = b;
return b;
} else {
@@ -141,8 +170,10 @@ public String getProviderId() {
}
public static final int AUDIENCES_FIELD_NUMBER = 2;
- private volatile Object audiences_;
+ private volatile java.lang.Object audiences_;
/**
+ *
+ *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -160,20 +191,23 @@ public String getProviderId() {
*
*
* string audiences = 2;
+ *
+ * @return The audiences.
*/
- public String getAudiences() {
- Object ref = audiences_;
- if (ref instanceof String) {
- return (String) ref;
+ public java.lang.String getAudiences() {
+ java.lang.Object ref = audiences_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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.
@@ -191,14 +225,14 @@ public String getAudiences() {
*
*
* string audiences = 2;
+ *
+ * @return The bytes for audiences.
*/
- public com.google.protobuf.ByteString
- getAudiencesBytes() {
- Object ref = audiences_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ 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);
audiences_ = b;
return b;
} else {
@@ -207,7 +241,8 @@ public String getAudiences() {
}
private byte memoizedIsInitialized = -1;
- @Override
+
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -217,9 +252,8 @@ public final boolean isInitialized() {
return true;
}
- @Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getProviderIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, providerId_);
}
@@ -229,7 +263,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
unknownFields.writeTo(output);
}
- @Override
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -246,25 +280,23 @@ public int getSerializedSize() {
return size;
}
- @Override
- public boolean equals(final Object obj) {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
- if (!(obj instanceof AuthRequirement)) {
+ if (!(obj instanceof com.google.api.AuthRequirement)) {
return super.equals(obj);
}
- AuthRequirement other = (AuthRequirement) 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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
- @Override
+ @java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
@@ -280,97 +312,103 @@ public int hashCode() {
return hash;
}
- public static 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 AuthRequirement parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.AuthRequirement parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static 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 AuthRequirement parseFrom(
+
+ 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 AuthRequirement parseFrom(byte[] data)
+
+ public static com.google.api.AuthRequirement parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static AuthRequirement parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.AuthRequirement parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static AuthRequirement parseFrom(java.io.InputStream input)
+
+ 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 AuthRequirement parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.AuthRequirement parseFrom(
+ 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 AuthRequirement parseDelimitedFrom(java.io.InputStream input)
+
+ 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 AuthRequirement parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.AuthRequirement parseDelimitedFrom(
+ 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 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 AuthRequirement parseFrom(
+
+ 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();
}
- @Override
- public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(AuthRequirement prototype) {
+
+ public static Builder newBuilder(com.google.api.AuthRequirement prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
- @Override
+
+ @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);
}
- @Override
- protected Builder newBuilderForType(
- BuilderParent parent) {
+ @java.lang.Override
+ 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
@@ -379,21 +417,20 @@ protected Builder newBuilderForType(
*
* Protobuf type {@code google.api.AuthRequirement}
*/
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
// @@protoc_insertion_point(builder_implements:google.api.AuthRequirement)
com.google.api.AuthRequirementOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return AuthProto.internal_static_google_api_AuthRequirement_descriptor;
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_descriptor;
}
- @Override
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return AuthProto.internal_static_google_api_AuthRequirement_fieldAccessorTable
+ return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- AuthRequirement.class, Builder.class);
+ com.google.api.AuthRequirement.class, com.google.api.AuthRequirement.Builder.class);
}
// Construct using com.google.api.AuthRequirement.newBuilder()
@@ -401,17 +438,16 @@ private Builder() {
maybeForceBuilderInitialization();
}
- private Builder(
- BuilderParent parent) {
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
+
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
- @Override
+
+ @java.lang.Override
public Builder clear() {
super.clear();
providerId_ = "";
@@ -421,79 +457,79 @@ public Builder clear() {
return this;
}
- @Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return AuthProto.internal_static_google_api_AuthRequirement_descriptor;
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_descriptor;
}
- @Override
- public AuthRequirement getDefaultInstanceForType() {
- return AuthRequirement.getDefaultInstance();
+ @java.lang.Override
+ public com.google.api.AuthRequirement getDefaultInstanceForType() {
+ return com.google.api.AuthRequirement.getDefaultInstance();
}
- @Override
- public AuthRequirement build() {
- AuthRequirement result = buildPartial();
+ @java.lang.Override
+ public com.google.api.AuthRequirement build() {
+ com.google.api.AuthRequirement result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- @Override
- public AuthRequirement buildPartial() {
- AuthRequirement result = new AuthRequirement(this);
+ @java.lang.Override
+ public com.google.api.AuthRequirement buildPartial() {
+ com.google.api.AuthRequirement result = new com.google.api.AuthRequirement(this);
result.providerId_ = providerId_;
result.audiences_ = audiences_;
onBuilt();
return result;
}
- @Override
+ @java.lang.Override
public Builder clone() {
return super.clone();
}
- @Override
+
+ @java.lang.Override
public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
- @Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
- @Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
- @Override
+
+ @java.lang.Override
public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
- @Override
+
+ @java.lang.Override
public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
- @Override
+
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof AuthRequirement) {
- return mergeFrom((AuthRequirement)other);
+ if (other instanceof com.google.api.AuthRequirement) {
+ return mergeFrom((com.google.api.AuthRequirement) other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(AuthRequirement other) {
- if (other == AuthRequirement.getDefaultInstance()) return this;
+ public Builder mergeFrom(com.google.api.AuthRequirement other) {
+ if (other == com.google.api.AuthRequirement.getDefaultInstance()) return this;
if (!other.getProviderId().isEmpty()) {
providerId_ = other.providerId_;
onChanged();
@@ -507,21 +543,21 @@ public Builder mergeFrom(AuthRequirement other) {
return this;
}
- @Override
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
- @Override
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- AuthRequirement parsedMessage = null;
+ com.google.api.AuthRequirement parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (AuthRequirement) e.getUnfinishedMessage();
+ parsedMessage = (com.google.api.AuthRequirement) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@@ -531,8 +567,10 @@ public Builder mergeFrom(
return this;
}
- private Object providerId_ = "";
+ private java.lang.Object providerId_ = "";
/**
+ *
+ *
*
* [id][google.api.AuthProvider.id] from authentication provider.
* Example:
@@ -540,20 +578,23 @@ public Builder mergeFrom(
*
*
* string provider_id = 1;
+ *
+ * @return The providerId.
*/
- public String getProviderId() {
- Object ref = providerId_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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;
+ java.lang.String s = bs.toStringUtf8();
providerId_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
+ *
+ *
*
* [id][google.api.AuthProvider.id] from authentication provider.
* Example:
@@ -561,14 +602,14 @@ public String getProviderId() {
*
*
* string provider_id = 1;
+ *
+ * @return The bytes for providerId.
*/
- public com.google.protobuf.ByteString
- getProviderIdBytes() {
- Object ref = providerId_;
+ 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(
- (String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
providerId_ = b;
return b;
} else {
@@ -576,6 +617,8 @@ public String getProviderId() {
}
}
/**
+ *
+ *
*
* [id][google.api.AuthProvider.id] from authentication provider.
* Example:
@@ -583,18 +626,22 @@ public String getProviderId() {
*
*
* string provider_id = 1;
+ *
+ * @param value The providerId to set.
+ * @return This builder for chaining.
*/
- public Builder setProviderId(
- String value) {
+ public Builder setProviderId(java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
providerId_ = value;
onChanged();
return this;
}
/**
+ *
+ *
*
* [id][google.api.AuthProvider.id] from authentication provider.
* Example:
@@ -602,14 +649,18 @@ public Builder setProviderId(
*
*
* string provider_id = 1;
+ *
+ * @return This builder for chaining.
*/
public Builder clearProviderId() {
-
+
providerId_ = getDefaultInstance().getProviderId();
onChanged();
return this;
}
/**
+ *
+ *
*
* [id][google.api.AuthProvider.id] from authentication provider.
* Example:
@@ -617,21 +668,25 @@ 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) {
+ public Builder setProviderIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
providerId_ = value;
onChanged();
return this;
}
- private Object audiences_ = "";
+ private java.lang.Object audiences_ = "";
/**
+ *
+ *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -649,20 +704,23 @@ public Builder setProviderIdBytes(
*
*
* string audiences = 2;
+ *
+ * @return The audiences.
*/
- public String getAudiences() {
- Object ref = audiences_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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;
+ java.lang.String s = bs.toStringUtf8();
audiences_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
+ *
+ *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -680,14 +738,14 @@ public String getAudiences() {
*
*
* string audiences = 2;
+ *
+ * @return The bytes for audiences.
*/
- public com.google.protobuf.ByteString
- getAudiencesBytes() {
- Object ref = audiences_;
+ 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(
- (String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
audiences_ = b;
return b;
} else {
@@ -695,6 +753,8 @@ public String getAudiences() {
}
}
/**
+ *
+ *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -712,18 +772,22 @@ public String getAudiences() {
*
*
* string audiences = 2;
+ *
+ * @param value The audiences to set.
+ * @return This builder for chaining.
*/
- public Builder setAudiences(
- String value) {
+ public Builder setAudiences(java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
audiences_ = value;
onChanged();
return this;
}
/**
+ *
+ *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -741,14 +805,18 @@ public Builder setAudiences(
*
*
* string audiences = 2;
+ *
+ * @return This builder for chaining.
*/
public Builder clearAudiences() {
-
+
audiences_ = getDefaultInstance().getAudiences();
onChanged();
return this;
}
/**
+ *
+ *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -766,68 +834,68 @@ 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) {
+ public Builder setAudiencesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
audiences_ = value;
onChanged();
return this;
}
- @Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
- @Override
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
-
// @@protoc_insertion_point(builder_scope:google.api.AuthRequirement)
}
// @@protoc_insertion_point(class_scope:google.api.AuthRequirement)
- private static final AuthRequirement DEFAULT_INSTANCE;
+ private static final com.google.api.AuthRequirement DEFAULT_INSTANCE;
+
static {
- DEFAULT_INSTANCE = new AuthRequirement();
+ DEFAULT_INSTANCE = new com.google.api.AuthRequirement();
}
- public static AuthRequirement getDefaultInstance() {
+ public static com.google.api.AuthRequirement getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @Override
- public AuthRequirement parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new AuthRequirement(input, extensionRegistry);
- }
- };
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public AuthRequirement parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new AuthRequirement(input, extensionRegistry);
+ }
+ };
public static com.google.protobuf.Parser parser() {
return PARSER;
}
- @Override
+ @java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- @Override
- public AuthRequirement getDefaultInstanceForType() {
+ @java.lang.Override
+ public com.google.api.AuthRequirement getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
-
}
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java
index 81eb4fcd..da45b4a9 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
package com.google.api;
-public interface AuthRequirementOrBuilder extends
+public interface AuthRequirementOrBuilder
+ extends
// @@protoc_insertion_point(interface_extends:google.api.AuthRequirement)
com.google.protobuf.MessageOrBuilder {
/**
+ *
+ *
*
* [id][google.api.AuthProvider.id] from authentication provider.
* Example:
@@ -15,9 +33,13 @@ public interface AuthRequirementOrBuilder extends
*
*
* string provider_id = 1;
+ *
+ * @return The providerId.
*/
- String getProviderId();
+ java.lang.String getProviderId();
/**
+ *
+ *
*
* [id][google.api.AuthProvider.id] from authentication provider.
* Example:
@@ -25,11 +47,14 @@ public interface AuthRequirementOrBuilder extends
*
*
* 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.
@@ -47,9 +72,13 @@ public interface AuthRequirementOrBuilder extends
*
*
* string audiences = 2;
+ *
+ * @return The audiences.
*/
- String getAudiences();
+ java.lang.String getAudiences();
/**
+ *
+ *
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
@@ -67,7 +96,8 @@ public interface AuthRequirementOrBuilder extends
*
*
* string audiences = 2;
+ *
+ * @return The bytes for audiences.
*/
- com.google.protobuf.ByteString
- getAudiencesBytes();
+ com.google.protobuf.ByteString getAudiencesBytes();
}
diff --git a/proto-google-common-protos/src/main/java/com/google/api/Authentication.java b/proto-google-common-protos/src/main/java/com/google/api/Authentication.java
index 35144dce..45c50a31 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/Authentication.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/Authentication.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 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
package com.google.api;
/**
+ *
+ *
*
* `Authentication` defines the authentication configuration for an API.
* Example for an API targeted for external use:
@@ -21,32 +38,39 @@
*
* 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();
}
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Authentication();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
+
private Authentication(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
- throw new NullPointerException();
+ throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -59,38 +83,39 @@ private Authentication(
case 0:
done = true;
break;
- case 26: {
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
- rules_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000001;
+ case 26:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ rules_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ rules_.add(
+ input.readMessage(com.google.api.AuthenticationRule.parser(), extensionRegistry));
+ break;
}
- rules_.add(
- input.readMessage(com.google.api.AuthenticationRule.parser(), extensionRegistry));
- break;
- }
- case 34: {
- if (!((mutable_bitField0_ & 0x00000002) != 0)) {
- providers_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000002;
+ case 34:
+ {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ providers_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ providers_.add(
+ input.readMessage(com.google.api.AuthProvider.parser(), extensionRegistry));
+ break;
}
- providers_.add(
- input.readMessage(AuthProvider.parser(), extensionRegistry));
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
}
- break;
- }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
rules_ = java.util.Collections.unmodifiableList(rules_);
@@ -102,22 +127,24 @@ private Authentication(
makeExtensionsImmutable();
}
}
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return AuthProto.internal_static_google_api_Authentication_descriptor;
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.api.AuthProto.internal_static_google_api_Authentication_descriptor;
}
- @Override
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return AuthProto.internal_static_google_api_Authentication_fieldAccessorTable
+ return com.google.api.AuthProto.internal_static_google_api_Authentication_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- Authentication.class, Builder.class);
+ com.google.api.Authentication.class, com.google.api.Authentication.Builder.class);
}
public static final int RULES_FIELD_NUMBER = 3;
private java.util.List rules_;
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -129,6 +156,8 @@ public java.util.List getRulesList() {
return rules_;
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -136,11 +165,13 @@ public java.util.List getRulesList() {
*
* repeated .google.api.AuthenticationRule rules = 3;
*/
- 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.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -152,6 +183,8 @@ public int getRulesCount() {
return rules_.size();
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -163,6 +196,8 @@ public com.google.api.AuthenticationRule getRules(int index) {
return rules_.get(index);
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -170,35 +205,40 @@ public com.google.api.AuthenticationRule getRules(int index) {
*
* repeated .google.api.AuthenticationRule rules = 3;
*/
- 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;
- private java.util.List providers_;
+ private java.util.List providers_;
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public java.util.List getProvidersList() {
+ public java.util.List getProvidersList() {
return providers_;
}
/**
+ *
+ *
*
* 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>
+ public java.util.List extends com.google.api.AuthProviderOrBuilder>
getProvidersOrBuilderList() {
return providers_;
}
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
@@ -209,29 +249,33 @@ public int getProvidersCount() {
return providers_.size();
}
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public AuthProvider getProviders(int index) {
+ public com.google.api.AuthProvider getProviders(int index) {
return providers_.get(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) {
return providers_.get(index);
}
private byte memoizedIsInitialized = -1;
- @Override
+
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -241,9 +285,8 @@ public final boolean isInitialized() {
return true;
}
- @Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
+ @java.lang.Override
+ 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));
}
@@ -253,44 +296,40 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
unknownFields.writeTo(output);
}
- @Override
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
- @Override
- public boolean equals(final Object obj) {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
- if (!(obj instanceof Authentication)) {
+ if (!(obj instanceof com.google.api.Authentication)) {
return super.equals(obj);
}
- Authentication other = (Authentication) 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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
- @Override
+ @java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
@@ -310,97 +349,103 @@ public int hashCode() {
return hash;
}
- public static 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 Authentication parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.Authentication parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static 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 Authentication parseFrom(
+
+ 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 Authentication parseFrom(byte[] data)
+
+ public static com.google.api.Authentication parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Authentication parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.Authentication parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Authentication parseFrom(java.io.InputStream input)
+
+ 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 Authentication parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.Authentication parseFrom(
+ 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 Authentication parseDelimitedFrom(java.io.InputStream input)
+
+ 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 Authentication parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.Authentication parseDelimitedFrom(
+ 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 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 Authentication parseFrom(
+
+ 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();
}
- @Override
- public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(Authentication prototype) {
+
+ public static Builder newBuilder(com.google.api.Authentication prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
- @Override
+
+ @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);
}
- @Override
- protected Builder newBuilderForType(
- BuilderParent parent) {
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
+ *
+ *
*
* `Authentication` defines the authentication configuration for an API.
* Example for an API targeted for external use:
@@ -418,21 +463,20 @@ protected Builder newBuilderForType(
*
* Protobuf type {@code google.api.Authentication}
*/
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
// @@protoc_insertion_point(builder_implements:google.api.Authentication)
com.google.api.AuthenticationOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return AuthProto.internal_static_google_api_Authentication_descriptor;
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.api.AuthProto.internal_static_google_api_Authentication_descriptor;
}
- @Override
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return AuthProto.internal_static_google_api_Authentication_fieldAccessorTable
+ return com.google.api.AuthProto.internal_static_google_api_Authentication_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- Authentication.class, Builder.class);
+ com.google.api.Authentication.class, com.google.api.Authentication.Builder.class);
}
// Construct using com.google.api.Authentication.newBuilder()
@@ -440,19 +484,19 @@ private Builder() {
maybeForceBuilderInitialization();
}
- private Builder(
- BuilderParent parent) {
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
+
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getRulesFieldBuilder();
getProvidersFieldBuilder();
}
}
- @Override
+
+ @java.lang.Override
public Builder clear() {
super.clear();
if (rulesBuilder_ == null) {
@@ -470,29 +514,28 @@ public Builder clear() {
return this;
}
- @Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return AuthProto.internal_static_google_api_Authentication_descriptor;
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.api.AuthProto.internal_static_google_api_Authentication_descriptor;
}
- @Override
- public Authentication getDefaultInstanceForType() {
- return Authentication.getDefaultInstance();
+ @java.lang.Override
+ public com.google.api.Authentication getDefaultInstanceForType() {
+ return com.google.api.Authentication.getDefaultInstance();
}
- @Override
- public Authentication build() {
- Authentication result = buildPartial();
+ @java.lang.Override
+ public com.google.api.Authentication build() {
+ com.google.api.Authentication result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- @Override
- public Authentication buildPartial() {
- Authentication result = new Authentication(this);
+ @java.lang.Override
+ public com.google.api.Authentication buildPartial() {
+ com.google.api.Authentication result = new com.google.api.Authentication(this);
int from_bitField0_ = bitField0_;
if (rulesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
@@ -516,50 +559,51 @@ public Authentication buildPartial() {
return result;
}
- @Override
+ @java.lang.Override
public Builder clone() {
return super.clone();
}
- @Override
+
+ @java.lang.Override
public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
- @Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
- @Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
- @Override
+
+ @java.lang.Override
public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
- @Override
+
+ @java.lang.Override
public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
- @Override
+
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof Authentication) {
- return mergeFrom((Authentication)other);
+ if (other instanceof com.google.api.Authentication) {
+ return mergeFrom((com.google.api.Authentication) other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(Authentication other) {
- if (other == Authentication.getDefaultInstance()) return this;
+ public Builder mergeFrom(com.google.api.Authentication other) {
+ if (other == com.google.api.Authentication.getDefaultInstance()) return this;
if (rulesBuilder_ == null) {
if (!other.rules_.isEmpty()) {
if (rules_.isEmpty()) {
@@ -578,9 +622,10 @@ public Builder mergeFrom(Authentication other) {
rulesBuilder_ = null;
rules_ = other.rules_;
bitField0_ = (bitField0_ & ~0x00000001);
- rulesBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
- getRulesFieldBuilder() : null;
+ rulesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getRulesFieldBuilder()
+ : null;
} else {
rulesBuilder_.addAllMessages(other.rules_);
}
@@ -604,9 +649,10 @@ public Builder mergeFrom(Authentication other) {
providersBuilder_ = null;
providers_ = other.providers_;
bitField0_ = (bitField0_ & ~0x00000002);
- providersBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
- getProvidersFieldBuilder() : null;
+ providersBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getProvidersFieldBuilder()
+ : null;
} else {
providersBuilder_.addAllMessages(other.providers_);
}
@@ -617,21 +663,21 @@ public Builder mergeFrom(Authentication other) {
return this;
}
- @Override
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
- @Override
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Authentication parsedMessage = null;
+ com.google.api.Authentication parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Authentication) e.getUnfinishedMessage();
+ parsedMessage = (com.google.api.Authentication) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@@ -640,21 +686,28 @@ public Builder mergeFrom(
}
return this;
}
+
private int bitField0_;
private java.util.List rules_ =
- java.util.Collections.emptyList();
+ java.util.Collections.emptyList();
+
private void ensureRulesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
rules_ = new java.util.ArrayList(rules_);
bitField0_ |= 0x00000001;
- }
+ }
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.api.AuthenticationRule, com.google.api.AuthenticationRule.Builder, com.google.api.AuthenticationRuleOrBuilder> rulesBuilder_;
+ com.google.api.AuthenticationRule,
+ com.google.api.AuthenticationRule.Builder,
+ com.google.api.AuthenticationRuleOrBuilder>
+ rulesBuilder_;
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -670,6 +723,8 @@ public java.util.List getRulesList() {
}
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -685,6 +740,8 @@ public int getRulesCount() {
}
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -700,6 +757,8 @@ public com.google.api.AuthenticationRule getRules(int index) {
}
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -707,8 +766,7 @@ 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();
@@ -722,6 +780,8 @@ public Builder setRules(
return this;
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -729,8 +789,7 @@ public Builder setRules(
*
* 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());
@@ -741,6 +800,8 @@ public Builder setRules(
return this;
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -762,6 +823,8 @@ public Builder addRules(com.google.api.AuthenticationRule value) {
return this;
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -769,8 +832,7 @@ 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();
@@ -784,6 +846,8 @@ public Builder addRules(
return this;
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -791,8 +855,7 @@ public Builder addRules(
*
* 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());
@@ -803,6 +866,8 @@ public Builder addRules(
return this;
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -810,8 +875,7 @@ public Builder addRules(
*
* 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());
@@ -822,6 +886,8 @@ public Builder addRules(
return this;
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -830,11 +896,10 @@ public Builder addRules(
* repeated .google.api.AuthenticationRule rules = 3;
*/
public Builder addAllRules(
- Iterable extends com.google.api.AuthenticationRule> values) {
+ 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);
@@ -842,6 +907,8 @@ public Builder addAllRules(
return this;
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -860,6 +927,8 @@ public Builder clearRules() {
return this;
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -878,6 +947,8 @@ public Builder removeRules(int index) {
return this;
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -885,11 +956,12 @@ 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.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -897,14 +969,16 @@ public com.google.api.AuthenticationRule.Builder getRulesBuilder(
*
* 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.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -912,8 +986,8 @@ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(
*
* 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 {
@@ -921,6 +995,8 @@ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(
}
}
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -929,10 +1005,12 @@ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(
* 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.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -940,12 +1018,13 @@ 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.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -953,45 +1032,53 @@ public com.google.api.AuthenticationRule.Builder addRulesBuilder(
*
* repeated .google.api.AuthenticationRule rules = 3;
*/
- public java.util.List
- getRulesBuilderList() {
+ public java.util.List getRulesBuilderList() {
return getRulesFieldBuilder().getBuilderList();
}
+
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.api.AuthenticationRule, com.google.api.AuthenticationRule.Builder, com.google.api.AuthenticationRuleOrBuilder>
+ com.google.api.AuthenticationRule,
+ com.google.api.AuthenticationRule.Builder,
+ com.google.api.AuthenticationRuleOrBuilder>
getRulesFieldBuilder() {
if (rulesBuilder_ == null) {
- rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.api.AuthenticationRule, com.google.api.AuthenticationRule.Builder, com.google.api.AuthenticationRuleOrBuilder>(
- rules_,
- ((bitField0_ & 0x00000001) != 0),
- getParentForChildren(),
- isClean());
+ rulesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.api.AuthenticationRule,
+ com.google.api.AuthenticationRule.Builder,
+ com.google.api.AuthenticationRuleOrBuilder>(
+ rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
rules_ = null;
}
return rulesBuilder_;
}
- private java.util.List providers_ =
- java.util.Collections.emptyList();
+ private java.util.List providers_ =
+ java.util.Collections.emptyList();
+
private void ensureProvidersIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
- providers_ = new java.util.ArrayList(providers_);
+ providers_ = new java.util.ArrayList(providers_);
bitField0_ |= 0x00000002;
- }
+ }
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- AuthProvider, AuthProvider.Builder, com.google.api.AuthProviderOrBuilder> providersBuilder_;
+ com.google.api.AuthProvider,
+ com.google.api.AuthProvider.Builder,
+ com.google.api.AuthProviderOrBuilder>
+ providersBuilder_;
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public java.util.List getProvidersList() {
+ public java.util.List getProvidersList() {
if (providersBuilder_ == null) {
return java.util.Collections.unmodifiableList(providers_);
} else {
@@ -999,6 +1086,8 @@ public java.util.List getProvidersList() {
}
}
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
@@ -1013,13 +1102,15 @@ public int getProvidersCount() {
}
}
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public AuthProvider getProviders(int index) {
+ public com.google.api.AuthProvider getProviders(int index) {
if (providersBuilder_ == null) {
return providers_.get(index);
} else {
@@ -1027,14 +1118,15 @@ public 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, AuthProvider value) {
+ public Builder setProviders(int index, com.google.api.AuthProvider value) {
if (providersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1048,14 +1140,15 @@ public Builder setProviders(
return this;
}
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public Builder setProviders(
- int index, AuthProvider.Builder builderForValue) {
+ public Builder setProviders(int index, com.google.api.AuthProvider.Builder builderForValue) {
if (providersBuilder_ == null) {
ensureProvidersIsMutable();
providers_.set(index, builderForValue.build());
@@ -1066,13 +1159,15 @@ public Builder setProviders(
return this;
}
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public Builder addProviders(AuthProvider value) {
+ public Builder addProviders(com.google.api.AuthProvider value) {
if (providersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1086,14 +1181,15 @@ public Builder addProviders(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, AuthProvider value) {
+ public Builder addProviders(int index, com.google.api.AuthProvider value) {
if (providersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1107,14 +1203,15 @@ public Builder addProviders(
return this;
}
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public Builder addProviders(
- AuthProvider.Builder builderForValue) {
+ public Builder addProviders(com.google.api.AuthProvider.Builder builderForValue) {
if (providersBuilder_ == null) {
ensureProvidersIsMutable();
providers_.add(builderForValue.build());
@@ -1125,14 +1222,15 @@ public Builder addProviders(
return this;
}
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public Builder addProviders(
- int index, AuthProvider.Builder builderForValue) {
+ public Builder addProviders(int index, com.google.api.AuthProvider.Builder builderForValue) {
if (providersBuilder_ == null) {
ensureProvidersIsMutable();
providers_.add(index, builderForValue.build());
@@ -1143,6 +1241,8 @@ public Builder addProviders(
return this;
}
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
@@ -1150,11 +1250,10 @@ public Builder addProviders(
* repeated .google.api.AuthProvider providers = 4;
*/
public Builder addAllProviders(
- Iterable extends AuthProvider> values) {
+ 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);
@@ -1162,6 +1261,8 @@ public Builder addAllProviders(
return this;
}
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
@@ -1179,6 +1280,8 @@ public Builder clearProviders() {
return this;
}
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
@@ -1196,39 +1299,44 @@ public Builder removeProviders(int index) {
return this;
}
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public 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 {
@@ -1236,103 +1344,108 @@ public com.google.api.AuthProviderOrBuilder getProvidersOrBuilder(
}
}
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- public AuthProvider.Builder addProvidersBuilder() {
- return getProvidersFieldBuilder().addBuilder(
- AuthProvider.getDefaultInstance());
+ public com.google.api.AuthProvider.Builder addProvidersBuilder() {
+ 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 AuthProvider.Builder addProvidersBuilder(
- int index) {
- return getProvidersFieldBuilder().addBuilder(
- index, 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
- getProvidersBuilderList() {
+ public java.util.List getProvidersBuilderList() {
return getProvidersFieldBuilder().getBuilderList();
}
+
private com.google.protobuf.RepeatedFieldBuilderV3<
- AuthProvider, AuthProvider.Builder, com.google.api.AuthProviderOrBuilder>
+ com.google.api.AuthProvider,
+ com.google.api.AuthProvider.Builder,
+ com.google.api.AuthProviderOrBuilder>
getProvidersFieldBuilder() {
if (providersBuilder_ == null) {
- providersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
- AuthProvider, AuthProvider.Builder, com.google.api.AuthProviderOrBuilder>(
- providers_,
- ((bitField0_ & 0x00000002) != 0),
- getParentForChildren(),
- isClean());
+ providersBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.api.AuthProvider,
+ com.google.api.AuthProvider.Builder,
+ com.google.api.AuthProviderOrBuilder>(
+ providers_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
providers_ = null;
}
return providersBuilder_;
}
- @Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
- @Override
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
-
// @@protoc_insertion_point(builder_scope:google.api.Authentication)
}
// @@protoc_insertion_point(class_scope:google.api.Authentication)
- private static final Authentication DEFAULT_INSTANCE;
+ private static final com.google.api.Authentication DEFAULT_INSTANCE;
+
static {
- DEFAULT_INSTANCE = new Authentication();
+ DEFAULT_INSTANCE = new com.google.api.Authentication();
}
- public static Authentication getDefaultInstance() {
+ public static com.google.api.Authentication getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @Override
- public Authentication parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Authentication(input, extensionRegistry);
- }
- };
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Authentication parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Authentication(input, extensionRegistry);
+ }
+ };
public static com.google.protobuf.Parser parser() {
return PARSER;
}
- @Override
+ @java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- @Override
- public Authentication getDefaultInstanceForType() {
+ @java.lang.Override
+ public com.google.api.Authentication getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
-
}
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java
index 355246b5..d7dd35ee 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 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
package com.google.api;
-public interface AuthenticationOrBuilder extends
+public interface AuthenticationOrBuilder
+ extends
// @@protoc_insertion_point(interface_extends:google.api.Authentication)
com.google.protobuf.MessageOrBuilder {
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -15,9 +33,10 @@ public interface AuthenticationOrBuilder extends
*
* repeated .google.api.AuthenticationRule rules = 3;
*/
- java.util.List
- getRulesList();
+ java.util.List getRulesList();
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -25,8 +44,10 @@ public interface AuthenticationOrBuilder extends
*
* repeated .google.api.AuthenticationRule rules = 3;
*/
- AuthenticationRule getRules(int index);
+ com.google.api.AuthenticationRule getRules(int index);
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -36,6 +57,8 @@ public interface AuthenticationOrBuilder extends
*/
int getRulesCount();
/**
+ *
+ *
*
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -43,9 +66,10 @@ public interface AuthenticationOrBuilder extends
*
* 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.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -53,27 +77,31 @@ public interface AuthenticationOrBuilder extends
*
* 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
- getProvidersList();
+ java.util.List getProvidersList();
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- AuthProvider getProviders(int index);
+ com.google.api.AuthProvider getProviders(int index);
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
@@ -82,21 +110,23 @@ com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(
*/
int getProvidersCount();
/**
+ *
+ *
*
* Defines a set of authentication providers that a service supports.
*
*
* repeated .google.api.AuthProvider providers = 4;
*/
- java.util.List extends 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;
*/
- AuthProviderOrBuilder getProvidersOrBuilder(
- int index);
+ com.google.api.AuthProviderOrBuilder getProvidersOrBuilder(int index);
}
diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java b/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java
index fa724799..40f29098 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 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
package com.google.api;
/**
+ *
+ *
*
* Authentication rules for the service.
* By default, if a method has any authentication requirements, every request
@@ -16,32 +33,39 @@
*
* 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();
}
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new AuthenticationRule();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
+
private AuthenticationRule(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
- throw new NullPointerException();
+ throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -54,112 +78,120 @@ private AuthenticationRule(
case 0:
done = true;
break;
- case 10: {
- String s = input.readStringRequireUtf8();
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
- selector_ = s;
- break;
- }
- case 18: {
- OAuthRequirements.Builder subBuilder = null;
- if (oauth_ != null) {
- subBuilder = oauth_.toBuilder();
- }
- oauth_ = input.readMessage(OAuthRequirements.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(oauth_);
- oauth_ = subBuilder.buildPartial();
+ selector_ = s;
+ break;
}
+ case 18:
+ {
+ com.google.api.OAuthRequirements.Builder subBuilder = null;
+ if (oauth_ != null) {
+ subBuilder = oauth_.toBuilder();
+ }
+ oauth_ =
+ input.readMessage(com.google.api.OAuthRequirements.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(oauth_);
+ oauth_ = subBuilder.buildPartial();
+ }
- break;
- }
- case 40: {
-
- allowWithoutCredential_ = input.readBool();
- break;
- }
- case 58: {
- if (!((mutable_bitField0_ & 0x00000008) != 0)) {
- requirements_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000008;
+ break;
}
- requirements_.add(
- input.readMessage(AuthRequirement.parser(), extensionRegistry));
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
+ case 40:
+ {
+ allowWithoutCredential_ = input.readBool();
+ break;
+ }
+ case 58:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ requirements_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ requirements_.add(
+ input.readMessage(com.google.api.AuthRequirement.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
}
- break;
- }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000008) != 0)) {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
requirements_ = java.util.Collections.unmodifiableList(requirements_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return AuthProto.internal_static_google_api_AuthenticationRule_descriptor;
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_descriptor;
}
- @Override
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return AuthProto.internal_static_google_api_AuthenticationRule_fieldAccessorTable
+ return com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- AuthenticationRule.class, Builder.class);
+ com.google.api.AuthenticationRule.class,
+ com.google.api.AuthenticationRule.Builder.class);
}
- private int bitField0_;
public static final int SELECTOR_FIELD_NUMBER = 1;
- private volatile Object selector_;
+ private volatile java.lang.Object selector_;
/**
+ *
+ *
*
* Selects the methods to which this rule applies.
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
*
*
* string selector = 1;
+ *
+ * @return The selector.
*/
- public String getSelector() {
- Object ref = selector_;
- if (ref instanceof String) {
- return (String) ref;
+ public java.lang.String getSelector() {
+ java.lang.Object ref = selector_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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.
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
*
*
* string selector = 1;
+ *
+ * @return The bytes for selector.
*/
- public com.google.protobuf.ByteString
- getSelectorBytes() {
- Object ref = selector_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ 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);
selector_ = b;
return b;
} else {
@@ -168,28 +200,38 @@ public String getSelector() {
}
public static final int OAUTH_FIELD_NUMBER = 2;
- private OAuthRequirements oauth_;
+ private com.google.api.OAuthRequirements oauth_;
/**
+ *
+ *
*
* The requirements for OAuth credentials.
*
*
* .google.api.OAuthRequirements oauth = 2;
+ *
+ * @return Whether the oauth field is set.
*/
public boolean hasOauth() {
return oauth_ != null;
}
/**
+ *
+ *
*
* The requirements for OAuth credentials.
*
*
* .google.api.OAuthRequirements oauth = 2;
+ *
+ * @return The oauth.
*/
- public OAuthRequirements getOauth() {
- return oauth_ == null ? OAuthRequirements.getDefaultInstance() : oauth_;
+ public com.google.api.OAuthRequirements getOauth() {
+ return oauth_ == null ? com.google.api.OAuthRequirements.getDefaultInstance() : oauth_;
}
/**
+ *
+ *
*
* The requirements for OAuth credentials.
*
@@ -203,40 +245,50 @@ public com.google.api.OAuthRequirementsOrBuilder getOauthOrBuilder() {
public static final int ALLOW_WITHOUT_CREDENTIAL_FIELD_NUMBER = 5;
private boolean allowWithoutCredential_;
/**
+ *
+ *
*
* If true, the service accepts API keys without any other credential.
*
*
* bool allow_without_credential = 5;
+ *
+ * @return The allowWithoutCredential.
*/
public boolean getAllowWithoutCredential() {
return allowWithoutCredential_;
}
public static final int REQUIREMENTS_FIELD_NUMBER = 7;
- private java.util.List requirements_;
+ private java.util.List requirements_;
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public java.util.List getRequirementsList() {
+ public java.util.List getRequirementsList() {
return requirements_;
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- 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.
*
@@ -247,29 +299,33 @@ public int getRequirementsCount() {
return requirements_.size();
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public AuthRequirement getRequirements(int index) {
+ public com.google.api.AuthRequirement getRequirements(int index) {
return requirements_.get(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) {
return requirements_.get(index);
}
private byte memoizedIsInitialized = -1;
- @Override
+
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -279,9 +335,8 @@ public final boolean isInitialized() {
return true;
}
- @Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getSelectorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_);
}
@@ -297,7 +352,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
unknownFields.writeTo(output);
}
- @Override
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -307,48 +362,41 @@ public int getSerializedSize() {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selector_);
}
if (oauth_ != null) {
- 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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
- @Override
- public boolean equals(final Object obj) {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
- if (!(obj instanceof AuthenticationRule)) {
+ if (!(obj instanceof com.google.api.AuthenticationRule)) {
return super.equals(obj);
}
- AuthenticationRule other = (AuthenticationRule) 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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
- @Override
+ @java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
@@ -362,8 +410,7 @@ 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();
@@ -373,97 +420,103 @@ public int hashCode() {
return hash;
}
- public static 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 AuthenticationRule parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.AuthenticationRule parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static 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 AuthenticationRule parseFrom(
+
+ 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 AuthenticationRule parseFrom(byte[] data)
+
+ public static com.google.api.AuthenticationRule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static AuthenticationRule parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.AuthenticationRule parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static AuthenticationRule parseFrom(java.io.InputStream input)
+
+ 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 AuthenticationRule parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.AuthenticationRule parseFrom(
+ 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 AuthenticationRule parseDelimitedFrom(java.io.InputStream input)
+
+ 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 AuthenticationRule parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.AuthenticationRule parseDelimitedFrom(
+ 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 AuthenticationRule parseFrom(
- 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) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static AuthenticationRule parseFrom(
+
+ 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();
}
- @Override
- public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(AuthenticationRule prototype) {
+
+ public static Builder newBuilder(com.google.api.AuthenticationRule prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
- @Override
+
+ @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);
}
- @Override
- protected Builder newBuilderForType(
- BuilderParent parent) {
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
+ *
+ *
*
* Authentication rules for the service.
* By default, if a method has any authentication requirements, every request
@@ -476,21 +529,22 @@ protected Builder newBuilderForType(
*
* Protobuf type {@code google.api.AuthenticationRule}
*/
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
// @@protoc_insertion_point(builder_implements:google.api.AuthenticationRule)
com.google.api.AuthenticationRuleOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return AuthProto.internal_static_google_api_AuthenticationRule_descriptor;
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_descriptor;
}
- @Override
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return AuthProto.internal_static_google_api_AuthenticationRule_fieldAccessorTable
+ return com.google.api.AuthProto
+ .internal_static_google_api_AuthenticationRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- AuthenticationRule.class, Builder.class);
+ com.google.api.AuthenticationRule.class,
+ com.google.api.AuthenticationRule.Builder.class);
}
// Construct using com.google.api.AuthenticationRule.newBuilder()
@@ -498,18 +552,18 @@ private Builder() {
maybeForceBuilderInitialization();
}
- private Builder(
- BuilderParent parent) {
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
+
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getRequirementsFieldBuilder();
}
}
- @Override
+
+ @java.lang.Override
public Builder clear() {
super.clear();
selector_ = "";
@@ -524,38 +578,36 @@ public Builder clear() {
if (requirementsBuilder_ == null) {
requirements_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
requirementsBuilder_.clear();
}
return this;
}
- @Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return AuthProto.internal_static_google_api_AuthenticationRule_descriptor;
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_descriptor;
}
- @Override
- public AuthenticationRule getDefaultInstanceForType() {
- return AuthenticationRule.getDefaultInstance();
+ @java.lang.Override
+ public com.google.api.AuthenticationRule getDefaultInstanceForType() {
+ return com.google.api.AuthenticationRule.getDefaultInstance();
}
- @Override
- public AuthenticationRule build() {
- AuthenticationRule result = buildPartial();
+ @java.lang.Override
+ public com.google.api.AuthenticationRule build() {
+ com.google.api.AuthenticationRule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- @Override
- public AuthenticationRule buildPartial() {
- AuthenticationRule result = new AuthenticationRule(this);
+ @java.lang.Override
+ public com.google.api.AuthenticationRule buildPartial() {
+ com.google.api.AuthenticationRule result = new com.google.api.AuthenticationRule(this);
int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
result.selector_ = selector_;
if (oauthBuilder_ == null) {
result.oauth_ = oauth_;
@@ -564,63 +616,63 @@ public AuthenticationRule buildPartial() {
}
result.allowWithoutCredential_ = allowWithoutCredential_;
if (requirementsBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
requirements_ = java.util.Collections.unmodifiableList(requirements_);
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
result.requirements_ = requirements_;
} else {
result.requirements_ = requirementsBuilder_.build();
}
- result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
- @Override
+ @java.lang.Override
public Builder clone() {
return super.clone();
}
- @Override
+
+ @java.lang.Override
public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
- @Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
- @Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
- @Override
+
+ @java.lang.Override
public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
- @Override
+
+ @java.lang.Override
public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
- @Override
+
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof AuthenticationRule) {
- return mergeFrom((AuthenticationRule)other);
+ if (other instanceof com.google.api.AuthenticationRule) {
+ return mergeFrom((com.google.api.AuthenticationRule) other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(AuthenticationRule other) {
- if (other == AuthenticationRule.getDefaultInstance()) return this;
+ public Builder mergeFrom(com.google.api.AuthenticationRule other) {
+ if (other == com.google.api.AuthenticationRule.getDefaultInstance()) return this;
if (!other.getSelector().isEmpty()) {
selector_ = other.selector_;
onChanged();
@@ -635,7 +687,7 @@ public Builder mergeFrom(AuthenticationRule other) {
if (!other.requirements_.isEmpty()) {
if (requirements_.isEmpty()) {
requirements_ = other.requirements_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRequirementsIsMutable();
requirements_.addAll(other.requirements_);
@@ -648,10 +700,11 @@ public Builder mergeFrom(AuthenticationRule other) {
requirementsBuilder_.dispose();
requirementsBuilder_ = null;
requirements_ = other.requirements_;
- bitField0_ = (bitField0_ & ~0x00000008);
- requirementsBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
- getRequirementsFieldBuilder() : null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ requirementsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getRequirementsFieldBuilder()
+ : null;
} else {
requirementsBuilder_.addAllMessages(other.requirements_);
}
@@ -662,21 +715,21 @@ public Builder mergeFrom(AuthenticationRule other) {
return this;
}
- @Override
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
- @Override
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- AuthenticationRule parsedMessage = null;
+ com.google.api.AuthenticationRule parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (AuthenticationRule) e.getUnfinishedMessage();
+ parsedMessage = (com.google.api.AuthenticationRule) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@@ -685,44 +738,50 @@ public Builder mergeFrom(
}
return this;
}
+
private int bitField0_;
- private Object selector_ = "";
+ private java.lang.Object selector_ = "";
/**
+ *
+ *
*
* Selects the methods to which this rule applies.
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
*
*
* string selector = 1;
+ *
+ * @return The selector.
*/
- public String getSelector() {
- Object ref = selector_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ 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;
+ java.lang.String s = bs.toStringUtf8();
selector_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
+ *
+ *
*
* Selects the methods to which this rule applies.
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
*
*
* string selector = 1;
+ *
+ * @return The bytes for selector.
*/
- public com.google.protobuf.ByteString
- getSelectorBytes() {
- Object ref = selector_;
+ 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(
- (String) ref);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
selector_ = b;
return b;
} else {
@@ -730,92 +789,117 @@ public String getSelector() {
}
}
/**
+ *
+ *
*
* Selects the methods to which this rule applies.
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
*
*
* string selector = 1;
+ *
+ * @param value The selector to set.
+ * @return This builder for chaining.
*/
- public Builder setSelector(
- String value) {
+ public Builder setSelector(java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
-
+ throw new NullPointerException();
+ }
+
selector_ = value;
onChanged();
return this;
}
/**
+ *
+ *
*
* Selects the methods to which this rule applies.
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
*
*
* string selector = 1;
+ *
+ * @return This builder for chaining.
*/
public Builder clearSelector() {
-
+
selector_ = getDefaultInstance().getSelector();
onChanged();
return this;
}
/**
+ *
+ *
*
* Selects the methods to which this rule applies.
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
*
*
* string selector = 1;
+ *
+ * @param value The bytes for selector to set.
+ * @return This builder for chaining.
*/
- public Builder setSelectorBytes(
- com.google.protobuf.ByteString value) {
+ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
selector_ = value;
onChanged();
return this;
}
- private OAuthRequirements oauth_;
+ private com.google.api.OAuthRequirements oauth_;
private com.google.protobuf.SingleFieldBuilderV3<
- OAuthRequirements, 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 oauthBuilder_ != null || oauth_ != null;
}
/**
+ *
+ *
*
* The requirements for OAuth credentials.
*
*
* .google.api.OAuthRequirements oauth = 2;
+ *
+ * @return The oauth.
*/
- public OAuthRequirements getOauth() {
+ public com.google.api.OAuthRequirements getOauth() {
if (oauthBuilder_ == null) {
- return oauth_ == null ? OAuthRequirements.getDefaultInstance() : oauth_;
+ return oauth_ == null ? com.google.api.OAuthRequirements.getDefaultInstance() : oauth_;
} else {
return oauthBuilder_.getMessage();
}
}
/**
+ *
+ *
*
* The requirements for OAuth credentials.
*
*
* .google.api.OAuthRequirements oauth = 2;
*/
- public Builder setOauth(OAuthRequirements value) {
+ public Builder setOauth(com.google.api.OAuthRequirements value) {
if (oauthBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -829,14 +913,15 @@ public Builder setOauth(OAuthRequirements value) {
return this;
}
/**
+ *
+ *
*
* The requirements for OAuth credentials.
*
*
* .google.api.OAuthRequirements oauth = 2;
*/
- public Builder setOauth(
- OAuthRequirements.Builder builderForValue) {
+ public Builder setOauth(com.google.api.OAuthRequirements.Builder builderForValue) {
if (oauthBuilder_ == null) {
oauth_ = builderForValue.build();
onChanged();
@@ -847,17 +932,19 @@ public Builder setOauth(
return this;
}
/**
+ *
+ *
*
* The requirements for OAuth credentials.
*
*
* .google.api.OAuthRequirements oauth = 2;
*/
- public Builder mergeOauth(OAuthRequirements value) {
+ public Builder mergeOauth(com.google.api.OAuthRequirements value) {
if (oauthBuilder_ == null) {
if (oauth_ != null) {
oauth_ =
- OAuthRequirements.newBuilder(oauth_).mergeFrom(value).buildPartial();
+ com.google.api.OAuthRequirements.newBuilder(oauth_).mergeFrom(value).buildPartial();
} else {
oauth_ = value;
}
@@ -869,6 +956,8 @@ public Builder mergeOauth(OAuthRequirements value) {
return this;
}
/**
+ *
+ *
*
* The requirements for OAuth credentials.
*
@@ -887,18 +976,22 @@ public Builder clearOauth() {
return this;
}
/**
+ *
+ *
*
* The requirements for OAuth credentials.
*
*
* .google.api.OAuthRequirements oauth = 2;
*/
- public OAuthRequirements.Builder getOauthBuilder() {
-
+ public com.google.api.OAuthRequirements.Builder getOauthBuilder() {
+
onChanged();
return getOauthFieldBuilder().getBuilder();
}
/**
+ *
+ *
*
* The requirements for OAuth credentials.
*
@@ -909,11 +1002,12 @@ public com.google.api.OAuthRequirementsOrBuilder getOauthOrBuilder() {
if (oauthBuilder_ != null) {
return oauthBuilder_.getMessageOrBuilder();
} else {
- return oauth_ == null ?
- OAuthRequirements.getDefaultInstance() : oauth_;
+ return oauth_ == null ? com.google.api.OAuthRequirements.getDefaultInstance() : oauth_;
}
}
/**
+ *
+ *
*
* The requirements for OAuth credentials.
*
@@ -921,77 +1015,99 @@ public com.google.api.OAuthRequirementsOrBuilder getOauthOrBuilder() {
* .google.api.OAuthRequirements oauth = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- OAuthRequirements, 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<
- OAuthRequirements, 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.
*
*
* bool allow_without_credential = 5;
+ *
+ * @return The allowWithoutCredential.
*/
public boolean getAllowWithoutCredential() {
return allowWithoutCredential_;
}
/**
+ *
+ *
*
* If true, the service accepts API keys without any other credential.
*
*
* bool allow_without_credential = 5;
+ *
+ * @param value The allowWithoutCredential to set.
+ * @return This builder for chaining.
*/
public Builder setAllowWithoutCredential(boolean value) {
-
+
allowWithoutCredential_ = value;
onChanged();
return this;
}
/**
+ *
+ *
*
* If true, the service accepts API keys without any other credential.
*
*
* bool allow_without_credential = 5;
+ *
+ * @return This builder for chaining.
*/
public Builder clearAllowWithoutCredential() {
-
+
allowWithoutCredential_ = false;
onChanged();
return this;
}
- private java.util.List requirements_ =
- java.util.Collections.emptyList();
+ private java.util.List requirements_ =
+ java.util.Collections.emptyList();
+
private void ensureRequirementsIsMutable() {
- if (!((bitField0_ & 0x00000008) != 0)) {
- requirements_ = new java.util.ArrayList(requirements_);
- bitField0_ |= 0x00000008;
- }
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ requirements_ = new java.util.ArrayList(requirements_);
+ bitField0_ |= 0x00000001;
+ }
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- AuthRequirement, AuthRequirement.Builder, com.google.api.AuthRequirementOrBuilder> requirementsBuilder_;
+ com.google.api.AuthRequirement,
+ com.google.api.AuthRequirement.Builder,
+ com.google.api.AuthRequirementOrBuilder>
+ requirementsBuilder_;
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public java.util.List getRequirementsList() {
+ public java.util.List getRequirementsList() {
if (requirementsBuilder_ == null) {
return java.util.Collections.unmodifiableList(requirements_);
} else {
@@ -999,6 +1115,8 @@ public java.util.List getRequirementsList() {
}
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
@@ -1013,13 +1131,15 @@ public int getRequirementsCount() {
}
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public AuthRequirement getRequirements(int index) {
+ public com.google.api.AuthRequirement getRequirements(int index) {
if (requirementsBuilder_ == null) {
return requirements_.get(index);
} else {
@@ -1027,14 +1147,15 @@ public AuthRequirement getRequirements(int index) {
}
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public Builder setRequirements(
- int index, AuthRequirement value) {
+ public Builder setRequirements(int index, com.google.api.AuthRequirement value) {
if (requirementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1048,6 +1169,8 @@ public Builder setRequirements(
return this;
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
@@ -1055,7 +1178,7 @@ public Builder setRequirements(
* repeated .google.api.AuthRequirement requirements = 7;
*/
public Builder setRequirements(
- int index, AuthRequirement.Builder builderForValue) {
+ int index, com.google.api.AuthRequirement.Builder builderForValue) {
if (requirementsBuilder_ == null) {
ensureRequirementsIsMutable();
requirements_.set(index, builderForValue.build());
@@ -1066,13 +1189,15 @@ public Builder setRequirements(
return this;
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public Builder addRequirements(AuthRequirement value) {
+ public Builder addRequirements(com.google.api.AuthRequirement value) {
if (requirementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1086,14 +1211,15 @@ public Builder addRequirements(AuthRequirement value) {
return this;
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public Builder addRequirements(
- int index, AuthRequirement value) {
+ public Builder addRequirements(int index, com.google.api.AuthRequirement value) {
if (requirementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1107,14 +1233,15 @@ public Builder addRequirements(
return this;
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public Builder addRequirements(
- AuthRequirement.Builder builderForValue) {
+ public Builder addRequirements(com.google.api.AuthRequirement.Builder builderForValue) {
if (requirementsBuilder_ == null) {
ensureRequirementsIsMutable();
requirements_.add(builderForValue.build());
@@ -1125,6 +1252,8 @@ public Builder addRequirements(
return this;
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
@@ -1132,7 +1261,7 @@ public Builder addRequirements(
* repeated .google.api.AuthRequirement requirements = 7;
*/
public Builder addRequirements(
- int index, AuthRequirement.Builder builderForValue) {
+ int index, com.google.api.AuthRequirement.Builder builderForValue) {
if (requirementsBuilder_ == null) {
ensureRequirementsIsMutable();
requirements_.add(index, builderForValue.build());
@@ -1143,6 +1272,8 @@ public Builder addRequirements(
return this;
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
@@ -1150,11 +1281,10 @@ public Builder addRequirements(
* repeated .google.api.AuthRequirement requirements = 7;
*/
public Builder addAllRequirements(
- Iterable extends AuthRequirement> values) {
+ 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);
@@ -1162,6 +1292,8 @@ public Builder addAllRequirements(
return this;
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
@@ -1171,7 +1303,7 @@ public Builder addAllRequirements(
public Builder clearRequirements() {
if (requirementsBuilder_ == null) {
requirements_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
requirementsBuilder_.clear();
@@ -1179,6 +1311,8 @@ public Builder clearRequirements() {
return this;
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
@@ -1196,39 +1330,44 @@ public Builder removeRequirements(int index) {
return this;
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public 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 {
@@ -1236,103 +1375,108 @@ public com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder(
}
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public AuthRequirement.Builder addRequirementsBuilder() {
- return getRequirementsFieldBuilder().addBuilder(
- AuthRequirement.getDefaultInstance());
+ public com.google.api.AuthRequirement.Builder addRequirementsBuilder() {
+ return getRequirementsFieldBuilder()
+ .addBuilder(com.google.api.AuthRequirement.getDefaultInstance());
}
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- public AuthRequirement.Builder addRequirementsBuilder(
- int index) {
- return getRequirementsFieldBuilder().addBuilder(
- index, 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
- getRequirementsBuilderList() {
+ public java.util.List getRequirementsBuilderList() {
return getRequirementsFieldBuilder().getBuilderList();
}
+
private com.google.protobuf.RepeatedFieldBuilderV3<
- AuthRequirement, AuthRequirement.Builder, com.google.api.AuthRequirementOrBuilder>
+ com.google.api.AuthRequirement,
+ com.google.api.AuthRequirement.Builder,
+ com.google.api.AuthRequirementOrBuilder>
getRequirementsFieldBuilder() {
if (requirementsBuilder_ == null) {
- requirementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
- AuthRequirement, AuthRequirement.Builder, com.google.api.AuthRequirementOrBuilder>(
- requirements_,
- ((bitField0_ & 0x00000008) != 0),
- getParentForChildren(),
- isClean());
+ requirementsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.api.AuthRequirement,
+ com.google.api.AuthRequirement.Builder,
+ com.google.api.AuthRequirementOrBuilder>(
+ requirements_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
requirements_ = null;
}
return requirementsBuilder_;
}
- @Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
- @Override
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
-
// @@protoc_insertion_point(builder_scope:google.api.AuthenticationRule)
}
// @@protoc_insertion_point(class_scope:google.api.AuthenticationRule)
- private static final AuthenticationRule DEFAULT_INSTANCE;
+ private static final com.google.api.AuthenticationRule DEFAULT_INSTANCE;
+
static {
- DEFAULT_INSTANCE = new AuthenticationRule();
+ DEFAULT_INSTANCE = new com.google.api.AuthenticationRule();
}
- public static AuthenticationRule getDefaultInstance() {
+ public static com.google.api.AuthenticationRule getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @Override
- public AuthenticationRule parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new AuthenticationRule(input, extensionRegistry);
- }
- };
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public AuthenticationRule parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new AuthenticationRule(input, extensionRegistry);
+ }
+ };
public static com.google.protobuf.Parser parser() {
return PARSER;
}
- @Override
+ @java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- @Override
- public AuthenticationRule getDefaultInstanceForType() {
+ @java.lang.Override
+ public com.google.api.AuthenticationRule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
-
}
-
diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java
index 9d649340..a8e7aafc 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java
@@ -1,84 +1,126 @@
+/*
+ * Copyright 2020 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
package com.google.api;
-public interface AuthenticationRuleOrBuilder extends
+public interface AuthenticationRuleOrBuilder
+ extends
// @@protoc_insertion_point(interface_extends:google.api.AuthenticationRule)
com.google.protobuf.MessageOrBuilder {
/**
+ *
+ *
*
* Selects the methods to which this rule applies.
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
*
*
* string selector = 1;
+ *
+ * @return The selector.
*/
- String getSelector();
+ java.lang.String getSelector();
/**
+ *
+ *
*
* Selects the methods to which this rule applies.
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
*
*
* 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.
*/
- OAuthRequirements getOauth();
+ com.google.api.OAuthRequirements getOauth();
/**
+ *
+ *
*
* The requirements for OAuth credentials.
*
*
* .google.api.OAuthRequirements oauth = 2;
*/
- OAuthRequirementsOrBuilder getOauthOrBuilder();
+ com.google.api.OAuthRequirementsOrBuilder getOauthOrBuilder();
/**
+ *
+ *
*
* If true, the service accepts API keys without any other credential.
*
*
* bool allow_without_credential = 5;
+ *
+ * @return The allowWithoutCredential.
*/
boolean getAllowWithoutCredential();
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- java.util.List
- getRequirementsList();
+ java.util.List getRequirementsList();
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- AuthRequirement getRequirements(int index);
+ com.google.api.AuthRequirement getRequirements(int index);
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
@@ -87,21 +129,23 @@ public interface AuthenticationRuleOrBuilder extends
*/
int getRequirementsCount();
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- java.util.List extends AuthRequirementOrBuilder>
- getRequirementsOrBuilderList();
+ java.util.List extends com.google.api.AuthRequirementOrBuilder> getRequirementsOrBuilderList();
/**
+ *
+ *
*
* Requirements for additional authentication providers.
*
*
* repeated .google.api.AuthRequirement requirements = 7;
*/
- AuthRequirementOrBuilder getRequirementsOrBuilder(
- int index);
+ com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder(int index);
}
diff --git a/proto-google-common-protos/src/main/java/com/google/api/Backend.java b/proto-google-common-protos/src/main/java/com/google/api/Backend.java
index 9a43a598..63cb6d81 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/Backend.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/Backend.java
@@ -1,40 +1,64 @@
+/*
+ * Copyright 2020 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
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();
}
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Backend();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
+
private Backend(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
- throw new NullPointerException();
+ throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -47,29 +71,28 @@ private Backend(
case 0:
done = true;
break;
- case 10: {
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
- rules_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000001;
+ case 10:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ rules_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ rules_.add(input.readMessage(com.google.api.BackendRule.parser(), extensionRegistry));
+ break;
}
- rules_.add(
- input.readMessage(com.google.api.BackendRule.parser(), extensionRegistry));
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
}
- break;
- }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
rules_ = java.util.Collections.unmodifiableList(rules_);
@@ -78,22 +101,24 @@ private Backend(
makeExtensionsImmutable();
}
}
- 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;
}
- @Override
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.api.BackendProto.internal_static_google_api_Backend_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- Backend.class, Builder.class);
+ com.google.api.Backend.class, com.google.api.Backend.Builder.class);
}
public static final int RULES_FIELD_NUMBER = 1;
private java.util.List rules_;
/**
+ *
+ *
*
* A list of API backend rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -105,6 +130,8 @@ public java.util.List getRulesList() {
return rules_;
}
/**
+ *
+ *
*
* A list of API backend rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -112,11 +139,12 @@ public java.util.List getRulesList() {
*
* 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() {
return rules_;
}
/**
+ *
+ *
*
* A list of API backend rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -128,6 +156,8 @@ public int getRulesCount() {
return rules_.size();
}
/**
+ *
+ *
*
* A list of API backend rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -139,6 +169,8 @@ public com.google.api.BackendRule getRules(int index) {
return rules_.get(index);
}
/**
+ *
+ *
*
* A list of API backend rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -146,13 +178,13 @@ public com.google.api.BackendRule getRules(int index) {
*
* repeated .google.api.BackendRule rules = 1;
*/
- public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(
- int index) {
+ public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(int index) {
return rules_.get(index);
}
private byte memoizedIsInitialized = -1;
- @Override
+
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -162,47 +194,44 @@ public final boolean isInitialized() {
return true;
}
- @Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
+ @java.lang.Override
+ 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));
}
unknownFields.writeTo(output);
}
- @Override
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
- @Override
- public boolean equals(final Object obj) {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
- return true;
+ return true;
}
- if (!(obj instanceof Backend)) {
+ if (!(obj instanceof com.google.api.Backend)) {
return super.equals(obj);
}
- Backend other = (Backend) 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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
- @Override
+ @java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
@@ -218,118 +247,123 @@ public int hashCode() {
return hash;
}
- public static 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 Backend parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.Backend parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static 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 Backend parseFrom(
+
+ 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 Backend parseFrom(byte[] data)
+
+ public static com.google.api.Backend parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Backend parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.Backend parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Backend parseFrom(java.io.InputStream input)
+
+ 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 Backend parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.Backend parseFrom(
+ 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 Backend parseDelimitedFrom(java.io.InputStream input)
+
+ 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 Backend parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+
+ public static com.google.api.Backend parseDelimitedFrom(
+ 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 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 Backend parseFrom(
+
+ 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();
}
- @Override
- public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(Backend prototype) {
+
+ public static Builder newBuilder(com.google.api.Backend prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
- @Override
+
+ @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);
}
- @Override
- protected Builder newBuilderForType(
- BuilderParent parent) {
+ @java.lang.Override
+ 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 implements
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
// @@protoc_insertion_point(builder_implements:google.api.Backend)
com.google.api.BackendOrBuilder {
- 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;
}
- @Override
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.api.BackendProto.internal_static_google_api_Backend_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- Backend.class, Builder.class);
+ com.google.api.Backend.class, com.google.api.Backend.Builder.class);
}
// Construct using com.google.api.Backend.newBuilder()
@@ -337,18 +371,18 @@ private Builder() {
maybeForceBuilderInitialization();
}
- private Builder(
- BuilderParent parent) {
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
+
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getRulesFieldBuilder();
}
}
- @Override
+
+ @java.lang.Override
public Builder clear() {
super.clear();
if (rulesBuilder_ == null) {
@@ -360,29 +394,28 @@ public Builder clear() {
return this;
}
- @Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.api.BackendProto.internal_static_google_api_Backend_descriptor;
}
- @Override
- public Backend getDefaultInstanceForType() {
- return Backend.getDefaultInstance();
+ @java.lang.Override
+ public com.google.api.Backend getDefaultInstanceForType() {
+ return com.google.api.Backend.getDefaultInstance();
}
- @Override
- public Backend build() {
- Backend result = buildPartial();
+ @java.lang.Override
+ public com.google.api.Backend build() {
+ com.google.api.Backend result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- @Override
- public Backend buildPartial() {
- Backend result = new Backend(this);
+ @java.lang.Override
+ public com.google.api.Backend buildPartial() {
+ com.google.api.Backend result = new com.google.api.Backend(this);
int from_bitField0_ = bitField0_;
if (rulesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
@@ -397,50 +430,51 @@ public Backend buildPartial() {
return result;
}
- @Override
+ @java.lang.Override
public Builder clone() {
return super.clone();
}
- @Override
+
+ @java.lang.Override
public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
- @Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
- @Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
- @Override
+
+ @java.lang.Override
public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
- @Override
+
+ @java.lang.Override
public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
- @Override
+
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof Backend) {
- return mergeFrom((Backend)other);
+ if (other instanceof com.google.api.Backend) {
+ return mergeFrom((com.google.api.Backend) other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(Backend other) {
- if (other == Backend.getDefaultInstance()) return this;
+ public Builder mergeFrom(com.google.api.Backend other) {
+ if (other == com.google.api.Backend.getDefaultInstance()) return this;
if (rulesBuilder_ == null) {
if (!other.rules_.isEmpty()) {
if (rules_.isEmpty()) {
@@ -459,9 +493,10 @@ public Builder mergeFrom(Backend other) {
rulesBuilder_ = null;
rules_ = other.rules_;
bitField0_ = (bitField0_ & ~0x00000001);
- rulesBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
- getRulesFieldBuilder() : null;
+ rulesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getRulesFieldBuilder()
+ : null;
} else {
rulesBuilder_.addAllMessages(other.rules_);
}
@@ -472,21 +507,21 @@ public Builder mergeFrom(Backend other) {
return this;
}
- @Override
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
- @Override
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Backend parsedMessage = null;
+ com.google.api.Backend parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Backend) e.getUnfinishedMessage();
+ parsedMessage = (com.google.api.Backend) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@@ -495,21 +530,27 @@ public Builder mergeFrom(
}
return this;
}
+
private int bitField0_;
- private java.util.List rules_ =
- java.util.Collections.emptyList();
+ private java.util.List rules_ = java.util.Collections.emptyList();
+
private void ensureRulesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
rules_ = new java.util.ArrayList(rules_);
bitField0_ |= 0x00000001;
- }
+ }
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.api.BackendRule, com.google.api.BackendRule.Builder, com.google.api.BackendRuleOrBuilder> rulesBuilder_;
+ com.google.api.BackendRule,
+ com.google.api.BackendRule.Builder,
+ com.google.api.BackendRuleOrBuilder>
+ rulesBuilder_;
/**
+ *
+ *
*
* A list of API backend rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -525,6 +566,8 @@ public java.util.List getRulesList() {
}
}
/**
+ *
+ *
*
* A list of API backend rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
@@ -540,6 +583,8 @@ public int getRulesCount() {
}
}
/**
+ *
+ *
*