Class Polyline.Builder (0.166.0)

public static final class Polyline.Builder extends GeneratedMessageV3.Builder<Polyline.Builder> implements PolylineOrBuilder

A line with multiple line segments.

Protobuf type google.cloud.datalabeling.v1beta1.Polyline

Implements

PolylineOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllVertices(Iterable<? extends Vertex> values)

public Polyline.Builder addAllVertices(Iterable<? extends Vertex> values)

The polyline vertices.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.datalabeling.v1beta1.Vertex>
Returns
Type Description
Polyline.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Polyline.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Polyline.Builder
Overrides

addVertices(Vertex value)

public Polyline.Builder addVertices(Vertex value)

The polyline vertices.

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

Parameter
Name Description
value Vertex
Returns
Type Description
Polyline.Builder

addVertices(Vertex.Builder builderForValue)

public Polyline.Builder addVertices(Vertex.Builder builderForValue)

The polyline vertices.

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

Parameter
Name Description
builderForValue Vertex.Builder
Returns
Type Description
Polyline.Builder

addVertices(int index, Vertex value)

public Polyline.Builder addVertices(int index, Vertex value)

The polyline vertices.

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

Parameters
Name Description
index int
value Vertex
Returns
Type Description
Polyline.Builder

addVertices(int index, Vertex.Builder builderForValue)

public Polyline.Builder addVertices(int index, Vertex.Builder builderForValue)

The polyline vertices.

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

Parameters
Name Description
index int
builderForValue Vertex.Builder
Returns
Type Description
Polyline.Builder

addVerticesBuilder()

public Vertex.Builder addVerticesBuilder()

The polyline vertices.

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

Returns
Type Description
Vertex.Builder

addVerticesBuilder(int index)

public Vertex.Builder addVerticesBuilder(int index)

The polyline vertices.

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

Parameter
Name Description
index int
Returns
Type Description
Vertex.Builder

build()

public Polyline build()
Returns
Type Description
Polyline

buildPartial()

public Polyline buildPartial()
Returns
Type Description
Polyline

clear()

public Polyline.Builder clear()
Returns
Type Description
Polyline.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Polyline.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Polyline.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Polyline.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Polyline.Builder
Overrides

clearVertices()

public Polyline.Builder clearVertices()

The polyline vertices.

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

Returns
Type Description
Polyline.Builder

clone()

public Polyline.Builder clone()
Returns
Type Description
Polyline.Builder
Overrides

getDefaultInstanceForType()

public Polyline getDefaultInstanceForType()
Returns
Type Description
Polyline

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getVertices(int index)

public Vertex getVertices(int index)

The polyline vertices.

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

Parameter
Name Description
index int
Returns
Type Description
Vertex

getVerticesBuilder(int index)

public Vertex.Builder getVerticesBuilder(int index)

The polyline vertices.

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

Parameter
Name Description
index int
Returns
Type Description
Vertex.Builder

getVerticesBuilderList()

public List<Vertex.Builder> getVerticesBuilderList()

The polyline vertices.

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

Returns
Type Description
List<Builder>

getVerticesCount()

public int getVerticesCount()

The polyline vertices.

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

Returns
Type Description
int

getVerticesList()

public List<Vertex> getVerticesList()

The polyline vertices.

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

Returns
Type Description
List<Vertex>

getVerticesOrBuilder(int index)

public VertexOrBuilder getVerticesOrBuilder(int index)

The polyline vertices.

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

Parameter
Name Description
index int
Returns
Type Description
VertexOrBuilder

getVerticesOrBuilderList()

public List<? extends VertexOrBuilder> getVerticesOrBuilderList()

The polyline vertices.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Polyline other)

public Polyline.Builder mergeFrom(Polyline other)
Parameter
Name Description
other Polyline
Returns
Type Description
Polyline.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Polyline.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Polyline.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Polyline.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Polyline.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Polyline.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Polyline.Builder
Overrides

removeVertices(int index)

public Polyline.Builder removeVertices(int index)

The polyline vertices.

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

Parameter
Name Description
index int
Returns
Type Description
Polyline.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Polyline.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Polyline.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Polyline.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Polyline.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Polyline.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Polyline.Builder
Overrides

setVertices(int index, Vertex value)

public Polyline.Builder setVertices(int index, Vertex value)

The polyline vertices.

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

Parameters
Name Description
index int
value Vertex
Returns
Type Description
Polyline.Builder

setVertices(int index, Vertex.Builder builderForValue)

public Polyline.Builder setVertices(int index, Vertex.Builder builderForValue)

The polyline vertices.

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

Parameters
Name Description
index int
builderForValue Vertex.Builder
Returns
Type Description
Polyline.Builder