Package com.google.cloud.iap.v1
Class AttributePropagationSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AttributePropagationSettings.Builder>
com.google.cloud.iap.v1.AttributePropagationSettings.Builder
- All Implemented Interfaces:
AttributePropagationSettingsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AttributePropagationSettings
public static final class AttributePropagationSettings.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AttributePropagationSettings.Builder>
implements AttributePropagationSettingsOrBuilder
Configuration for propagating attributes to applications protected by IAP.Protobuf type
google.cloud.iap.v1.AttributePropagationSettings-
Method Summary
Modifier and TypeMethodDescriptionaddAllOutputCredentials(Iterable<? extends AttributePropagationSettings.OutputCredentials> values) Optional.addAllOutputCredentialsValue(Iterable<Integer> values) Optional.Optional.addOutputCredentialsValue(int value) Optional.build()clear()Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.Optional.com.google.protobuf.ByteStringOptional.getOutputCredentials(int index) Optional.intOptional.Optional.intgetOutputCredentialsValue(int index) Optional.Optional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEnable(boolean value) Optional.setExpression(String value) Optional.setExpressionBytes(com.google.protobuf.ByteString value) Optional.setOutputCredentials(int index, AttributePropagationSettings.OutputCredentials value) Optional.setOutputCredentialsValue(int index, int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AttributePropagationSettings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AttributePropagationSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AttributePropagationSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributePropagationSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AttributePropagationSettings.Builder>
-
mergeFrom
public AttributePropagationSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributePropagationSettings.Builder>- Throws:
IOException
-
hasExpression
public boolean hasExpression()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasExpressionin interfaceAttributePropagationSettingsOrBuilder- Returns:
- Whether the expression field is set.
-
getExpression
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExpressionin interfaceAttributePropagationSettingsOrBuilder- Returns:
- The expression.
-
getExpressionBytes
public com.google.protobuf.ByteString getExpressionBytes()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExpressionBytesin interfaceAttributePropagationSettingsOrBuilder- Returns:
- The bytes for expression.
-
setExpression
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The expression to set.- Returns:
- This builder for chaining.
-
clearExpression
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setExpressionBytes
public AttributePropagationSettings.Builder setExpressionBytes(com.google.protobuf.ByteString value) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for expression to set.- Returns:
- This builder for chaining.
-
getOutputCredentialsList
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutputCredentialsListin interfaceAttributePropagationSettingsOrBuilder- Returns:
- A list containing the outputCredentials.
-
getOutputCredentialsCount
public int getOutputCredentialsCount()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutputCredentialsCountin interfaceAttributePropagationSettingsOrBuilder- Returns:
- The count of outputCredentials.
-
getOutputCredentials
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutputCredentialsin interfaceAttributePropagationSettingsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The outputCredentials at the given index.
-
setOutputCredentials
public AttributePropagationSettings.Builder setOutputCredentials(int index, AttributePropagationSettings.OutputCredentials value) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The outputCredentials to set.- Returns:
- This builder for chaining.
-
addOutputCredentials
public AttributePropagationSettings.Builder addOutputCredentials(AttributePropagationSettings.OutputCredentials value) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The outputCredentials to add.- Returns:
- This builder for chaining.
-
addAllOutputCredentials
public AttributePropagationSettings.Builder addAllOutputCredentials(Iterable<? extends AttributePropagationSettings.OutputCredentials> values) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The outputCredentials to add.- Returns:
- This builder for chaining.
-
clearOutputCredentials
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getOutputCredentialsValueList
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutputCredentialsValueListin interfaceAttributePropagationSettingsOrBuilder- Returns:
- A list containing the enum numeric values on the wire for outputCredentials.
-
getOutputCredentialsValue
public int getOutputCredentialsValue(int index) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutputCredentialsValuein interfaceAttributePropagationSettingsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of outputCredentials at the given index.
-
setOutputCredentialsValue
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for outputCredentials to set.- Returns:
- This builder for chaining.
-
addOutputCredentialsValue
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for outputCredentials to add.- Returns:
- This builder for chaining.
-
addAllOutputCredentialsValue
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The enum numeric values on the wire for outputCredentials to add.- Returns:
- This builder for chaining.
-
hasEnable
public boolean hasEnable()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEnablein interfaceAttributePropagationSettingsOrBuilder- Returns:
- Whether the enable field is set.
-
getEnable
public boolean getEnable()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnablein interfaceAttributePropagationSettingsOrBuilder- Returns:
- The enable.
-
setEnable
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enable to set.- Returns:
- This builder for chaining.
-
clearEnable
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-