Class Answer
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.Answer
- All Implemented Interfaces:
AnswerOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Answer
extends com.google.protobuf.GeneratedMessage
implements AnswerOrBuilder
Defines an answer.Protobuf type
google.cloud.discoveryengine.v1beta.Answer- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAn enum for answer skipped reasons.static final classDefines an answer.static final classCitation info for a segment.static interfacestatic final classCitation source.static interfacestatic final classQuery understanding information.static interfacestatic final classReference.static interfacestatic enumEnumeration of the state of the answer generation.static final classStep information.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAnswerSkippedReasons(int index) Additional answer-skipped reasons.intAdditional answer-skipped reasons.Additional answer-skipped reasons.intgetAnswerSkippedReasonsValue(int index) Additional answer-skipped reasons.Additional answer-skipped reasons.The textual answer.com.google.protobuf.ByteStringThe textual answer.getCitations(int index) Citations.intCitations.Citations.getCitationsOrBuilder(int index) Citations.List<? extends Answer.CitationOrBuilder>Citations.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static Answerstatic final com.google.protobuf.Descriptors.DescriptorgetName()Immutable.com.google.protobuf.ByteStringImmutable.com.google.protobuf.Parser<Answer>Query understanding information.Query understanding information.getReferences(int index) References.intReferences.References.getReferencesOrBuilder(int index) References.List<? extends Answer.ReferenceOrBuilder>References.getRelatedQuestions(int index) Suggested related questions.com.google.protobuf.ByteStringgetRelatedQuestionsBytes(int index) Suggested related questions.intSuggested related questions.com.google.protobuf.ProtocolStringListSuggested related questions.intgetState()The state of the answer generation.intThe state of the answer generation.getSteps(int index) Answer generation steps.intAnswer generation steps.Answer generation steps.getStepsOrBuilder(int index) Answer generation steps.List<? extends Answer.StepOrBuilder>Answer generation steps.booleanOutput only.booleanOutput only.inthashCode()booleanQuery understanding information.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Answer.Builderstatic Answer.BuildernewBuilder(Answer prototype) protected Answer.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AnswerparseDelimitedFrom(InputStream input) static AnswerparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnswerparseFrom(byte[] data) static AnswerparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnswerparseFrom(com.google.protobuf.ByteString data) static AnswerparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnswerparseFrom(com.google.protobuf.CodedInputStream input) static AnswerparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnswerparseFrom(InputStream input) static AnswerparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnswerparseFrom(ByteBuffer data) static AnswerparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Answer>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
ANSWER_TEXT_FIELD_NUMBER
public static final int ANSWER_TEXT_FIELD_NUMBER- See Also:
-
CITATIONS_FIELD_NUMBER
public static final int CITATIONS_FIELD_NUMBER- See Also:
-
REFERENCES_FIELD_NUMBER
public static final int REFERENCES_FIELD_NUMBER- See Also:
-
RELATED_QUESTIONS_FIELD_NUMBER
public static final int RELATED_QUESTIONS_FIELD_NUMBER- See Also:
-
STEPS_FIELD_NUMBER
public static final int STEPS_FIELD_NUMBER- See Also:
-
QUERY_UNDERSTANDING_INFO_FIELD_NUMBER
public static final int QUERY_UNDERSTANDING_INFO_FIELD_NUMBER- See Also:
-
ANSWER_SKIPPED_REASONS_FIELD_NUMBER
public static final int ANSWER_SKIPPED_REASONS_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
COMPLETE_TIME_FIELD_NUMBER
public static final int COMPLETE_TIME_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
Immutable. Fully qualified name `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNamein interfaceAnswerOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceAnswerOrBuilder- Returns:
- The bytes for name.
-
getStateValue
public int getStateValue()The state of the answer generation.
.google.cloud.discoveryengine.v1beta.Answer.State state = 2;- Specified by:
getStateValuein interfaceAnswerOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
The state of the answer generation.
.google.cloud.discoveryengine.v1beta.Answer.State state = 2;- Specified by:
getStatein interfaceAnswerOrBuilder- Returns:
- The state.
-
getAnswerText
The textual answer.
string answer_text = 3;- Specified by:
getAnswerTextin interfaceAnswerOrBuilder- Returns:
- The answerText.
-
getAnswerTextBytes
public com.google.protobuf.ByteString getAnswerTextBytes()The textual answer.
string answer_text = 3;- Specified by:
getAnswerTextBytesin interfaceAnswerOrBuilder- Returns:
- The bytes for answerText.
-
getCitationsList
Citations.
repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4;- Specified by:
getCitationsListin interfaceAnswerOrBuilder
-
getCitationsOrBuilderList
Citations.
repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4;- Specified by:
getCitationsOrBuilderListin interfaceAnswerOrBuilder
-
getCitationsCount
public int getCitationsCount()Citations.
repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4;- Specified by:
getCitationsCountin interfaceAnswerOrBuilder
-
getCitations
Citations.
repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4;- Specified by:
getCitationsin interfaceAnswerOrBuilder
-
getCitationsOrBuilder
Citations.
repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4;- Specified by:
getCitationsOrBuilderin interfaceAnswerOrBuilder
-
getReferencesList
References.
repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5;- Specified by:
getReferencesListin interfaceAnswerOrBuilder
-
getReferencesOrBuilderList
References.
repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5;- Specified by:
getReferencesOrBuilderListin interfaceAnswerOrBuilder
-
getReferencesCount
public int getReferencesCount()References.
repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5;- Specified by:
getReferencesCountin interfaceAnswerOrBuilder
-
getReferences
References.
repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5;- Specified by:
getReferencesin interfaceAnswerOrBuilder
-
getReferencesOrBuilder
References.
repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5;- Specified by:
getReferencesOrBuilderin interfaceAnswerOrBuilder
-
getRelatedQuestionsList
public com.google.protobuf.ProtocolStringList getRelatedQuestionsList()Suggested related questions.
repeated string related_questions = 6;- Specified by:
getRelatedQuestionsListin interfaceAnswerOrBuilder- Returns:
- A list containing the relatedQuestions.
-
getRelatedQuestionsCount
public int getRelatedQuestionsCount()Suggested related questions.
repeated string related_questions = 6;- Specified by:
getRelatedQuestionsCountin interfaceAnswerOrBuilder- Returns:
- The count of relatedQuestions.
-
getRelatedQuestions
Suggested related questions.
repeated string related_questions = 6;- Specified by:
getRelatedQuestionsin interfaceAnswerOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The relatedQuestions at the given index.
-
getRelatedQuestionsBytes
public com.google.protobuf.ByteString getRelatedQuestionsBytes(int index) Suggested related questions.
repeated string related_questions = 6;- Specified by:
getRelatedQuestionsBytesin interfaceAnswerOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the relatedQuestions at the given index.
-
getStepsList
Answer generation steps.
repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7;- Specified by:
getStepsListin interfaceAnswerOrBuilder
-
getStepsOrBuilderList
Answer generation steps.
repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7;- Specified by:
getStepsOrBuilderListin interfaceAnswerOrBuilder
-
getStepsCount
public int getStepsCount()Answer generation steps.
repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7;- Specified by:
getStepsCountin interfaceAnswerOrBuilder
-
getSteps
Answer generation steps.
repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7;- Specified by:
getStepsin interfaceAnswerOrBuilder
-
getStepsOrBuilder
Answer generation steps.
repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7;- Specified by:
getStepsOrBuilderin interfaceAnswerOrBuilder
-
hasQueryUnderstandingInfo
public boolean hasQueryUnderstandingInfo()Query understanding information.
.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10;- Specified by:
hasQueryUnderstandingInfoin interfaceAnswerOrBuilder- Returns:
- Whether the queryUnderstandingInfo field is set.
-
getQueryUnderstandingInfo
Query understanding information.
.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10;- Specified by:
getQueryUnderstandingInfoin interfaceAnswerOrBuilder- Returns:
- The queryUnderstandingInfo.
-
getQueryUnderstandingInfoOrBuilder
Query understanding information.
.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10;- Specified by:
getQueryUnderstandingInfoOrBuilderin interfaceAnswerOrBuilder
-
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;- Specified by:
getAnswerSkippedReasonsListin interfaceAnswerOrBuilder- Returns:
- A list containing the answerSkippedReasons.
-
getAnswerSkippedReasonsCount
public 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;- Specified by:
getAnswerSkippedReasonsCountin interfaceAnswerOrBuilder- Returns:
- The count of answerSkippedReasons.
-
getAnswerSkippedReasons
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;- Specified by:
getAnswerSkippedReasonsin interfaceAnswerOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The answerSkippedReasons at the given index.
-
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;- Specified by:
getAnswerSkippedReasonsValueListin interfaceAnswerOrBuilder- Returns:
- A list containing the enum numeric values on the wire for answerSkippedReasons.
-
getAnswerSkippedReasonsValue
public 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;- Specified by:
getAnswerSkippedReasonsValuein interfaceAnswerOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of answerSkippedReasons at the given index.
-
hasCreateTime
public boolean hasCreateTime()Output only. Answer creation timestamp.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceAnswerOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Answer creation timestamp.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceAnswerOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Answer creation timestamp.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceAnswerOrBuilder
-
hasCompleteTime
public boolean hasCompleteTime()Output only. Answer completed timestamp.
.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCompleteTimein interfaceAnswerOrBuilder- Returns:
- Whether the completeTime field is set.
-
getCompleteTime
public com.google.protobuf.Timestamp getCompleteTime()Output only. Answer completed timestamp.
.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCompleteTimein interfaceAnswerOrBuilder- Returns:
- The completeTime.
-
getCompleteTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder()Output only. Answer completed timestamp.
.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCompleteTimeOrBuilderin interfaceAnswerOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Answer parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Answer parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Answer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Answer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Answer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Answer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Answer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Answer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Answer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Answer.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-