public static final class AttributeContext.Auth.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Auth.Builder> implements AttributeContext.AuthOrBuilder
This message defines request authentication attributes. Terminology is based on the JSON Web Token (JWT) standard, but the terms also correlate to concepts in other standards.Protobuf type
google.rpc.context.AttributeContext.Auth| Modifier and Type | Method and Description |
|---|---|
AttributeContext.Auth.Builder |
addAccessLevels(String value)
A list of access level resource names that allow resources to be
accessed by authenticated requester.
|
AttributeContext.Auth.Builder |
addAccessLevelsBytes(com.google.protobuf.ByteString value)
A list of access level resource names that allow resources to be
accessed by authenticated requester.
|
AttributeContext.Auth.Builder |
addAllAccessLevels(Iterable<String> values)
A list of access level resource names that allow resources to be
accessed by authenticated requester.
|
AttributeContext.Auth.Builder |
addAllAudiences(Iterable<String> values)
The intended audience(s) for this authentication information.
|
AttributeContext.Auth.Builder |
addAudiences(String value)
The intended audience(s) for this authentication information.
|
AttributeContext.Auth.Builder |
addAudiencesBytes(com.google.protobuf.ByteString value)
The intended audience(s) for this authentication information.
|
AttributeContext.Auth.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttributeContext.Auth |
build() |
AttributeContext.Auth |
buildPartial() |
AttributeContext.Auth.Builder |
clear() |
AttributeContext.Auth.Builder |
clearAccessLevels()
A list of access level resource names that allow resources to be
accessed by authenticated requester.
|
AttributeContext.Auth.Builder |
clearAudiences()
The intended audience(s) for this authentication information.
|
AttributeContext.Auth.Builder |
clearClaims()
Structured claims presented with the credential.
|
AttributeContext.Auth.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AttributeContext.Auth.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AttributeContext.Auth.Builder |
clearPresenter()
The authorized presenter of the credential.
|
AttributeContext.Auth.Builder |
clearPrincipal()
The authenticated principal.
|
AttributeContext.Auth.Builder |
clone() |
String |
getAccessLevels(int index)
A list of access level resource names that allow resources to be
accessed by authenticated requester.
|
com.google.protobuf.ByteString |
getAccessLevelsBytes(int index)
A list of access level resource names that allow resources to be
accessed by authenticated requester.
|
int |
getAccessLevelsCount()
A list of access level resource names that allow resources to be
accessed by authenticated requester.
|
com.google.protobuf.ProtocolStringList |
getAccessLevelsList()
A list of access level resource names that allow resources to be
accessed by authenticated requester.
|
String |
getAudiences(int index)
The intended audience(s) for this authentication information.
|
com.google.protobuf.ByteString |
getAudiencesBytes(int index)
The intended audience(s) for this authentication information.
|
int |
getAudiencesCount()
The intended audience(s) for this authentication information.
|
com.google.protobuf.ProtocolStringList |
getAudiencesList()
The intended audience(s) for this authentication information.
|
com.google.protobuf.Struct |
getClaims()
Structured claims presented with the credential.
|
com.google.protobuf.Struct.Builder |
getClaimsBuilder()
Structured claims presented with the credential.
|
com.google.protobuf.StructOrBuilder |
getClaimsOrBuilder()
Structured claims presented with the credential.
|
AttributeContext.Auth |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getPresenter()
The authorized presenter of the credential.
|
com.google.protobuf.ByteString |
getPresenterBytes()
The authorized presenter of the credential.
|
String |
getPrincipal()
The authenticated principal.
|
com.google.protobuf.ByteString |
getPrincipalBytes()
The authenticated principal.
|
boolean |
hasClaims()
Structured claims presented with the credential.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AttributeContext.Auth.Builder |
mergeClaims(com.google.protobuf.Struct value)
Structured claims presented with the credential.
|
AttributeContext.Auth.Builder |
mergeFrom(AttributeContext.Auth other) |
AttributeContext.Auth.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AttributeContext.Auth.Builder |
mergeFrom(com.google.protobuf.Message other) |
AttributeContext.Auth.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AttributeContext.Auth.Builder |
setAccessLevels(int index,
String value)
A list of access level resource names that allow resources to be
accessed by authenticated requester.
|
AttributeContext.Auth.Builder |
setAudiences(int index,
String value)
The intended audience(s) for this authentication information.
|
AttributeContext.Auth.Builder |
setClaims(com.google.protobuf.Struct.Builder builderForValue)
Structured claims presented with the credential.
|
AttributeContext.Auth.Builder |
setClaims(com.google.protobuf.Struct value)
Structured claims presented with the credential.
|
AttributeContext.Auth.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttributeContext.Auth.Builder |
setPresenter(String value)
The authorized presenter of the credential.
|
AttributeContext.Auth.Builder |
setPresenterBytes(com.google.protobuf.ByteString value)
The authorized presenter of the credential.
|
AttributeContext.Auth.Builder |
setPrincipal(String value)
The authenticated principal.
|
AttributeContext.Auth.Builder |
setPrincipalBytes(com.google.protobuf.ByteString value)
The authenticated principal.
|
AttributeContext.Auth.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AttributeContext.Auth.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Auth.Builder>public AttributeContext.Auth.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Auth.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Auth.Builder>public AttributeContext.Auth getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AttributeContext.Auth build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AttributeContext.Auth buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AttributeContext.Auth.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Auth.Builder>public AttributeContext.Auth.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Auth.Builder>public AttributeContext.Auth.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Auth.Builder>public AttributeContext.Auth.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Auth.Builder>public AttributeContext.Auth.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Auth.Builder>public AttributeContext.Auth.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Auth.Builder>public AttributeContext.Auth.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributeContext.Auth.Builder>public AttributeContext.Auth.Builder mergeFrom(AttributeContext.Auth other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Auth.Builder>public AttributeContext.Auth.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributeContext.Auth.Builder>IOExceptionpublic String getPrincipal()
The authenticated principal. Reflects the issuer (`iss`) and subject
(`sub`) claims within a JWT. The issuer and subject should be `/`
delimited, with `/` percent-encoded within the subject fragment. For
Google accounts, the principal format is:
"https://accounts.google.com/{id}"
string principal = 1;getPrincipal in interface AttributeContext.AuthOrBuilderpublic com.google.protobuf.ByteString getPrincipalBytes()
The authenticated principal. Reflects the issuer (`iss`) and subject
(`sub`) claims within a JWT. The issuer and subject should be `/`
delimited, with `/` percent-encoded within the subject fragment. For
Google accounts, the principal format is:
"https://accounts.google.com/{id}"
string principal = 1;getPrincipalBytes in interface AttributeContext.AuthOrBuilderpublic AttributeContext.Auth.Builder setPrincipal(String value)
The authenticated principal. Reflects the issuer (`iss`) and subject
(`sub`) claims within a JWT. The issuer and subject should be `/`
delimited, with `/` percent-encoded within the subject fragment. For
Google accounts, the principal format is:
"https://accounts.google.com/{id}"
string principal = 1;value - The principal to set.public AttributeContext.Auth.Builder clearPrincipal()
The authenticated principal. Reflects the issuer (`iss`) and subject
(`sub`) claims within a JWT. The issuer and subject should be `/`
delimited, with `/` percent-encoded within the subject fragment. For
Google accounts, the principal format is:
"https://accounts.google.com/{id}"
string principal = 1;public AttributeContext.Auth.Builder setPrincipalBytes(com.google.protobuf.ByteString value)
The authenticated principal. Reflects the issuer (`iss`) and subject
(`sub`) claims within a JWT. The issuer and subject should be `/`
delimited, with `/` percent-encoded within the subject fragment. For
Google accounts, the principal format is:
"https://accounts.google.com/{id}"
string principal = 1;value - The bytes for principal to set.public com.google.protobuf.ProtocolStringList getAudiencesList()
The intended audience(s) for this authentication information. Reflects
the audience (`aud`) claim within a JWT. The audience
value(s) depends on the `issuer`, but typically include one or more of
the following pieces of information:
* The services intended to receive the credential. For example,
["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* A set of service-based scopes. For example,
["https://www.googleapis.com/auth/cloud-platform"].
* The client id of an app, such as the Firebase project id for JWTs
from Firebase Auth.
Consult the documentation for the credential issuer to determine the
information provided.
repeated string audiences = 2;getAudiencesList in interface AttributeContext.AuthOrBuilderpublic int getAudiencesCount()
The intended audience(s) for this authentication information. Reflects
the audience (`aud`) claim within a JWT. The audience
value(s) depends on the `issuer`, but typically include one or more of
the following pieces of information:
* The services intended to receive the credential. For example,
["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* A set of service-based scopes. For example,
["https://www.googleapis.com/auth/cloud-platform"].
* The client id of an app, such as the Firebase project id for JWTs
from Firebase Auth.
Consult the documentation for the credential issuer to determine the
information provided.
repeated string audiences = 2;getAudiencesCount in interface AttributeContext.AuthOrBuilderpublic String getAudiences(int index)
The intended audience(s) for this authentication information. Reflects
the audience (`aud`) claim within a JWT. The audience
value(s) depends on the `issuer`, but typically include one or more of
the following pieces of information:
* The services intended to receive the credential. For example,
["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* A set of service-based scopes. For example,
["https://www.googleapis.com/auth/cloud-platform"].
* The client id of an app, such as the Firebase project id for JWTs
from Firebase Auth.
Consult the documentation for the credential issuer to determine the
information provided.
repeated string audiences = 2;getAudiences in interface AttributeContext.AuthOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAudiencesBytes(int index)
The intended audience(s) for this authentication information. Reflects
the audience (`aud`) claim within a JWT. The audience
value(s) depends on the `issuer`, but typically include one or more of
the following pieces of information:
* The services intended to receive the credential. For example,
["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* A set of service-based scopes. For example,
["https://www.googleapis.com/auth/cloud-platform"].
* The client id of an app, such as the Firebase project id for JWTs
from Firebase Auth.
Consult the documentation for the credential issuer to determine the
information provided.
repeated string audiences = 2;getAudiencesBytes in interface AttributeContext.AuthOrBuilderindex - The index of the value to return.public AttributeContext.Auth.Builder setAudiences(int index, String value)
The intended audience(s) for this authentication information. Reflects
the audience (`aud`) claim within a JWT. The audience
value(s) depends on the `issuer`, but typically include one or more of
the following pieces of information:
* The services intended to receive the credential. For example,
["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* A set of service-based scopes. For example,
["https://www.googleapis.com/auth/cloud-platform"].
* The client id of an app, such as the Firebase project id for JWTs
from Firebase Auth.
Consult the documentation for the credential issuer to determine the
information provided.
repeated string audiences = 2;index - The index to set the value at.value - The audiences to set.public AttributeContext.Auth.Builder addAudiences(String value)
The intended audience(s) for this authentication information. Reflects
the audience (`aud`) claim within a JWT. The audience
value(s) depends on the `issuer`, but typically include one or more of
the following pieces of information:
* The services intended to receive the credential. For example,
["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* A set of service-based scopes. For example,
["https://www.googleapis.com/auth/cloud-platform"].
* The client id of an app, such as the Firebase project id for JWTs
from Firebase Auth.
Consult the documentation for the credential issuer to determine the
information provided.
repeated string audiences = 2;value - The audiences to add.public AttributeContext.Auth.Builder addAllAudiences(Iterable<String> values)
The intended audience(s) for this authentication information. Reflects
the audience (`aud`) claim within a JWT. The audience
value(s) depends on the `issuer`, but typically include one or more of
the following pieces of information:
* The services intended to receive the credential. For example,
["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* A set of service-based scopes. For example,
["https://www.googleapis.com/auth/cloud-platform"].
* The client id of an app, such as the Firebase project id for JWTs
from Firebase Auth.
Consult the documentation for the credential issuer to determine the
information provided.
repeated string audiences = 2;values - The audiences to add.public AttributeContext.Auth.Builder clearAudiences()
The intended audience(s) for this authentication information. Reflects
the audience (`aud`) claim within a JWT. The audience
value(s) depends on the `issuer`, but typically include one or more of
the following pieces of information:
* The services intended to receive the credential. For example,
["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* A set of service-based scopes. For example,
["https://www.googleapis.com/auth/cloud-platform"].
* The client id of an app, such as the Firebase project id for JWTs
from Firebase Auth.
Consult the documentation for the credential issuer to determine the
information provided.
repeated string audiences = 2;public AttributeContext.Auth.Builder addAudiencesBytes(com.google.protobuf.ByteString value)
The intended audience(s) for this authentication information. Reflects
the audience (`aud`) claim within a JWT. The audience
value(s) depends on the `issuer`, but typically include one or more of
the following pieces of information:
* The services intended to receive the credential. For example,
["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* A set of service-based scopes. For example,
["https://www.googleapis.com/auth/cloud-platform"].
* The client id of an app, such as the Firebase project id for JWTs
from Firebase Auth.
Consult the documentation for the credential issuer to determine the
information provided.
repeated string audiences = 2;value - The bytes of the audiences to add.public String getPresenter()
The authorized presenter of the credential. Reflects the optional Authorized Presenter (`azp`) claim within a JWT or the OAuth client id. For example, a Google Cloud Platform client id looks as follows: "123456789012.apps.googleusercontent.com".
string presenter = 3;getPresenter in interface AttributeContext.AuthOrBuilderpublic com.google.protobuf.ByteString getPresenterBytes()
The authorized presenter of the credential. Reflects the optional Authorized Presenter (`azp`) claim within a JWT or the OAuth client id. For example, a Google Cloud Platform client id looks as follows: "123456789012.apps.googleusercontent.com".
string presenter = 3;getPresenterBytes in interface AttributeContext.AuthOrBuilderpublic AttributeContext.Auth.Builder setPresenter(String value)
The authorized presenter of the credential. Reflects the optional Authorized Presenter (`azp`) claim within a JWT or the OAuth client id. For example, a Google Cloud Platform client id looks as follows: "123456789012.apps.googleusercontent.com".
string presenter = 3;value - The presenter to set.public AttributeContext.Auth.Builder clearPresenter()
The authorized presenter of the credential. Reflects the optional Authorized Presenter (`azp`) claim within a JWT or the OAuth client id. For example, a Google Cloud Platform client id looks as follows: "123456789012.apps.googleusercontent.com".
string presenter = 3;public AttributeContext.Auth.Builder setPresenterBytes(com.google.protobuf.ByteString value)
The authorized presenter of the credential. Reflects the optional Authorized Presenter (`azp`) claim within a JWT or the OAuth client id. For example, a Google Cloud Platform client id looks as follows: "123456789012.apps.googleusercontent.com".
string presenter = 3;value - The bytes for presenter to set.public boolean hasClaims()
Structured claims presented with the credential. JWTs include
`{key: value}` pairs for standard and private claims. The following
is a subset of the standard required and optional claims that would
typically be presented for a Google-based JWT:
{'iss': 'accounts.google.com',
'sub': '113289723416554971153',
'aud': ['123456789012', 'pubsub.googleapis.com'],
'azp': '123456789012.apps.googleusercontent.com',
'email': 'jsmith@example.com',
'iat': 1353601026,
'exp': 1353604926}
SAML assertions are similarly specified, but with an identity provider
dependent structure.
.google.protobuf.Struct claims = 4;hasClaims in interface AttributeContext.AuthOrBuilderpublic com.google.protobuf.Struct getClaims()
Structured claims presented with the credential. JWTs include
`{key: value}` pairs for standard and private claims. The following
is a subset of the standard required and optional claims that would
typically be presented for a Google-based JWT:
{'iss': 'accounts.google.com',
'sub': '113289723416554971153',
'aud': ['123456789012', 'pubsub.googleapis.com'],
'azp': '123456789012.apps.googleusercontent.com',
'email': 'jsmith@example.com',
'iat': 1353601026,
'exp': 1353604926}
SAML assertions are similarly specified, but with an identity provider
dependent structure.
.google.protobuf.Struct claims = 4;getClaims in interface AttributeContext.AuthOrBuilderpublic AttributeContext.Auth.Builder setClaims(com.google.protobuf.Struct value)
Structured claims presented with the credential. JWTs include
`{key: value}` pairs for standard and private claims. The following
is a subset of the standard required and optional claims that would
typically be presented for a Google-based JWT:
{'iss': 'accounts.google.com',
'sub': '113289723416554971153',
'aud': ['123456789012', 'pubsub.googleapis.com'],
'azp': '123456789012.apps.googleusercontent.com',
'email': 'jsmith@example.com',
'iat': 1353601026,
'exp': 1353604926}
SAML assertions are similarly specified, but with an identity provider
dependent structure.
.google.protobuf.Struct claims = 4;public AttributeContext.Auth.Builder setClaims(com.google.protobuf.Struct.Builder builderForValue)
Structured claims presented with the credential. JWTs include
`{key: value}` pairs for standard and private claims. The following
is a subset of the standard required and optional claims that would
typically be presented for a Google-based JWT:
{'iss': 'accounts.google.com',
'sub': '113289723416554971153',
'aud': ['123456789012', 'pubsub.googleapis.com'],
'azp': '123456789012.apps.googleusercontent.com',
'email': 'jsmith@example.com',
'iat': 1353601026,
'exp': 1353604926}
SAML assertions are similarly specified, but with an identity provider
dependent structure.
.google.protobuf.Struct claims = 4;public AttributeContext.Auth.Builder mergeClaims(com.google.protobuf.Struct value)
Structured claims presented with the credential. JWTs include
`{key: value}` pairs for standard and private claims. The following
is a subset of the standard required and optional claims that would
typically be presented for a Google-based JWT:
{'iss': 'accounts.google.com',
'sub': '113289723416554971153',
'aud': ['123456789012', 'pubsub.googleapis.com'],
'azp': '123456789012.apps.googleusercontent.com',
'email': 'jsmith@example.com',
'iat': 1353601026,
'exp': 1353604926}
SAML assertions are similarly specified, but with an identity provider
dependent structure.
.google.protobuf.Struct claims = 4;public AttributeContext.Auth.Builder clearClaims()
Structured claims presented with the credential. JWTs include
`{key: value}` pairs for standard and private claims. The following
is a subset of the standard required and optional claims that would
typically be presented for a Google-based JWT:
{'iss': 'accounts.google.com',
'sub': '113289723416554971153',
'aud': ['123456789012', 'pubsub.googleapis.com'],
'azp': '123456789012.apps.googleusercontent.com',
'email': 'jsmith@example.com',
'iat': 1353601026,
'exp': 1353604926}
SAML assertions are similarly specified, but with an identity provider
dependent structure.
.google.protobuf.Struct claims = 4;public com.google.protobuf.Struct.Builder getClaimsBuilder()
Structured claims presented with the credential. JWTs include
`{key: value}` pairs for standard and private claims. The following
is a subset of the standard required and optional claims that would
typically be presented for a Google-based JWT:
{'iss': 'accounts.google.com',
'sub': '113289723416554971153',
'aud': ['123456789012', 'pubsub.googleapis.com'],
'azp': '123456789012.apps.googleusercontent.com',
'email': 'jsmith@example.com',
'iat': 1353601026,
'exp': 1353604926}
SAML assertions are similarly specified, but with an identity provider
dependent structure.
.google.protobuf.Struct claims = 4;public com.google.protobuf.StructOrBuilder getClaimsOrBuilder()
Structured claims presented with the credential. JWTs include
`{key: value}` pairs for standard and private claims. The following
is a subset of the standard required and optional claims that would
typically be presented for a Google-based JWT:
{'iss': 'accounts.google.com',
'sub': '113289723416554971153',
'aud': ['123456789012', 'pubsub.googleapis.com'],
'azp': '123456789012.apps.googleusercontent.com',
'email': 'jsmith@example.com',
'iat': 1353601026,
'exp': 1353604926}
SAML assertions are similarly specified, but with an identity provider
dependent structure.
.google.protobuf.Struct claims = 4;getClaimsOrBuilder in interface AttributeContext.AuthOrBuilderpublic com.google.protobuf.ProtocolStringList getAccessLevelsList()
A list of access level resource names that allow resources to be
accessed by authenticated requester. It is part of Secure GCP processing
for the incoming request. An access level string has the format:
"//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
Example:
"//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
repeated string access_levels = 5;getAccessLevelsList in interface AttributeContext.AuthOrBuilderpublic int getAccessLevelsCount()
A list of access level resource names that allow resources to be
accessed by authenticated requester. It is part of Secure GCP processing
for the incoming request. An access level string has the format:
"//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
Example:
"//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
repeated string access_levels = 5;getAccessLevelsCount in interface AttributeContext.AuthOrBuilderpublic String getAccessLevels(int index)
A list of access level resource names that allow resources to be
accessed by authenticated requester. It is part of Secure GCP processing
for the incoming request. An access level string has the format:
"//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
Example:
"//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
repeated string access_levels = 5;getAccessLevels in interface AttributeContext.AuthOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAccessLevelsBytes(int index)
A list of access level resource names that allow resources to be
accessed by authenticated requester. It is part of Secure GCP processing
for the incoming request. An access level string has the format:
"//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
Example:
"//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
repeated string access_levels = 5;getAccessLevelsBytes in interface AttributeContext.AuthOrBuilderindex - The index of the value to return.public AttributeContext.Auth.Builder setAccessLevels(int index, String value)
A list of access level resource names that allow resources to be
accessed by authenticated requester. It is part of Secure GCP processing
for the incoming request. An access level string has the format:
"//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
Example:
"//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
repeated string access_levels = 5;index - The index to set the value at.value - The accessLevels to set.public AttributeContext.Auth.Builder addAccessLevels(String value)
A list of access level resource names that allow resources to be
accessed by authenticated requester. It is part of Secure GCP processing
for the incoming request. An access level string has the format:
"//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
Example:
"//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
repeated string access_levels = 5;value - The accessLevels to add.public AttributeContext.Auth.Builder addAllAccessLevels(Iterable<String> values)
A list of access level resource names that allow resources to be
accessed by authenticated requester. It is part of Secure GCP processing
for the incoming request. An access level string has the format:
"//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
Example:
"//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
repeated string access_levels = 5;values - The accessLevels to add.public AttributeContext.Auth.Builder clearAccessLevels()
A list of access level resource names that allow resources to be
accessed by authenticated requester. It is part of Secure GCP processing
for the incoming request. An access level string has the format:
"//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
Example:
"//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
repeated string access_levels = 5;public AttributeContext.Auth.Builder addAccessLevelsBytes(com.google.protobuf.ByteString value)
A list of access level resource names that allow resources to be
accessed by authenticated requester. It is part of Secure GCP processing
for the incoming request. An access level string has the format:
"//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
Example:
"//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
repeated string access_levels = 5;value - The bytes of the accessLevels to add.public final AttributeContext.Auth.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Auth.Builder>public final AttributeContext.Auth.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Auth.Builder>Copyright © 2022 Google LLC. All rights reserved.