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:
  • 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getModelMetadataCase

      public ConversationModel.ModelMetadataCase getModelMetadataCase()
      Specified by:
      getModelMetadataCase in interface ConversationModelOrBuilder
    • getName

      public String getName()
       ConversationModel resource name. Format:
       `projects/<Project ID>/conversationModels/<Conversation Model ID>`
       
      string name = 1;
      Specified by:
      getName in interface ConversationModelOrBuilder
      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:
      getNameBytes in interface ConversationModelOrBuilder
      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:
      getDisplayName in interface ConversationModelOrBuilder
      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:
      getDisplayNameBytes in interface ConversationModelOrBuilder
      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:
      hasCreateTime in interface ConversationModelOrBuilder
      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:
      getCreateTime in interface ConversationModelOrBuilder
      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:
      getCreateTimeOrBuilder in interface ConversationModelOrBuilder
    • 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:
      getDatasetsList in interface ConversationModelOrBuilder
    • 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:
      getDatasetsOrBuilderList in interface ConversationModelOrBuilder
    • 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:
      getDatasetsCount in interface ConversationModelOrBuilder
    • 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:
      getDatasets in interface ConversationModelOrBuilder
    • 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:
      getDatasetsOrBuilder in interface ConversationModelOrBuilder
    • 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:
      getStateValue in interface ConversationModelOrBuilder
      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:
      getState in interface ConversationModelOrBuilder
      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:
      getLanguageCode in interface ConversationModelOrBuilder
      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:
      getLanguageCodeBytes in interface ConversationModelOrBuilder
      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:
      hasArticleSuggestionModelMetadata in interface ConversationModelOrBuilder
      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:
      getArticleSuggestionModelMetadata in interface ConversationModelOrBuilder
      Returns:
      The articleSuggestionModelMetadata.
    • getArticleSuggestionModelMetadataOrBuilder

      public ArticleSuggestionModelMetadataOrBuilder getArticleSuggestionModelMetadataOrBuilder()
       Metadata for article suggestion models.
       
      .google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;
      Specified by:
      getArticleSuggestionModelMetadataOrBuilder in interface ConversationModelOrBuilder
    • hasSmartReplyModelMetadata

      public boolean hasSmartReplyModelMetadata()
       Metadata for smart reply models.
       
      .google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;
      Specified by:
      hasSmartReplyModelMetadata in interface ConversationModelOrBuilder
      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:
      getSmartReplyModelMetadata in interface ConversationModelOrBuilder
      Returns:
      The smartReplyModelMetadata.
    • getSmartReplyModelMetadataOrBuilder

      public SmartReplyModelMetadataOrBuilder getSmartReplyModelMetadataOrBuilder()
       Metadata for smart reply models.
       
      .google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;
      Specified by:
      getSmartReplyModelMetadataOrBuilder in interface ConversationModelOrBuilder
    • 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:
      hasSatisfiesPzs in interface ConversationModelOrBuilder
      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:
      getSatisfiesPzs in interface ConversationModelOrBuilder
      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:
      hasSatisfiesPzi in interface ConversationModelOrBuilder
      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:
      getSatisfiesPzi in interface ConversationModelOrBuilder
      Returns:
      The satisfiesPzi.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ConversationModel.Builder newBuilder()
    • newBuilder

      public static ConversationModel.Builder newBuilder(ConversationModel prototype)
    • toBuilder

      public ConversationModel.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ConversationModel.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ConversationModel getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ConversationModel> parser()
    • getParserForType

      public com.google.protobuf.Parser<ConversationModel> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ConversationModel getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder