google.iam.admin.v1.Permission */ class Permission extends \Google\Protobuf\Internal\Message { /** * The name of this Permission. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * The title of this Permission. * * Generated from protobuf field string title = 2; */ private $title = ''; /** * A brief description of what this Permission is used for. * This permission can ONLY be used in predefined roles. * * Generated from protobuf field string description = 3; */ private $description = ''; /** * This permission can ONLY be used in predefined roles. * * Generated from protobuf field bool only_in_predefined_roles = 4; */ private $only_in_predefined_roles = false; /** * The current launch stage of the permission. * * Generated from protobuf field .google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5; */ private $stage = 0; /** * The current custom role support level. * * Generated from protobuf field .google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6; */ private $custom_roles_support_level = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The name of this Permission. * @type string $title * The title of this Permission. * @type string $description * A brief description of what this Permission is used for. * This permission can ONLY be used in predefined roles. * @type bool $only_in_predefined_roles * This permission can ONLY be used in predefined roles. * @type int $stage * The current launch stage of the permission. * @type int $custom_roles_support_level * The current custom role support level. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\Admin\V1\Iam::initOnce(); parent::__construct($data); } /** * The name of this Permission. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The name of this Permission. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * The title of this Permission. * * Generated from protobuf field string title = 2; * @return string */ public function getTitle() { return $this->title; } /** * The title of this Permission. * * Generated from protobuf field string title = 2; * @param string $var * @return $this */ public function setTitle($var) { GPBUtil::checkString($var, True); $this->title = $var; return $this; } /** * A brief description of what this Permission is used for. * This permission can ONLY be used in predefined roles. * * Generated from protobuf field string description = 3; * @return string */ public function getDescription() { return $this->description; } /** * A brief description of what this Permission is used for. * This permission can ONLY be used in predefined roles. * * Generated from protobuf field string description = 3; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } /** * This permission can ONLY be used in predefined roles. * * Generated from protobuf field bool only_in_predefined_roles = 4; * @return bool */ public function getOnlyInPredefinedRoles() { return $this->only_in_predefined_roles; } /** * This permission can ONLY be used in predefined roles. * * Generated from protobuf field bool only_in_predefined_roles = 4; * @param bool $var * @return $this */ public function setOnlyInPredefinedRoles($var) { GPBUtil::checkBool($var); $this->only_in_predefined_roles = $var; return $this; } /** * The current launch stage of the permission. * * Generated from protobuf field .google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5; * @return int */ public function getStage() { return $this->stage; } /** * The current launch stage of the permission. * * Generated from protobuf field .google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5; * @param int $var * @return $this */ public function setStage($var) { GPBUtil::checkEnum($var, \Google\Iam\Admin\V1\Permission_PermissionLaunchStage::class); $this->stage = $var; return $this; } /** * The current custom role support level. * * Generated from protobuf field .google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6; * @return int */ public function getCustomRolesSupportLevel() { return $this->custom_roles_support_level; } /** * The current custom role support level. * * Generated from protobuf field .google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6; * @param int $var * @return $this */ public function setCustomRolesSupportLevel($var) { GPBUtil::checkEnum($var, \Google\Iam\Admin\V1\Permission_CustomRolesSupportLevel::class); $this->custom_roles_support_level = $var; return $this; } }