public static final class KnowledgeAssistAnswer.KnowledgeAnswer extends GeneratedMessageV3 implements KnowledgeAssistAnswer.KnowledgeAnswerOrBuilder
Represents an answer from Knowledge. Currently supports FAQ and Generative
answers.
Protobuf type google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ANSWER_TEXT_FIELD_NUMBER
public static final int ANSWER_TEXT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
FAQ_SOURCE_FIELD_NUMBER
public static final int FAQ_SOURCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
GENERATIVE_SOURCE_FIELD_NUMBER
public static final int GENERATIVE_SOURCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static KnowledgeAssistAnswer.KnowledgeAnswer getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static KnowledgeAssistAnswer.KnowledgeAnswer.Builder newBuilder()
newBuilder(KnowledgeAssistAnswer.KnowledgeAnswer prototype)
public static KnowledgeAssistAnswer.KnowledgeAnswer.Builder newBuilder(KnowledgeAssistAnswer.KnowledgeAnswer prototype)
public static KnowledgeAssistAnswer.KnowledgeAnswer parseDelimitedFrom(InputStream input)
public static KnowledgeAssistAnswer.KnowledgeAnswer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static KnowledgeAssistAnswer.KnowledgeAnswer parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistAnswer.KnowledgeAnswer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static KnowledgeAssistAnswer.KnowledgeAnswer parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistAnswer.KnowledgeAnswer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistAnswer.KnowledgeAnswer parseFrom(CodedInputStream input)
public static KnowledgeAssistAnswer.KnowledgeAnswer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistAnswer.KnowledgeAnswer parseFrom(InputStream input)
public static KnowledgeAssistAnswer.KnowledgeAnswer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static KnowledgeAssistAnswer.KnowledgeAnswer parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistAnswer.KnowledgeAnswer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<KnowledgeAssistAnswer.KnowledgeAnswer> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getAnswerText()
public String getAnswerText()
The piece of text from the source
that answers this suggested query.
string answer_text = 1;
Returns |
Type |
Description |
String |
The answerText.
|
getAnswerTextBytes()
public ByteString getAnswerTextBytes()
The piece of text from the source
that answers this suggested query.
string answer_text = 1;
Returns |
Type |
Description |
ByteString |
The bytes for answerText.
|
getDefaultInstanceForType()
public KnowledgeAssistAnswer.KnowledgeAnswer getDefaultInstanceForType()
getFaqSource()
public KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource getFaqSource()
Populated if the prediction came from FAQ.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3;
getFaqSourceOrBuilder()
public KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder getFaqSourceOrBuilder()
Populated if the prediction came from FAQ.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3;
getGenerativeSource()
public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource getGenerativeSource()
Populated if the prediction was Generative.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4;
getGenerativeSourceOrBuilder()
public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceOrBuilder getGenerativeSourceOrBuilder()
Populated if the prediction was Generative.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4;
getParserForType()
public Parser<KnowledgeAssistAnswer.KnowledgeAnswer> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getSourceCase()
public KnowledgeAssistAnswer.KnowledgeAnswer.SourceCase getSourceCase()
hasFaqSource()
public boolean hasFaqSource()
Populated if the prediction came from FAQ.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3;
Returns |
Type |
Description |
boolean |
Whether the faqSource field is set.
|
hasGenerativeSource()
public boolean hasGenerativeSource()
Populated if the prediction was Generative.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4;
Returns |
Type |
Description |
boolean |
Whether the generativeSource field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected KnowledgeAssistAnswer.KnowledgeAnswer.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides