Class TextLocator.Position (3.12.0)

public static final class TextLocator.Position extends GeneratedMessageV3 implements TextLocator.PositionOrBuilder

The position of a byte within the text.

Protobuf type google.monitoring.v3.TextLocator.Position

Static Fields

COLUMN_FIELD_NUMBER

public static final int COLUMN_FIELD_NUMBER
Field Value
TypeDescription
int

LINE_FIELD_NUMBER

public static final int LINE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TextLocator.Position getDefaultInstance()
Returns
TypeDescription
TextLocator.Position

getDescriptor()

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

newBuilder()

public static TextLocator.Position.Builder newBuilder()
Returns
TypeDescription
TextLocator.Position.Builder

newBuilder(TextLocator.Position prototype)

public static TextLocator.Position.Builder newBuilder(TextLocator.Position prototype)
Parameter
NameDescription
prototypeTextLocator.Position
Returns
TypeDescription
TextLocator.Position.Builder

parseDelimitedFrom(InputStream input)

public static TextLocator.Position parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextLocator.Position
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static TextLocator.Position parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TextLocator.Position
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static TextLocator.Position parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TextLocator.Position
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static TextLocator.Position parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextLocator.Position
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static TextLocator.Position parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TextLocator.Position
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<TextLocator.Position> parser()
Returns
TypeDescription
Parser<Position>

Methods

equals(Object obj)

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

getColumn()

public int getColumn()

The column within the line, starting with 1, where the byte is positioned. This is a byte index even though the text is UTF-8.

int32 column = 2;

Returns
TypeDescription
int

The column.

getDefaultInstanceForType()

public TextLocator.Position getDefaultInstanceForType()
Returns
TypeDescription
TextLocator.Position

getLine()

public int getLine()

The line, starting with 1, where the byte is positioned.

int32 line = 1;

Returns
TypeDescription
int

The line.

getParserForType()

public Parser<TextLocator.Position> getParserForType()
Returns
TypeDescription
Parser<Position>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 TextLocator.Position.Builder newBuilderForType()
Returns
TypeDescription
TextLocator.Position.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TextLocator.Position.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TextLocator.Position.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public TextLocator.Position.Builder toBuilder()
Returns
TypeDescription
TextLocator.Position.Builder

writeTo(CodedOutputStream output)

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