Class Version.Builder (4.89.0)

public static final class Version.Builder extends GeneratedMessage.Builder<Version.Builder> implements VersionOrBuilder

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:

Protobuf type google.cloud.dialogflow.v2beta1.Version

Implements

VersionOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Version build()
Returns
Type Description
Version

buildPartial()

public Version buildPartial()
Returns
Type Description
Version

clear()

public Version.Builder clear()
Returns
Type Description
Version.Builder
Overrides

clearCreateTime()

public Version.Builder clearCreateTime()

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

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Version.Builder

clearDescription()

public Version.Builder clearDescription()

Optional. The developer-provided description of this version.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Version.Builder

This builder for chaining.

clearName()

public Version.Builder clearName()

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>

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Version.Builder

This builder for chaining.

clearStatus()

public Version.Builder clearStatus()

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

.google.cloud.dialogflow.v2beta1.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Version.Builder

This builder for chaining.

clearVersionNumber()

public Version.Builder clearVersionNumber()

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

int32 version_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Version.Builder

This builder for chaining.

getCreateTime()

public Timestamp 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.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

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

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

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

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Version getDefaultInstanceForType()
Returns
Type Description
Version

getDescription()

public String getDescription()

Optional. The developer-provided description of this version.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The developer-provided description of this version.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String 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>

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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>

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getStatus()

public Version.VersionStatus getStatus()

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

.google.cloud.dialogflow.v2beta1.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Version.VersionStatus

The status.

getStatusValue()

public int getStatusValue()

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

.google.cloud.dialogflow.v2beta1.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for status.

getVersionNumber()

public int 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.

int32 version_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The versionNumber.

hasCreateTime()

public boolean hasCreateTime()

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

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Version.Builder mergeCreateTime(Timestamp value)

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

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Version.Builder

mergeFrom(Version other)

public Version.Builder mergeFrom(Version other)
Parameter
Name Description
other Version
Returns
Type Description
Version.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Version.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Version.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Version.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Version.Builder
Overrides

setCreateTime(Timestamp value)

public Version.Builder setCreateTime(Timestamp value)

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

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Version.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Version.Builder setCreateTime(Timestamp.Builder builderForValue)

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

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Version.Builder

setDescription(String value)

public Version.Builder setDescription(String value)

Optional. The developer-provided description of this version.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Version.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Version.Builder setDescriptionBytes(ByteString value)

Optional. The developer-provided description of this version.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Version.Builder

This builder for chaining.

setName(String value)

public Version.Builder setName(String value)

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>

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Version.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Version.Builder setNameBytes(ByteString value)

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>

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Version.Builder

This builder for chaining.

setStatus(Version.VersionStatus value)

public Version.Builder setStatus(Version.VersionStatus value)

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

.google.cloud.dialogflow.v2beta1.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Version.VersionStatus

The status to set.

Returns
Type Description
Version.Builder

This builder for chaining.

setStatusValue(int value)

public Version.Builder setStatusValue(int value)

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

.google.cloud.dialogflow.v2beta1.Version.VersionStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for status to set.

Returns
Type Description
Version.Builder

This builder for chaining.

setVersionNumber(int value)

public Version.Builder setVersionNumber(int value)

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

int32 version_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The versionNumber to set.

Returns
Type Description
Version.Builder

This builder for chaining.