Class ConversationDataset.Builder (4.7.4)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConversationDataset build()
Returns
TypeDescription
ConversationDataset

buildPartial()

public ConversationDataset buildPartial()
Returns
TypeDescription
ConversationDataset

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ConversationDataset.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConversationDataset.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public ConversationDataset getDefaultInstanceForType()
Returns
TypeDescription
ConversationDataset

getDescription()

public String getDescription()

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

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

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

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

Whether the inputConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

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

mergeFrom(ConversationDataset other)

public ConversationDataset.Builder mergeFrom(ConversationDataset other)
Parameter
NameDescription
otherConversationDataset
Returns
TypeDescription
ConversationDataset.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ConversationDataset.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueInputConfig
Returns
TypeDescription
ConversationDataset.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConversationDataset.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuelong

The conversationCount to set.

Returns
TypeDescription
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
NameDescription
valueConversationInfo
Returns
TypeDescription
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
NameDescription
builderForValueConversationInfo.Builder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

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

The bytes for description to set.

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

The displayName to set.

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

The bytes for displayName to set.

Returns
TypeDescription
ConversationDataset.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConversationDataset.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ConversationDataset.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConversationDataset.Builder
Overrides