Google Cloud Dialogflow V2 Client - Class Version (1.0.1)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class Version.

You can create multiple versions of your agent and publish them to separate environments.

When you edit an agent, you are editing the draft agent. At any point, you can save the draft agent as an agent version, which is an immutable snapshot of your agent. When you save the draft agent, it is published to the default environment. When you create agent versions, you can publish them to custom environments. You can create a variety of custom environments for:

Generated from protobuf message google.cloud.dialogflow.v2.Version

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The unique identifier of this agent version. Supported formats: - projects/<Project ID>/agent/versions/<Version ID> - projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>

↳ description string

Optional. The developer-provided description of this version.

↳ version_number int

Output only. The sequential number of this version. This field is read-only which means it cannot be set by create and update methods.

↳ create_time Google\Protobuf\Timestamp

Output only. The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.

↳ status int

Output only. The status of this version. This field is read-only and cannot be set by create and update methods.

getName

Output only. The unique identifier of this agent version.

Supported formats:

  • projects/<Project ID>/agent/versions/<Version ID>
  • projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>

Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
string

setName

Output only. The unique identifier of this agent version.

Supported formats:

  • projects/<Project ID>/agent/versions/<Version ID>
  • projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>

Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

Optional. The developer-provided description of this version.

Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
string

setDescription

Optional. The developer-provided description of this version.

Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVersionNumber

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];

Returns
TypeDescription
int

setVersionNumber

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];

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCreateTime

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];

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

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];

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getStatus

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];

Returns
TypeDescription
int

setStatus

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];

Parameter
NameDescription
var int
Returns
TypeDescription
$this