public final class KnowledgeAssistAnswer extends GeneratedMessageV3 implements KnowledgeAssistAnswerOrBuilder
Represents a Knowledge Assist answer.
Protobuf type google.cloud.dialogflow.v2.KnowledgeAssistAnswer
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_RECORD_FIELD_NUMBER
public static final int ANSWER_RECORD_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SUGGESTED_QUERY_ANSWER_FIELD_NUMBER
public static final int SUGGESTED_QUERY_ANSWER_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SUGGESTED_QUERY_FIELD_NUMBER
public static final int SUGGESTED_QUERY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static KnowledgeAssistAnswer getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static KnowledgeAssistAnswer.Builder newBuilder()
newBuilder(KnowledgeAssistAnswer prototype)
public static KnowledgeAssistAnswer.Builder newBuilder(KnowledgeAssistAnswer prototype)
public static KnowledgeAssistAnswer parseDelimitedFrom(InputStream input)
public static KnowledgeAssistAnswer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static KnowledgeAssistAnswer parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistAnswer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static KnowledgeAssistAnswer parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistAnswer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistAnswer parseFrom(CodedInputStream input)
public static KnowledgeAssistAnswer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistAnswer parseFrom(InputStream input)
public static KnowledgeAssistAnswer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static KnowledgeAssistAnswer parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistAnswer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<KnowledgeAssistAnswer> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getAnswerRecord()
public String getAnswerRecord()
The name of the answer record.
Format: projects/<Project ID>/locations/<location ID>/answer
Records/<Answer Record ID>
.
string answer_record = 3;
Returns |
Type |
Description |
String |
The answerRecord.
|
getAnswerRecordBytes()
public ByteString getAnswerRecordBytes()
The name of the answer record.
Format: projects/<Project ID>/locations/<location ID>/answer
Records/<Answer Record ID>
.
string answer_record = 3;
Returns |
Type |
Description |
ByteString |
The bytes for answerRecord.
|
getDefaultInstanceForType()
public KnowledgeAssistAnswer getDefaultInstanceForType()
getParserForType()
public Parser<KnowledgeAssistAnswer> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getSuggestedQuery()
public KnowledgeAssistAnswer.SuggestedQuery getSuggestedQuery()
The query suggested based on the context. Suggestion is made only if it
is different from the previous suggestion.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1;
getSuggestedQueryAnswer()
public KnowledgeAssistAnswer.KnowledgeAnswer getSuggestedQueryAnswer()
The answer generated for the suggested query. Whether or not an answer is
generated depends on how confident we are about the generated query.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer suggested_query_answer = 2;
getSuggestedQueryAnswerOrBuilder()
public KnowledgeAssistAnswer.KnowledgeAnswerOrBuilder getSuggestedQueryAnswerOrBuilder()
The answer generated for the suggested query. Whether or not an answer is
generated depends on how confident we are about the generated query.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer suggested_query_answer = 2;
getSuggestedQueryOrBuilder()
public KnowledgeAssistAnswer.SuggestedQueryOrBuilder getSuggestedQueryOrBuilder()
The query suggested based on the context. Suggestion is made only if it
is different from the previous suggestion.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1;
hasSuggestedQuery()
public boolean hasSuggestedQuery()
The query suggested based on the context. Suggestion is made only if it
is different from the previous suggestion.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1;
Returns |
Type |
Description |
boolean |
Whether the suggestedQuery field is set.
|
hasSuggestedQueryAnswer()
public boolean hasSuggestedQueryAnswer()
The answer generated for the suggested query. Whether or not an answer is
generated depends on how confident we are about the generated query.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer suggested_query_answer = 2;
Returns |
Type |
Description |
boolean |
Whether the suggestedQueryAnswer field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public KnowledgeAssistAnswer.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected KnowledgeAssistAnswer.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public KnowledgeAssistAnswer.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides