Class CreateConversationModelRequest.Builder (4.48.0)

public static final class CreateConversationModelRequest.Builder extends GeneratedMessageV3.Builder<CreateConversationModelRequest.Builder> implements CreateConversationModelRequestOrBuilder

The request message for ConversationModels.CreateConversationModel

Protobuf type google.cloud.dialogflow.v2.CreateConversationModelRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateConversationModelRequest build()
Returns
Type Description
CreateConversationModelRequest

buildPartial()

public CreateConversationModelRequest buildPartial()
Returns
Type Description
CreateConversationModelRequest

clear()

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

clearConversationModel()

public CreateConversationModelRequest.Builder clearConversationModel()

Required. The conversation model to create.

.google.cloud.dialogflow.v2.ConversationModel conversation_model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateConversationModelRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateConversationModelRequest.Builder clearParent()

The project to create conversation model for. Format: projects/<Project ID>

string parent = 1;

Returns
Type Description
CreateConversationModelRequest.Builder

This builder for chaining.

clone()

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

getConversationModel()

public ConversationModel getConversationModel()

Required. The conversation model to create.

.google.cloud.dialogflow.v2.ConversationModel conversation_model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConversationModel

The conversationModel.

getConversationModelBuilder()

public ConversationModel.Builder getConversationModelBuilder()

Required. The conversation model to create.

.google.cloud.dialogflow.v2.ConversationModel conversation_model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConversationModel.Builder

getConversationModelOrBuilder()

public ConversationModelOrBuilder getConversationModelOrBuilder()

Required. The conversation model to create.

.google.cloud.dialogflow.v2.ConversationModel conversation_model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConversationModelOrBuilder

getDefaultInstanceForType()

public CreateConversationModelRequest getDefaultInstanceForType()
Returns
Type Description
CreateConversationModelRequest

getDescriptorForType()

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

getParent()

public String getParent()

The project to create conversation model for. Format: projects/<Project ID>

string parent = 1;

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The project to create conversation model for. Format: projects/<Project ID>

string parent = 1;

Returns
Type Description
ByteString

The bytes for parent.

hasConversationModel()

public boolean hasConversationModel()

Required. The conversation model to create.

.google.cloud.dialogflow.v2.ConversationModel conversation_model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the conversationModel field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConversationModel(ConversationModel value)

public CreateConversationModelRequest.Builder mergeConversationModel(ConversationModel value)

Required. The conversation model to create.

.google.cloud.dialogflow.v2.ConversationModel conversation_model = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ConversationModel
Returns
Type Description
CreateConversationModelRequest.Builder

mergeFrom(CreateConversationModelRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConversationModel(ConversationModel value)

public CreateConversationModelRequest.Builder setConversationModel(ConversationModel value)

Required. The conversation model to create.

.google.cloud.dialogflow.v2.ConversationModel conversation_model = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ConversationModel
Returns
Type Description
CreateConversationModelRequest.Builder

setConversationModel(ConversationModel.Builder builderForValue)

public CreateConversationModelRequest.Builder setConversationModel(ConversationModel.Builder builderForValue)

Required. The conversation model to create.

.google.cloud.dialogflow.v2.ConversationModel conversation_model = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ConversationModel.Builder
Returns
Type Description
CreateConversationModelRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateConversationModelRequest.Builder setParent(String value)

The project to create conversation model for. Format: projects/<Project ID>

string parent = 1;

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateConversationModelRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateConversationModelRequest.Builder setParentBytes(ByteString value)

The project to create conversation model for. Format: projects/<Project ID>

string parent = 1;

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateConversationModelRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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