Class DocumentDimensions (2.23.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
TypeDescription
int

UNIT_FIELD_NUMBER

public static final int UNIT_FIELD_NUMBER
Field Value
TypeDescription
int

WIDTH_FIELD_NUMBER

public static final int WIDTH_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DocumentDimensions getDefaultInstance()
Returns
TypeDescription
DocumentDimensions

getDescriptor()

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

newBuilder()

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

newBuilder(DocumentDimensions prototype)

public static DocumentDimensions.Builder newBuilder(DocumentDimensions prototype)
Parameter
NameDescription
prototypeDocumentDimensions
Returns
TypeDescription
DocumentDimensions.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public DocumentDimensions getDefaultInstanceForType()
Returns
TypeDescription
DocumentDimensions

getHeight()

public float getHeight()

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

float height = 3;

Returns
TypeDescription
float

The height.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnit()

public DocumentDimensions.DocumentDimensionUnit getUnit()

Unit of the dimension.

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

Returns
TypeDescription
DocumentDimensions.DocumentDimensionUnit

The unit.

getUnitValue()

public int getUnitValue()

Unit of the dimension.

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

Returns
TypeDescription
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
TypeDescription
float

The width.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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