Package com.google.cloud.dialogflow.v2
Interface ArticleAnswerOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ArticleAnswer,ArticleAnswer.Builder
public interface ArticleAnswerOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsMetadata(String key)A map that contains metadata about the answer and the document from which it originates.StringgetAnswerRecord()The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"com.google.protobuf.ByteStringgetAnswerRecordBytes()The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"floatgetConfidence()Article match confidence.Map<String,String>getMetadata()Deprecated.intgetMetadataCount()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.StringgetMetadataOrDefault(String key, String defaultValue)A map that contains metadata about the answer and the document from which it originates.StringgetMetadataOrThrow(String key)A map that contains metadata about the answer and the document from which it originates.StringgetSnippets(int index)Article snippets.com.google.protobuf.ByteStringgetSnippetsBytes(int index)Article snippets.intgetSnippetsCount()Article snippets.List<String>getSnippetsList()Article snippets.StringgetTitle()The article title.com.google.protobuf.ByteStringgetTitleBytes()The article title.StringgetUri()The article URI.com.google.protobuf.ByteStringgetUriBytes()The article URI.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getTitle
String getTitle()
The article title.
string title = 1;- Returns:
- The title.
-
getTitleBytes
com.google.protobuf.ByteString getTitleBytes()
The article title.
string title = 1;- Returns:
- The bytes for title.
-
getUri
String getUri()
The article URI.
string uri = 2;- Returns:
- The uri.
-
getUriBytes
com.google.protobuf.ByteString getUriBytes()
The article URI.
string uri = 2;- Returns:
- The bytes for uri.
-
getSnippetsList
List<String> getSnippetsList()
Article snippets.
repeated string snippets = 3;- Returns:
- A list containing the snippets.
-
getSnippetsCount
int getSnippetsCount()
Article snippets.
repeated string snippets = 3;- Returns:
- The count of snippets.
-
getSnippets
String getSnippets(int index)
Article snippets.
repeated string snippets = 3;- Parameters:
index- The index of the element to return.- Returns:
- The snippets at the given index.
-
getSnippetsBytes
com.google.protobuf.ByteString getSnippetsBytes(int index)
Article snippets.
repeated string snippets = 3;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the snippets at the given index.
-
getConfidence
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;- Returns:
- The confidence.
-
getMetadataCount
int getMetadataCount()
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
-
containsMetadata
boolean containsMetadata(String key)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
-
getMetadata
@Deprecated Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.
-
getMetadataMap
Map<String,String> getMetadataMap()
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
-
getMetadataOrDefault
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;
-
getMetadataOrThrow
String getMetadataOrThrow(String key)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
-
getAnswerRecord
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;- Returns:
- The answerRecord.
-
getAnswerRecordBytes
com.google.protobuf.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;- Returns:
- The bytes for answerRecord.
-
-