Class KnowledgeAssistAnswer.Builder (4.59.0)

public static final class KnowledgeAssistAnswer.Builder extends GeneratedMessageV3.Builder<KnowledgeAssistAnswer.Builder> implements KnowledgeAssistAnswerOrBuilder

Represents a Knowledge Assist answer.

Protobuf type google.cloud.dialogflow.v2.KnowledgeAssistAnswer

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KnowledgeAssistAnswer build()
Returns
Type Description
KnowledgeAssistAnswer

buildPartial()

public KnowledgeAssistAnswer buildPartial()
Returns
Type Description
KnowledgeAssistAnswer

clear()

public KnowledgeAssistAnswer.Builder clear()
Returns
Type Description
KnowledgeAssistAnswer.Builder
Overrides

clearAnswerRecord()

public KnowledgeAssistAnswer.Builder clearAnswerRecord()

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
KnowledgeAssistAnswer.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSuggestedQuery()

public KnowledgeAssistAnswer.Builder clearSuggestedQuery()

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
KnowledgeAssistAnswer.Builder

clearSuggestedQueryAnswer()

public KnowledgeAssistAnswer.Builder clearSuggestedQueryAnswer()

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
KnowledgeAssistAnswer.Builder

clone()

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

getDescriptorForType()

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

Returns
Type Description
KnowledgeAssistAnswer.SuggestedQuery

The suggestedQuery.

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;

Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer

The suggestedQueryAnswer.

getSuggestedQueryAnswerBuilder()

public KnowledgeAssistAnswer.KnowledgeAnswer.Builder getSuggestedQueryAnswerBuilder()

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
KnowledgeAssistAnswer.KnowledgeAnswer.Builder

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;

Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswerOrBuilder

getSuggestedQueryBuilder()

public KnowledgeAssistAnswer.SuggestedQuery.Builder getSuggestedQueryBuilder()

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
KnowledgeAssistAnswer.SuggestedQuery.Builder

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;

Returns
Type Description
KnowledgeAssistAnswer.SuggestedQueryOrBuilder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(KnowledgeAssistAnswer other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSuggestedQuery(KnowledgeAssistAnswer.SuggestedQuery value)

public KnowledgeAssistAnswer.Builder mergeSuggestedQuery(KnowledgeAssistAnswer.SuggestedQuery value)

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;

Parameter
Name Description
value KnowledgeAssistAnswer.SuggestedQuery
Returns
Type Description
KnowledgeAssistAnswer.Builder

mergeSuggestedQueryAnswer(KnowledgeAssistAnswer.KnowledgeAnswer value)

public KnowledgeAssistAnswer.Builder mergeSuggestedQueryAnswer(KnowledgeAssistAnswer.KnowledgeAnswer value)

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;

Parameter
Name Description
value KnowledgeAssistAnswer.KnowledgeAnswer
Returns
Type Description
KnowledgeAssistAnswer.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KnowledgeAssistAnswer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
KnowledgeAssistAnswer.Builder
Overrides

setAnswerRecord(String value)

public KnowledgeAssistAnswer.Builder setAnswerRecord(String value)

The name of the answer record. Format: projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>.

string answer_record = 3;

Parameter
Name Description
value String

The answerRecord to set.

Returns
Type Description
KnowledgeAssistAnswer.Builder

This builder for chaining.

setAnswerRecordBytes(ByteString value)

public KnowledgeAssistAnswer.Builder setAnswerRecordBytes(ByteString value)

The name of the answer record. Format: projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>.

string answer_record = 3;

Parameter
Name Description
value ByteString

The bytes for answerRecord to set.

Returns
Type Description
KnowledgeAssistAnswer.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public KnowledgeAssistAnswer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
KnowledgeAssistAnswer.Builder
Overrides

setSuggestedQuery(KnowledgeAssistAnswer.SuggestedQuery value)

public KnowledgeAssistAnswer.Builder setSuggestedQuery(KnowledgeAssistAnswer.SuggestedQuery value)

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;

Parameter
Name Description
value KnowledgeAssistAnswer.SuggestedQuery
Returns
Type Description
KnowledgeAssistAnswer.Builder

setSuggestedQuery(KnowledgeAssistAnswer.SuggestedQuery.Builder builderForValue)

public KnowledgeAssistAnswer.Builder setSuggestedQuery(KnowledgeAssistAnswer.SuggestedQuery.Builder builderForValue)

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;

Parameter
Name Description
builderForValue KnowledgeAssistAnswer.SuggestedQuery.Builder
Returns
Type Description
KnowledgeAssistAnswer.Builder

setSuggestedQueryAnswer(KnowledgeAssistAnswer.KnowledgeAnswer value)

public KnowledgeAssistAnswer.Builder setSuggestedQueryAnswer(KnowledgeAssistAnswer.KnowledgeAnswer value)

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;

Parameter
Name Description
value KnowledgeAssistAnswer.KnowledgeAnswer
Returns
Type Description
KnowledgeAssistAnswer.Builder

setSuggestedQueryAnswer(KnowledgeAssistAnswer.KnowledgeAnswer.Builder builderForValue)

public KnowledgeAssistAnswer.Builder setSuggestedQueryAnswer(KnowledgeAssistAnswer.KnowledgeAnswer.Builder builderForValue)

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;

Parameter
Name Description
builderForValue KnowledgeAssistAnswer.KnowledgeAnswer.Builder
Returns
Type Description
KnowledgeAssistAnswer.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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