google.iam.v1.TestIamPermissionsRequest */ class TestIamPermissionsRequest extends \Google\Protobuf\Internal\Message { /** * REQUIRED: The resource for which the policy detail is being requested. * `resource` is usually specified as a path. For example, a Project * resource is specified as `projects/{project}`. * * Generated from protobuf field string resource = 1; */ private $resource = ''; /** * The set of permissions to check for the `resource`. Permissions with * wildcards (such as '*' or 'storage.*') are not allowed. For more * information see * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). * * Generated from protobuf field repeated string permissions = 2; */ private $permissions; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $resource * REQUIRED: The resource for which the policy detail is being requested. * `resource` is usually specified as a path. For example, a Project * resource is specified as `projects/{project}`. * @type string[]|\Google\Protobuf\Internal\RepeatedField $permissions * The set of permissions to check for the `resource`. Permissions with * wildcards (such as '*' or 'storage.*') are not allowed. For more * information see * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); parent::__construct($data); } /** * REQUIRED: The resource for which the policy detail is being requested. * `resource` is usually specified as a path. For example, a Project * resource is specified as `projects/{project}`. * * Generated from protobuf field string resource = 1; * @return string */ public function getResource() { return $this->resource; } /** * REQUIRED: The resource for which the policy detail is being requested. * `resource` is usually specified as a path. For example, a Project * resource is specified as `projects/{project}`. * * Generated from protobuf field string resource = 1; * @param string $var * @return $this */ public function setResource($var) { GPBUtil::checkString($var, True); $this->resource = $var; return $this; } /** * The set of permissions to check for the `resource`. Permissions with * wildcards (such as '*' or 'storage.*') are not allowed. For more * information see * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). * * Generated from protobuf field repeated string permissions = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getPermissions() { return $this->permissions; } /** * The set of permissions to check for the `resource`. Permissions with * wildcards (such as '*' or 'storage.*') are not allowed. For more * information see * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). * * Generated from protobuf field repeated string permissions = 2; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPermissions($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->permissions = $arr; return $this; } }