Class Version.Builder (4.7.5)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Version.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Version.Builder
Overrides

build()

public Version build()
Returns
TypeDescription
Version

buildPartial()

public Version buildPartial()
Returns
TypeDescription
Version

clear()

public Version.Builder clear()
Returns
TypeDescription
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
TypeDescription
Version.Builder

clearDescription()

public Version.Builder clearDescription()

Optional. The developer-provided description of this version.

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

Returns
TypeDescription
Version.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Version.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Version.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Version.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Version.Builder

This builder for chaining.

clone()

public Version.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Version getDefaultInstanceForType()
Returns
TypeDescription
Version

getDescription()

public String getDescription()

Optional. The developer-provided description of this version.

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

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The developer-provided description of this version.

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

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Version.Builder

mergeFrom(Version other)

public Version.Builder mergeFrom(Version other)
Parameter
NameDescription
otherVersion
Returns
TypeDescription
Version.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Version.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Version.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Version.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Version.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Version.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Version.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Version.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueVersion.VersionStatus

The status to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Version.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Version.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueint

The versionNumber to set.

Returns
TypeDescription
Version.Builder

This builder for chaining.