public static final class ArticleAnswer.Builder extends GeneratedMessageV3.Builder<ArticleAnswer.Builder> implements ArticleAnswerOrBuilder
Represents article answer.Protobuf type
google.cloud.dialogflow.v2.ArticleAnswer
Modifier and Type | Method and Description |
---|---|
ArticleAnswer.Builder |
addAllSnippets(Iterable<String> values)
Article snippets.
|
ArticleAnswer.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
ArticleAnswer.Builder |
addSnippets(String value)
Article snippets.
|
ArticleAnswer.Builder |
addSnippetsBytes(ByteString value)
Article snippets.
|
ArticleAnswer |
build() |
ArticleAnswer |
buildPartial() |
ArticleAnswer.Builder |
clear() |
ArticleAnswer.Builder |
clearAnswerRecord()
The name of answer record, in the format of
"projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>"
|
ArticleAnswer.Builder |
clearConfidence()
Article match confidence.
|
ArticleAnswer.Builder |
clearField(Descriptors.FieldDescriptor field) |
ArticleAnswer.Builder |
clearMetadata() |
ArticleAnswer.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
ArticleAnswer.Builder |
clearSnippets()
Article snippets.
|
ArticleAnswer.Builder |
clearTitle()
The article title.
|
ArticleAnswer.Builder |
clearUri()
The article URI.
|
ArticleAnswer.Builder |
clone() |
boolean |
containsMetadata(String key)
A map that contains metadata about the answer and the
document from which it originates.
|
String |
getAnswerRecord()
The name of answer record, in the format of
"projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>"
|
ByteString |
getAnswerRecordBytes()
The name of answer record, in the format of
"projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>"
|
float |
getConfidence()
Article match confidence.
|
ArticleAnswer |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
A map that contains metadata about the answer and the
document from which it originates.
|
Map<String,String> |
getMetadataMap()
A map that contains metadata about the answer and the
document from which it originates.
|
String |
getMetadataOrDefault(String key,
String defaultValue)
A map that contains metadata about the answer and the
document from which it originates.
|
String |
getMetadataOrThrow(String key)
A map that contains metadata about the answer and the
document from which it originates.
|
Map<String,String> |
getMutableMetadata()
Deprecated.
|
String |
getSnippets(int index)
Article snippets.
|
ByteString |
getSnippetsBytes(int index)
Article snippets.
|
int |
getSnippetsCount()
Article snippets.
|
ProtocolStringList |
getSnippetsList()
Article snippets.
|
String |
getTitle()
The article title.
|
ByteString |
getTitleBytes()
The article title.
|
String |
getUri()
The article URI.
|
ByteString |
getUriBytes()
The article URI.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
ArticleAnswer.Builder |
mergeFrom(ArticleAnswer other) |
ArticleAnswer.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
ArticleAnswer.Builder |
mergeFrom(Message other) |
ArticleAnswer.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
ArticleAnswer.Builder |
putAllMetadata(Map<String,String> values)
A map that contains metadata about the answer and the
document from which it originates.
|
ArticleAnswer.Builder |
putMetadata(String key,
String value)
A map that contains metadata about the answer and the
document from which it originates.
|
ArticleAnswer.Builder |
removeMetadata(String key)
A map that contains metadata about the answer and the
document from which it originates.
|
ArticleAnswer.Builder |
setAnswerRecord(String value)
The name of answer record, in the format of
"projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>"
|
ArticleAnswer.Builder |
setAnswerRecordBytes(ByteString value)
The name of answer record, in the format of
"projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>"
|
ArticleAnswer.Builder |
setConfidence(float value)
Article match confidence.
|
ArticleAnswer.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
ArticleAnswer.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
ArticleAnswer.Builder |
setSnippets(int index,
String value)
Article snippets.
|
ArticleAnswer.Builder |
setTitle(String value)
The article title.
|
ArticleAnswer.Builder |
setTitleBytes(ByteString value)
The article title.
|
ArticleAnswer.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
ArticleAnswer.Builder |
setUri(String value)
The article URI.
|
ArticleAnswer.Builder |
setUriBytes(ByteString value)
The article URI.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<ArticleAnswer.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<ArticleAnswer.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ArticleAnswer.Builder>
public ArticleAnswer.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ArticleAnswer.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ArticleAnswer.Builder>
public ArticleAnswer getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ArticleAnswer build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ArticleAnswer buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ArticleAnswer.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ArticleAnswer.Builder>
public ArticleAnswer.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ArticleAnswer.Builder>
public ArticleAnswer.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ArticleAnswer.Builder>
public ArticleAnswer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ArticleAnswer.Builder>
public ArticleAnswer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ArticleAnswer.Builder>
public ArticleAnswer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ArticleAnswer.Builder>
public ArticleAnswer.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ArticleAnswer.Builder>
public ArticleAnswer.Builder mergeFrom(ArticleAnswer other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ArticleAnswer.Builder>
public ArticleAnswer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ArticleAnswer.Builder>
IOException
public String getTitle()
The article title.
string title = 1;
getTitle
in interface ArticleAnswerOrBuilder
public ByteString getTitleBytes()
The article title.
string title = 1;
getTitleBytes
in interface ArticleAnswerOrBuilder
public ArticleAnswer.Builder setTitle(String value)
The article title.
string title = 1;
value
- The title to set.public ArticleAnswer.Builder clearTitle()
The article title.
string title = 1;
public ArticleAnswer.Builder setTitleBytes(ByteString value)
The article title.
string title = 1;
value
- The bytes for title to set.public String getUri()
The article URI.
string uri = 2;
getUri
in interface ArticleAnswerOrBuilder
public ByteString getUriBytes()
The article URI.
string uri = 2;
getUriBytes
in interface ArticleAnswerOrBuilder
public ArticleAnswer.Builder setUri(String value)
The article URI.
string uri = 2;
value
- The uri to set.public ArticleAnswer.Builder clearUri()
The article URI.
string uri = 2;
public ArticleAnswer.Builder setUriBytes(ByteString value)
The article URI.
string uri = 2;
value
- The bytes for uri to set.public ProtocolStringList getSnippetsList()
Article snippets.
repeated string snippets = 3;
getSnippetsList
in interface ArticleAnswerOrBuilder
public int getSnippetsCount()
Article snippets.
repeated string snippets = 3;
getSnippetsCount
in interface ArticleAnswerOrBuilder
public String getSnippets(int index)
Article snippets.
repeated string snippets = 3;
getSnippets
in interface ArticleAnswerOrBuilder
index
- The index of the element to return.public ByteString getSnippetsBytes(int index)
Article snippets.
repeated string snippets = 3;
getSnippetsBytes
in interface ArticleAnswerOrBuilder
index
- The index of the value to return.public ArticleAnswer.Builder setSnippets(int index, String value)
Article snippets.
repeated string snippets = 3;
index
- The index to set the value at.value
- The snippets to set.public ArticleAnswer.Builder addSnippets(String value)
Article snippets.
repeated string snippets = 3;
value
- The snippets to add.public ArticleAnswer.Builder addAllSnippets(Iterable<String> values)
Article snippets.
repeated string snippets = 3;
values
- The snippets to add.public ArticleAnswer.Builder clearSnippets()
Article snippets.
repeated string snippets = 3;
public ArticleAnswer.Builder addSnippetsBytes(ByteString value)
Article snippets.
repeated string snippets = 3;
value
- The bytes of the snippets to add.public float getConfidence()
Article match confidence. The system's confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 4;
getConfidence
in interface ArticleAnswerOrBuilder
public ArticleAnswer.Builder setConfidence(float value)
Article match confidence. The system's confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 4;
value
- The confidence to set.public ArticleAnswer.Builder clearConfidence()
Article match confidence. The system's confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 4;
public int getMetadataCount()
ArticleAnswerOrBuilder
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
getMetadataCount
in interface ArticleAnswerOrBuilder
public boolean containsMetadata(String key)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
containsMetadata
in interface ArticleAnswerOrBuilder
@Deprecated public Map<String,String> getMetadata()
getMetadataMap()
instead.getMetadata
in interface ArticleAnswerOrBuilder
public Map<String,String> getMetadataMap()
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
getMetadataMap
in interface ArticleAnswerOrBuilder
public String getMetadataOrDefault(String key, String defaultValue)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
getMetadataOrDefault
in interface ArticleAnswerOrBuilder
public String getMetadataOrThrow(String key)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
getMetadataOrThrow
in interface ArticleAnswerOrBuilder
public ArticleAnswer.Builder clearMetadata()
public ArticleAnswer.Builder removeMetadata(String key)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
@Deprecated public Map<String,String> getMutableMetadata()
public ArticleAnswer.Builder putMetadata(String key, String value)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
public ArticleAnswer.Builder putAllMetadata(Map<String,String> values)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
public String getAnswerRecord()
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
getAnswerRecord
in interface ArticleAnswerOrBuilder
public ByteString getAnswerRecordBytes()
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
getAnswerRecordBytes
in interface ArticleAnswerOrBuilder
public ArticleAnswer.Builder setAnswerRecord(String value)
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
value
- The answerRecord to set.public ArticleAnswer.Builder clearAnswerRecord()
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
public ArticleAnswer.Builder setAnswerRecordBytes(ByteString value)
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
value
- The bytes for answerRecord to set.public final ArticleAnswer.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ArticleAnswer.Builder>
public final ArticleAnswer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ArticleAnswer.Builder>
Copyright © 2022 Google LLC. All rights reserved.