public static final class GenerateIdTokenRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateIdTokenRequest.Builder> implements GenerateIdTokenRequestOrBuilder
google.iam.credentials.v1.GenerateIdTokenRequest| Modifier and Type | Method and Description |
|---|---|
GenerateIdTokenRequest.Builder |
addAllDelegates(Iterable<String> values)
The sequence of service accounts in a delegation chain.
|
GenerateIdTokenRequest.Builder |
addDelegates(String value)
The sequence of service accounts in a delegation chain.
|
GenerateIdTokenRequest.Builder |
addDelegatesBytes(com.google.protobuf.ByteString value)
The sequence of service accounts in a delegation chain.
|
GenerateIdTokenRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GenerateIdTokenRequest |
build() |
GenerateIdTokenRequest |
buildPartial() |
GenerateIdTokenRequest.Builder |
clear() |
GenerateIdTokenRequest.Builder |
clearAudience()
Required.
|
GenerateIdTokenRequest.Builder |
clearDelegates()
The sequence of service accounts in a delegation chain.
|
GenerateIdTokenRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GenerateIdTokenRequest.Builder |
clearIncludeEmail()
Include the service account email in the token.
|
GenerateIdTokenRequest.Builder |
clearName()
Required.
|
GenerateIdTokenRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GenerateIdTokenRequest.Builder |
clone() |
String |
getAudience()
Required.
|
com.google.protobuf.ByteString |
getAudienceBytes()
Required.
|
GenerateIdTokenRequest |
getDefaultInstanceForType() |
String |
getDelegates(int index)
The sequence of service accounts in a delegation chain.
|
com.google.protobuf.ByteString |
getDelegatesBytes(int index)
The sequence of service accounts in a delegation chain.
|
int |
getDelegatesCount()
The sequence of service accounts in a delegation chain.
|
com.google.protobuf.ProtocolStringList |
getDelegatesList()
The sequence of service accounts in a delegation chain.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getIncludeEmail()
Include the service account email in the token.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GenerateIdTokenRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GenerateIdTokenRequest.Builder |
mergeFrom(GenerateIdTokenRequest other) |
GenerateIdTokenRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
GenerateIdTokenRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GenerateIdTokenRequest.Builder |
setAudience(String value)
Required.
|
GenerateIdTokenRequest.Builder |
setAudienceBytes(com.google.protobuf.ByteString value)
Required.
|
GenerateIdTokenRequest.Builder |
setDelegates(int index,
String value)
The sequence of service accounts in a delegation chain.
|
GenerateIdTokenRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GenerateIdTokenRequest.Builder |
setIncludeEmail(boolean value)
Include the service account email in the token.
|
GenerateIdTokenRequest.Builder |
setName(String value)
Required.
|
GenerateIdTokenRequest.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
GenerateIdTokenRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GenerateIdTokenRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateIdTokenRequest.Builder>public GenerateIdTokenRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateIdTokenRequest.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<GenerateIdTokenRequest.Builder>public GenerateIdTokenRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GenerateIdTokenRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GenerateIdTokenRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GenerateIdTokenRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateIdTokenRequest.Builder>public GenerateIdTokenRequest.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<GenerateIdTokenRequest.Builder>public GenerateIdTokenRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateIdTokenRequest.Builder>public GenerateIdTokenRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateIdTokenRequest.Builder>public GenerateIdTokenRequest.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<GenerateIdTokenRequest.Builder>public GenerateIdTokenRequest.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<GenerateIdTokenRequest.Builder>public GenerateIdTokenRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateIdTokenRequest.Builder>public GenerateIdTokenRequest.Builder mergeFrom(GenerateIdTokenRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateIdTokenRequest.Builder>public GenerateIdTokenRequest.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<GenerateIdTokenRequest.Builder>IOExceptionpublic String getName()
Required. The resource name of the service account for which the credentials
are requested, in the following format:
`projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
character is required; replacing it with a project ID is invalid.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getName in interface GenerateIdTokenRequestOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. The resource name of the service account for which the credentials
are requested, in the following format:
`projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
character is required; replacing it with a project ID is invalid.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getNameBytes in interface GenerateIdTokenRequestOrBuilderpublic GenerateIdTokenRequest.Builder setName(String value)
Required. The resource name of the service account for which the credentials
are requested, in the following format:
`projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
character is required; replacing it with a project ID is invalid.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The name to set.public GenerateIdTokenRequest.Builder clearName()
Required. The resource name of the service account for which the credentials
are requested, in the following format:
`projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
character is required; replacing it with a project ID is invalid.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public GenerateIdTokenRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The resource name of the service account for which the credentials
are requested, in the following format:
`projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
character is required; replacing it with a project ID is invalid.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for name to set.public com.google.protobuf.ProtocolStringList getDelegatesList()
The sequence of service accounts in a delegation chain. Each service
account must be granted the `roles/iam.serviceAccountTokenCreator` role
on its next service account in the chain. The last service account in the
chain must be granted the `roles/iam.serviceAccountTokenCreator` role
on the service account that is specified in the `name` field of the
request.
The delegates must have the following format:
`projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
character is required; replacing it with a project ID is invalid.
repeated string delegates = 2;getDelegatesList in interface GenerateIdTokenRequestOrBuilderpublic int getDelegatesCount()
The sequence of service accounts in a delegation chain. Each service
account must be granted the `roles/iam.serviceAccountTokenCreator` role
on its next service account in the chain. The last service account in the
chain must be granted the `roles/iam.serviceAccountTokenCreator` role
on the service account that is specified in the `name` field of the
request.
The delegates must have the following format:
`projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
character is required; replacing it with a project ID is invalid.
repeated string delegates = 2;getDelegatesCount in interface GenerateIdTokenRequestOrBuilderpublic String getDelegates(int index)
The sequence of service accounts in a delegation chain. Each service
account must be granted the `roles/iam.serviceAccountTokenCreator` role
on its next service account in the chain. The last service account in the
chain must be granted the `roles/iam.serviceAccountTokenCreator` role
on the service account that is specified in the `name` field of the
request.
The delegates must have the following format:
`projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
character is required; replacing it with a project ID is invalid.
repeated string delegates = 2;getDelegates in interface GenerateIdTokenRequestOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getDelegatesBytes(int index)
The sequence of service accounts in a delegation chain. Each service
account must be granted the `roles/iam.serviceAccountTokenCreator` role
on its next service account in the chain. The last service account in the
chain must be granted the `roles/iam.serviceAccountTokenCreator` role
on the service account that is specified in the `name` field of the
request.
The delegates must have the following format:
`projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
character is required; replacing it with a project ID is invalid.
repeated string delegates = 2;getDelegatesBytes in interface GenerateIdTokenRequestOrBuilderindex - The index of the value to return.public GenerateIdTokenRequest.Builder setDelegates(int index, String value)
The sequence of service accounts in a delegation chain. Each service
account must be granted the `roles/iam.serviceAccountTokenCreator` role
on its next service account in the chain. The last service account in the
chain must be granted the `roles/iam.serviceAccountTokenCreator` role
on the service account that is specified in the `name` field of the
request.
The delegates must have the following format:
`projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
character is required; replacing it with a project ID is invalid.
repeated string delegates = 2;index - The index to set the value at.value - The delegates to set.public GenerateIdTokenRequest.Builder addDelegates(String value)
The sequence of service accounts in a delegation chain. Each service
account must be granted the `roles/iam.serviceAccountTokenCreator` role
on its next service account in the chain. The last service account in the
chain must be granted the `roles/iam.serviceAccountTokenCreator` role
on the service account that is specified in the `name` field of the
request.
The delegates must have the following format:
`projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
character is required; replacing it with a project ID is invalid.
repeated string delegates = 2;value - The delegates to add.public GenerateIdTokenRequest.Builder addAllDelegates(Iterable<String> values)
The sequence of service accounts in a delegation chain. Each service
account must be granted the `roles/iam.serviceAccountTokenCreator` role
on its next service account in the chain. The last service account in the
chain must be granted the `roles/iam.serviceAccountTokenCreator` role
on the service account that is specified in the `name` field of the
request.
The delegates must have the following format:
`projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
character is required; replacing it with a project ID is invalid.
repeated string delegates = 2;values - The delegates to add.public GenerateIdTokenRequest.Builder clearDelegates()
The sequence of service accounts in a delegation chain. Each service
account must be granted the `roles/iam.serviceAccountTokenCreator` role
on its next service account in the chain. The last service account in the
chain must be granted the `roles/iam.serviceAccountTokenCreator` role
on the service account that is specified in the `name` field of the
request.
The delegates must have the following format:
`projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
character is required; replacing it with a project ID is invalid.
repeated string delegates = 2;public GenerateIdTokenRequest.Builder addDelegatesBytes(com.google.protobuf.ByteString value)
The sequence of service accounts in a delegation chain. Each service
account must be granted the `roles/iam.serviceAccountTokenCreator` role
on its next service account in the chain. The last service account in the
chain must be granted the `roles/iam.serviceAccountTokenCreator` role
on the service account that is specified in the `name` field of the
request.
The delegates must have the following format:
`projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
character is required; replacing it with a project ID is invalid.
repeated string delegates = 2;value - The bytes of the delegates to add.public String getAudience()
Required. The audience for the token, such as the API or account that this token grants access to.
string audience = 3 [(.google.api.field_behavior) = REQUIRED];getAudience in interface GenerateIdTokenRequestOrBuilderpublic com.google.protobuf.ByteString getAudienceBytes()
Required. The audience for the token, such as the API or account that this token grants access to.
string audience = 3 [(.google.api.field_behavior) = REQUIRED];getAudienceBytes in interface GenerateIdTokenRequestOrBuilderpublic GenerateIdTokenRequest.Builder setAudience(String value)
Required. The audience for the token, such as the API or account that this token grants access to.
string audience = 3 [(.google.api.field_behavior) = REQUIRED];value - The audience to set.public GenerateIdTokenRequest.Builder clearAudience()
Required. The audience for the token, such as the API or account that this token grants access to.
string audience = 3 [(.google.api.field_behavior) = REQUIRED];public GenerateIdTokenRequest.Builder setAudienceBytes(com.google.protobuf.ByteString value)
Required. The audience for the token, such as the API or account that this token grants access to.
string audience = 3 [(.google.api.field_behavior) = REQUIRED];value - The bytes for audience to set.public boolean getIncludeEmail()
Include the service account email in the token. If set to `true`, the token will contain `email` and `email_verified` claims.
bool include_email = 4;getIncludeEmail in interface GenerateIdTokenRequestOrBuilderpublic GenerateIdTokenRequest.Builder setIncludeEmail(boolean value)
Include the service account email in the token. If set to `true`, the token will contain `email` and `email_verified` claims.
bool include_email = 4;value - The includeEmail to set.public GenerateIdTokenRequest.Builder clearIncludeEmail()
Include the service account email in the token. If set to `true`, the token will contain `email` and `email_verified` claims.
bool include_email = 4;public final GenerateIdTokenRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateIdTokenRequest.Builder>public final GenerateIdTokenRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateIdTokenRequest.Builder>Copyright © 2022 Google LLC. All rights reserved.