public final class GenerateAccessTokenRequest extends com.google.protobuf.GeneratedMessageV3 implements GenerateAccessTokenRequestOrBuilder
google.iam.credentials.v1.GenerateAccessTokenRequest| Modifier and Type | Class and Description |
|---|---|
static class |
GenerateAccessTokenRequest.Builder
Protobuf type
google.iam.credentials.v1.GenerateAccessTokenRequest |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DELEGATES_FIELD_NUMBER |
static int |
LIFETIME_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
SCOPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static GenerateAccessTokenRequest |
getDefaultInstance() |
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.Duration |
getLifetime()
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.
|
com.google.protobuf.Parser<GenerateAccessTokenRequest> |
getParserForType() |
String |
getScope(int index)
Required.
|
com.google.protobuf.ByteString |
getScopeBytes(int index)
Required.
|
int |
getScopeCount()
Required.
|
com.google.protobuf.ProtocolStringList |
getScopeList()
Required.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasLifetime()
The desired lifetime duration of the access token in seconds.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GenerateAccessTokenRequest.Builder |
newBuilder() |
static GenerateAccessTokenRequest.Builder |
newBuilder(GenerateAccessTokenRequest prototype) |
GenerateAccessTokenRequest.Builder |
newBuilderForType() |
protected GenerateAccessTokenRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static GenerateAccessTokenRequest |
parseDelimitedFrom(InputStream input) |
static GenerateAccessTokenRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerateAccessTokenRequest |
parseFrom(byte[] data) |
static GenerateAccessTokenRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerateAccessTokenRequest |
parseFrom(ByteBuffer data) |
static GenerateAccessTokenRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerateAccessTokenRequest |
parseFrom(com.google.protobuf.ByteString data) |
static GenerateAccessTokenRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerateAccessTokenRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GenerateAccessTokenRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerateAccessTokenRequest |
parseFrom(InputStream input) |
static GenerateAccessTokenRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<GenerateAccessTokenRequest> |
parser() |
GenerateAccessTokenRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int DELEGATES_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER
public static final int LIFETIME_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static GenerateAccessTokenRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerateAccessTokenRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerateAccessTokenRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerateAccessTokenRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerateAccessTokenRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerateAccessTokenRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerateAccessTokenRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static GenerateAccessTokenRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GenerateAccessTokenRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GenerateAccessTokenRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GenerateAccessTokenRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GenerateAccessTokenRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic GenerateAccessTokenRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GenerateAccessTokenRequest.Builder newBuilder()
public static GenerateAccessTokenRequest.Builder newBuilder(GenerateAccessTokenRequest prototype)
public GenerateAccessTokenRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GenerateAccessTokenRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GenerateAccessTokenRequest getDefaultInstance()
public static com.google.protobuf.Parser<GenerateAccessTokenRequest> parser()
public com.google.protobuf.Parser<GenerateAccessTokenRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public GenerateAccessTokenRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.