public static final class TextAnnotationImpl.TokenOffsetsProto extends com.google.protobuf.GeneratedMessageV3 implements TextAnnotationImpl.TokenOffsetsProtoOrBuilder
Token Offset message structureProtobuf type
textannotation.TokenOffsetsProto
Modifier and Type | Class and Description |
---|---|
static class |
TextAnnotationImpl.TokenOffsetsProto.Builder
Token Offset message structure
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
ENDCHAROFFSET_FIELD_NUMBER |
static int |
FORM_FIELD_NUMBER |
static com.google.protobuf.Parser<TextAnnotationImpl.TokenOffsetsProto> |
PARSER
Deprecated.
|
static int |
STARTCHAROFFSET_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static TextAnnotationImpl.TokenOffsetsProto |
getDefaultInstance() |
TextAnnotationImpl.TokenOffsetsProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getEndCharOffset()
Offset of the last character in text + 1
Note: End offset is not part of the current token.
|
String |
getForm()
Surface form of the token
|
com.google.protobuf.ByteString |
getFormBytes()
Surface form of the token
|
com.google.protobuf.Parser<TextAnnotationImpl.TokenOffsetsProto> |
getParserForType() |
int |
getSerializedSize() |
int |
getStartCharOffset()
Offset of the start character in source text
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasEndCharOffset()
Offset of the last character in text + 1
Note: End offset is not part of the current token.
|
boolean |
hasForm()
Surface form of the token
|
int |
hashCode() |
boolean |
hasStartCharOffset()
Offset of the start character in source text
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static TextAnnotationImpl.TokenOffsetsProto.Builder |
newBuilder() |
static TextAnnotationImpl.TokenOffsetsProto.Builder |
newBuilder(TextAnnotationImpl.TokenOffsetsProto prototype) |
TextAnnotationImpl.TokenOffsetsProto.Builder |
newBuilderForType() |
protected TextAnnotationImpl.TokenOffsetsProto.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static TextAnnotationImpl.TokenOffsetsProto |
parseDelimitedFrom(InputStream input) |
static TextAnnotationImpl.TokenOffsetsProto |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.TokenOffsetsProto |
parseFrom(byte[] data) |
static TextAnnotationImpl.TokenOffsetsProto |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.TokenOffsetsProto |
parseFrom(com.google.protobuf.ByteString data) |
static TextAnnotationImpl.TokenOffsetsProto |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.TokenOffsetsProto |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TextAnnotationImpl.TokenOffsetsProto |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.TokenOffsetsProto |
parseFrom(InputStream input) |
static TextAnnotationImpl.TokenOffsetsProto |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TextAnnotationImpl.TokenOffsetsProto> |
parser() |
TextAnnotationImpl.TokenOffsetsProto.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int FORM_FIELD_NUMBER
public static final int STARTCHAROFFSET_FIELD_NUMBER
public static final int ENDCHAROFFSET_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<TextAnnotationImpl.TokenOffsetsProto> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public boolean hasForm()
Surface form of the token
required string form = 1;
hasForm
in interface TextAnnotationImpl.TokenOffsetsProtoOrBuilder
public String getForm()
Surface form of the token
required string form = 1;
getForm
in interface TextAnnotationImpl.TokenOffsetsProtoOrBuilder
public com.google.protobuf.ByteString getFormBytes()
Surface form of the token
required string form = 1;
getFormBytes
in interface TextAnnotationImpl.TokenOffsetsProtoOrBuilder
public boolean hasStartCharOffset()
Offset of the start character in source text
required int32 startCharOffset = 2;
hasStartCharOffset
in interface TextAnnotationImpl.TokenOffsetsProtoOrBuilder
public int getStartCharOffset()
Offset of the start character in source text
required int32 startCharOffset = 2;
getStartCharOffset
in interface TextAnnotationImpl.TokenOffsetsProtoOrBuilder
public boolean hasEndCharOffset()
Offset of the last character in text + 1 Note: End offset is not part of the current token. [startCharOffset, endCharOffset)
required int32 endCharOffset = 3;
hasEndCharOffset
in interface TextAnnotationImpl.TokenOffsetsProtoOrBuilder
public int getEndCharOffset()
Offset of the last character in text + 1 Note: End offset is not part of the current token. [startCharOffset, endCharOffset)
required int32 endCharOffset = 3;
getEndCharOffset
in interface TextAnnotationImpl.TokenOffsetsProtoOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static TextAnnotationImpl.TokenOffsetsProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.TokenOffsetsProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.TokenOffsetsProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.TokenOffsetsProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.TokenOffsetsProto parseFrom(InputStream input) throws IOException
IOException
public static TextAnnotationImpl.TokenOffsetsProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TextAnnotationImpl.TokenOffsetsProto parseDelimitedFrom(InputStream input) throws IOException
IOException
public static TextAnnotationImpl.TokenOffsetsProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TextAnnotationImpl.TokenOffsetsProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static TextAnnotationImpl.TokenOffsetsProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public TextAnnotationImpl.TokenOffsetsProto.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static TextAnnotationImpl.TokenOffsetsProto.Builder newBuilder()
public static TextAnnotationImpl.TokenOffsetsProto.Builder newBuilder(TextAnnotationImpl.TokenOffsetsProto prototype)
public TextAnnotationImpl.TokenOffsetsProto.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected TextAnnotationImpl.TokenOffsetsProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static TextAnnotationImpl.TokenOffsetsProto getDefaultInstance()
public static com.google.protobuf.Parser<TextAnnotationImpl.TokenOffsetsProto> parser()
public com.google.protobuf.Parser<TextAnnotationImpl.TokenOffsetsProto> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public TextAnnotationImpl.TokenOffsetsProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2017. All rights reserved.