google.api.servicemanagement.v1.Rollout */ class Rollout extends \Google\Protobuf\Internal\Message { /** * Optional. Unique identifier of this Rollout. Must be no longer than 63 characters * and only lower case letters, digits, '.', '_' and '-' are allowed. * If not specified by client, the server will generate one. The generated id * will have the form of , where "date" is the create * date in ISO 8601 format. "revision number" is a monotonically increasing * positive number that is reset every day for each service. * An example of the generated rollout_id is '2016-02-16r1' * * Generated from protobuf field string rollout_id = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private $rollout_id = ''; /** * Creation time of the rollout. Readonly. * * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; */ private $create_time = null; /** * The user who created the Rollout. Readonly. * * Generated from protobuf field string created_by = 3; */ private $created_by = ''; /** * The status of this rollout. Readonly. In case of a failed rollout, * the system will automatically rollback to the current Rollout * version. Readonly. * * Generated from protobuf field .google.api.servicemanagement.v1.Rollout.RolloutStatus status = 4; */ private $status = 0; /** * The name of the service associated with this Rollout. * * Generated from protobuf field string service_name = 8; */ private $service_name = ''; protected $strategy; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $rollout_id * Optional. Unique identifier of this Rollout. Must be no longer than 63 characters * and only lower case letters, digits, '.', '_' and '-' are allowed. * If not specified by client, the server will generate one. The generated id * will have the form of , where "date" is the create * date in ISO 8601 format. "revision number" is a monotonically increasing * positive number that is reset every day for each service. * An example of the generated rollout_id is '2016-02-16r1' * @type \Google\Protobuf\Timestamp $create_time * Creation time of the rollout. Readonly. * @type string $created_by * The user who created the Rollout. Readonly. * @type int $status * The status of this rollout. Readonly. In case of a failed rollout, * the system will automatically rollback to the current Rollout * version. Readonly. * @type \Google\Cloud\ServiceManagement\V1\Rollout\TrafficPercentStrategy $traffic_percent_strategy * Google Service Control selects service configurations based on * traffic percentage. * @type \Google\Cloud\ServiceManagement\V1\Rollout\DeleteServiceStrategy $delete_service_strategy * The strategy associated with a rollout to delete a `ManagedService`. * Readonly. * @type string $service_name * The name of the service associated with this Rollout. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Servicemanagement\V1\Resources::initOnce(); parent::__construct($data); } /** * Optional. Unique identifier of this Rollout. Must be no longer than 63 characters * and only lower case letters, digits, '.', '_' and '-' are allowed. * If not specified by client, the server will generate one. The generated id * will have the form of , where "date" is the create * date in ISO 8601 format. "revision number" is a monotonically increasing * positive number that is reset every day for each service. * An example of the generated rollout_id is '2016-02-16r1' * * Generated from protobuf field string rollout_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getRolloutId() { return $this->rollout_id; } /** * Optional. Unique identifier of this Rollout. Must be no longer than 63 characters * and only lower case letters, digits, '.', '_' and '-' are allowed. * If not specified by client, the server will generate one. The generated id * will have the form of , where "date" is the create * date in ISO 8601 format. "revision number" is a monotonically increasing * positive number that is reset every day for each service. * An example of the generated rollout_id is '2016-02-16r1' * * Generated from protobuf field string rollout_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ public function setRolloutId($var) { GPBUtil::checkString($var, True); $this->rollout_id = $var; return $this; } /** * Creation time of the rollout. Readonly. * * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; * @return \Google\Protobuf\Timestamp */ public function getCreateTime() { return $this->create_time; } /** * Creation time of the rollout. Readonly. * * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setCreateTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->create_time = $var; return $this; } /** * The user who created the Rollout. Readonly. * * Generated from protobuf field string created_by = 3; * @return string */ public function getCreatedBy() { return $this->created_by; } /** * The user who created the Rollout. Readonly. * * Generated from protobuf field string created_by = 3; * @param string $var * @return $this */ public function setCreatedBy($var) { GPBUtil::checkString($var, True); $this->created_by = $var; return $this; } /** * The status of this rollout. Readonly. In case of a failed rollout, * the system will automatically rollback to the current Rollout * version. Readonly. * * Generated from protobuf field .google.api.servicemanagement.v1.Rollout.RolloutStatus status = 4; * @return int */ public function getStatus() { return $this->status; } /** * The status of this rollout. Readonly. In case of a failed rollout, * the system will automatically rollback to the current Rollout * version. Readonly. * * Generated from protobuf field .google.api.servicemanagement.v1.Rollout.RolloutStatus status = 4; * @param int $var * @return $this */ public function setStatus($var) { GPBUtil::checkEnum($var, \Google\Cloud\ServiceManagement\V1\Rollout_RolloutStatus::class); $this->status = $var; return $this; } /** * Google Service Control selects service configurations based on * traffic percentage. * * Generated from protobuf field .google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5; * @return \Google\Cloud\ServiceManagement\V1\Rollout\TrafficPercentStrategy */ public function getTrafficPercentStrategy() { return $this->readOneof(5); } /** * Google Service Control selects service configurations based on * traffic percentage. * * Generated from protobuf field .google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5; * @param \Google\Cloud\ServiceManagement\V1\Rollout\TrafficPercentStrategy $var * @return $this */ public function setTrafficPercentStrategy($var) { GPBUtil::checkMessage($var, \Google\Cloud\ServiceManagement\V1\Rollout_TrafficPercentStrategy::class); $this->writeOneof(5, $var); return $this; } /** * The strategy associated with a rollout to delete a `ManagedService`. * Readonly. * * Generated from protobuf field .google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200; * @return \Google\Cloud\ServiceManagement\V1\Rollout\DeleteServiceStrategy */ public function getDeleteServiceStrategy() { return $this->readOneof(200); } /** * The strategy associated with a rollout to delete a `ManagedService`. * Readonly. * * Generated from protobuf field .google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200; * @param \Google\Cloud\ServiceManagement\V1\Rollout\DeleteServiceStrategy $var * @return $this */ public function setDeleteServiceStrategy($var) { GPBUtil::checkMessage($var, \Google\Cloud\ServiceManagement\V1\Rollout_DeleteServiceStrategy::class); $this->writeOneof(200, $var); return $this; } /** * The name of the service associated with this Rollout. * * Generated from protobuf field string service_name = 8; * @return string */ public function getServiceName() { return $this->service_name; } /** * The name of the service associated with this Rollout. * * Generated from protobuf field string service_name = 8; * @param string $var * @return $this */ public function setServiceName($var) { GPBUtil::checkString($var, True); $this->service_name = $var; return $this; } /** * @return string */ public function getStrategy() { return $this->whichOneof("strategy"); } }