Class Polyline (0.123.0)

public final class Polyline extends GeneratedMessageV3 implements PolylineOrBuilder

A line with multiple line segments.

Protobuf type google.cloud.datalabeling.v1beta1.Polyline

Implements

PolylineOrBuilder

Static Fields

VERTICES_FIELD_NUMBER

public static final int VERTICES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Polyline getDefaultInstance()
Returns
TypeDescription
Polyline

getDescriptor()

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

newBuilder()

public static Polyline.Builder newBuilder()
Returns
TypeDescription
Polyline.Builder

newBuilder(Polyline prototype)

public static Polyline.Builder newBuilder(Polyline prototype)
Parameter
NameDescription
prototypePolyline
Returns
TypeDescription
Polyline.Builder

parseDelimitedFrom(InputStream input)

public static Polyline parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Polyline
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Polyline parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Polyline
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Polyline parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Polyline
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Polyline parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Polyline
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Polyline parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Polyline
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Polyline> parser()
Returns
TypeDescription
Parser<Polyline>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Polyline getDefaultInstanceForType()
Returns
TypeDescription
Polyline

getParserForType()

public Parser<Polyline> getParserForType()
Returns
TypeDescription
Parser<Polyline>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getVertices(int index)

public Vertex getVertices(int index)

The polyline vertices.

repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Vertex

getVerticesCount()

public int getVerticesCount()

The polyline vertices.

repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1;

Returns
TypeDescription
int

getVerticesList()

public List<Vertex> getVerticesList()

The polyline vertices.

repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1;

Returns
TypeDescription
List<Vertex>

getVerticesOrBuilder(int index)

public VertexOrBuilder getVerticesOrBuilder(int index)

The polyline vertices.

repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VertexOrBuilder

getVerticesOrBuilderList()

public List<? extends VertexOrBuilder> getVerticesOrBuilderList()

The polyline vertices.

repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1;

Returns
TypeDescription
List<? extends com.google.cloud.datalabeling.v1beta1.VertexOrBuilder>

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Polyline.Builder toBuilder()
Returns
TypeDescription
Polyline.Builder

writeTo(CodedOutputStream output)

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