Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationContextReference

Returns a new instance of GoogleCloudDialogflowV2ConversationContextReference.



8326
8327
8328
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8326

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

Instance Attribute Details

#context_contentsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReferenceContextContent>

Corresponds to the JSON property contextContents



8309
8310
8311
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8309

def context_contents
  @context_contents
end

#create_timeString

Corresponds to the JSON property createTime

Returns:

  • (String)


8314
8315
8316
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8314

def create_time
  @create_time
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


8319
8320
8321
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8319

def language_code
  @language_code
end

#update_modeString

Corresponds to the JSON property updateMode

Returns:

  • (String)


8324
8325
8326
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8324

def update_mode
  @update_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8331
8332
8333
8334
8335
8336
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8331

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