public final class Answer extends com.google.protobuf.GeneratedMessageV3 implements AnswerOrBuilder
Defines an answer.Protobuf type
google.cloud.discoveryengine.v1alpha.Answer| Modifier and Type | Class and Description |
|---|---|
static class |
Answer.AnswerSkippedReason
An enum for answer skipped reasons.
|
static class |
Answer.Builder
Defines an answer.
|
static class |
Answer.Citation
Citation info for a segment.
|
static interface |
Answer.CitationOrBuilder |
static class |
Answer.CitationSource
Citation source.
|
static interface |
Answer.CitationSourceOrBuilder |
static class |
Answer.QueryUnderstandingInfo
Query understanding information.
|
static interface |
Answer.QueryUnderstandingInfoOrBuilder |
static class |
Answer.Reference
Reference.
|
static interface |
Answer.ReferenceOrBuilder |
static class |
Answer.State
Enumeration of the state of the answer generation.
|
static class |
Answer.Step
Step information.
|
static interface |
Answer.StepOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ANSWER_SKIPPED_REASONS_FIELD_NUMBER |
static int |
ANSWER_TEXT_FIELD_NUMBER |
static int |
CITATIONS_FIELD_NUMBER |
static int |
COMPLETE_TIME_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
QUERY_UNDERSTANDING_INFO_FIELD_NUMBER |
static int |
REFERENCES_FIELD_NUMBER |
static int |
RELATED_QUESTIONS_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
static int |
STEPS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Answer.AnswerSkippedReason |
getAnswerSkippedReasons(int index)
Additional answer-skipped reasons.
|
int |
getAnswerSkippedReasonsCount()
Additional answer-skipped reasons.
|
List<Answer.AnswerSkippedReason> |
getAnswerSkippedReasonsList()
Additional answer-skipped reasons.
|
int |
getAnswerSkippedReasonsValue(int index)
Additional answer-skipped reasons.
|
List<Integer> |
getAnswerSkippedReasonsValueList()
Additional answer-skipped reasons.
|
String |
getAnswerText()
The textual answer.
|
com.google.protobuf.ByteString |
getAnswerTextBytes()
The textual answer.
|
Answer.Citation |
getCitations(int index)
Citations.
|
int |
getCitationsCount()
Citations.
|
List<Answer.Citation> |
getCitationsList()
Citations.
|
Answer.CitationOrBuilder |
getCitationsOrBuilder(int index)
Citations.
|
List<? extends Answer.CitationOrBuilder> |
getCitationsOrBuilderList()
Citations.
|
com.google.protobuf.Timestamp |
getCompleteTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCompleteTimeOrBuilder()
Output only.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
static Answer |
getDefaultInstance() |
Answer |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getName()
Immutable.
|
com.google.protobuf.ByteString |
getNameBytes()
Immutable.
|
com.google.protobuf.Parser<Answer> |
getParserForType() |
Answer.QueryUnderstandingInfo |
getQueryUnderstandingInfo()
Query understanding information.
|
Answer.QueryUnderstandingInfoOrBuilder |
getQueryUnderstandingInfoOrBuilder()
Query understanding information.
|
Answer.Reference |
getReferences(int index)
References.
|
int |
getReferencesCount()
References.
|
List<Answer.Reference> |
getReferencesList()
References.
|
Answer.ReferenceOrBuilder |
getReferencesOrBuilder(int index)
References.
|
List<? extends Answer.ReferenceOrBuilder> |
getReferencesOrBuilderList()
References.
|
String |
getRelatedQuestions(int index)
Suggested related questions.
|
com.google.protobuf.ByteString |
getRelatedQuestionsBytes(int index)
Suggested related questions.
|
int |
getRelatedQuestionsCount()
Suggested related questions.
|
com.google.protobuf.ProtocolStringList |
getRelatedQuestionsList()
Suggested related questions.
|
int |
getSerializedSize() |
Answer.State |
getState()
The state of the answer generation.
|
int |
getStateValue()
The state of the answer generation.
|
Answer.Step |
getSteps(int index)
Answer generation steps.
|
int |
getStepsCount()
Answer generation steps.
|
List<Answer.Step> |
getStepsList()
Answer generation steps.
|
Answer.StepOrBuilder |
getStepsOrBuilder(int index)
Answer generation steps.
|
List<? extends Answer.StepOrBuilder> |
getStepsOrBuilderList()
Answer generation steps.
|
boolean |
hasCompleteTime()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
int |
hashCode() |
boolean |
hasQueryUnderstandingInfo()
Query understanding information.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Answer.Builder |
newBuilder() |
static Answer.Builder |
newBuilder(Answer prototype) |
Answer.Builder |
newBuilderForType() |
protected Answer.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Answer |
parseDelimitedFrom(InputStream input) |
static Answer |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Answer |
parseFrom(byte[] data) |
static Answer |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Answer |
parseFrom(ByteBuffer data) |
static Answer |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Answer |
parseFrom(com.google.protobuf.ByteString data) |
static Answer |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Answer |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Answer |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Answer |
parseFrom(InputStream input) |
static Answer |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Answer> |
parser() |
Answer.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int ANSWER_TEXT_FIELD_NUMBER
public static final int CITATIONS_FIELD_NUMBER
public static final int REFERENCES_FIELD_NUMBER
public static final int RELATED_QUESTIONS_FIELD_NUMBER
public static final int STEPS_FIELD_NUMBER
public static final int QUERY_UNDERSTANDING_INFO_FIELD_NUMBER
public static final int ANSWER_SKIPPED_REASONS_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int COMPLETE_TIME_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Immutable. Fully qualified name
`projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];getName in interface AnswerOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Immutable. Fully qualified name
`projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];getNameBytes in interface AnswerOrBuilderpublic int getStateValue()
The state of the answer generation.
.google.cloud.discoveryengine.v1alpha.Answer.State state = 2;getStateValue in interface AnswerOrBuilderpublic Answer.State getState()
The state of the answer generation.
.google.cloud.discoveryengine.v1alpha.Answer.State state = 2;getState in interface AnswerOrBuilderpublic String getAnswerText()
The textual answer.
string answer_text = 3;getAnswerText in interface AnswerOrBuilderpublic com.google.protobuf.ByteString getAnswerTextBytes()
The textual answer.
string answer_text = 3;getAnswerTextBytes in interface AnswerOrBuilderpublic List<Answer.Citation> getCitationsList()
Citations.
repeated .google.cloud.discoveryengine.v1alpha.Answer.Citation citations = 4;getCitationsList in interface AnswerOrBuilderpublic List<? extends Answer.CitationOrBuilder> getCitationsOrBuilderList()
Citations.
repeated .google.cloud.discoveryengine.v1alpha.Answer.Citation citations = 4;getCitationsOrBuilderList in interface AnswerOrBuilderpublic int getCitationsCount()
Citations.
repeated .google.cloud.discoveryengine.v1alpha.Answer.Citation citations = 4;getCitationsCount in interface AnswerOrBuilderpublic Answer.Citation getCitations(int index)
Citations.
repeated .google.cloud.discoveryengine.v1alpha.Answer.Citation citations = 4;getCitations in interface AnswerOrBuilderpublic Answer.CitationOrBuilder getCitationsOrBuilder(int index)
Citations.
repeated .google.cloud.discoveryengine.v1alpha.Answer.Citation citations = 4;getCitationsOrBuilder in interface AnswerOrBuilderpublic List<Answer.Reference> getReferencesList()
References.
repeated .google.cloud.discoveryengine.v1alpha.Answer.Reference references = 5;getReferencesList in interface AnswerOrBuilderpublic List<? extends Answer.ReferenceOrBuilder> getReferencesOrBuilderList()
References.
repeated .google.cloud.discoveryengine.v1alpha.Answer.Reference references = 5;getReferencesOrBuilderList in interface AnswerOrBuilderpublic int getReferencesCount()
References.
repeated .google.cloud.discoveryengine.v1alpha.Answer.Reference references = 5;getReferencesCount in interface AnswerOrBuilderpublic Answer.Reference getReferences(int index)
References.
repeated .google.cloud.discoveryengine.v1alpha.Answer.Reference references = 5;getReferences in interface AnswerOrBuilderpublic Answer.ReferenceOrBuilder getReferencesOrBuilder(int index)
References.
repeated .google.cloud.discoveryengine.v1alpha.Answer.Reference references = 5;getReferencesOrBuilder in interface AnswerOrBuilderpublic com.google.protobuf.ProtocolStringList getRelatedQuestionsList()
Suggested related questions.
repeated string related_questions = 6;getRelatedQuestionsList in interface AnswerOrBuilderpublic int getRelatedQuestionsCount()
Suggested related questions.
repeated string related_questions = 6;getRelatedQuestionsCount in interface AnswerOrBuilderpublic String getRelatedQuestions(int index)
Suggested related questions.
repeated string related_questions = 6;getRelatedQuestions in interface AnswerOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getRelatedQuestionsBytes(int index)
Suggested related questions.
repeated string related_questions = 6;getRelatedQuestionsBytes in interface AnswerOrBuilderindex - The index of the value to return.public List<Answer.Step> getStepsList()
Answer generation steps.
repeated .google.cloud.discoveryengine.v1alpha.Answer.Step steps = 7;getStepsList in interface AnswerOrBuilderpublic List<? extends Answer.StepOrBuilder> getStepsOrBuilderList()
Answer generation steps.
repeated .google.cloud.discoveryengine.v1alpha.Answer.Step steps = 7;getStepsOrBuilderList in interface AnswerOrBuilderpublic int getStepsCount()
Answer generation steps.
repeated .google.cloud.discoveryengine.v1alpha.Answer.Step steps = 7;getStepsCount in interface AnswerOrBuilderpublic Answer.Step getSteps(int index)
Answer generation steps.
repeated .google.cloud.discoveryengine.v1alpha.Answer.Step steps = 7;getSteps in interface AnswerOrBuilderpublic Answer.StepOrBuilder getStepsOrBuilder(int index)
Answer generation steps.
repeated .google.cloud.discoveryengine.v1alpha.Answer.Step steps = 7;getStepsOrBuilder in interface AnswerOrBuilderpublic boolean hasQueryUnderstandingInfo()
Query understanding information.
.google.cloud.discoveryengine.v1alpha.Answer.QueryUnderstandingInfo query_understanding_info = 10;
hasQueryUnderstandingInfo in interface AnswerOrBuilderpublic Answer.QueryUnderstandingInfo getQueryUnderstandingInfo()
Query understanding information.
.google.cloud.discoveryengine.v1alpha.Answer.QueryUnderstandingInfo query_understanding_info = 10;
getQueryUnderstandingInfo in interface AnswerOrBuilderpublic Answer.QueryUnderstandingInfoOrBuilder getQueryUnderstandingInfoOrBuilder()
Query understanding information.
.google.cloud.discoveryengine.v1alpha.Answer.QueryUnderstandingInfo query_understanding_info = 10;
getQueryUnderstandingInfoOrBuilder in interface AnswerOrBuilderpublic 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.v1alpha.Answer.AnswerSkippedReason answer_skipped_reasons = 11;
getAnswerSkippedReasonsList in interface AnswerOrBuilderpublic 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.v1alpha.Answer.AnswerSkippedReason answer_skipped_reasons = 11;
getAnswerSkippedReasonsCount in interface AnswerOrBuilderpublic 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.v1alpha.Answer.AnswerSkippedReason answer_skipped_reasons = 11;
getAnswerSkippedReasons in interface AnswerOrBuilderindex - The index of the element to return.public 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.v1alpha.Answer.AnswerSkippedReason answer_skipped_reasons = 11;
getAnswerSkippedReasonsValueList in interface AnswerOrBuilderpublic 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.v1alpha.Answer.AnswerSkippedReason answer_skipped_reasons = 11;
getAnswerSkippedReasonsValue in interface AnswerOrBuilderindex - The index of the value to return.public boolean hasCreateTime()
Output only. Answer creation timestamp.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface AnswerOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. Answer creation timestamp.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface AnswerOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Answer creation timestamp.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface AnswerOrBuilderpublic boolean hasCompleteTime()
Output only. Answer completed timestamp.
.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCompleteTime in interface AnswerOrBuilderpublic com.google.protobuf.Timestamp getCompleteTime()
Output only. Answer completed timestamp.
.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCompleteTime in interface AnswerOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder()
Output only. Answer completed timestamp.
.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCompleteTimeOrBuilder in interface AnswerOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Answer parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Answer parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Answer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Answer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Answer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Answer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Answer parseFrom(InputStream input) throws IOException
IOExceptionpublic static Answer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Answer parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Answer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Answer parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Answer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Answer.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Answer.Builder newBuilder()
public static Answer.Builder newBuilder(Answer prototype)
public Answer.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Answer.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Answer getDefaultInstance()
public static com.google.protobuf.Parser<Answer> parser()
public com.google.protobuf.Parser<Answer> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Answer getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.