public static final class KnowledgeAssistAnswer.KnowledgeAnswer.Builder extends GeneratedMessageV3.Builder<KnowledgeAssistAnswer.KnowledgeAnswer.Builder> 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.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public KnowledgeAssistAnswer.KnowledgeAnswer build()
buildPartial()
public KnowledgeAssistAnswer.KnowledgeAnswer buildPartial()
clear()
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder clear()
Overrides
clearAnswerText()
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder clearAnswerText()
The piece of text from the source
that answers this suggested query.
string answer_text = 1;
clearFaqSource()
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder clearFaqSource()
Populated if the prediction came from FAQ.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3;
clearField(Descriptors.FieldDescriptor field)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearGenerativeSource()
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder clearGenerativeSource()
Populated if the prediction was Generative.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4;
clearOneof(Descriptors.OneofDescriptor oneof)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSource()
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder clearSource()
clone()
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getFaqSource()
public KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource getFaqSource()
Populated if the prediction came from FAQ.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3;
getFaqSourceBuilder()
public KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.Builder getFaqSourceBuilder()
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;
getGenerativeSourceBuilder()
public KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder getGenerativeSourceBuilder()
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;
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFaqSource(KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource value)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder mergeFaqSource(KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource value)
Populated if the prediction came from FAQ.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3;
mergeFrom(KnowledgeAssistAnswer.KnowledgeAnswer other)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder mergeFrom(KnowledgeAssistAnswer.KnowledgeAnswer other)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeGenerativeSource(KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource value)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder mergeGenerativeSource(KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource value)
Populated if the prediction was Generative.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final KnowledgeAssistAnswer.KnowledgeAnswer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAnswerText(String value)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder setAnswerText(String value)
The piece of text from the source
that answers this suggested query.
string answer_text = 1;
Parameter |
Name |
Description |
value |
String
The answerText to set.
|
setAnswerTextBytes(ByteString value)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder setAnswerTextBytes(ByteString value)
The piece of text from the source
that answers this suggested query.
string answer_text = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for answerText to set.
|
setFaqSource(KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource value)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder setFaqSource(KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource value)
Populated if the prediction came from FAQ.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3;
setFaqSource(KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.Builder builderForValue)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder setFaqSource(KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.Builder builderForValue)
Populated if the prediction came from FAQ.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3;
setField(Descriptors.FieldDescriptor field, Object value)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setGenerativeSource(KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource value)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder setGenerativeSource(KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource value)
Populated if the prediction was Generative.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4;
setGenerativeSource(KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder builderForValue)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder setGenerativeSource(KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Builder builderForValue)
Populated if the prediction was Generative.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public KnowledgeAssistAnswer.KnowledgeAnswer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final KnowledgeAssistAnswer.KnowledgeAnswer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides