google.iam.v1.AuditLogConfig
*/
class AuditLogConfig extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
{
/**
* The log type that this config enables.
*
* Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1;
*/
protected $log_type = 0;
/**
* Specifies the identities that do not cause logging for this type of
* permission.
* Follows the same format of
* [Binding.members][google.iam.v1.Binding.members].
*
* Generated from protobuf field repeated string exempted_members = 2;
*/
private $exempted_members;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $log_type
* The log type that this config enables.
* @type array|\Google\Protobuf\Internal\RepeatedField $exempted_members
* Specifies the identities that do not cause logging for this type of
* permission.
* Follows the same format of
* [Binding.members][google.iam.v1.Binding.members].
* }
*/
public function __construct($data = NULL)
{
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Iam\V1\Policy::initOnce();
parent::__construct($data);
}
/**
* The log type that this config enables.
*
* Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1;
* @return int
*/
public function getLogType()
{
return $this->log_type;
}
/**
* The log type that this config enables.
*
* Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1;
* @param int $var
* @return $this
*/
public function setLogType($var)
{
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1\AuditLogConfig\LogType::class);
$this->log_type = $var;
return $this;
}
/**
* Specifies the identities that do not cause logging for this type of
* permission.
* Follows the same format of
* [Binding.members][google.iam.v1.Binding.members].
*
* Generated from protobuf field repeated string exempted_members = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getExemptedMembers()
{
return $this->exempted_members;
}
/**
* Specifies the identities that do not cause logging for this type of
* permission.
* Follows the same format of
* [Binding.members][google.iam.v1.Binding.members].
*
* Generated from protobuf field repeated string exempted_members = 2;
* @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setExemptedMembers($var)
{
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
$this->exempted_members = $arr;
return $this;
}
}