diff --git a/Run/metadata/V2/VendorSettings.php b/Run/metadata/V2/VendorSettings.php index c96bdb10ec7..5504bca48fb 100644 Binary files a/Run/metadata/V2/VendorSettings.php and b/Run/metadata/V2/VendorSettings.php differ diff --git a/Run/src/V2/ServiceScaling.php b/Run/src/V2/ServiceScaling.php index eff3cf1badc..7fa643373a0 100644 --- a/Run/src/V2/ServiceScaling.php +++ b/Run/src/V2/ServiceScaling.php @@ -30,6 +30,14 @@ class ServiceScaling extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.run.v2.ServiceScaling.ScalingMode scaling_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; */ protected $scaling_mode = 0; + /** + * Optional. total instance count for the service in manual scaling mode. This + * number of instances is divided among all revisions with specified traffic + * based on the percent of traffic they are receiving. + * + * Generated from protobuf field optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $manual_instance_count = null; /** * Constructor. @@ -43,6 +51,10 @@ class ServiceScaling extends \Google\Protobuf\Internal\Message * of traffic they are receiving. * @type int $scaling_mode * Optional. The scaling mode for the service. + * @type int $manual_instance_count + * Optional. total instance count for the service in manual scaling mode. This + * number of instances is divided among all revisions with specified traffic + * based on the percent of traffic they are receiving. * } */ public function __construct($data = NULL) { @@ -106,5 +118,45 @@ public function setScalingMode($var) return $this; } + /** + * Optional. total instance count for the service in manual scaling mode. This + * number of instances is divided among all revisions with specified traffic + * based on the percent of traffic they are receiving. + * + * Generated from protobuf field optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getManualInstanceCount() + { + return isset($this->manual_instance_count) ? $this->manual_instance_count : 0; + } + + public function hasManualInstanceCount() + { + return isset($this->manual_instance_count); + } + + public function clearManualInstanceCount() + { + unset($this->manual_instance_count); + } + + /** + * Optional. total instance count for the service in manual scaling mode. This + * number of instances is divided among all revisions with specified traffic + * based on the percent of traffic they are receiving. + * + * Generated from protobuf field optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setManualInstanceCount($var) + { + GPBUtil::checkInt32($var); + $this->manual_instance_count = $var; + + return $this; + } + }