Class ConversationDataset.Builder (4.12.0)

public static final class ConversationDataset.Builder extends GeneratedMessageV3.Builder<ConversationDataset.Builder> implements ConversationDatasetOrBuilder

Represents a conversation dataset that a user imports raw data into. The data inside ConversationDataset can not be changed after ImportConversationData finishes (and calling ImportConversationData on a dataset that already has data is not allowed).

Protobuf type google.cloud.dialogflow.v2.ConversationDataset

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConversationDataset build()
Returns
Type Description
ConversationDataset

buildPartial()

public ConversationDataset buildPartial()
Returns
Type Description
ConversationDataset

clear()

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

clearConversationCount()

public ConversationDataset.Builder clearConversationCount()

Output only. The number of conversations this conversation dataset contains.

int64 conversation_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConversationDataset.Builder

This builder for chaining.

clearConversationInfo()

public ConversationDataset.Builder clearConversationInfo()

Output only. Metadata set during conversation data import.

.google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConversationDataset.Builder

clearCreateTime()

public ConversationDataset.Builder clearCreateTime()

Output only. Creation time of this dataset.

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

Returns
Type Description
ConversationDataset.Builder

clearDescription()

public ConversationDataset.Builder clearDescription()

Optional. The description of the dataset. Maximum of 10000 bytes.

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

Returns
Type Description
ConversationDataset.Builder

This builder for chaining.

clearDisplayName()

public ConversationDataset.Builder clearDisplayName()

Required. The display name of the dataset. Maximum of 64 bytes.

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

Returns
Type Description
ConversationDataset.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInputConfig()

public ConversationDataset.Builder clearInputConfig()

Output only. Input configurations set during conversation data import.

.google.cloud.dialogflow.v2.InputConfig input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConversationDataset.Builder

clearName()

public ConversationDataset.Builder clearName()

Output only. ConversationDataset resource name. Format: projects/<Project ID>/locations/<Location ID>/conversationDatasets/<Conversation Dataset ID>

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

Returns
Type Description
ConversationDataset.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getConversationCount()

public long getConversationCount()

Output only. The number of conversations this conversation dataset contains.

int64 conversation_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The conversationCount.

getConversationInfo()

public ConversationInfo getConversationInfo()

Output only. Metadata set during conversation data import.

.google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConversationInfo

The conversationInfo.

getConversationInfoBuilder()

public ConversationInfo.Builder getConversationInfoBuilder()

Output only. Metadata set during conversation data import.

.google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConversationInfo.Builder

getConversationInfoOrBuilder()

public ConversationInfoOrBuilder getConversationInfoOrBuilder()

Output only. Metadata set during conversation data import.

.google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConversationInfoOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Creation time of this dataset.

.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. Creation time of this dataset.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Creation time of this dataset.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ConversationDataset getDefaultInstanceForType()
Returns
Type Description
ConversationDataset

getDescription()

public String getDescription()

Optional. The description of the dataset. Maximum of 10000 bytes.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The description of the dataset. Maximum of 10000 bytes.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Required. The display name of the dataset. Maximum of 64 bytes.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The display name of the dataset. Maximum of 64 bytes.

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

Returns
Type Description
ByteString

The bytes for displayName.

getInputConfig()

public InputConfig getInputConfig()

Output only. Input configurations set during conversation data import.

.google.cloud.dialogflow.v2.InputConfig input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InputConfig

The inputConfig.

getInputConfigBuilder()

public InputConfig.Builder getInputConfigBuilder()

Output only. Input configurations set during conversation data import.

.google.cloud.dialogflow.v2.InputConfig input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InputConfig.Builder

getInputConfigOrBuilder()

public InputConfigOrBuilder getInputConfigOrBuilder()

Output only. Input configurations set during conversation data import.

.google.cloud.dialogflow.v2.InputConfig input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InputConfigOrBuilder

getName()

public String getName()

Output only. ConversationDataset resource name. Format: projects/<Project ID>/locations/<Location ID>/conversationDatasets/<Conversation Dataset ID>

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. ConversationDataset resource name. Format: projects/<Project ID>/locations/<Location ID>/conversationDatasets/<Conversation Dataset ID>

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

