Class Polyline.Builder (0.147.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.datalabeling.v1beta1.Vertex>
Returns
TypeDescription
Polyline.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Polyline.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Polyline.Builder
Overrides

addVertices(Vertex value)

public Polyline.Builder addVertices(Vertex value)

The polyline vertices.

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

Parameter
NameDescription
valueVertex
Returns
TypeDescription
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
NameDescription
builderForValueVertex.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueVertex
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVertex.Builder
Returns
TypeDescription
Polyline.Builder

addVerticesBuilder()

public Vertex.Builder addVerticesBuilder()

The polyline vertices.

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

Returns
TypeDescription
Vertex.Builder

addVerticesBuilder(int index)

public Vertex.Builder addVerticesBuilder(int index)

The polyline vertices.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Vertex.Builder

build()

public Polyline build()
Returns
TypeDescription
Polyline

buildPartial()

public Polyline buildPartial()
Returns
TypeDescription
Polyline

clear()

public Polyline.Builder clear()
Returns
TypeDescription
Polyline.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Polyline.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Polyline.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Polyline.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Polyline.Builder
Overrides

clearVertices()

public Polyline.Builder clearVertices()

The polyline vertices.

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

Returns
TypeDescription
Polyline.Builder

clone()

public Polyline.Builder clone()
Returns
TypeDescription
Polyline.Builder
Overrides

getDefaultInstanceForType()

public Polyline getDefaultInstanceForType()
Returns
TypeDescription
Polyline

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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

getVerticesBuilder(int index)

public Vertex.Builder getVerticesBuilder(int index)

The polyline vertices.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Vertex.Builder

getVerticesBuilderList()

public List<Vertex.Builder> getVerticesBuilderList()

The polyline vertices.

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

Returns
TypeDescription
List<Builder>

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>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Polyline other)

public Polyline.Builder mergeFrom(Polyline other)
Parameter
NameDescription
otherPolyline
Returns
TypeDescription
Polyline.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Polyline.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Polyline.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Polyline.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Polyline.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Polyline.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Polyline.Builder
Overrides

removeVertices(int index)

public Polyline.Builder removeVertices(int index)

The polyline vertices.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Polyline.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Polyline.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Polyline.Builder
Overrides

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

public Polyline.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Polyline.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Polyline.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
valueVertex
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVertex.Builder
Returns
TypeDescription
Polyline.Builder