Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationModel
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationModel
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb
Overview
Represents a conversation model.
Instance Attribute Summary collapse
-
#article_suggestion_model_metadata ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleSuggestionModelMetadata
Metadata for article suggestion models.
-
#create_time ⇒ String
Output only.
-
#datasets ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputDataset>
Required.
-
#display_name ⇒ String
Required.
-
#language_code ⇒ String
Language code for the conversation model.
-
#name ⇒ String
ConversationModel resource name.
-
#smart_reply_model_metadata ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyModelMetadata
Metadata for smart reply models.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationModel
constructor
A new instance of GoogleCloudDialogflowV2ConversationModel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationModel
Returns a new instance of GoogleCloudDialogflowV2ConversationModel.
9079 9080 9081 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9079 def initialize(**args) update!(**args) end |
Instance Attribute Details
#article_suggestion_model_metadata ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleSuggestionModelMetadata
Metadata for article suggestion models.
Corresponds to the JSON property articleSuggestionModelMetadata
9038 9039 9040 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9038 def @article_suggestion_model_metadata end |
#create_time ⇒ String
Output only. Creation time of this model.
Corresponds to the JSON property createTime
9043 9044 9045 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9043 def create_time @create_time end |
#datasets ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputDataset>
Required. Datasets used to create model.
Corresponds to the JSON property datasets
9048 9049 9050 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9048 def datasets @datasets end |
#display_name ⇒ String
Required. The display name of the model. At most 64 bytes long.
Corresponds to the JSON property displayName
9053 9054 9055 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9053 def display_name @display_name end |
#language_code ⇒ String
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
language tag. Example: "en-US".
Corresponds to the JSON property languageCode
9061 9062 9063 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9061 def language_code @language_code end |
#name ⇒ String
ConversationModel resource name. Format: projects//conversationModels/
Corresponds to the JSON property name
9066 9067 9068 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9066 def name @name end |
#smart_reply_model_metadata ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyModelMetadata
Metadata for smart reply models.
Corresponds to the JSON property smartReplyModelMetadata
9071 9072 9073 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9071 def @smart_reply_model_metadata end |
#state ⇒ String
Output only. State of the model. A model can only serve prediction requests
after it gets deployed.
Corresponds to the JSON property state
9077 9078 9079 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9077 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9084 def update!(**args) @article_suggestion_model_metadata = args[:article_suggestion_model_metadata] if args.key?(:article_suggestion_model_metadata) @create_time = args[:create_time] if args.key?(:create_time) @datasets = args[:datasets] if args.key?(:datasets) @display_name = args[:display_name] if args.key?(:display_name) @language_code = args[:language_code] if args.key?(:language_code) @name = args[:name] if args.key?(:name) @smart_reply_model_metadata = args[:smart_reply_model_metadata] if args.key?(:smart_reply_model_metadata) @state = args[:state] if args.key?(:state) end |