public static final class KnowledgeAssistAnswer.Builder extends GeneratedMessageV3.Builder<KnowledgeAssistAnswer.Builder> implements KnowledgeAssistAnswerOrBuilder
Represents a Knowledge Assist answer.
Protobuf type google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public KnowledgeAssistAnswer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public KnowledgeAssistAnswer build()
buildPartial()
public KnowledgeAssistAnswer buildPartial()
clear()
public KnowledgeAssistAnswer.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public KnowledgeAssistAnswer.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public KnowledgeAssistAnswer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1;
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.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer suggested_query_answer = 2;
clone()
public KnowledgeAssistAnswer.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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.v2beta1.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.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer suggested_query_answer = 2;
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.v2beta1.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.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer suggested_query_answer = 2;
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.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1;
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.v2beta1.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.v2beta1.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.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer suggested_query_answer = 2;
Returns |
Type |
Description |
boolean |
Whether the suggestedQueryAnswer field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(KnowledgeAssistAnswer other)
public KnowledgeAssistAnswer.Builder mergeFrom(KnowledgeAssistAnswer other)
public KnowledgeAssistAnswer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public KnowledgeAssistAnswer.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1;
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.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer suggested_query_answer = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final KnowledgeAssistAnswer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public KnowledgeAssistAnswer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public KnowledgeAssistAnswer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1;
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.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1;
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.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer suggested_query_answer = 2;
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.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer suggested_query_answer = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final KnowledgeAssistAnswer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides