Class CreateConversationModelRequest.Builder (4.5.11)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateConversationModelRequest build()
Returns
TypeDescription
CreateConversationModelRequest

buildPartial()

public CreateConversationModelRequest buildPartial()
Returns
TypeDescription
CreateConversationModelRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateConversationModelRequest.Builder clearParent()

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

string parent = 1;

Returns
TypeDescription
CreateConversationModelRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateConversationModelRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateConversationModelRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

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

string parent = 1;

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

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

string parent = 1;

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

Whether the conversationModel field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueConversationModel
Returns
TypeDescription
CreateConversationModelRequest.Builder

mergeFrom(CreateConversationModelRequest other)

public CreateConversationModelRequest.Builder mergeFrom(CreateConversationModelRequest other)
Parameter
NameDescription
otherCreateConversationModelRequest
Returns
TypeDescription
CreateConversationModelRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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