Interface QAResultOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
QAResult
,QAResult.Builder
public interface QAResultOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
getConfidenceScore()
The calibrated confidence score for this document, in the range [0., 1.].QAResult.Highlight
getHighlights(int index)
Highlighted sections in the snippet.int
getHighlightsCount()
Highlighted sections in the snippet.List<QAResult.Highlight>
getHighlightsList()
Highlighted sections in the snippet.QAResult.HighlightOrBuilder
getHighlightsOrBuilder(int index)
Highlighted sections in the snippet.List<? extends QAResult.HighlightOrBuilder>
getHighlightsOrBuilderList()
Highlighted sections in the snippet.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getHighlightsList
List<QAResult.Highlight> getHighlightsList()
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
-
getHighlights
QAResult.Highlight getHighlights(int index)
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
-
getHighlightsCount
int getHighlightsCount()
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
-
getHighlightsOrBuilderList
List<? extends QAResult.HighlightOrBuilder> getHighlightsOrBuilderList()
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
-
getHighlightsOrBuilder
QAResult.HighlightOrBuilder getHighlightsOrBuilder(int index)
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
-
getConfidenceScore
float getConfidenceScore()
The calibrated confidence score for this document, in the range [0., 1.]. This represents the confidence level for whether the returned document and snippet answers the user's query.
float confidence_score = 2;
- Returns:
- The confidenceScore.
-
-