com.google.cloud.iap.v1.AttributePropagationSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-iap-v1 Show documentation
Show all versions of proto-google-cloud-iap-v1 Show documentation
Proto library for google-cloud-iap
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/iap/v1/service.proto
// Protobuf Java Version: 3.25.4
package com.google.cloud.iap.v1;
/**
*
*
*
* Configuration for propagating attributes to applications protected
* by IAP.
*
*
* Protobuf type {@code google.cloud.iap.v1.AttributePropagationSettings}
*/
public final class AttributePropagationSettings extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.iap.v1.AttributePropagationSettings)
AttributePropagationSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttributePropagationSettings.newBuilder() to construct.
private AttributePropagationSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttributePropagationSettings() {
expression_ = "";
outputCredentials_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AttributePropagationSettings();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.iap.v1.Service
.internal_static_google_cloud_iap_v1_AttributePropagationSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.iap.v1.Service
.internal_static_google_cloud_iap_v1_AttributePropagationSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.iap.v1.AttributePropagationSettings.class,
com.google.cloud.iap.v1.AttributePropagationSettings.Builder.class);
}
/**
*
*
*
* Supported output credentials for attribute propagation. Each output
* credential maps to a "field" in the response. For example, selecting JWT
* will propagate all attributes in the IAP JWT, header in the headers, etc.
*
*
* Protobuf enum {@code google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials}
*/
public enum OutputCredentials implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* An output credential is required.
*
*
* OUTPUT_CREDENTIALS_UNSPECIFIED = 0;
*/
OUTPUT_CREDENTIALS_UNSPECIFIED(0),
/**
*
*
*
* Propagate attributes in the headers with "x-goog-iap-attr-" prefix.
*
*
* HEADER = 1;
*/
HEADER(1),
/**
*
*
*
* Propagate attributes in the JWT of the form: `"additional_claims": {
* "my_attribute": ["value1", "value2"] }`
*
*
* JWT = 2;
*/
JWT(2),
/**
*
*
*
* Propagate attributes in the RCToken of the form: `"additional_claims": {
* "my_attribute": ["value1", "value2"] }`
*
*
* RCTOKEN = 3;
*/
RCTOKEN(3),
UNRECOGNIZED(-1),
;
/**
*
*
*
* An output credential is required.
*
*
* OUTPUT_CREDENTIALS_UNSPECIFIED = 0;
*/
public static final int OUTPUT_CREDENTIALS_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Propagate attributes in the headers with "x-goog-iap-attr-" prefix.
*
*
* HEADER = 1;
*/
public static final int HEADER_VALUE = 1;
/**
*
*
*
* Propagate attributes in the JWT of the form: `"additional_claims": {
* "my_attribute": ["value1", "value2"] }`
*
*
* JWT = 2;
*/
public static final int JWT_VALUE = 2;
/**
*
*
*
* Propagate attributes in the RCToken of the form: `"additional_claims": {
* "my_attribute": ["value1", "value2"] }`
*
*
* RCTOKEN = 3;
*/
public static final int RCTOKEN_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static OutputCredentials valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static OutputCredentials forNumber(int value) {
switch (value) {
case 0:
return OUTPUT_CREDENTIALS_UNSPECIFIED;
case 1:
return HEADER;
case 2:
return JWT;
case 3:
return RCTOKEN;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public OutputCredentials findValueByNumber(int number) {
return OutputCredentials.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.iap.v1.AttributePropagationSettings.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final OutputCredentials[] VALUES = values();
public static OutputCredentials valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private OutputCredentials(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials)
}
private int bitField0_;
public static final int EXPRESSION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object expression_ = "";
/**
*
*
*
* Raw string CEL expression. Must return a list of attributes. A maximum of
* 45 attributes can be selected. Expressions can select different attribute
* types from `attributes`: `attributes.saml_attributes`,
* `attributes.iap_attributes`. The following functions are supported:
*
* - filter `<list>.filter(<iter_var>, <predicate>)`: Returns a subset of
* `<list>` where `<predicate>` is true for every item.
*
* - in `<var> in <list>`: Returns true if `<list>` contains `<var>`.
*
* - selectByName `<list>.selectByName(<string>)`: Returns the attribute
* in
* `<list>` with the given `<string>` name, otherwise returns empty.
*
* - emitAs `<attribute>.emitAs(<string>)`: Sets the `<attribute>` name
* field to the given `<string>` for propagation in selected output
* credentials.
*
* - strict `<attribute>.strict()`: Ignores the `x-goog-iap-attr-` prefix
* for the provided `<attribute>` when propagating with the `HEADER` output
* credential, such as request headers.
*
* - append `<target_list>.append(<attribute>)` OR
* `<target_list>.append(<list>)`: Appends the provided `<attribute>` or
* `<list>` to the end of `<target_list>`.
*
* Example expression: `attributes.saml_attributes.filter(x, x.name in
* ['test']).append(attributes.iap_attributes.selectByName('exact').emitAs('custom').strict())`
*
*
* optional string expression = 1;
*
* @return Whether the expression field is set.
*/
@java.lang.Override
public boolean hasExpression() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Raw string CEL expression. Must return a list of attributes. A maximum of
* 45 attributes can be selected. Expressions can select different attribute
* types from `attributes`: `attributes.saml_attributes`,
* `attributes.iap_attributes`. The following functions are supported:
*
* - filter `<list>.filter(<iter_var>, <predicate>)`: Returns a subset of
* `<list>` where `<predicate>` is true for every item.
*
* - in `<var> in <list>`: Returns true if `<list>` contains `<var>`.
*
* - selectByName `<list>.selectByName(<string>)`: Returns the attribute
* in
* `<list>` with the given `<string>` name, otherwise returns empty.
*
* - emitAs `<attribute>.emitAs(<string>)`: Sets the `<attribute>` name
* field to the given `<string>` for propagation in selected output
* credentials.
*
* - strict `<attribute>.strict()`: Ignores the `x-goog-iap-attr-` prefix
* for the provided `<attribute>` when propagating with the `HEADER` output
* credential, such as request headers.
*
* - append `<target_list>.append(<attribute>)` OR
* `<target_list>.append(<list>)`: Appends the provided `<attribute>` or
* `<list>` to the end of `<target_list>`.
*
* Example expression: `attributes.saml_attributes.filter(x, x.name in
* ['test']).append(attributes.iap_attributes.selectByName('exact').emitAs('custom').strict())`
*
*
* optional string expression = 1;
*
* @return The expression.
*/
@java.lang.Override
public java.lang.String getExpression() {
java.lang.Object ref = expression_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
expression_ = s;
return s;
}
}
/**
*
*
*
* Raw string CEL expression. Must return a list of attributes. A maximum of
* 45 attributes can be selected. Expressions can select different attribute
* types from `attributes`: `attributes.saml_attributes`,
* `attributes.iap_attributes`. The following functions are supported:
*
* - filter `<list>.filter(<iter_var>, <predicate>)`: Returns a subset of
* `<list>` where `<predicate>` is true for every item.
*
* - in `<var> in <list>`: Returns true if `<list>` contains `<var>`.
*
* - selectByName `<list>.selectByName(<string>)`: Returns the attribute
* in
* `<list>` with the given `<string>` name, otherwise returns empty.
*
* - emitAs `<attribute>.emitAs(<string>)`: Sets the `<attribute>` name
* field to the given `<string>` for propagation in selected output
* credentials.
*
* - strict `<attribute>.strict()`: Ignores the `x-goog-iap-attr-` prefix
* for the provided `<attribute>` when propagating with the `HEADER` output
* credential, such as request headers.
*
* - append `<target_list>.append(<attribute>)` OR
* `<target_list>.append(<list>)`: Appends the provided `<attribute>` or
* `<list>` to the end of `<target_list>`.
*
* Example expression: `attributes.saml_attributes.filter(x, x.name in
* ['test']).append(attributes.iap_attributes.selectByName('exact').emitAs('custom').strict())`
*
*
* optional string expression = 1;
*
* @return The bytes for expression.
*/
@java.lang.Override
public com.google.protobuf.ByteString getExpressionBytes() {
java.lang.Object ref = expression_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
expression_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OUTPUT_CREDENTIALS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List outputCredentials_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials>
outputCredentials_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer,
com.google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials>() {
public com.google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials convert(
java.lang.Integer from) {
com.google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials result =
com.google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials.forNumber(
from);
return result == null
? com.google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials
.UNRECOGNIZED
: result;
}
};
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @return A list containing the outputCredentials.
*/
@java.lang.Override
public java.util.List
getOutputCredentialsList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials>(
outputCredentials_, outputCredentials_converter_);
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @return The count of outputCredentials.
*/
@java.lang.Override
public int getOutputCredentialsCount() {
return outputCredentials_.size();
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @param index The index of the element to return.
* @return The outputCredentials at the given index.
*/
@java.lang.Override
public com.google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials
getOutputCredentials(int index) {
return outputCredentials_converter_.convert(outputCredentials_.get(index));
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @return A list containing the enum numeric values on the wire for outputCredentials.
*/
@java.lang.Override
public java.util.List getOutputCredentialsValueList() {
return outputCredentials_;
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @param index The index of the value to return.
* @return The enum numeric value on the wire of outputCredentials at the given index.
*/
@java.lang.Override
public int getOutputCredentialsValue(int index) {
return outputCredentials_.get(index);
}
private int outputCredentialsMemoizedSerializedSize;
public static final int ENABLE_FIELD_NUMBER = 3;
private boolean enable_ = false;
/**
*
*
*
* Whether the provided attribute propagation settings should be evaluated on
* user requests. If set to true, attributes returned from the expression will
* be propagated in the set output credentials.
*
*
* optional bool enable = 3;
*
* @return Whether the enable field is set.
*/
@java.lang.Override
public boolean hasEnable() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Whether the provided attribute propagation settings should be evaluated on
* user requests. If set to true, attributes returned from the expression will
* be propagated in the set output credentials.
*
*
* optional bool enable = 3;
*
* @return The enable.
*/
@java.lang.Override
public boolean getEnable() {
return enable_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, expression_);
}
if (getOutputCredentialsList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(outputCredentialsMemoizedSerializedSize);
}
for (int i = 0; i < outputCredentials_.size(); i++) {
output.writeEnumNoTag(outputCredentials_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(3, enable_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, expression_);
}
{
int dataSize = 0;
for (int i = 0; i < outputCredentials_.size(); i++) {
dataSize +=
com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(outputCredentials_.get(i));
}
size += dataSize;
if (!getOutputCredentialsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
}
outputCredentialsMemoizedSerializedSize = dataSize;
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enable_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.iap.v1.AttributePropagationSettings)) {
return super.equals(obj);
}
com.google.cloud.iap.v1.AttributePropagationSettings other =
(com.google.cloud.iap.v1.AttributePropagationSettings) obj;
if (hasExpression() != other.hasExpression()) return false;
if (hasExpression()) {
if (!getExpression().equals(other.getExpression())) return false;
}
if (!outputCredentials_.equals(other.outputCredentials_)) return false;
if (hasEnable() != other.hasEnable()) return false;
if (hasEnable()) {
if (getEnable() != other.getEnable()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasExpression()) {
hash = (37 * hash) + EXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + getExpression().hashCode();
}
if (getOutputCredentialsCount() > 0) {
hash = (37 * hash) + OUTPUT_CREDENTIALS_FIELD_NUMBER;
hash = (53 * hash) + outputCredentials_.hashCode();
}
if (hasEnable()) {
hash = (37 * hash) + ENABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnable());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.iap.v1.AttributePropagationSettings parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.iap.v1.AttributePropagationSettings parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.iap.v1.AttributePropagationSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.iap.v1.AttributePropagationSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.iap.v1.AttributePropagationSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.iap.v1.AttributePropagationSettings parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.iap.v1.AttributePropagationSettings parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.iap.v1.AttributePropagationSettings parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.iap.v1.AttributePropagationSettings parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.iap.v1.AttributePropagationSettings parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.iap.v1.AttributePropagationSettings parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.iap.v1.AttributePropagationSettings parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.cloud.iap.v1.AttributePropagationSettings prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Configuration for propagating attributes to applications protected
* by IAP.
*
*
* Protobuf type {@code google.cloud.iap.v1.AttributePropagationSettings}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.iap.v1.AttributePropagationSettings)
com.google.cloud.iap.v1.AttributePropagationSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.iap.v1.Service
.internal_static_google_cloud_iap_v1_AttributePropagationSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.iap.v1.Service
.internal_static_google_cloud_iap_v1_AttributePropagationSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.iap.v1.AttributePropagationSettings.class,
com.google.cloud.iap.v1.AttributePropagationSettings.Builder.class);
}
// Construct using com.google.cloud.iap.v1.AttributePropagationSettings.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
expression_ = "";
outputCredentials_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
enable_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.iap.v1.Service
.internal_static_google_cloud_iap_v1_AttributePropagationSettings_descriptor;
}
@java.lang.Override
public com.google.cloud.iap.v1.AttributePropagationSettings getDefaultInstanceForType() {
return com.google.cloud.iap.v1.AttributePropagationSettings.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.iap.v1.AttributePropagationSettings build() {
com.google.cloud.iap.v1.AttributePropagationSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.iap.v1.AttributePropagationSettings buildPartial() {
com.google.cloud.iap.v1.AttributePropagationSettings result =
new com.google.cloud.iap.v1.AttributePropagationSettings(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.iap.v1.AttributePropagationSettings result) {
if (((bitField0_ & 0x00000002) != 0)) {
outputCredentials_ = java.util.Collections.unmodifiableList(outputCredentials_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.outputCredentials_ = outputCredentials_;
}
private void buildPartial0(com.google.cloud.iap.v1.AttributePropagationSettings result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.expression_ = expression_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.enable_ = enable_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.iap.v1.AttributePropagationSettings) {
return mergeFrom((com.google.cloud.iap.v1.AttributePropagationSettings) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.iap.v1.AttributePropagationSettings other) {
if (other == com.google.cloud.iap.v1.AttributePropagationSettings.getDefaultInstance())
return this;
if (other.hasExpression()) {
expression_ = other.expression_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.outputCredentials_.isEmpty()) {
if (outputCredentials_.isEmpty()) {
outputCredentials_ = other.outputCredentials_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureOutputCredentialsIsMutable();
outputCredentials_.addAll(other.outputCredentials_);
}
onChanged();
}
if (other.hasEnable()) {
setEnable(other.getEnable());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
expression_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
int tmpRaw = input.readEnum();
ensureOutputCredentialsIsMutable();
outputCredentials_.add(tmpRaw);
break;
} // case 16
case 18:
{
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while (input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
ensureOutputCredentialsIsMutable();
outputCredentials_.add(tmpRaw);
}
input.popLimit(oldLimit);
break;
} // case 18
case 24:
{
enable_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object expression_ = "";
/**
*
*
*
* Raw string CEL expression. Must return a list of attributes. A maximum of
* 45 attributes can be selected. Expressions can select different attribute
* types from `attributes`: `attributes.saml_attributes`,
* `attributes.iap_attributes`. The following functions are supported:
*
* - filter `<list>.filter(<iter_var>, <predicate>)`: Returns a subset of
* `<list>` where `<predicate>` is true for every item.
*
* - in `<var> in <list>`: Returns true if `<list>` contains `<var>`.
*
* - selectByName `<list>.selectByName(<string>)`: Returns the attribute
* in
* `<list>` with the given `<string>` name, otherwise returns empty.
*
* - emitAs `<attribute>.emitAs(<string>)`: Sets the `<attribute>` name
* field to the given `<string>` for propagation in selected output
* credentials.
*
* - strict `<attribute>.strict()`: Ignores the `x-goog-iap-attr-` prefix
* for the provided `<attribute>` when propagating with the `HEADER` output
* credential, such as request headers.
*
* - append `<target_list>.append(<attribute>)` OR
* `<target_list>.append(<list>)`: Appends the provided `<attribute>` or
* `<list>` to the end of `<target_list>`.
*
* Example expression: `attributes.saml_attributes.filter(x, x.name in
* ['test']).append(attributes.iap_attributes.selectByName('exact').emitAs('custom').strict())`
*
*
* optional string expression = 1;
*
* @return Whether the expression field is set.
*/
public boolean hasExpression() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Raw string CEL expression. Must return a list of attributes. A maximum of
* 45 attributes can be selected. Expressions can select different attribute
* types from `attributes`: `attributes.saml_attributes`,
* `attributes.iap_attributes`. The following functions are supported:
*
* - filter `<list>.filter(<iter_var>, <predicate>)`: Returns a subset of
* `<list>` where `<predicate>` is true for every item.
*
* - in `<var> in <list>`: Returns true if `<list>` contains `<var>`.
*
* - selectByName `<list>.selectByName(<string>)`: Returns the attribute
* in
* `<list>` with the given `<string>` name, otherwise returns empty.
*
* - emitAs `<attribute>.emitAs(<string>)`: Sets the `<attribute>` name
* field to the given `<string>` for propagation in selected output
* credentials.
*
* - strict `<attribute>.strict()`: Ignores the `x-goog-iap-attr-` prefix
* for the provided `<attribute>` when propagating with the `HEADER` output
* credential, such as request headers.
*
* - append `<target_list>.append(<attribute>)` OR
* `<target_list>.append(<list>)`: Appends the provided `<attribute>` or
* `<list>` to the end of `<target_list>`.
*
* Example expression: `attributes.saml_attributes.filter(x, x.name in
* ['test']).append(attributes.iap_attributes.selectByName('exact').emitAs('custom').strict())`
*
*
* optional string expression = 1;
*
* @return The expression.
*/
public java.lang.String getExpression() {
java.lang.Object ref = expression_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
expression_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Raw string CEL expression. Must return a list of attributes. A maximum of
* 45 attributes can be selected. Expressions can select different attribute
* types from `attributes`: `attributes.saml_attributes`,
* `attributes.iap_attributes`. The following functions are supported:
*
* - filter `<list>.filter(<iter_var>, <predicate>)`: Returns a subset of
* `<list>` where `<predicate>` is true for every item.
*
* - in `<var> in <list>`: Returns true if `<list>` contains `<var>`.
*
* - selectByName `<list>.selectByName(<string>)`: Returns the attribute
* in
* `<list>` with the given `<string>` name, otherwise returns empty.
*
* - emitAs `<attribute>.emitAs(<string>)`: Sets the `<attribute>` name
* field to the given `<string>` for propagation in selected output
* credentials.
*
* - strict `<attribute>.strict()`: Ignores the `x-goog-iap-attr-` prefix
* for the provided `<attribute>` when propagating with the `HEADER` output
* credential, such as request headers.
*
* - append `<target_list>.append(<attribute>)` OR
* `<target_list>.append(<list>)`: Appends the provided `<attribute>` or
* `<list>` to the end of `<target_list>`.
*
* Example expression: `attributes.saml_attributes.filter(x, x.name in
* ['test']).append(attributes.iap_attributes.selectByName('exact').emitAs('custom').strict())`
*
*
* optional string expression = 1;
*
* @return The bytes for expression.
*/
public com.google.protobuf.ByteString getExpressionBytes() {
java.lang.Object ref = expression_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
expression_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Raw string CEL expression. Must return a list of attributes. A maximum of
* 45 attributes can be selected. Expressions can select different attribute
* types from `attributes`: `attributes.saml_attributes`,
* `attributes.iap_attributes`. The following functions are supported:
*
* - filter `<list>.filter(<iter_var>, <predicate>)`: Returns a subset of
* `<list>` where `<predicate>` is true for every item.
*
* - in `<var> in <list>`: Returns true if `<list>` contains `<var>`.
*
* - selectByName `<list>.selectByName(<string>)`: Returns the attribute
* in
* `<list>` with the given `<string>` name, otherwise returns empty.
*
* - emitAs `<attribute>.emitAs(<string>)`: Sets the `<attribute>` name
* field to the given `<string>` for propagation in selected output
* credentials.
*
* - strict `<attribute>.strict()`: Ignores the `x-goog-iap-attr-` prefix
* for the provided `<attribute>` when propagating with the `HEADER` output
* credential, such as request headers.
*
* - append `<target_list>.append(<attribute>)` OR
* `<target_list>.append(<list>)`: Appends the provided `<attribute>` or
* `<list>` to the end of `<target_list>`.
*
* Example expression: `attributes.saml_attributes.filter(x, x.name in
* ['test']).append(attributes.iap_attributes.selectByName('exact').emitAs('custom').strict())`
*
*
* optional string expression = 1;
*
* @param value The expression to set.
* @return This builder for chaining.
*/
public Builder setExpression(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
expression_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Raw string CEL expression. Must return a list of attributes. A maximum of
* 45 attributes can be selected. Expressions can select different attribute
* types from `attributes`: `attributes.saml_attributes`,
* `attributes.iap_attributes`. The following functions are supported:
*
* - filter `<list>.filter(<iter_var>, <predicate>)`: Returns a subset of
* `<list>` where `<predicate>` is true for every item.
*
* - in `<var> in <list>`: Returns true if `<list>` contains `<var>`.
*
* - selectByName `<list>.selectByName(<string>)`: Returns the attribute
* in
* `<list>` with the given `<string>` name, otherwise returns empty.
*
* - emitAs `<attribute>.emitAs(<string>)`: Sets the `<attribute>` name
* field to the given `<string>` for propagation in selected output
* credentials.
*
* - strict `<attribute>.strict()`: Ignores the `x-goog-iap-attr-` prefix
* for the provided `<attribute>` when propagating with the `HEADER` output
* credential, such as request headers.
*
* - append `<target_list>.append(<attribute>)` OR
* `<target_list>.append(<list>)`: Appends the provided `<attribute>` or
* `<list>` to the end of `<target_list>`.
*
* Example expression: `attributes.saml_attributes.filter(x, x.name in
* ['test']).append(attributes.iap_attributes.selectByName('exact').emitAs('custom').strict())`
*
*
* optional string expression = 1;
*
* @return This builder for chaining.
*/
public Builder clearExpression() {
expression_ = getDefaultInstance().getExpression();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Raw string CEL expression. Must return a list of attributes. A maximum of
* 45 attributes can be selected. Expressions can select different attribute
* types from `attributes`: `attributes.saml_attributes`,
* `attributes.iap_attributes`. The following functions are supported:
*
* - filter `<list>.filter(<iter_var>, <predicate>)`: Returns a subset of
* `<list>` where `<predicate>` is true for every item.
*
* - in `<var> in <list>`: Returns true if `<list>` contains `<var>`.
*
* - selectByName `<list>.selectByName(<string>)`: Returns the attribute
* in
* `<list>` with the given `<string>` name, otherwise returns empty.
*
* - emitAs `<attribute>.emitAs(<string>)`: Sets the `<attribute>` name
* field to the given `<string>` for propagation in selected output
* credentials.
*
* - strict `<attribute>.strict()`: Ignores the `x-goog-iap-attr-` prefix
* for the provided `<attribute>` when propagating with the `HEADER` output
* credential, such as request headers.
*
* - append `<target_list>.append(<attribute>)` OR
* `<target_list>.append(<list>)`: Appends the provided `<attribute>` or
* `<list>` to the end of `<target_list>`.
*
* Example expression: `attributes.saml_attributes.filter(x, x.name in
* ['test']).append(attributes.iap_attributes.selectByName('exact').emitAs('custom').strict())`
*
*
* optional string expression = 1;
*
* @param value The bytes for expression to set.
* @return This builder for chaining.
*/
public Builder setExpressionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
expression_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List outputCredentials_ =
java.util.Collections.emptyList();
private void ensureOutputCredentialsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
outputCredentials_ = new java.util.ArrayList(outputCredentials_);
bitField0_ |= 0x00000002;
}
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @return A list containing the outputCredentials.
*/
public java.util.List
getOutputCredentialsList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer,
com.google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials>(
outputCredentials_, outputCredentials_converter_);
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @return The count of outputCredentials.
*/
public int getOutputCredentialsCount() {
return outputCredentials_.size();
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @param index The index of the element to return.
* @return The outputCredentials at the given index.
*/
public com.google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials
getOutputCredentials(int index) {
return outputCredentials_converter_.convert(outputCredentials_.get(index));
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @param index The index to set the value at.
* @param value The outputCredentials to set.
* @return This builder for chaining.
*/
public Builder setOutputCredentials(
int index, com.google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials value) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputCredentialsIsMutable();
outputCredentials_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @param value The outputCredentials to add.
* @return This builder for chaining.
*/
public Builder addOutputCredentials(
com.google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials value) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputCredentialsIsMutable();
outputCredentials_.add(value.getNumber());
onChanged();
return this;
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @param values The outputCredentials to add.
* @return This builder for chaining.
*/
public Builder addAllOutputCredentials(
java.lang.Iterable<
? extends com.google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials>
values) {
ensureOutputCredentialsIsMutable();
for (com.google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials value : values) {
outputCredentials_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @return This builder for chaining.
*/
public Builder clearOutputCredentials() {
outputCredentials_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @return A list containing the enum numeric values on the wire for outputCredentials.
*/
public java.util.List getOutputCredentialsValueList() {
return java.util.Collections.unmodifiableList(outputCredentials_);
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @param index The index of the value to return.
* @return The enum numeric value on the wire of outputCredentials at the given index.
*/
public int getOutputCredentialsValue(int index) {
return outputCredentials_.get(index);
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for outputCredentials to set.
* @return This builder for chaining.
*/
public Builder setOutputCredentialsValue(int index, int value) {
ensureOutputCredentialsIsMutable();
outputCredentials_.set(index, value);
onChanged();
return this;
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @param value The enum numeric value on the wire for outputCredentials to add.
* @return This builder for chaining.
*/
public Builder addOutputCredentialsValue(int value) {
ensureOutputCredentialsIsMutable();
outputCredentials_.add(value);
onChanged();
return this;
}
/**
*
*
*
* Which output credentials attributes selected by the CEL expression should
* be propagated in. All attributes will be fully duplicated in each selected
* output credential.
*
*
*
* repeated .google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials output_credentials = 2;
*
*
* @param values The enum numeric values on the wire for outputCredentials to add.
* @return This builder for chaining.
*/
public Builder addAllOutputCredentialsValue(java.lang.Iterable values) {
ensureOutputCredentialsIsMutable();
for (int value : values) {
outputCredentials_.add(value);
}
onChanged();
return this;
}
private boolean enable_;
/**
*
*
*
* Whether the provided attribute propagation settings should be evaluated on
* user requests. If set to true, attributes returned from the expression will
* be propagated in the set output credentials.
*
*
* optional bool enable = 3;
*
* @return Whether the enable field is set.
*/
@java.lang.Override
public boolean hasEnable() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Whether the provided attribute propagation settings should be evaluated on
* user requests. If set to true, attributes returned from the expression will
* be propagated in the set output credentials.
*
*
* optional bool enable = 3;
*
* @return The enable.
*/
@java.lang.Override
public boolean getEnable() {
return enable_;
}
/**
*
*
*
* Whether the provided attribute propagation settings should be evaluated on
* user requests. If set to true, attributes returned from the expression will
* be propagated in the set output credentials.
*
*
* optional bool enable = 3;
*
* @param value The enable to set.
* @return This builder for chaining.
*/
public Builder setEnable(boolean value) {
enable_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Whether the provided attribute propagation settings should be evaluated on
* user requests. If set to true, attributes returned from the expression will
* be propagated in the set output credentials.
*
*
* optional bool enable = 3;
*
* @return This builder for chaining.
*/
public Builder clearEnable() {
bitField0_ = (bitField0_ & ~0x00000004);
enable_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.iap.v1.AttributePropagationSettings)
}
// @@protoc_insertion_point(class_scope:google.cloud.iap.v1.AttributePropagationSettings)
private static final com.google.cloud.iap.v1.AttributePropagationSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.iap.v1.AttributePropagationSettings();
}
public static com.google.cloud.iap.v1.AttributePropagationSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttributePropagationSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.iap.v1.AttributePropagationSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}