google.iam.credentials.v1.SignJwtRequest
*/
class SignJwtRequest extends \Google\Protobuf\Internal\Message
{
/**
* 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.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
private $name = '';
/**
* 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.
*
* Generated from protobuf field repeated string delegates = 3;
*/
private $delegates;
/**
* Required. The JWT payload to sign: a JSON object that contains a JWT Claims Set.
*
* Generated from protobuf field string payload = 5 [(.google.api.field_behavior) = REQUIRED];
*/
private $payload = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $name
* 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.
* @type string[]|\Google\Protobuf\Internal\RepeatedField $delegates
* 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.
* @type string $payload
* Required. The JWT payload to sign: a JSON object that contains a JWT Claims Set.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Iam\Credentials\V1\Common::initOnce();
parent::__construct($data);
}
/**
* 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.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* 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.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* 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.
*
* Generated from protobuf field repeated string delegates = 3;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getDelegates()
{
return $this->delegates;
}
/**
* 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.
*
* Generated from protobuf field repeated string delegates = 3;
* @param string[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setDelegates($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->delegates = $arr;
return $this;
}
/**
* Required. The JWT payload to sign: a JSON object that contains a JWT Claims Set.
*
* Generated from protobuf field string payload = 5 [(.google.api.field_behavior) = REQUIRED];
* @return string
*/
public function getPayload()
{
return $this->payload;
}
/**
* Required. The JWT payload to sign: a JSON object that contains a JWT Claims Set.
*
* Generated from protobuf field string payload = 5 [(.google.api.field_behavior) = REQUIRED];
* @param string $var
* @return $this
*/
public function setPayload($var)
{
GPBUtil::checkString($var, True);
$this->payload = $var;
return $this;
}
}