public static final class ConversationModel.Builder extends GeneratedMessageV3.Builder<ConversationModel.Builder> implements ConversationModelOrBuilder
Represents a conversation model.Protobuf type
google.cloud.dialogflow.v2.ConversationModel
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ConversationModel.Builder>
public ConversationModel.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ConversationModel.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ConversationModel.Builder>
public ConversationModel getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ConversationModel build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ConversationModel buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ConversationModel.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ConversationModel.Builder>
public ConversationModel.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ConversationModel.Builder>
public ConversationModel.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ConversationModel.Builder>
public ConversationModel.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ConversationModel.Builder>
public ConversationModel.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ConversationModel.Builder>
public ConversationModel.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ConversationModel.Builder>
public ConversationModel.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ConversationModel.Builder>
public ConversationModel.Builder mergeFrom(ConversationModel other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ConversationModel.Builder>
public ConversationModel.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ConversationModel.Builder>
IOException
public ConversationModel.ModelMetadataCase getModelMetadataCase()
getModelMetadataCase
in interface ConversationModelOrBuilder
public ConversationModel.Builder clearModelMetadata()
public String getName()
ConversationModel resource name. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>`
string name = 1;
getName
in interface ConversationModelOrBuilder
public ByteString getNameBytes()
ConversationModel resource name. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>`
string name = 1;
getNameBytes
in interface ConversationModelOrBuilder
public ConversationModel.Builder setName(String value)
ConversationModel resource name. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>`
string name = 1;
value
- The name to set.public ConversationModel.Builder clearName()
ConversationModel resource name. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>`
string name = 1;
public ConversationModel.Builder setNameBytes(ByteString value)
ConversationModel resource name. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>`
string name = 1;
value
- The bytes for name to set.public String getDisplayName()
Required. The display name of the model. At most 64 bytes long.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
getDisplayName
in interface ConversationModelOrBuilder
public ByteString getDisplayNameBytes()
Required. The display name of the model. At most 64 bytes long.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
getDisplayNameBytes
in interface ConversationModelOrBuilder
public ConversationModel.Builder setDisplayName(String value)
Required. The display name of the model. At most 64 bytes long.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
value
- The displayName to set.public ConversationModel.Builder clearDisplayName()
Required. The display name of the model. At most 64 bytes long.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
public ConversationModel.Builder setDisplayNameBytes(ByteString value)
Required. The display name of the model. At most 64 bytes long.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for displayName to set.public boolean hasCreateTime()
Output only. Creation time of this model.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime
in interface ConversationModelOrBuilder
public Timestamp getCreateTime()
Output only. Creation time of this model.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime
in interface ConversationModelOrBuilder
public ConversationModel.Builder setCreateTime(Timestamp value)
Output only. Creation time of this model.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ConversationModel.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. Creation time of this model.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ConversationModel.Builder mergeCreateTime(Timestamp value)
Output only. Creation time of this model.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ConversationModel.Builder clearCreateTime()
Output only. Creation time of this model.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Timestamp.Builder getCreateTimeBuilder()
Output only. Creation time of this model.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Creation time of this model.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder
in interface ConversationModelOrBuilder
public List<InputDataset> getDatasetsList()
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
getDatasetsList
in interface ConversationModelOrBuilder
public int getDatasetsCount()
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
getDatasetsCount
in interface ConversationModelOrBuilder
public InputDataset getDatasets(int index)
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
getDatasets
in interface ConversationModelOrBuilder
public ConversationModel.Builder setDatasets(int index, InputDataset value)
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
public ConversationModel.Builder setDatasets(int index, InputDataset.Builder builderForValue)
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
public ConversationModel.Builder addDatasets(InputDataset value)
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
public ConversationModel.Builder addDatasets(int index, InputDataset value)
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
public ConversationModel.Builder addDatasets(InputDataset.Builder builderForValue)
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
public ConversationModel.Builder addDatasets(int index, InputDataset.Builder builderForValue)
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
public ConversationModel.Builder addAllDatasets(Iterable<? extends InputDataset> values)
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
public ConversationModel.Builder clearDatasets()
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
public ConversationModel.Builder removeDatasets(int index)
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
public InputDataset.Builder getDatasetsBuilder(int index)
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
public InputDatasetOrBuilder getDatasetsOrBuilder(int index)
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
getDatasetsOrBuilder
in interface ConversationModelOrBuilder
public List<? extends InputDatasetOrBuilder> getDatasetsOrBuilderList()
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
getDatasetsOrBuilderList
in interface ConversationModelOrBuilder
public InputDataset.Builder addDatasetsBuilder()
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
public InputDataset.Builder addDatasetsBuilder(int index)
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
public List<InputDataset.Builder> getDatasetsBuilderList()
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];
public int getStateValue()
Output only. State of the model. A model can only serve prediction requests after it gets deployed.
.google.cloud.dialogflow.v2.ConversationModel.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue
in interface ConversationModelOrBuilder
public ConversationModel.Builder setStateValue(int value)
Output only. State of the model. A model can only serve prediction requests after it gets deployed.
.google.cloud.dialogflow.v2.ConversationModel.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The enum numeric value on the wire for state to set.public ConversationModel.State getState()
Output only. State of the model. A model can only serve prediction requests after it gets deployed.
.google.cloud.dialogflow.v2.ConversationModel.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState
in interface ConversationModelOrBuilder
public ConversationModel.Builder setState(ConversationModel.State value)
Output only. State of the model. A model can only serve prediction requests after it gets deployed.
.google.cloud.dialogflow.v2.ConversationModel.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The state to set.public ConversationModel.Builder clearState()
Output only. State of the model. A model can only serve prediction requests after it gets deployed.
.google.cloud.dialogflow.v2.ConversationModel.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public String getLanguageCode()
Language code for the conversation model. If not specified, the language is en-US. Language at ConversationModel should be set for all non en-us languages. This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
string language_code = 19;
getLanguageCode
in interface ConversationModelOrBuilder
public ByteString getLanguageCodeBytes()
Language code for the conversation model. If not specified, the language is en-US. Language at ConversationModel should be set for all non en-us languages. This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
string language_code = 19;
getLanguageCodeBytes
in interface ConversationModelOrBuilder
public ConversationModel.Builder setLanguageCode(String value)
Language code for the conversation model. If not specified, the language is en-US. Language at ConversationModel should be set for all non en-us languages. This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
string language_code = 19;
value
- The languageCode to set.public ConversationModel.Builder clearLanguageCode()
Language code for the conversation model. If not specified, the language is en-US. Language at ConversationModel should be set for all non en-us languages. This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
string language_code = 19;
public ConversationModel.Builder setLanguageCodeBytes(ByteString value)
Language code for the conversation model. If not specified, the language is en-US. Language at ConversationModel should be set for all non en-us languages. This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
string language_code = 19;
value
- The bytes for languageCode to set.public boolean hasArticleSuggestionModelMetadata()
Metadata for article suggestion models.
.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;
hasArticleSuggestionModelMetadata
in interface ConversationModelOrBuilder
public ArticleSuggestionModelMetadata getArticleSuggestionModelMetadata()
Metadata for article suggestion models.
.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;
getArticleSuggestionModelMetadata
in interface ConversationModelOrBuilder
public ConversationModel.Builder setArticleSuggestionModelMetadata(ArticleSuggestionModelMetadata value)
Metadata for article suggestion models.
.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;
public ConversationModel.Builder setArticleSuggestionModelMetadata(ArticleSuggestionModelMetadata.Builder builderForValue)
Metadata for article suggestion models.
.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;
public ConversationModel.Builder mergeArticleSuggestionModelMetadata(ArticleSuggestionModelMetadata value)
Metadata for article suggestion models.
.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;
public ConversationModel.Builder clearArticleSuggestionModelMetadata()
Metadata for article suggestion models.
.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;
public ArticleSuggestionModelMetadata.Builder getArticleSuggestionModelMetadataBuilder()
Metadata for article suggestion models.
.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;
public ArticleSuggestionModelMetadataOrBuilder getArticleSuggestionModelMetadataOrBuilder()
Metadata for article suggestion models.
.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;
getArticleSuggestionModelMetadataOrBuilder
in interface ConversationModelOrBuilder
public boolean hasSmartReplyModelMetadata()
Metadata for smart reply models.
.google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;
hasSmartReplyModelMetadata
in interface ConversationModelOrBuilder
public SmartReplyModelMetadata getSmartReplyModelMetadata()
Metadata for smart reply models.
.google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;
getSmartReplyModelMetadata
in interface ConversationModelOrBuilder
public ConversationModel.Builder setSmartReplyModelMetadata(SmartReplyModelMetadata value)
Metadata for smart reply models.
.google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;
public ConversationModel.Builder setSmartReplyModelMetadata(SmartReplyModelMetadata.Builder builderForValue)
Metadata for smart reply models.
.google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;
public ConversationModel.Builder mergeSmartReplyModelMetadata(SmartReplyModelMetadata value)
Metadata for smart reply models.
.google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;
public ConversationModel.Builder clearSmartReplyModelMetadata()
Metadata for smart reply models.
.google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;
public SmartReplyModelMetadata.Builder getSmartReplyModelMetadataBuilder()
Metadata for smart reply models.
.google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;
public SmartReplyModelMetadataOrBuilder getSmartReplyModelMetadataOrBuilder()
Metadata for smart reply models.
.google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;
getSmartReplyModelMetadataOrBuilder
in interface ConversationModelOrBuilder
public final ConversationModel.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ConversationModel.Builder>
public final ConversationModel.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ConversationModel.Builder>
Copyright © 2022 Google LLC. All rights reserved.