Package com.google.cloud.dialogflow.v2
Class ConversationModel
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class ConversationModel
extends com.google.protobuf.GeneratedMessage
implements ConversationModelOrBuilder
Represents a conversation model.Protobuf type
google.cloud.dialogflow.v2.ConversationModel- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a conversation model.static enumstatic enumModel type.static enumState of the model.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanMetadata for article suggestion models.Metadata for article suggestion models.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getDatasets(int index) Required.intRequired.Required.getDatasetsOrBuilder(int index) Required.List<? extends InputDatasetOrBuilder>Required.static ConversationModelstatic final com.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Language code for the conversation model.com.google.protobuf.ByteStringLanguage code for the conversation model.getName()ConversationModel resource name.com.google.protobuf.ByteStringConversationModel resource name.com.google.protobuf.Parser<ConversationModel>booleanOutput only.booleanOutput only.intMetadata for smart reply models.Metadata for smart reply models.getState()Output only.intOutput only.booleanMetadata for article suggestion models.booleanOutput only.inthashCode()booleanOutput only.booleanOutput only.booleanMetadata for smart reply models.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ConversationModel.Builderstatic ConversationModel.BuildernewBuilder(ConversationModel prototype) protected ConversationModel.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
DATASETS_FIELD_NUMBER
public static final int DATASETS_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER- See Also:
-
ARTICLE_SUGGESTION_MODEL_METADATA_FIELD_NUMBER
public static final int ARTICLE_SUGGESTION_MODEL_METADATA_FIELD_NUMBER- See Also:
-
SMART_REPLY_MODEL_METADATA_FIELD_NUMBER
public static final int SMART_REPLY_MODEL_METADATA_FIELD_NUMBER- See Also:
-
SATISFIES_PZS_FIELD_NUMBER
public static final int SATISFIES_PZS_FIELD_NUMBER- See Also:
-
SATISFIES_PZI_FIELD_NUMBER
public static final int SATISFIES_PZI_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getModelMetadataCase
- Specified by:
getModelMetadataCasein interfaceConversationModelOrBuilder
-
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
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
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatasetsListin interfaceConversationModelOrBuilder
-
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
Required. Datasets used to create model.
repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatasetsin interfaceConversationModelOrBuilder
-
getDatasetsOrBuilder
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
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
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
Metadata for article suggestion models.
.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;- Specified by:
getArticleSuggestionModelMetadatain interfaceConversationModelOrBuilder- Returns:
- The articleSuggestionModelMetadata.
-
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
Metadata for smart reply models.
.google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;- Specified by:
getSmartReplyModelMetadatain interfaceConversationModelOrBuilder- Returns:
- The smartReplyModelMetadata.
-
getSmartReplyModelMetadataOrBuilder
Metadata for smart reply models.
.google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;- Specified by:
getSmartReplyModelMetadataOrBuilderin interfaceConversationModelOrBuilder
-
hasSatisfiesPzs
public boolean hasSatisfiesPzs()Output only. A read only boolean field reflecting Zone Separation status of the model.
optional bool satisfies_pzs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasSatisfiesPzsin interfaceConversationModelOrBuilder- Returns:
- Whether the satisfiesPzs field is set.
-
getSatisfiesPzs
public boolean getSatisfiesPzs()Output only. A read only boolean field reflecting Zone Separation status of the model.
optional bool satisfies_pzs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSatisfiesPzsin interfaceConversationModelOrBuilder- Returns:
- The satisfiesPzs.
-
hasSatisfiesPzi
public boolean hasSatisfiesPzi()Output only. A read only boolean field reflecting Zone Isolation status of the model.
optional bool satisfies_pzi = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasSatisfiesPziin interfaceConversationModelOrBuilder- Returns:
- Whether the satisfiesPzi field is set.
-
getSatisfiesPzi
public boolean getSatisfiesPzi()Output only. A read only boolean field reflecting Zone Isolation status of the model.
optional bool satisfies_pzi = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSatisfiesPziin interfaceConversationModelOrBuilder- Returns:
- The satisfiesPzi.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static ConversationModel parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ConversationModel.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-