public static final class SearchKnowledgeResponse.Builder extends GeneratedMessageV3.Builder<SearchKnowledgeResponse.Builder> implements SearchKnowledgeResponseOrBuilder
The response message for
Conversations.SearchKnowledge.
Protobuf type google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse
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
addAllAnswers(Iterable<? extends SearchKnowledgeAnswer> values)
public SearchKnowledgeResponse.Builder addAllAnswers(Iterable<? extends SearchKnowledgeAnswer> values)
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer>
|
addAnswers(SearchKnowledgeAnswer value)
public SearchKnowledgeResponse.Builder addAnswers(SearchKnowledgeAnswer value)
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
addAnswers(SearchKnowledgeAnswer.Builder builderForValue)
public SearchKnowledgeResponse.Builder addAnswers(SearchKnowledgeAnswer.Builder builderForValue)
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
addAnswers(int index, SearchKnowledgeAnswer value)
public SearchKnowledgeResponse.Builder addAnswers(int index, SearchKnowledgeAnswer value)
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
addAnswers(int index, SearchKnowledgeAnswer.Builder builderForValue)
public SearchKnowledgeResponse.Builder addAnswers(int index, SearchKnowledgeAnswer.Builder builderForValue)
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
addAnswersBuilder()
public SearchKnowledgeAnswer.Builder addAnswersBuilder()
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
addAnswersBuilder(int index)
public SearchKnowledgeAnswer.Builder addAnswersBuilder(int index)
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchKnowledgeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SearchKnowledgeResponse build()
buildPartial()
public SearchKnowledgeResponse buildPartial()
clear()
public SearchKnowledgeResponse.Builder clear()
Overrides
clearAnswers()
public SearchKnowledgeResponse.Builder clearAnswers()
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
clearField(Descriptors.FieldDescriptor field)
public SearchKnowledgeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchKnowledgeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRewrittenQuery()
public SearchKnowledgeResponse.Builder clearRewrittenQuery()
The rewritten query used to search knowledge.
string rewritten_query = 3;
clone()
public SearchKnowledgeResponse.Builder clone()
Overrides
getAnswers(int index)
public SearchKnowledgeAnswer getAnswers(int index)
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
Parameter |
Name |
Description |
index |
int
|
getAnswersBuilder(int index)
public SearchKnowledgeAnswer.Builder getAnswersBuilder(int index)
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
Parameter |
Name |
Description |
index |
int
|
getAnswersBuilderList()
public List<SearchKnowledgeAnswer.Builder> getAnswersBuilderList()
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
getAnswersCount()
public int getAnswersCount()
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
Returns |
Type |
Description |
int |
|
getAnswersList()
public List<SearchKnowledgeAnswer> getAnswersList()
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
getAnswersOrBuilder(int index)
public SearchKnowledgeAnswerOrBuilder getAnswersOrBuilder(int index)
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
Parameter |
Name |
Description |
index |
int
|
getAnswersOrBuilderList()
public List<? extends SearchKnowledgeAnswerOrBuilder> getAnswersOrBuilderList()
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
Returns |
Type |
Description |
List<? extends com.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswerOrBuilder> |
|
getDefaultInstanceForType()
public SearchKnowledgeResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getRewrittenQuery()
public String getRewrittenQuery()
The rewritten query used to search knowledge.
string rewritten_query = 3;
Returns |
Type |
Description |
String |
The rewrittenQuery.
|
getRewrittenQueryBytes()
public ByteString getRewrittenQueryBytes()
The rewritten query used to search knowledge.
string rewritten_query = 3;
Returns |
Type |
Description |
ByteString |
The bytes for rewrittenQuery.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SearchKnowledgeResponse other)
public SearchKnowledgeResponse.Builder mergeFrom(SearchKnowledgeResponse other)
public SearchKnowledgeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchKnowledgeResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchKnowledgeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeAnswers(int index)
public SearchKnowledgeResponse.Builder removeAnswers(int index)
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
Parameter |
Name |
Description |
index |
int
|
setAnswers(int index, SearchKnowledgeAnswer value)
public SearchKnowledgeResponse.Builder setAnswers(int index, SearchKnowledgeAnswer value)
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
setAnswers(int index, SearchKnowledgeAnswer.Builder builderForValue)
public SearchKnowledgeResponse.Builder setAnswers(int index, SearchKnowledgeAnswer.Builder builderForValue)
Most relevant snippets extracted from articles in the given knowledge base,
ordered by confidence.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer answers = 2;
setField(Descriptors.FieldDescriptor field, Object value)
public SearchKnowledgeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchKnowledgeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setRewrittenQuery(String value)
public SearchKnowledgeResponse.Builder setRewrittenQuery(String value)
The rewritten query used to search knowledge.
string rewritten_query = 3;
Parameter |
Name |
Description |
value |
String
The rewrittenQuery to set.
|
setRewrittenQueryBytes(ByteString value)
public SearchKnowledgeResponse.Builder setRewrittenQueryBytes(ByteString value)
The rewritten query used to search knowledge.
string rewritten_query = 3;
Parameter |
Name |
Description |
value |
ByteString
The bytes for rewrittenQuery to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchKnowledgeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides