Class SearchKnowledgeResponse.Builder (4.57.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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>
Returns
Type Description
SearchKnowledgeResponse.Builder

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;

Parameter
Name Description
value SearchKnowledgeAnswer
Returns
Type Description
SearchKnowledgeResponse.Builder

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;

Parameter
Name Description
builderForValue SearchKnowledgeAnswer.Builder
Returns
Type Description
SearchKnowledgeResponse.Builder

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;

Parameters
Name Description
index int
value SearchKnowledgeAnswer
Returns
Type Description
SearchKnowledgeResponse.Builder

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;

Parameters
Name Description
index int
builderForValue SearchKnowledgeAnswer.Builder
Returns
Type Description
SearchKnowledgeResponse.Builder

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;

Returns
Type Description
SearchKnowledgeAnswer.Builder

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
Returns
Type Description
SearchKnowledgeAnswer.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchKnowledgeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchKnowledgeResponse.Builder
Overrides

build()

public SearchKnowledgeResponse build()
Returns
Type Description
SearchKnowledgeResponse

buildPartial()

public SearchKnowledgeResponse buildPartial()
Returns
Type Description
SearchKnowledgeResponse

clear()

public SearchKnowledgeResponse.Builder clear()
Returns
Type Description
SearchKnowledgeResponse.Builder
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;

Returns
Type Description
SearchKnowledgeResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public SearchKnowledgeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchKnowledgeResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchKnowledgeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchKnowledgeResponse.Builder
Overrides

clearRewrittenQuery()

public SearchKnowledgeResponse.Builder clearRewrittenQuery()

The rewritten query used to search knowledge.

string rewritten_query = 3;

Returns
Type Description
SearchKnowledgeResponse.Builder

This builder for chaining.

clone()

public SearchKnowledgeResponse.Builder clone()
Returns
Type Description
SearchKnowledgeResponse.Builder
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
Returns
Type Description
SearchKnowledgeAnswer

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
Returns
Type Description
SearchKnowledgeAnswer.Builder

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;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
List<SearchKnowledgeAnswer>

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
Returns
Type Description
SearchKnowledgeAnswerOrBuilder

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()
Returns
Type Description
SearchKnowledgeResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchKnowledgeResponse other)

public SearchKnowledgeResponse.Builder mergeFrom(SearchKnowledgeResponse other)
Parameter
Name Description
other SearchKnowledgeResponse
Returns
Type Description
SearchKnowledgeResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchKnowledgeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchKnowledgeResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchKnowledgeResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchKnowledgeResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchKnowledgeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchKnowledgeResponse.Builder
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
Returns
Type Description
SearchKnowledgeResponse.Builder

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;

Parameters
Name Description
index int
value SearchKnowledgeAnswer
Returns
Type Description
SearchKnowledgeResponse.Builder

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;

Parameters
Name Description
index int
builderForValue SearchKnowledgeAnswer.Builder
Returns
Type Description
SearchKnowledgeResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchKnowledgeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchKnowledgeResponse.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SearchKnowledgeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SearchKnowledgeResponse.Builder
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.

Returns
Type Description
SearchKnowledgeResponse.Builder

This builder for chaining.

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.

Returns
Type Description
SearchKnowledgeResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchKnowledgeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchKnowledgeResponse.Builder
Overrides