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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ConversationContextReference

Returns a new instance of GoogleCloudDialogflowV2beta1ConversationContextReference.



12338
12339
12340
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12338

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

Instance Attribute Details

#context_contentsArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent>

Corresponds to the JSON property contextContents



12321
12322
12323
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12321

def context_contents
  @context_contents
end

#create_timeString

Corresponds to the JSON property createTime

Returns:

  • (String)


12326
12327
12328
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12326

def create_time
  @create_time
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


12331
12332
12333
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12331

def language_code
  @language_code
end

#update_modeString

Corresponds to the JSON property updateMode

Returns:

  • (String)


12336
12337
12338
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12336

def update_mode
  @update_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12343
12344
12345
12346
12347
12348
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12343

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