public static final class QAResult.Builder extends GeneratedMessageV3.Builder<QAResult.Builder> implements QAResultOrBuilder
Additional result info for the question-answering feature.
Protobuf type google.cloud.contentwarehouse.v1.QAResult
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
addAllHighlights(Iterable<? extends QAResult.Highlight> values)
public QAResult.Builder addAllHighlights(Iterable<? extends QAResult.Highlight> values)
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.contentwarehouse.v1.QAResult.Highlight>
|
addHighlights(QAResult.Highlight value)
public QAResult.Builder addHighlights(QAResult.Highlight value)
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
addHighlights(QAResult.Highlight.Builder builderForValue)
public QAResult.Builder addHighlights(QAResult.Highlight.Builder builderForValue)
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
addHighlights(int index, QAResult.Highlight value)
public QAResult.Builder addHighlights(int index, QAResult.Highlight value)
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
addHighlights(int index, QAResult.Highlight.Builder builderForValue)
public QAResult.Builder addHighlights(int index, QAResult.Highlight.Builder builderForValue)
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
addHighlightsBuilder()
public QAResult.Highlight.Builder addHighlightsBuilder()
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
addHighlightsBuilder(int index)
public QAResult.Highlight.Builder addHighlightsBuilder(int index)
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public QAResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public QAResult buildPartial()
clear()
public QAResult.Builder clear()
Overrides
clearConfidenceScore()
public QAResult.Builder clearConfidenceScore()
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;
clearField(Descriptors.FieldDescriptor field)
public QAResult.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearHighlights()
public QAResult.Builder clearHighlights()
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public QAResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public QAResult.Builder clone()
Overrides
getConfidenceScore()
public 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 |
Type |
Description |
float |
The confidenceScore.
|
getDefaultInstanceForType()
public QAResult getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getHighlights(int index)
public QAResult.Highlight getHighlights(int index)
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
Parameter |
Name |
Description |
index |
int
|
getHighlightsBuilder(int index)
public QAResult.Highlight.Builder getHighlightsBuilder(int index)
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
Parameter |
Name |
Description |
index |
int
|
getHighlightsBuilderList()
public List<QAResult.Highlight.Builder> getHighlightsBuilderList()
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
getHighlightsCount()
public int getHighlightsCount()
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
Returns |
Type |
Description |
int |
|
getHighlightsList()
public List<QAResult.Highlight> getHighlightsList()
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
getHighlightsOrBuilder(int index)
public QAResult.HighlightOrBuilder getHighlightsOrBuilder(int index)
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
Parameter |
Name |
Description |
index |
int
|
getHighlightsOrBuilderList()
public List<? extends QAResult.HighlightOrBuilder> getHighlightsOrBuilderList()
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.contentwarehouse.v1.QAResult.HighlightOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(QAResult other)
public QAResult.Builder mergeFrom(QAResult other)
Parameter |
Name |
Description |
other |
QAResult
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public QAResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public QAResult.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final QAResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeHighlights(int index)
public QAResult.Builder removeHighlights(int index)
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
Parameter |
Name |
Description |
index |
int
|
setConfidenceScore(float value)
public QAResult.Builder setConfidenceScore(float value)
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;
Parameter |
Name |
Description |
value |
float
The confidenceScore to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public QAResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setHighlights(int index, QAResult.Highlight value)
public QAResult.Builder setHighlights(int index, QAResult.Highlight value)
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
setHighlights(int index, QAResult.Highlight.Builder builderForValue)
public QAResult.Builder setHighlights(int index, QAResult.Highlight.Builder builderForValue)
Highlighted sections in the snippet.
repeated .google.cloud.contentwarehouse.v1.QAResult.Highlight highlights = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public QAResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final QAResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides