Class SmartReplyModelMetadata.Builder (4.6.0)

public static final class SmartReplyModelMetadata.Builder extends GeneratedMessageV3.Builder<SmartReplyModelMetadata.Builder> implements SmartReplyModelMetadataOrBuilder

Metadata for smart reply models.

Protobuf type google.cloud.dialogflow.v2.SmartReplyModelMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SmartReplyModelMetadata build()
Returns
TypeDescription
SmartReplyModelMetadata

buildPartial()

public SmartReplyModelMetadata buildPartial()
Returns
TypeDescription
SmartReplyModelMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTrainingModelType()

public SmartReplyModelMetadata.Builder clearTrainingModelType()

Optional. Type of the smart reply model. If not provided, model_type is used.

.google.cloud.dialogflow.v2.ConversationModel.ModelType training_model_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SmartReplyModelMetadata.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SmartReplyModelMetadata getDefaultInstanceForType()
Returns
TypeDescription
SmartReplyModelMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTrainingModelType()

public ConversationModel.ModelType getTrainingModelType()

Optional. Type of the smart reply model. If not provided, model_type is used.

.google.cloud.dialogflow.v2.ConversationModel.ModelType training_model_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ConversationModel.ModelType

The trainingModelType.

getTrainingModelTypeValue()

public int getTrainingModelTypeValue()

Optional. Type of the smart reply model. If not provided, model_type is used.

.google.cloud.dialogflow.v2.ConversationModel.ModelType training_model_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for trainingModelType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SmartReplyModelMetadata other)

public SmartReplyModelMetadata.Builder mergeFrom(SmartReplyModelMetadata other)
Parameter
NameDescription
otherSmartReplyModelMetadata
Returns
TypeDescription
SmartReplyModelMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTrainingModelType(ConversationModel.ModelType value)

public SmartReplyModelMetadata.Builder setTrainingModelType(ConversationModel.ModelType value)

Optional. Type of the smart reply model. If not provided, model_type is used.

.google.cloud.dialogflow.v2.ConversationModel.ModelType training_model_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueConversationModel.ModelType

The trainingModelType to set.

Returns
TypeDescription
SmartReplyModelMetadata.Builder

This builder for chaining.

setTrainingModelTypeValue(int value)

public SmartReplyModelMetadata.Builder setTrainingModelTypeValue(int value)

Optional. Type of the smart reply model. If not provided, model_type is used.

.google.cloud.dialogflow.v2.ConversationModel.ModelType training_model_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The enum numeric value on the wire for trainingModelType to set.

Returns
TypeDescription
SmartReplyModelMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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