Class DocumentDimensions (2.54.0)

public final class DocumentDimensions extends GeneratedMessageV3 implements DocumentDimensionsOrBuilder

Message that describes dimension of a document.

Protobuf type google.cloud.automl.v1beta1.DocumentDimensions

Static Fields

HEIGHT_FIELD_NUMBER

public static final int HEIGHT_FIELD_NUMBER
Field Value
Type Description
int

UNIT_FIELD_NUMBER

public static final int UNIT_FIELD_NUMBER
Field Value
Type Description
int

WIDTH_FIELD_NUMBER

public static final int WIDTH_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DocumentDimensions getDefaultInstance()
Returns
Type Description
DocumentDimensions

getDescriptor()

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

newBuilder()

public static DocumentDimensions.Builder newBuilder()
Returns
Type Description
DocumentDimensions.Builder

newBuilder(DocumentDimensions prototype)

public static DocumentDimensions.Builder newBuilder(DocumentDimensions prototype)
Parameter
Name Description
prototype DocumentDimensions
Returns
Type Description
DocumentDimensions.Builder

parseDelimitedFrom(InputStream input)

public static DocumentDimensions parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DocumentDimensions
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DocumentDimensions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DocumentDimensions
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DocumentDimensions parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DocumentDimensions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DocumentDimensions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DocumentDimensions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DocumentDimensions parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DocumentDimensions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DocumentDimensions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DocumentDimensions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DocumentDimensions parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DocumentDimensions
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DocumentDimensions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DocumentDimensions
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DocumentDimensions parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DocumentDimensions
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DocumentDimensions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DocumentDimensions
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DocumentDimensions parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DocumentDimensions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DocumentDimensions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DocumentDimensions
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DocumentDimensions> parser()
Returns
Type Description
Parser<DocumentDimensions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public DocumentDimensions getDefaultInstanceForType()
Returns
Type Description
DocumentDimensions

getHeight()

public float getHeight()

Height value of the document, works together with the unit.

float height = 3;

Returns
Type Description
float

The height.

getParserForType()

public Parser<DocumentDimensions> getParserForType()
Returns
Type Description
Parser<DocumentDimensions>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnit()

public DocumentDimensions.DocumentDimensionUnit getUnit()

Unit of the dimension.

.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1;

Returns
Type Description
DocumentDimensions.DocumentDimensionUnit

The unit.

getUnitValue()

public int getUnitValue()

Unit of the dimension.

.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1;

Returns
Type Description
int

The enum numeric value on the wire for unit.

getWidth()

public float getWidth()

Width value of the document, works together with the unit.

float width = 2;

Returns
Type Description
float

The width.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DocumentDimensions.Builder newBuilderForType()
Returns
Type Description
DocumentDimensions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DocumentDimensions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DocumentDimensions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DocumentDimensions.Builder toBuilder()
Returns
Type Description
DocumentDimensions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException