public static final class GenerateAccessTokenRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateAccessTokenRequest.Builder> implements GenerateAccessTokenRequestOrBuilder
google.iam.credentials.v1.GenerateAccessTokenRequest| Modifier and Type | Method and Description |
|---|---|
GenerateAccessTokenRequest.Builder |
addAllDelegates(Iterable<String> values)
The sequence of service accounts in a delegation chain.
|
GenerateAccessTokenRequest.Builder |
addAllScope(Iterable<String> values)
Required.
|
GenerateAccessTokenRequest.Builder |
addDelegates(String value)
The sequence of service accounts in a delegation chain.
|
GenerateAccessTokenRequest.Builder |
addDelegatesBytes(com.google.protobuf.ByteString value)
The sequence of service accounts in a delegation chain.
|
GenerateAccessTokenRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GenerateAccessTokenRequest.Builder |
addScope(String value)
Required.
|
GenerateAccessTokenRequest.Builder |
addScopeBytes(com.google.protobuf.ByteString value)
Required.
|
GenerateAccessTokenRequest |
build() |
GenerateAccessTokenRequest |
buildPartial() |
GenerateAccessTokenRequest.Builder |
clear() |
GenerateAccessTokenRequest.Builder |
clearDelegates()
The sequence of service accounts in a delegation chain.
|
GenerateAccessTokenRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GenerateAccessTokenRequest.Builder |
clearLifetime()
The desired lifetime duration of the access token in seconds.
|
GenerateAccessTokenRequest.Builder |
clearName()
Required.
|
GenerateAccessTokenRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GenerateAccessTokenRequest.Builder |
clearScope()
Required.
|
GenerateAccessTokenRequest.Builder |
clone() |
GenerateAccessTokenRequest |
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() |
com.google.protobuf.Duration |
getLifetime()
The desired lifetime duration of the access token in seconds.
|
com.google.protobuf.Duration.Builder |
getLifetimeBuilder()
The desired lifetime duration of the access token in seconds.
|
com.google.protobuf.DurationOrBuilder |
getLifetimeOrBuilder()
The desired lifetime duration of the access token in seconds.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
String |
getScope(int index)
Required.
|
com.google.protobuf.ByteString |
getScopeBytes(int index)
Required.
|
int |
getScopeCount()
Required.
|
com.google.protobuf.ProtocolStringList |
getScopeList()
Required.
|
boolean |
hasLifetime()
The desired lifetime duration of the access token in seconds.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GenerateAccessTokenRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GenerateAccessTokenRequest.Builder |
mergeFrom(GenerateAccessTokenRequest other) |
GenerateAccessTokenRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
GenerateAccessTokenRequest.Builder |
mergeLifetime(com.google.protobuf.Duration value)
The desired lifetime duration of the access token in seconds.
|
GenerateAccessTokenRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GenerateAccessTokenRequest.Builder |
setDelegates(int index,
String value)
The sequence of service accounts in a delegation chain.
|
GenerateAccessTokenRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GenerateAccessTokenRequest.Builder |
setLifetime(com.google.protobuf.Duration.Builder builderForValue)
The desired lifetime duration of the access token in seconds.
|
GenerateAccessTokenRequest.Builder |
setLifetime(com.google.protobuf.Duration value)
The desired lifetime duration of the access token in seconds.
|
GenerateAccessTokenRequest.Builder |
setName(String value)
Required.
|
GenerateAccessTokenRequest.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
GenerateAccessTokenRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GenerateAccessTokenRequest.Builder |
setScope(int index,
String value)
Required.
|
GenerateAccessTokenRequest.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<GenerateAccessTokenRequest.Builder>public GenerateAccessTokenRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateAccessTokenRequest.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<GenerateAccessTokenRequest.Builder>public GenerateAccessTokenRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GenerateAccessTokenRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GenerateAccessTokenRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GenerateAccessTokenRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateAccessTokenRequest.Builder>public GenerateAccessTokenRequest.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<GenerateAccessTokenRequest.Builder>public GenerateAccessTokenRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateAccessTokenRequest.Builder>public GenerateAccessTokenRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateAccessTokenRequest.Builder>public GenerateAccessTokenRequest.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<GenerateAccessTokenRequest.Builder>public GenerateAccessTokenRequest.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<GenerateAccessTokenRequest.Builder>public GenerateAccessTokenRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateAccessTokenRequest.Builder>public GenerateAccessTokenRequest.Builder mergeFrom(GenerateAccessTokenRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateAccessTokenRequest.Builder>public GenerateAccessTokenRequest.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<GenerateAccessTokenRequest.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 GenerateAccessTokenRequestOrBuilderpublic 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 GenerateAccessTokenRequestOrBuilderpublic GenerateAccessTokenRequest.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 GenerateAccessTokenRequest.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 GenerateAccessTokenRequest.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 GenerateAccessTokenRequestOrBuilderpublic 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 GenerateAccessTokenRequestOrBuilderpublic 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 GenerateAccessTokenRequestOrBuilderindex - 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 GenerateAccessTokenRequestOrBuilderindex - The index of the value to return.public GenerateAccessTokenRequest.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 GenerateAccessTokenRequest.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 GenerateAccessTokenRequest.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 GenerateAccessTokenRequest.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 GenerateAccessTokenRequest.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 com.google.protobuf.ProtocolStringList getScopeList()
Required. Code to identify the scopes to be included in the OAuth 2.0 access token. See https://developers.google.com/identity/protocols/googlescopes for more information. At least one value required.
repeated string scope = 4 [(.google.api.field_behavior) = REQUIRED];getScopeList in interface GenerateAccessTokenRequestOrBuilderpublic int getScopeCount()
Required. Code to identify the scopes to be included in the OAuth 2.0 access token. See https://developers.google.com/identity/protocols/googlescopes for more information. At least one value required.
repeated string scope = 4 [(.google.api.field_behavior) = REQUIRED];getScopeCount in interface GenerateAccessTokenRequestOrBuilderpublic String getScope(int index)
Required. Code to identify the scopes to be included in the OAuth 2.0 access token. See https://developers.google.com/identity/protocols/googlescopes for more information. At least one value required.
repeated string scope = 4 [(.google.api.field_behavior) = REQUIRED];getScope in interface GenerateAccessTokenRequestOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getScopeBytes(int index)
Required. Code to identify the scopes to be included in the OAuth 2.0 access token. See https://developers.google.com/identity/protocols/googlescopes for more information. At least one value required.
repeated string scope = 4 [(.google.api.field_behavior) = REQUIRED];getScopeBytes in interface GenerateAccessTokenRequestOrBuilderindex - The index of the value to return.public GenerateAccessTokenRequest.Builder setScope(int index, String value)
Required. Code to identify the scopes to be included in the OAuth 2.0 access token. See https://developers.google.com/identity/protocols/googlescopes for more information. At least one value required.
repeated string scope = 4 [(.google.api.field_behavior) = REQUIRED];index - The index to set the value at.value - The scope to set.public GenerateAccessTokenRequest.Builder addScope(String value)
Required. Code to identify the scopes to be included in the OAuth 2.0 access token. See https://developers.google.com/identity/protocols/googlescopes for more information. At least one value required.
repeated string scope = 4 [(.google.api.field_behavior) = REQUIRED];value - The scope to add.public GenerateAccessTokenRequest.Builder addAllScope(Iterable<String> values)
Required. Code to identify the scopes to be included in the OAuth 2.0 access token. See https://developers.google.com/identity/protocols/googlescopes for more information. At least one value required.
repeated string scope = 4 [(.google.api.field_behavior) = REQUIRED];values - The scope to add.public GenerateAccessTokenRequest.Builder clearScope()
Required. Code to identify the scopes to be included in the OAuth 2.0 access token. See https://developers.google.com/identity/protocols/googlescopes for more information. At least one value required.
repeated string scope = 4 [(.google.api.field_behavior) = REQUIRED];public GenerateAccessTokenRequest.Builder addScopeBytes(com.google.protobuf.ByteString value)
Required. Code to identify the scopes to be included in the OAuth 2.0 access token. See https://developers.google.com/identity/protocols/googlescopes for more information. At least one value required.
repeated string scope = 4 [(.google.api.field_behavior) = REQUIRED];value - The bytes of the scope to add.public boolean hasLifetime()
The desired lifetime duration of the access token in seconds. Must be set to a value less than or equal to 3600 (1 hour). If a value is not specified, the token's lifetime will be set to a default value of one hour.
.google.protobuf.Duration lifetime = 7;hasLifetime in interface GenerateAccessTokenRequestOrBuilderpublic com.google.protobuf.Duration getLifetime()
The desired lifetime duration of the access token in seconds. Must be set to a value less than or equal to 3600 (1 hour). If a value is not specified, the token's lifetime will be set to a default value of one hour.
.google.protobuf.Duration lifetime = 7;getLifetime in interface GenerateAccessTokenRequestOrBuilderpublic GenerateAccessTokenRequest.Builder setLifetime(com.google.protobuf.Duration value)
The desired lifetime duration of the access token in seconds. Must be set to a value less than or equal to 3600 (1 hour). If a value is not specified, the token's lifetime will be set to a default value of one hour.
.google.protobuf.Duration lifetime = 7;public GenerateAccessTokenRequest.Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue)
The desired lifetime duration of the access token in seconds. Must be set to a value less than or equal to 3600 (1 hour). If a value is not specified, the token's lifetime will be set to a default value of one hour.
.google.protobuf.Duration lifetime = 7;public GenerateAccessTokenRequest.Builder mergeLifetime(com.google.protobuf.Duration value)
The desired lifetime duration of the access token in seconds. Must be set to a value less than or equal to 3600 (1 hour). If a value is not specified, the token's lifetime will be set to a default value of one hour.
.google.protobuf.Duration lifetime = 7;public GenerateAccessTokenRequest.Builder clearLifetime()
The desired lifetime duration of the access token in seconds. Must be set to a value less than or equal to 3600 (1 hour). If a value is not specified, the token's lifetime will be set to a default value of one hour.
.google.protobuf.Duration lifetime = 7;public com.google.protobuf.Duration.Builder getLifetimeBuilder()
The desired lifetime duration of the access token in seconds. Must be set to a value less than or equal to 3600 (1 hour). If a value is not specified, the token's lifetime will be set to a default value of one hour.
.google.protobuf.Duration lifetime = 7;public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder()
The desired lifetime duration of the access token in seconds. Must be set to a value less than or equal to 3600 (1 hour). If a value is not specified, the token's lifetime will be set to a default value of one hour.
.google.protobuf.Duration lifetime = 7;getLifetimeOrBuilder in interface GenerateAccessTokenRequestOrBuilderpublic final GenerateAccessTokenRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateAccessTokenRequest.Builder>public final GenerateAccessTokenRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateAccessTokenRequest.Builder>Copyright © 2022 Google LLC. All rights reserved.