public final class KnowledgeAnswers extends GeneratedMessageV3 implements KnowledgeAnswersOrBuilder
Represents the result of querying a Knowledge base.
Protobuf type google.cloud.dialogflow.v2beta1.KnowledgeAnswers
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
ANSWERS_FIELD_NUMBER
public static final int ANSWERS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static KnowledgeAnswers getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static KnowledgeAnswers.Builder newBuilder()
newBuilder(KnowledgeAnswers prototype)
public static KnowledgeAnswers.Builder newBuilder(KnowledgeAnswers prototype)
public static KnowledgeAnswers parseDelimitedFrom(InputStream input)
public static KnowledgeAnswers parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static KnowledgeAnswers parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAnswers parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static KnowledgeAnswers parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAnswers parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAnswers parseFrom(CodedInputStream input)
public static KnowledgeAnswers parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAnswers parseFrom(InputStream input)
public static KnowledgeAnswers parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static KnowledgeAnswers parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAnswers parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<KnowledgeAnswers> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getAnswers(int index)
public KnowledgeAnswers.Answer getAnswers(int index)
A list of answers from Knowledge Connector.
repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
Parameter |
Name |
Description |
index |
int
|
getAnswersCount()
public int getAnswersCount()
A list of answers from Knowledge Connector.
repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
Returns |
Type |
Description |
int |
|
getAnswersList()
public List<KnowledgeAnswers.Answer> getAnswersList()
A list of answers from Knowledge Connector.
repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
getAnswersOrBuilder(int index)
public KnowledgeAnswers.AnswerOrBuilder getAnswersOrBuilder(int index)
A list of answers from Knowledge Connector.
repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
Parameter |
Name |
Description |
index |
int
|
getAnswersOrBuilderList()
public List<? extends KnowledgeAnswers.AnswerOrBuilder> getAnswersOrBuilderList()
A list of answers from Knowledge Connector.
repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.AnswerOrBuilder> |
|
getDefaultInstanceForType()
public KnowledgeAnswers getDefaultInstanceForType()
getParserForType()
public Parser<KnowledgeAnswers> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public KnowledgeAnswers.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected KnowledgeAnswers.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public KnowledgeAnswers.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides