Class Version.Builder (0.43.0)

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

Represents a version of a flow.

Protobuf type google.cloud.dialogflow.cx.v3beta1.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. Create time of the version.

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

Returns
Type Description
Version.Builder

clearDescription()

public Version.Builder clearDescription()

The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected.

string description = 3;

Returns
Type Description
Version.Builder

This builder for chaining.

clearDisplayName()

public Version.Builder clearDisplayName()

Required. The human-readable name of the version. Limit of 64 characters.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

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()

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>. Version ID is a self-increasing number generated by Dialogflow upon version creation.

string name = 1;

Returns
Type Description
Version.Builder

This builder for chaining.

clearNluSettings()

public Version.Builder clearNluSettings()

Output only. The NLU settings of the flow at version creation.

.google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Version.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public Version.Builder clearState()

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

.google.cloud.dialogflow.cx.v3beta1.Version.State state = 6 [(.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. Create time of the version.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time of the version.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time of the version.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Version getDefaultInstanceForType()
Returns
Type Description
Version

getDescription()

public String getDescription()

The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected.

string description = 3;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected.

string description = 3;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Required. The human-readable name of the version. Limit of 64 characters.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The human-readable name of the version. Limit of 64 characters.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>. Version ID is a self-increasing number generated by Dialogflow upon version creation.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>. Version ID is a self-increasing number generated by Dialogflow upon version creation.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getNluSettings()

public NluSettings getNluSettings()

Output only. The NLU settings of the flow at version creation.

.google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NluSettings

The nluSettings.

getNluSettingsBuilder()

public NluSettings.Builder getNluSettingsBuilder()

Output only. The NLU settings of the flow at version creation.

.google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NluSettings.Builder

getNluSettingsOrBuilder()

public NluSettingsOrBuilder getNluSettingsOrBuilder()

Output only. The NLU settings of the flow at version creation.

.google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NluSettingsOrBuilder

getState()

public Version.State getState()

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

.google.cloud.dialogflow.cx.v3beta1.Version.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Version.State

The state.

getStateValue()

public int getStateValue()

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

.google.cloud.dialogflow.cx.v3beta1.Version.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time of the version.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasNluSettings()

public boolean hasNluSettings()

Output only. The NLU settings of the flow at version creation.

.google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the nluSettings 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. Create time of the version.

.google.protobuf.Timestamp create_time = 5 [(.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

mergeNluSettings(NluSettings value)

public Version.Builder mergeNluSettings(NluSettings value)

Output only. The NLU settings of the flow at version creation.

.google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value NluSettings
Returns
Type Description
Version.Builder

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. Create time of the version.

.google.protobuf.Timestamp create_time = 5 [(.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. Create time of the version.

.google.protobuf.Timestamp create_time = 5 [(.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)

The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected.

string description = 3;

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)

The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected.

string description = 3;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Version.Builder

This builder for chaining.

setDisplayName(String value)

public Version.Builder setDisplayName(String value)

Required. The human-readable name of the version. Limit of 64 characters.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Version.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Version.Builder setDisplayNameBytes(ByteString value)

Required. The human-readable name of the version. Limit of 64 characters.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName 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)

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>. Version ID is a self-increasing number generated by Dialogflow upon version creation.

string name = 1;

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)

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>. Version ID is a self-increasing number generated by Dialogflow upon version creation.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Version.Builder

This builder for chaining.

setNluSettings(NluSettings value)

public Version.Builder setNluSettings(NluSettings value)

Output only. The NLU settings of the flow at version creation.

.google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value NluSettings
Returns
Type Description
Version.Builder

setNluSettings(NluSettings.Builder builderForValue)

public Version.Builder setNluSettings(NluSettings.Builder builderForValue)

Output only. The NLU settings of the flow at version creation.

.google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue NluSettings.Builder
Returns
Type Description
Version.Builder

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

setState(Version.State value)

public Version.Builder setState(Version.State value)

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

.google.cloud.dialogflow.cx.v3beta1.Version.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Version.State

The state to set.

Returns
Type Description
Version.Builder

This builder for chaining.

setStateValue(int value)

public Version.Builder setStateValue(int value)

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

.google.cloud.dialogflow.cx.v3beta1.Version.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state 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