Returns
Type Description
ByteString

The bytes for name.

hasConversationInfo()

public boolean hasConversationInfo()

Output only. Metadata set during conversation data import.

.google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the conversationInfo field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Creation time of this dataset.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasInputConfig()

public boolean hasInputConfig()

Output only. Input configurations set during conversation data import.

.google.cloud.dialogflow.v2.InputConfig input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the inputConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConversationInfo(ConversationInfo value)

public ConversationDataset.Builder mergeConversationInfo(ConversationInfo value)

Output only. Metadata set during conversation data import.

.google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ConversationInfo
Returns
Type Description
ConversationDataset.Builder

mergeCreateTime(Timestamp value)

public ConversationDataset.Builder mergeCreateTime(Timestamp value)

Output only. Creation time of this dataset.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ConversationDataset.Builder

mergeFrom(ConversationDataset other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInputConfig(InputConfig value)

public ConversationDataset.Builder mergeInputConfig(InputConfig value)

Output only. Input configurations set during conversation data import.

.google.cloud.dialogflow.v2.InputConfig input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value InputConfig
Returns
Type Description
ConversationDataset.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConversationDataset.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConversationDataset.Builder
Overrides

setConversationCount(long value)

public ConversationDataset.Builder setConversationCount(long value)

Output only. The number of conversations this conversation dataset contains.

int64 conversation_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The conversationCount to set.

Returns
Type Description
ConversationDataset.Builder

This builder for chaining.

setConversationInfo(ConversationInfo value)

public ConversationDataset.Builder setConversationInfo(ConversationInfo value)

Output only. Metadata set during conversation data import.

.google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ConversationInfo
Returns
Type Description
ConversationDataset.Builder

setConversationInfo(ConversationInfo.Builder builderForValue)

public ConversationDataset.Builder setConversationInfo(ConversationInfo.Builder builderForValue)

Output only. Metadata set during conversation data import.

.google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ConversationInfo.Builder
Returns
Type Description
ConversationDataset.Builder

setCreateTime(Timestamp value)

public ConversationDataset.Builder setCreateTime(Timestamp value)

Output only. Creation time of this dataset.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ConversationDataset.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ConversationDataset.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Creation time of this dataset.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ConversationDataset.Builder

setDescription(String value)

public ConversationDataset.Builder setDescription(String value)

Optional. The description of the dataset. Maximum of 10000 bytes.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ConversationDataset.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ConversationDataset.Builder setDescriptionBytes(ByteString value)

Optional. The description of the dataset. Maximum of 10000 bytes.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ConversationDataset.Builder

This builder for chaining.

setDisplayName(String value)

public ConversationDataset.Builder setDisplayName(String value)

Required. The display name of the dataset. Maximum of 64 bytes.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ConversationDataset.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ConversationDataset.Builder setDisplayNameBytes(ByteString value)

Required. The display name of the dataset. Maximum of 64 bytes.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ConversationDataset.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInputConfig(InputConfig value)

public ConversationDataset.Builder setInputConfig(InputConfig value)

Output only. Input configurations set during conversation data import.

.google.cloud.dialogflow.v2.InputConfig input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value InputConfig
Returns
Type Description
ConversationDataset.Builder

setInputConfig(InputConfig.Builder builderForValue)

public ConversationDataset.Builder setInputConfig(InputConfig.Builder builderForValue)

Output only. Input configurations set during conversation data import.

.google.cloud.dialogflow.v2.InputConfig input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue InputConfig.Builder
Returns
Type Description
ConversationDataset.Builder

setName(String value)

public ConversationDataset.Builder setName(String value)

Output only. ConversationDataset resource name. Format: projects/<Project ID>/locations/<Location ID>/conversationDatasets/<Conversation Dataset ID>

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ConversationDataset.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ConversationDataset.Builder setNameBytes(ByteString value)

Output only. ConversationDataset resource name. Format: projects/<Project ID>/locations/<Location ID>/conversationDatasets/<Conversation Dataset ID>

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ConversationDataset.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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