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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasForm()
Surface form of the token
required string form = 1;hasForm in interface TextAnnotationImpl.TokenOffsetsProtoOrBuilderpublic String getForm()
Surface form of the token
required string form = 1;getForm in interface TextAnnotationImpl.TokenOffsetsProtoOrBuilderpublic com.google.protobuf.ByteString getFormBytes()
Surface form of the token
required string form = 1;getFormBytes in interface TextAnnotationImpl.TokenOffsetsProtoOrBuilderpublic boolean hasStartCharOffset()
Offset of the start character in source text
required int32 startCharOffset = 2;hasStartCharOffset in interface TextAnnotationImpl.TokenOffsetsProtoOrBuilderpublic int getStartCharOffset()
Offset of the start character in source text
required int32 startCharOffset = 2;getStartCharOffset in interface TextAnnotationImpl.TokenOffsetsProtoOrBuilderpublic 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.TokenOffsetsProtoOrBuilderpublic 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.TokenOffsetsProtoOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TextAnnotationImpl.TokenOffsetsProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.TokenOffsetsProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.TokenOffsetsProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.TokenOffsetsProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.TokenOffsetsProto parseFrom(InputStream input) throws IOException
IOExceptionpublic static TextAnnotationImpl.TokenOffsetsProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TextAnnotationImpl.TokenOffsetsProto parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TextAnnotationImpl.TokenOffsetsProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TextAnnotationImpl.TokenOffsetsProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TextAnnotationImpl.TokenOffsetsProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TextAnnotationImpl.TokenOffsetsProto.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic 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.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TextAnnotationImpl.TokenOffsetsProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public 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.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TextAnnotationImpl.TokenOffsetsProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2017. All rights reserved.