- 0.49.0 (latest)
- 0.48.0
- 0.47.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class QAResult.Highlight.Builder extends GeneratedMessageV3.Builder<QAResult.Highlight.Builder> implements QAResult.HighlightOrBuilder
A text span in the search text snippet that represents a highlighted section (answer context, highly relevant sentence, etc.).
Protobuf type google.cloud.contentwarehouse.v1.QAResult.Highlight
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > QAResult.Highlight.BuilderImplements
QAResult.HighlightOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public QAResult.Highlight.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
QAResult.Highlight.Builder |
build()
public QAResult.Highlight build()
Type | Description |
QAResult.Highlight |
buildPartial()
public QAResult.Highlight buildPartial()
Type | Description |
QAResult.Highlight |
clear()
public QAResult.Highlight.Builder clear()
Type | Description |
QAResult.Highlight.Builder |
clearEndIndex()
public QAResult.Highlight.Builder clearEndIndex()
End index of the highlight, exclusive.
int32 end_index = 2;
Type | Description |
QAResult.Highlight.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public QAResult.Highlight.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
QAResult.Highlight.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public QAResult.Highlight.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
QAResult.Highlight.Builder |
clearStartIndex()
public QAResult.Highlight.Builder clearStartIndex()
Start index of the highlight.
int32 start_index = 1;
Type | Description |
QAResult.Highlight.Builder | This builder for chaining. |
clone()
public QAResult.Highlight.Builder clone()
Type | Description |
QAResult.Highlight.Builder |
getDefaultInstanceForType()
public QAResult.Highlight getDefaultInstanceForType()
Type | Description |
QAResult.Highlight |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEndIndex()
public int getEndIndex()
End index of the highlight, exclusive.
int32 end_index = 2;
Type | Description |
int | The endIndex. |
getStartIndex()
public int getStartIndex()
Start index of the highlight.
int32 start_index = 1;
Type | Description |
int | The startIndex. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(QAResult.Highlight other)
public QAResult.Highlight.Builder mergeFrom(QAResult.Highlight other)
Name | Description |
other | QAResult.Highlight |
Type | Description |
QAResult.Highlight.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public QAResult.Highlight.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
QAResult.Highlight.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public QAResult.Highlight.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
QAResult.Highlight.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final QAResult.Highlight.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
QAResult.Highlight.Builder |
setEndIndex(int value)
public QAResult.Highlight.Builder setEndIndex(int value)
End index of the highlight, exclusive.
int32 end_index = 2;
Name | Description |
value | int The endIndex to set. |
Type | Description |
QAResult.Highlight.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public QAResult.Highlight.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
QAResult.Highlight.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public QAResult.Highlight.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
QAResult.Highlight.Builder |
setStartIndex(int value)
public QAResult.Highlight.Builder setStartIndex(int value)
Start index of the highlight.
int32 start_index = 1;
Name | Description |
value | int The startIndex to set. |
Type | Description |
QAResult.Highlight.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final QAResult.Highlight.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
QAResult.Highlight.Builder |