google.api.servicecontrol.v1.CheckResponse */ class CheckResponse extends \Google\Protobuf\Internal\Message { /** * The same operation_id value used in the * [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging * and diagnostics purposes. * * Generated from protobuf field string operation_id = 1; */ private $operation_id = ''; /** * The current service rollout id used to process the request. * * Generated from protobuf field string service_rollout_id = 11; */ private $service_rollout_id = ''; /** * Indicate the decision of the check. * If no check errors are present, the service should process the operation. * Otherwise the service should use the list of errors to determine the * appropriate action. * * Generated from protobuf field repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ private $check_errors; /** * The actual config id used to process the request. * * Generated from protobuf field string service_config_id = 5; */ private $service_config_id = ''; /** * Feedback data returned from the server during processing a Check request. * * Generated from protobuf field .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; */ private $check_info = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $operation_id * The same operation_id value used in the * [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging * and diagnostics purposes. * @type string $service_rollout_id * The current service rollout id used to process the request. * @type \Google\Api\Servicecontrol\V1\CheckError[]|\Google\Protobuf\Internal\RepeatedField $check_errors * Indicate the decision of the check. * If no check errors are present, the service should process the operation. * Otherwise the service should use the list of errors to determine the * appropriate action. * @type string $service_config_id * The actual config id used to process the request. * @type \Google\Api\Servicecontrol\V1\CheckResponse\CheckInfo $check_info * Feedback data returned from the server during processing a Check request. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Servicecontrol\V1\ServiceController::initOnce(); parent::__construct($data); } /** * The same operation_id value used in the * [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging * and diagnostics purposes. * * Generated from protobuf field string operation_id = 1; * @return string */ public function getOperationId() { return $this->operation_id; } /** * The same operation_id value used in the * [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging * and diagnostics purposes. * * Generated from protobuf field string operation_id = 1; * @param string $var * @return $this */ public function setOperationId($var) { GPBUtil::checkString($var, True); $this->operation_id = $var; return $this; } /** * The current service rollout id used to process the request. * * Generated from protobuf field string service_rollout_id = 11; * @return string */ public function getServiceRolloutId() { return $this->service_rollout_id; } /** * The current service rollout id used to process the request. * * Generated from protobuf field string service_rollout_id = 11; * @param string $var * @return $this */ public function setServiceRolloutId($var) { GPBUtil::checkString($var, True); $this->service_rollout_id = $var; return $this; } /** * Indicate the decision of the check. * If no check errors are present, the service should process the operation. * Otherwise the service should use the list of errors to determine the * appropriate action. * * Generated from protobuf field repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getCheckErrors() { return $this->check_errors; } /** * Indicate the decision of the check. * If no check errors are present, the service should process the operation. * Otherwise the service should use the list of errors to determine the * appropriate action. * * Generated from protobuf field repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; * @param \Google\Api\Servicecontrol\V1\CheckError[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCheckErrors($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Servicecontrol\V1\CheckError::class); $this->check_errors = $arr; return $this; } /** * The actual config id used to process the request. * * Generated from protobuf field string service_config_id = 5; * @return string */ public function getServiceConfigId() { return $this->service_config_id; } /** * The actual config id used to process the request. * * Generated from protobuf field string service_config_id = 5; * @param string $var * @return $this */ public function setServiceConfigId($var) { GPBUtil::checkString($var, True); $this->service_config_id = $var; return $this; } /** * Feedback data returned from the server during processing a Check request. * * Generated from protobuf field .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; * @return \Google\Api\Servicecontrol\V1\CheckResponse\CheckInfo */ public function getCheckInfo() { return $this->check_info; } /** * Feedback data returned from the server during processing a Check request. * * Generated from protobuf field .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; * @param \Google\Api\Servicecontrol\V1\CheckResponse\CheckInfo $var * @return $this */ public function setCheckInfo($var) { GPBUtil::checkMessage($var, \Google\Api\Servicecontrol\V1\CheckResponse_CheckInfo::class); $this->check_info = $var; return $this; } }