Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference
- 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 section of ingested context information.
Instance Attribute Summary collapse
-
#context_contents ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReferenceContextContent>
Required.
-
#create_time ⇒ String
Output only.
-
#language_code ⇒ String
Optional.
-
#update_mode ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationContextReference
constructor
A new instance of GoogleCloudDialogflowV2ConversationContextReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationContextReference
Returns a new instance of GoogleCloudDialogflowV2ConversationContextReference.
9627 9628 9629 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9627 def initialize(**args) update!(**args) end |
Instance Attribute Details
#context_contents ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReferenceContextContent>
Required. The list of content updates for a context reference.
Corresponds to the JSON property contextContents
9609 9610 9611 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9609 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
9614 9615 9616 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9614 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
9620 9621 9622 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9620 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
9625 9626 9627 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9625 def update_mode @update_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9632 9633 9634 9635 9636 9637 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9632 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 |