google.api.ContextRule
*/
class ContextRule extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
{
/**
* Selects the methods to which this rule applies.
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
* Generated from protobuf field string selector = 1;
*/
protected $selector = '';
/**
* A list of full type names of requested contexts.
*
* Generated from protobuf field repeated string requested = 2;
*/
private $requested;
/**
* A list of full type names of provided contexts.
*
* Generated from protobuf field repeated string provided = 3;
*/
private $provided;
/**
* A list of full type names or extension IDs of extensions allowed in grpc
* side channel from client to backend.
*
* Generated from protobuf field repeated string allowed_request_extensions = 4;
*/
private $allowed_request_extensions;
/**
* A list of full type names or extension IDs of extensions allowed in grpc
* side channel from backend to client.
*
* Generated from protobuf field repeated string allowed_response_extensions = 5;
*/
private $allowed_response_extensions;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $selector
* Selects the methods to which this rule applies.
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
* @type array|\Google\Protobuf\Internal\RepeatedField $requested
* A list of full type names of requested contexts.
* @type array|\Google\Protobuf\Internal\RepeatedField $provided
* A list of full type names of provided contexts.
* @type array|\Google\Protobuf\Internal\RepeatedField $allowed_request_extensions
* A list of full type names or extension IDs of extensions allowed in grpc
* side channel from client to backend.
* @type array|\Google\Protobuf\Internal\RepeatedField $allowed_response_extensions
* A list of full type names or extension IDs of extensions allowed in grpc
* side channel from backend to client.
* }
*/
public function __construct($data = NULL)
{
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Context::initOnce();
parent::__construct($data);
}
/**
* Selects the methods to which this rule applies.
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
* Generated from protobuf field string selector = 1;
* @return string
*/
public function getSelector()
{
return $this->selector;
}
/**
* Selects the methods to which this rule applies.
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
* Generated from protobuf field string selector = 1;
* @param string $var
* @return $this
*/
public function setSelector($var)
{
GPBUtil::checkString($var, True);
$this->selector = $var;
return $this;
}
/**
* A list of full type names of requested contexts.
*
* Generated from protobuf field repeated string requested = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getRequested()
{
return $this->requested;
}
/**
* A list of full type names of requested contexts.
*
* Generated from protobuf field repeated string requested = 2;
* @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setRequested($var)
{
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
$this->requested = $arr;
return $this;
}
/**
* A list of full type names of provided contexts.
*
* Generated from protobuf field repeated string provided = 3;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getProvided()
{
return $this->provided;
}
/**
* A list of full type names of provided contexts.
*
* Generated from protobuf field repeated string provided = 3;
* @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setProvided($var)
{
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
$this->provided = $arr;
return $this;
}
/**
* A list of full type names or extension IDs of extensions allowed in grpc
* side channel from client to backend.
*
* Generated from protobuf field repeated string allowed_request_extensions = 4;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getAllowedRequestExtensions()
{
return $this->allowed_request_extensions;
}
/**
* A list of full type names or extension IDs of extensions allowed in grpc
* side channel from client to backend.
*
* Generated from protobuf field repeated string allowed_request_extensions = 4;
* @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setAllowedRequestExtensions($var)
{
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
$this->allowed_request_extensions = $arr;
return $this;
}
/**
* A list of full type names or extension IDs of extensions allowed in grpc
* side channel from backend to client.
*
* Generated from protobuf field repeated string allowed_response_extensions = 5;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getAllowedResponseExtensions()
{
return $this->allowed_response_extensions;
}
/**
* A list of full type names or extension IDs of extensions allowed in grpc
* side channel from backend to client.
*
* Generated from protobuf field repeated string allowed_response_extensions = 5;
* @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setAllowedResponseExtensions($var)
{
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
$this->allowed_response_extensions = $arr;
return $this;
}
}