Class QAResult.Highlight (0.3.0)

public static final class QAResult.Highlight extends GeneratedMessageV3 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

Static Fields

END_INDEX_FIELD_NUMBER

public static final int END_INDEX_FIELD_NUMBER
Field Value
TypeDescription
int

START_INDEX_FIELD_NUMBER

public static final int START_INDEX_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static QAResult.Highlight getDefaultInstance()
Returns
TypeDescription
QAResult.Highlight

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static QAResult.Highlight.Builder newBuilder()
Returns
TypeDescription
QAResult.Highlight.Builder

newBuilder(QAResult.Highlight prototype)

public static QAResult.Highlight.Builder newBuilder(QAResult.Highlight prototype)
Parameter
NameDescription
prototypeQAResult.Highlight
Returns
TypeDescription
QAResult.Highlight.Builder

parseDelimitedFrom(InputStream input)

public static QAResult.Highlight parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QAResult.Highlight
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QAResult.Highlight parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QAResult.Highlight
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static QAResult.Highlight parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
QAResult.Highlight
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static QAResult.Highlight parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QAResult.Highlight
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static QAResult.Highlight parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
QAResult.Highlight
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static QAResult.Highlight parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QAResult.Highlight
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static QAResult.Highlight parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
QAResult.Highlight
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static QAResult.Highlight parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QAResult.Highlight
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static QAResult.Highlight parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QAResult.Highlight
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QAResult.Highlight parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QAResult.Highlight
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static QAResult.Highlight parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
QAResult.Highlight
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static QAResult.Highlight parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QAResult.Highlight
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<QAResult.Highlight> parser()
Returns
TypeDescription
Parser<Highlight>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public QAResult.Highlight getDefaultInstanceForType()
Returns
TypeDescription
QAResult.Highlight

getEndIndex()

public int getEndIndex()

End index of the highlight, exclusive.

int32 end_index = 2;

Returns
TypeDescription
int

The endIndex.

getParserForType()

public Parser<QAResult.Highlight> getParserForType()
Returns
TypeDescription
Parser<Highlight>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStartIndex()

public int getStartIndex()

Start index of the highlight.

int32 start_index = 1;

Returns
TypeDescription
int

The startIndex.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public QAResult.Highlight.Builder newBuilderForType()
Returns
TypeDescription
QAResult.Highlight.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected QAResult.Highlight.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
QAResult.Highlight.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public QAResult.Highlight.Builder toBuilder()
Returns
TypeDescription
QAResult.Highlight.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException