Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::Answer (v1.4.0)

Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::Answer.

Defines an answer.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#answer_skipped_reasons

def answer_skipped_reasons() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::Answer::AnswerSkippedReason>
Returns

#answer_skipped_reasons=

def answer_skipped_reasons=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::Answer::AnswerSkippedReason>
Parameter
Returns

#answer_text

def answer_text() -> ::String
Returns
  • (::String) — The textual answer.

#answer_text=

def answer_text=(value) -> ::String
Parameter
  • value (::String) — The textual answer.
Returns
  • (::String) — The textual answer.

#citations

def citations() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::Answer::Citation>
Returns

#citations=

def citations=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::Answer::Citation>
Parameter
Returns

#complete_time

def complete_time() -> ::Google::Protobuf::Timestamp
Returns

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#name

def name() -> ::String
Returns
  • (::String) — Immutable. Fully qualified name projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Immutable. Fully qualified name projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*
Returns
  • (::String) — Immutable. Fully qualified name projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*

#query_understanding_info

def query_understanding_info() -> ::Google::Cloud::DiscoveryEngine::V1::Answer::QueryUnderstandingInfo
Returns

#query_understanding_info=

def query_understanding_info=(value) -> ::Google::Cloud::DiscoveryEngine::V1::Answer::QueryUnderstandingInfo
Parameter
Returns

#references

def references() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::Answer::Reference>
Returns

#references=

def references=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::Answer::Reference>
Parameter
Returns
def related_questions() -> ::Array<::String>
Returns
  • (::Array<::String>) — Suggested related questions.
def related_questions=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Suggested related questions.
Returns
  • (::Array<::String>) — Suggested related questions.

#state

def state() -> ::Google::Cloud::DiscoveryEngine::V1::Answer::State
Returns

#state=

def state=(value) -> ::Google::Cloud::DiscoveryEngine::V1::Answer::State
Parameter
Returns

#steps

def steps() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::Answer::Step>
Returns

#steps=

def steps=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::Answer::Step>
Parameter
Returns