Class CreateConversationDatasetRequest.Builder (4.7.0)

public static final class CreateConversationDatasetRequest.Builder extends GeneratedMessageV3.Builder<CreateConversationDatasetRequest.Builder> implements CreateConversationDatasetRequestOrBuilder

The request message for ConversationDatasets.CreateConversationDataset.

Protobuf type google.cloud.dialogflow.v2.CreateConversationDatasetRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateConversationDatasetRequest build()
Returns
TypeDescription
CreateConversationDatasetRequest

buildPartial()

public CreateConversationDatasetRequest buildPartial()
Returns
TypeDescription
CreateConversationDatasetRequest

clear()

public CreateConversationDatasetRequest.Builder clear()
Returns
TypeDescription
CreateConversationDatasetRequest.Builder
Overrides

clearConversationDataset()

public CreateConversationDatasetRequest.Builder clearConversationDataset()

Required. The conversation dataset to create.

.google.cloud.dialogflow.v2.ConversationDataset conversation_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateConversationDatasetRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateConversationDatasetRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateConversationDatasetRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateConversationDatasetRequest.Builder clearParent()

Required. The project to create conversation dataset for. Format: projects/<Project ID>/locations/<Location ID>

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateConversationDatasetRequest.Builder

This builder for chaining.

clone()

public CreateConversationDatasetRequest.Builder clone()
Returns
TypeDescription
CreateConversationDatasetRequest.Builder
Overrides

getConversationDataset()

public ConversationDataset getConversationDataset()

Required. The conversation dataset to create.

.google.cloud.dialogflow.v2.ConversationDataset conversation_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ConversationDataset

The conversationDataset.

getConversationDatasetBuilder()

public ConversationDataset.Builder getConversationDatasetBuilder()

Required. The conversation dataset to create.

.google.cloud.dialogflow.v2.ConversationDataset conversation_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ConversationDataset.Builder

getConversationDatasetOrBuilder()

public ConversationDatasetOrBuilder getConversationDatasetOrBuilder()

Required. The conversation dataset to create.

.google.cloud.dialogflow.v2.ConversationDataset conversation_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ConversationDatasetOrBuilder

getDefaultInstanceForType()

public CreateConversationDatasetRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateConversationDatasetRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The project to create conversation dataset for. Format: projects/<Project ID>/locations/<Location ID>

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project to create conversation dataset for. Format: projects/<Project ID>/locations/<Location ID>

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for parent.

hasConversationDataset()

public boolean hasConversationDataset()

Required. The conversation dataset to create.

.google.cloud.dialogflow.v2.ConversationDataset conversation_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the conversationDataset field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConversationDataset(ConversationDataset value)

public CreateConversationDatasetRequest.Builder mergeConversationDataset(ConversationDataset value)

Required. The conversation dataset to create.

.google.cloud.dialogflow.v2.ConversationDataset conversation_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueConversationDataset
Returns
TypeDescription
CreateConversationDatasetRequest.Builder

mergeFrom(CreateConversationDatasetRequest other)

public CreateConversationDatasetRequest.Builder mergeFrom(CreateConversationDatasetRequest other)
Parameter
NameDescription
otherCreateConversationDatasetRequest
Returns
TypeDescription
CreateConversationDatasetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateConversationDatasetRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateConversationDatasetRequest.Builder
Overrides

setConversationDataset(ConversationDataset value)

public CreateConversationDatasetRequest.Builder setConversationDataset(ConversationDataset value)

Required. The conversation dataset to create.

.google.cloud.dialogflow.v2.ConversationDataset conversation_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueConversationDataset
Returns
TypeDescription
CreateConversationDatasetRequest.Builder

setConversationDataset(ConversationDataset.Builder builderForValue)

public CreateConversationDatasetRequest.Builder setConversationDataset(ConversationDataset.Builder builderForValue)

Required. The conversation dataset to create.

.google.cloud.dialogflow.v2.ConversationDataset conversation_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueConversationDataset.Builder
Returns
TypeDescription
CreateConversationDatasetRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateConversationDatasetRequest.Builder setParent(String value)

Required. The project to create conversation dataset for. Format: projects/<Project ID>/locations/<Location ID>

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateConversationDatasetRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateConversationDatasetRequest.Builder setParentBytes(ByteString value)

Required. The project to create conversation dataset for. Format: projects/<Project ID>/locations/<Location ID>

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateConversationDatasetRequest.Builder

This builder for chaining.

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

public CreateConversationDatasetRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateConversationDatasetRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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