Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2ConversationModel

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb

Overview

Represents a conversation model.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationModel

Returns a new instance of GoogleCloudDialogflowV2ConversationModel.



8163
8164
8165
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8163

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#article_suggestion_model_metadataGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2ArticleSuggestionModelMetadata

Metadata for article suggestion models. Corresponds to the JSON property articleSuggestionModelMetadata



8122
8123
8124
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8122

def 
  @article_suggestion_model_metadata
end

#create_timeString

Output only. Creation time of this model. Corresponds to the JSON property createTime

Returns:

  • (String)


8127
8128
8129
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8127

def create_time
  @create_time
end

#datasetsArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2InputDataset>

Required. Datasets used to create model. Corresponds to the JSON property datasets



8132
8133
8134
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8132

def datasets
  @datasets
end

#display_nameString

Required. The display name of the model. At most 64 bytes long. Corresponds to the JSON property displayName

Returns:

  • (String)


8137
8138
8139
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8137

def display_name
  @display_name
end

#language_codeString

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

Returns:

  • (String)


8145
8146
8147
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8145

def language_code
  @language_code
end

#nameString

ConversationModel resource name. Format: projects//conversationModels/ Corresponds to the JSON property name

Returns:

  • (String)


8150
8151
8152
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8150

def name
  @name
end

#smart_reply_model_metadataGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SmartReplyModelMetadata

Metadata for smart reply models. Corresponds to the JSON property smartReplyModelMetadata



8155
8156
8157
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8155

def 
  @smart_reply_model_metadata
end

#stateString

Output only. State of the model. A model can only serve prediction requests after it gets deployed. Corresponds to the JSON property state

Returns:

  • (String)


8161
8162
8163
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8161

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8168

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