NAME
Google::Iam::Credentials::V1::Common - Compiled Protocol Buffers messages for google/iam/credentials/v1/common.proto
SYNOPSIS
use Google::Iam::Credentials::V1::Common;
my $msg = Google::Iam::Credentials::V1::Common::GenerateAccessTokenRequest->new({
name => $name,
delegates => $delegates,
scope => $scope,
lifetime => $lifetime,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Iam::Credentials::V1::Common::GenerateAccessTokenRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/iam/credentials/v1/common.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Iam::Credentials::V1::Common::GenerateAccessTokenRequest
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. 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.
$msg->delegates()/$msg->delegates($value)Type:
StringThe 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.
$msg->scope()/$msg->scope($value)Type:
StringRequired. 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.
$msg->lifetime()/$msg->lifetime($value)Type:
Message(Google::Protobuf::Duration::Duration)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::Iam::Credentials::V1::Common::GenerateAccessTokenResponse
Inherits from Protobuf::Message.
Accessors
$msg->access_token()/$msg->access_token($value)Type:
StringThe OAuth 2.0 access token.
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Token expiration time. The expiration time is always set.
Google::Iam::Credentials::V1::Common::SignBlobRequest
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. 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.
$msg->delegates()/$msg->delegates($value)Type:
StringThe 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.
$msg->payload()/$msg->payload($value)Type:
BytesRequired. The bytes to sign.
Google::Iam::Credentials::V1::Common::SignBlobResponse
Inherits from Protobuf::Message.
Accessors
$msg->key_id()/$msg->key_id($value)Type:
StringThe ID of the key used to sign the blob.
$msg->signed_blob()/$msg->signed_blob($value)Type:
BytesThe signed blob.
Google::Iam::Credentials::V1::Common::SignJwtRequest
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. 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.
$msg->delegates()/$msg->delegates($value)Type:
StringThe 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.
$msg->payload()/$msg->payload($value)Type:
StringRequired. The JWT payload to sign: a JSON object that contains a JWT Claims Set.
Google::Iam::Credentials::V1::Common::SignJwtResponse
Inherits from Protobuf::Message.
Accessors
$msg->key_id()/$msg->key_id($value)Type:
StringThe ID of the key used to sign the JWT.
$msg->signed_jwt()/$msg->signed_jwt($value)Type:
StringThe signed JWT.
Google::Iam::Credentials::V1::Common::GenerateIdTokenRequest
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. 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.
$msg->delegates()/$msg->delegates($value)Type:
StringThe 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.
$msg->audience()/$msg->audience($value)Type:
StringRequired. The audience for the token, such as the API or account that this token grants access to.
$msg->include_email()/$msg->include_email($value)Type:
BoolInclude the service account email in the token. If set to `true`, the token will contain `email` and `email_verified` claims.
Google::Iam::Credentials::V1::Common::GenerateIdTokenResponse
Inherits from Protobuf::Message.
Accessors
$msg->token()/$msg->token($value)Type:
StringThe OpenId Connect ID token.
SEE ALSO
Protobuf, Protobuf::Message, Google::Iam::Credentials::V1::Common::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.