public final class ConversationModel extends GeneratedMessageV3 implements ConversationModelOrBuilder
Represents a conversation model.Protobuf type
google.cloud.dialogflow.v2.ConversationModel
Modifier and Type | Class and Description |
---|---|
static class |
ConversationModel.Builder
Represents a conversation model.
|
static class |
ConversationModel.ModelMetadataCase |
static class |
ConversationModel.ModelType
Model type.
|
static class |
ConversationModel.State
State of the model.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ARTICLE_SUGGESTION_MODEL_METADATA_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
DATASETS_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
LANGUAGE_CODE_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
SMART_REPLY_MODEL_METADATA_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int DATASETS_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
public static final int ARTICLE_SUGGESTION_MODEL_METADATA_FIELD_NUMBER
public static final int SMART_REPLY_MODEL_METADATA_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public ConversationModel.ModelMetadataCase getModelMetadataCase()
getModelMetadataCase
in interface ConversationModelOrBuilder
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 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 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 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 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 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 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 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.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 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 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 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 SmartReplyModelMetadataOrBuilder getSmartReplyModelMetadataOrBuilder()
Metadata for smart reply models.
.google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;
getSmartReplyModelMetadataOrBuilder
in interface ConversationModelOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static ConversationModel parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ConversationModel parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ConversationModel parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ConversationModel parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ConversationModel parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ConversationModel parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ConversationModel parseFrom(InputStream input) throws IOException
IOException
public static ConversationModel parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ConversationModel parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ConversationModel parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ConversationModel parseFrom(CodedInputStream input) throws IOException
IOException
public static ConversationModel parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public ConversationModel.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static ConversationModel.Builder newBuilder()
public static ConversationModel.Builder newBuilder(ConversationModel prototype)
public ConversationModel.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected ConversationModel.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static ConversationModel getDefaultInstance()
public static Parser<ConversationModel> parser()
public Parser<ConversationModel> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public ConversationModel getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.