Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::Answer (v0.13.0)

Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::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::V1beta::Answer::AnswerSkippedReason>
Returns

#answer_skipped_reasons=

def answer_skipped_reasons=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1beta::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::V1beta::Answer::Citation>

#citations=

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

#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::V1beta::Answer::QueryUnderstandingInfo
Returns

#query_understanding_info=

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

#references

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

#references=

def references=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1beta::Answer::Reference>
Parameter
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::V1beta::Answer::State
Returns

#state=

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

#steps

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

#steps=

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