Package com.google.cloud.dialogflow.v2
Class ConversationModel
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dialogflow.v2.ConversationModel
-
- All Implemented Interfaces:
ConversationModelOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class ConversationModel extends com.google.protobuf.GeneratedMessageV3 implements ConversationModelOrBuilder
Represents a conversation model.
Protobuf typegoogle.cloud.dialogflow.v2.ConversationModel- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConversationModel.BuilderRepresents a conversation model.static classConversationModel.ModelMetadataCasestatic classConversationModel.ModelTypeModel type.static classConversationModel.StateState of the model.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intARTICLE_SUGGESTION_MODEL_METADATA_FIELD_NUMBERstatic intCREATE_TIME_FIELD_NUMBERstatic intDATASETS_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intLANGUAGE_CODE_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intSMART_REPLY_MODEL_METADATA_FIELD_NUMBERstatic intSTATE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ArticleSuggestionModelMetadatagetArticleSuggestionModelMetadata()Metadata for article suggestion models.ArticleSuggestionModelMetadataOrBuildergetArticleSuggestionModelMetadataOrBuilder()Metadata for article suggestion models.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.InputDatasetgetDatasets(int index)Required.intgetDatasetsCount()Required.List<InputDataset>getDatasetsList()Required.InputDatasetOrBuildergetDatasetsOrBuilder(int index)Required.List<? extends InputDatasetOrBuilder>getDatasetsOrBuilderList()Required.static ConversationModelgetDefaultInstance()ConversationModelgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayName()Required.com.google.protobuf.ByteStringgetDisplayNameBytes()Required.StringgetLanguageCode()Language code for the conversation model.com.google.protobuf.ByteStringgetLanguageCodeBytes()Language code for the conversation model.ConversationModel.ModelMetadataCasegetModelMetadataCase()StringgetName()ConversationModel resource name.com.google.protobuf.ByteStringgetNameBytes()ConversationModel resource name.com.google.protobuf.Parser<ConversationModel>getParserForType()intgetSerializedSize()SmartReplyModelMetadatagetSmartReplyModelMetadata()Metadata for smart reply models.SmartReplyModelMetadataOrBuildergetSmartReplyModelMetadataOrBuilder()Metadata for smart reply models.ConversationModel.StategetState()Output only.intgetStateValue()Output only.booleanhasArticleSuggestionModelMetadata()Metadata for article suggestion models.booleanhasCreateTime()Output only.inthashCode()booleanhasSmartReplyModelMetadata()Metadata for smart reply models.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ConversationModel.BuildernewBuilder()static ConversationModel.BuildernewBuilder(ConversationModel prototype)ConversationModel.BuildernewBuilderForType()protected ConversationModel.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ConversationModelparseDelimitedFrom(InputStream input)static ConversationModelparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConversationModelparseFrom(byte[] data)static ConversationModelparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConversationModelparseFrom(com.google.protobuf.ByteString data)static ConversationModelparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConversationModelparseFrom(com.google.protobuf.CodedInputStream input)static ConversationModelparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConversationModelparseFrom(InputStream input)static ConversationModelparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConversationModelparseFrom(ByteBuffer data)static ConversationModelparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ConversationModel>parser()ConversationModel.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATASETS_FIELD_NUMBER
public static final int DATASETS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ARTICLE_SUGGESTION_MODEL_METADATA_FIELD_NUMBER
public static final int ARTICLE_SUGGESTION_MODEL_METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SMART_REPLY_MODEL_METADATA_FIELD_NUMBER
public static final int SMART_REPLY_MODEL_METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getModelMetadataCase
public ConversationModel.ModelMetadataCase getModelMetadataCase()
- Specified by:
getModelMetadataCasein interfaceConversationModelOrBuilder
-
getName
public String getName()
ConversationModel resource name. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>`
string name = 1;- Specified by:
getNamein interfaceConversationModelOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
ConversationModel resource name. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>`
string name = 1;- Specified by:
getNameBytesin interfaceConversationModelOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
public String getDisplayName()
Required. The display name of the model. At most 64 bytes long.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNamein interfaceConversationModelOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Required. The display name of the model. At most 64 bytes long.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNameBytesin interfaceConversationModelOrBuilder- Returns:
- The bytes for displayName.
-
hasCreateTime
public boolean hasCreateTime()
Output only. Creation time of this model.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceConversationModelOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. Creation time of this model.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceConversationModelOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Creation time of this model.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceConversationModelOrBuilder
-
getDatasetsList
public List<InputDataset> getDatasetsList()
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatasetsListin interfaceConversationModelOrBuilder
-
getDatasetsOrBuilderList
public List<? extends InputDatasetOrBuilder> getDatasetsOrBuilderList()
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatasetsOrBuilderListin interfaceConversationModelOrBuilder
-
getDatasetsCount
public int getDatasetsCount()
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatasetsCountin interfaceConversationModelOrBuilder
-
getDatasets
public InputDataset getDatasets(int index)
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatasetsin interfaceConversationModelOrBuilder
-
getDatasetsOrBuilder
public InputDatasetOrBuilder getDatasetsOrBuilder(int index)
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatasetsOrBuilderin interfaceConversationModelOrBuilder
-
getStateValue
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];- Specified by:
getStateValuein interfaceConversationModelOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
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];- Specified by:
getStatein interfaceConversationModelOrBuilder- Returns:
- The state.
-
getLanguageCode
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;- Specified by:
getLanguageCodein interfaceConversationModelOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.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;- Specified by:
getLanguageCodeBytesin interfaceConversationModelOrBuilder- Returns:
- The bytes for languageCode.
-
hasArticleSuggestionModelMetadata
public boolean hasArticleSuggestionModelMetadata()
Metadata for article suggestion models.
.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;- Specified by:
hasArticleSuggestionModelMetadatain interfaceConversationModelOrBuilder- Returns:
- Whether the articleSuggestionModelMetadata field is set.
-
getArticleSuggestionModelMetadata
public ArticleSuggestionModelMetadata getArticleSuggestionModelMetadata()
Metadata for article suggestion models.
.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;- Specified by:
getArticleSuggestionModelMetadatain interfaceConversationModelOrBuilder- Returns:
- The articleSuggestionModelMetadata.
-
getArticleSuggestionModelMetadataOrBuilder
public ArticleSuggestionModelMetadataOrBuilder getArticleSuggestionModelMetadataOrBuilder()
Metadata for article suggestion models.
.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;- Specified by:
getArticleSuggestionModelMetadataOrBuilderin interfaceConversationModelOrBuilder
-
hasSmartReplyModelMetadata
public boolean hasSmartReplyModelMetadata()
Metadata for smart reply models.
.google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;- Specified by:
hasSmartReplyModelMetadatain interfaceConversationModelOrBuilder- Returns:
- Whether the smartReplyModelMetadata field is set.
-
getSmartReplyModelMetadata
public SmartReplyModelMetadata getSmartReplyModelMetadata()
Metadata for smart reply models.
.google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;- Specified by:
getSmartReplyModelMetadatain interfaceConversationModelOrBuilder- Returns:
- The smartReplyModelMetadata.
-
getSmartReplyModelMetadataOrBuilder
public SmartReplyModelMetadataOrBuilder getSmartReplyModelMetadataOrBuilder()
Metadata for smart reply models.
.google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;- Specified by:
getSmartReplyModelMetadataOrBuilderin interfaceConversationModelOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ConversationModel parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationModel parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationModel parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationModel parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationModel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationModel parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationModel parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ConversationModel parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ConversationModel parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ConversationModel parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ConversationModel parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ConversationModel parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ConversationModel.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ConversationModel.Builder newBuilder()
-
newBuilder
public static ConversationModel.Builder newBuilder(ConversationModel prototype)
-
toBuilder
public ConversationModel.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ConversationModel.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ConversationModel getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ConversationModel> parser()
-
getParserForType
public com.google.protobuf.Parser<ConversationModel> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ConversationModel getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-