google.iam.v1.BindingDelta
*/
class BindingDelta extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
{
/**
* The action that was performed on a Binding.
* Required
*
* Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1;
*/
protected $action = 0;
/**
* Role that is assigned to `members`.
* For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
* Required
*
* Generated from protobuf field string role = 2;
*/
protected $role = '';
/**
* A single identity requesting access for a Google Cloud resource.
* Follows the same format of Binding.members.
* Required
*
* Generated from protobuf field string member = 3;
*/
protected $member = '';
/**
* The condition that is associated with this binding.
*
* Generated from protobuf field .google.type.Expr condition = 4;
*/
protected $condition = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $action
* The action that was performed on a Binding.
* Required
* @type string $role
* Role that is assigned to `members`.
* For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
* Required
* @type string $member
* A single identity requesting access for a Google Cloud resource.
* Follows the same format of Binding.members.
* Required
* @type \Google\Type\Expr $condition
* The condition that is associated with this binding.
* }
*/
public function __construct($data = NULL)
{
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Iam\V1\Policy::initOnce();
parent::__construct($data);
}
/**
* The action that was performed on a Binding.
* Required
*
* Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1;
* @return int
*/
public function getAction()
{
return $this->action;
}
/**
* The action that was performed on a Binding.
* Required
*
* Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1;
* @param int $var
* @return $this
*/
public function setAction($var)
{
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1\BindingDelta\Action::class);
$this->action = $var;
return $this;
}
/**
* Role that is assigned to `members`.
* For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
* Required
*
* Generated from protobuf field string role = 2;
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* Role that is assigned to `members`.
* For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
* Required
*
* Generated from protobuf field string role = 2;
* @param string $var
* @return $this
*/
public function setRole($var)
{
GPBUtil::checkString($var, True);
$this->role = $var;
return $this;
}
/**
* A single identity requesting access for a Google Cloud resource.
* Follows the same format of Binding.members.
* Required
*
* Generated from protobuf field string member = 3;
* @return string
*/
public function getMember()
{
return $this->member;
}
/**
* A single identity requesting access for a Google Cloud resource.
* Follows the same format of Binding.members.
* Required
*
* Generated from protobuf field string member = 3;
* @param string $var
* @return $this
*/
public function setMember($var)
{
GPBUtil::checkString($var, True);
$this->member = $var;
return $this;
}
/**
* The condition that is associated with this binding.
*
* Generated from protobuf field .google.type.Expr condition = 4;
* @return \Google\Type\Expr|null
*/
public function getCondition()
{
return $this->condition;
}
public function hasCondition()
{
return isset($this->condition);
}
public function clearCondition()
{
unset($this->condition);
}
/**
* The condition that is associated with this binding.
*
* Generated from protobuf field .google.type.Expr condition = 4;
* @param \Google\Type\Expr $var
* @return $this
*/
public function setCondition($var)
{
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Type\Expr::class);
$this->condition = $var;
return $this;
}
}