Interface AnswerOrBuilder (0.40.0)

public interface AnswerOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAnswerSkippedReasons(int index)

public abstract Answer.AnswerSkippedReason getAnswerSkippedReasons(int index)

Additional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.

repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
Answer.AnswerSkippedReason

The answerSkippedReasons at the given index.

getAnswerSkippedReasonsCount()

public abstract int getAnswerSkippedReasonsCount()

Additional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.

repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11;

Returns
Type Description
int

The count of answerSkippedReasons.

getAnswerSkippedReasonsList()

public abstract List<Answer.AnswerSkippedReason> getAnswerSkippedReasonsList()

Additional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.

repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11;

Returns
Type Description
List<AnswerSkippedReason>

A list containing the answerSkippedReasons.

getAnswerSkippedReasonsValue(int index)

public abstract int getAnswerSkippedReasonsValue(int index)

Additional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.

repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of answerSkippedReasons at the given index.

getAnswerSkippedReasonsValueList()

public abstract List<Integer> getAnswerSkippedReasonsValueList()

Additional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.

repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for answerSkippedReasons.

getAnswerText()

public abstract String getAnswerText()

The textual answer.

string answer_text = 3;

Returns
Type Description
String

The answerText.

getAnswerTextBytes()

public abstract ByteString getAnswerTextBytes()

The textual answer.

string answer_text = 3;

Returns
Type Description
ByteString

The bytes for answerText.

getCitations(int index)

public abstract Answer.Citation getCitations(int index)

Citations.

repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4;

Parameter
Name Description
index int
Returns
Type Description
Answer.Citation

getCitationsCount()

public abstract int getCitationsCount()

Citations.

repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4;

Returns
Type Description
int

getCitationsList()

public abstract List<Answer.Citation> getCitationsList()

Citations.

repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4;

Returns
Type Description
List<Citation>

getCitationsOrBuilder(int index)

public abstract Answer.CitationOrBuilder getCitationsOrBuilder(int index)

Citations.

repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4;

Parameter
Name Description
index int
Returns
Type Description
Answer.CitationOrBuilder

getCitationsOrBuilderList()

public abstract List<? extends Answer.CitationOrBuilder> getCitationsOrBuilderList()

Citations.

repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder>

getCompleteTime()

public abstract Timestamp getCompleteTime()

Output only. Answer completed timestamp.

.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The completeTime.

getCompleteTimeOrBuilder()

public abstract TimestampOrBuilder getCompleteTimeOrBuilder()

Output only. Answer completed timestamp.

.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. Answer creation timestamp.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Answer creation timestamp.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getName()

public abstract String getName()

Immutable. Fully qualified name project/*/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Immutable. Fully qualified name project/*/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for name.

getQueryUnderstandingInfo()

public abstract Answer.QueryUnderstandingInfo getQueryUnderstandingInfo()

Query understanding information.

.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10;

Returns
Type Description
Answer.QueryUnderstandingInfo

The queryUnderstandingInfo.

getQueryUnderstandingInfoOrBuilder()

public abstract Answer.QueryUnderstandingInfoOrBuilder getQueryUnderstandingInfoOrBuilder()

Query understanding information.

.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10;

Returns
Type Description
Answer.QueryUnderstandingInfoOrBuilder

getReferences(int index)

public abstract Answer.Reference getReferences(int index)

References.

repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5;

Parameter
Name Description
index int
Returns
Type Description
Answer.Reference

getReferencesCount()

public abstract int getReferencesCount()

References.

repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5;

Returns
Type Description
int

getReferencesList()

public abstract List<Answer.Reference> getReferencesList()

References.

repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5;

Returns
Type Description
List<Reference>

getReferencesOrBuilder(int index)

public abstract Answer.ReferenceOrBuilder getReferencesOrBuilder(int index)

References.

repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5;

Parameter
Name Description
index int
Returns
Type Description
Answer.ReferenceOrBuilder

getReferencesOrBuilderList()

public abstract List<? extends Answer.ReferenceOrBuilder> getReferencesOrBuilderList()

References.

repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder>

getRelatedQuestions(int index)

public abstract String getRelatedQuestions(int index)

Suggested related questions.

repeated string related_questions = 6;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The relatedQuestions at the given index.

getRelatedQuestionsBytes(int index)

public abstract ByteString getRelatedQuestionsBytes(int index)

Suggested related questions.

repeated string related_questions = 6;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the relatedQuestions at the given index.

getRelatedQuestionsCount()

public abstract int getRelatedQuestionsCount()

Suggested related questions.

repeated string related_questions = 6;

Returns
Type Description
int

The count of relatedQuestions.

getRelatedQuestionsList()

public abstract List<String> getRelatedQuestionsList()

Suggested related questions.

repeated string related_questions = 6;

Returns
Type Description
List<String>

A list containing the relatedQuestions.

getState()

public abstract Answer.State getState()

The state of the answer generation.

.google.cloud.discoveryengine.v1beta.Answer.State state = 2;

Returns
Type Description
Answer.State

The state.

getStateValue()

public abstract int getStateValue()

The state of the answer generation.

.google.cloud.discoveryengine.v1beta.Answer.State state = 2;

Returns
Type Description
int

The enum numeric value on the wire for state.

getSteps(int index)

public abstract Answer.Step getSteps(int index)

Answer generation steps.

repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7;

Parameter
Name Description
index int
Returns
Type Description
Answer.Step

getStepsCount()

public abstract int getStepsCount()

Answer generation steps.

repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7;

Returns
Type Description
int

getStepsList()

public abstract List<Answer.Step> getStepsList()

Answer generation steps.

repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7;

Returns
Type Description
List<Step>

getStepsOrBuilder(int index)

public abstract Answer.StepOrBuilder getStepsOrBuilder(int index)

Answer generation steps.

repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7;

Parameter
Name Description
index int
Returns
Type Description
Answer.StepOrBuilder

getStepsOrBuilderList()

public abstract List<? extends Answer.StepOrBuilder> getStepsOrBuilderList()

Answer generation steps.

repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.Answer.StepOrBuilder>

hasCompleteTime()

public abstract boolean hasCompleteTime()

Output only. Answer completed timestamp.

.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the completeTime field is set.

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. Answer creation timestamp.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasQueryUnderstandingInfo()

public abstract boolean hasQueryUnderstandingInfo()

Query understanding information.

.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10;

Returns
Type Description
boolean

Whether the queryUnderstandingInfo field is set.