Class Version.Builder (4.55.0)

public static final class Version.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Version.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Version.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public Version.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Version.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public Version.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Version.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Version.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public Version.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Version.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Version.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Version.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final Version.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Version.Builder
Overrides

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.