Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference

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 piece of ingested context information.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_contentsArray<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_timeString

Output only. The time the context reference was first created. Corresponds to the JSON property createTime

Returns:

  • (String)


13894
13895
13896
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13894

def create_time
  @create_time
end

#language_codeString

Optional. The language of the information ingested, defaults to "en-US" if not set. Corresponds to the JSON property languageCode

Returns:

  • (String)


13900
13901
13902
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13900

def language_code
  @language_code
end

#update_modeString

Required. The mode in which context reference contents are updated. Corresponds to the JSON property updateMode

Returns:

  • (String)


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