Class NormalizedPolygon (0.14.1)

public final class NormalizedPolygon extends GeneratedMessageV3 implements NormalizedPolygonOrBuilder

Normalized Polygon.

Protobuf type google.events.cloud.visionai.v1.NormalizedPolygon

Static Fields

NORMALIZED_VERTICES_FIELD_NUMBER

public static final int NORMALIZED_VERTICES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NormalizedPolygon getDefaultInstance()
Returns
TypeDescription
NormalizedPolygon

getDescriptor()

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

newBuilder()

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

newBuilder(NormalizedPolygon prototype)

public static NormalizedPolygon.Builder newBuilder(NormalizedPolygon prototype)
Parameter
NameDescription
prototypeNormalizedPolygon
Returns
TypeDescription
NormalizedPolygon.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public NormalizedPolygon getDefaultInstanceForType()
Returns
TypeDescription
NormalizedPolygon

getNormalizedVertices(int index)

public NormalizedVertex getNormalizedVertices(int index)

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NormalizedVertex

getNormalizedVerticesCount()

public int getNormalizedVerticesCount()

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Returns
TypeDescription
int

getNormalizedVerticesList()

public List<NormalizedVertex> getNormalizedVerticesList()

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Returns
TypeDescription
List<NormalizedVertex>

getNormalizedVerticesOrBuilder(int index)

public NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder(int index)

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NormalizedVertexOrBuilder

getNormalizedVerticesOrBuilderList()

public List<? extends NormalizedVertexOrBuilder> getNormalizedVerticesOrBuilderList()

The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].

repeated .google.events.cloud.visionai.v1.NormalizedVertex normalized_vertices = 1;

Returns
TypeDescription
List<? extends com.google.events.cloud.visionai.v1.NormalizedVertexOrBuilder>

getParserForType()

public Parser<NormalizedPolygon> getParserForType()
Returns
TypeDescription
Parser<NormalizedPolygon>
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 NormalizedPolygon.Builder newBuilderForType()
Returns
TypeDescription
NormalizedPolygon.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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