Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference
- 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 piece of ingested context information.
Instance Attribute Summary collapse
-
#context_contents ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent>
Required.
-
#create_time ⇒ String
Output only.
-
#language_code ⇒ String
Optional.
-
#update_mode ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ConversationContextReference
constructor
A new instance of GoogleCloudDialogflowV2beta1ConversationContextReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ConversationContextReference
Returns a new instance of GoogleCloudDialogflowV2beta1ConversationContextReference.
13907 13908 13909 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13907 def initialize(**args) update!(**args) end |
Instance Attribute Details
#context_contents ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent>
Required. The list of content updates for a context reference.
Corresponds to the JSON property contextContents
13889 13890 13891 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13889 def context_contents @context_contents end |
#create_time ⇒ String
Output only. The time the context reference was first created.
Corresponds to the JSON property createTime
13894 13895 13896 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13894 def create_time @create_time end |
#language_code ⇒ String
Optional. The language of the information ingested, defaults to "en-US" if not
set.
Corresponds to the JSON property languageCode
13900 13901 13902 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13900 def language_code @language_code end |
#update_mode ⇒ String
Required. The mode in which context reference contents are updated.
Corresponds to the JSON property updateMode
13905 13906 13907 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13905 def update_mode @update_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13912 13913 13914 13915 13916 13917 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13912 def update!(**args) @context_contents = args[:context_contents] if args.key?(:context_contents) @create_time = args[:create_time] if args.key?(:create_time) @language_code = args[:language_code] if args.key?(:language_code) @update_mode = args[:update_mode] if args.key?(:update_mode) end |