google.cloud.dialogflow.v2.Version */ class Version extends \Google\Protobuf\Internal\Message { /** * Output only. The unique identifier of this agent version. * Supported formats: * - `projects//agent/versions/` * - `projects//locations//agent/versions/` * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $name = ''; /** * Optional. The developer-provided description of this version. * * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; */ protected $description = ''; /** * Output only. The sequential number of this version. This field is read-only * which means it cannot be set by create and update methods. * * Generated from protobuf field int32 version_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $version_number = 0; /** * Output only. The creation time of this version. This field is read-only, * i.e., it cannot be set by create and update methods. * * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $create_time = null; /** * Output only. The status of this version. This field is read-only and cannot * be set by create and update methods. * * Generated from protobuf field .google.cloud.dialogflow.v2.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $status = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * Output only. The unique identifier of this agent version. * Supported formats: * - `projects//agent/versions/` * - `projects//locations//agent/versions/` * @type string $description * Optional. The developer-provided description of this version. * @type int $version_number * Output only. The sequential number of this version. This field is read-only * which means it cannot be set by create and update methods. * @type \Google\Protobuf\Timestamp $create_time * Output only. The creation time of this version. This field is read-only, * i.e., it cannot be set by create and update methods. * @type int $status * Output only. The status of this version. This field is read-only and cannot * be set by create and update methods. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Cloud\Dialogflow\V2\Version::initOnce(); parent::__construct($data); } /** * Output only. The unique identifier of this agent version. * Supported formats: * - `projects//agent/versions/` * - `projects//locations//agent/versions/` * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return string */ public function getName() { return $this->name; } /** * Output only. The unique identifier of this agent version. * Supported formats: * - `projects//agent/versions/` * - `projects//locations//agent/versions/` * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Optional. The developer-provided description of this version. * * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getDescription() { return $this->description; } /** * Optional. The developer-provided description of this version. * * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } /** * Output only. The sequential number of this version. This field is read-only * which means it cannot be set by create and update methods. * * Generated from protobuf field int32 version_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return int */ public function getVersionNumber() { return $this->version_number; } /** * Output only. The sequential number of this version. This field is read-only * which means it cannot be set by create and update methods. * * Generated from protobuf field int32 version_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param int $var * @return $this */ public function setVersionNumber($var) { GPBUtil::checkInt32($var); $this->version_number = $var; return $this; } /** * Output only. The creation time of this version. This field is read-only, * i.e., it cannot be set by create and update methods. * * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Protobuf\Timestamp|null */ public function getCreateTime() { return $this->create_time; } public function hasCreateTime() { return isset($this->create_time); } public function clearCreateTime() { unset($this->create_time); } /** * Output only. The creation time of this version. This field is read-only, * i.e., it cannot be set by create and update methods. * * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setCreateTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->create_time = $var; return $this; } /** * Output only. The status of this version. This field is read-only and cannot * be set by create and update methods. * * Generated from protobuf field .google.cloud.dialogflow.v2.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return int */ public function getStatus() { return $this->status; } /** * Output only. The status of this version. This field is read-only and cannot * be set by create and update methods. * * Generated from protobuf field .google.cloud.dialogflow.v2.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param int $var * @return $this */ public function setStatus($var) { GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\Version\VersionStatus::class); $this->status = $var; return $this; } }