Package com.google.cloud.iap.v1
Class AttributePropagationSettings
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.iap.v1.AttributePropagationSettings
- All Implemented Interfaces:
AttributePropagationSettingsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class AttributePropagationSettings
extends com.google.protobuf.GeneratedMessage
implements AttributePropagationSettingsOrBuilder
Configuration for propagating attributes to applications protected by IAP.Protobuf type
google.cloud.iap.v1.AttributePropagationSettings- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration for propagating attributes to applications protected by IAP.static enumSupported output credentials for attribute propagation.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AttributePropagationSettingsstatic final com.google.protobuf.Descriptors.DescriptorbooleanOptional.Optional.com.google.protobuf.ByteStringOptional.getOutputCredentials(int index) Optional.intOptional.Optional.intgetOutputCredentialsValue(int index) Optional.Optional.com.google.protobuf.Parser<AttributePropagationSettings>intbooleanOptional.booleanOptional.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(AttributePropagationSettings prototype) protected AttributePropagationSettings.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AttributePropagationSettingsparseDelimitedFrom(InputStream input) static AttributePropagationSettingsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributePropagationSettingsparseFrom(byte[] data) static AttributePropagationSettingsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributePropagationSettingsparseFrom(com.google.protobuf.ByteString data) static AttributePropagationSettingsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributePropagationSettingsparseFrom(com.google.protobuf.CodedInputStream input) static AttributePropagationSettingsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributePropagationSettingsparseFrom(InputStream input) static AttributePropagationSettingsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributePropagationSettingsparseFrom(ByteBuffer data) static AttributePropagationSettingsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AttributePropagationSettings>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
EXPRESSION_FIELD_NUMBER
public static final int EXPRESSION_FIELD_NUMBER- See Also:
-
OUTPUT_CREDENTIALS_FIELD_NUMBER
public static final int OUTPUT_CREDENTIALS_FIELD_NUMBER- See Also:
-
ENABLE_FIELD_NUMBER
public static final int ENABLE_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AttributePropagationSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributePropagationSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributePropagationSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributePropagationSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributePropagationSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributePropagationSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AttributePropagationSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AttributePropagationSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AttributePropagationSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AttributePropagationSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static AttributePropagationSettings.Builder newBuilder(AttributePropagationSettings prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AttributePropagationSettings.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-