Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReferenceContextContent

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

Overview

Contents ingested.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationContextReferenceContextContent

Returns a new instance of GoogleCloudDialogflowV2ConversationContextReferenceContextContent.



9667
9668
9669
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9667

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

Instance Attribute Details

#answer_recordString

If the context content was generated from a tool call, specify the answer record associated with the tool call. Format: projects//locations// answerRecords/. Corresponds to the JSON property answerRecord

Returns:

  • (String)


9649
9650
9651
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9649

def answer_record
  @answer_record
end

#contentString

Required. The information ingested in a single request. Corresponds to the JSON property content

Returns:

  • (String)


9654
9655
9656
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9654

def content
  @content
end

#content_formatString

Required. The format of the ingested string. Corresponds to the JSON property contentFormat

Returns:

  • (String)


9659
9660
9661
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9659

def content_format
  @content_format
end

#ingestion_timeString

Output only. The time when this information was incorporated into the relevant context reference. Corresponds to the JSON property ingestionTime

Returns:

  • (String)


9665
9666
9667
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9665

def ingestion_time
  @ingestion_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9672
9673
9674
9675
9676
9677
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9672

def update!(**args)
  @answer_record = args[:answer_record] if args.key?(:answer_record)
  @content = args[:content] if args.key?(:content)
  @content_format = args[:content_format] if args.key?(:content_format)
  @ingestion_time = args[:ingestion_time] if args.key?(:ingestion_time)
end