public static enum DocumentDimensions.DocumentDimensionUnit extends Enum<DocumentDimensions.DocumentDimensionUnit> implements com.google.protobuf.ProtocolMessageEnum
Unit of the document dimension.Protobuf enum
google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit| Enum Constant and Description |
|---|
CENTIMETER
Document dimension is measured in centimeters.
|
DOCUMENT_DIMENSION_UNIT_UNSPECIFIED
Should not be used.
|
INCH
Document dimension is measured in inches.
|
POINT
Document dimension is measured in points. 72 points = 1 inch.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
CENTIMETER_VALUE
Document dimension is measured in centimeters.
|
static int |
DOCUMENT_DIMENSION_UNIT_UNSPECIFIED_VALUE
Should not be used.
|
static int |
INCH_VALUE
Document dimension is measured in inches.
|
static int |
POINT_VALUE
Document dimension is measured in points. 72 points = 1 inch.
|
| Modifier and Type | Method and Description |
|---|---|
static DocumentDimensions.DocumentDimensionUnit |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<DocumentDimensions.DocumentDimensionUnit> |
internalGetValueMap() |
static DocumentDimensions.DocumentDimensionUnit |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static DocumentDimensions.DocumentDimensionUnit |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DocumentDimensions.DocumentDimensionUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DocumentDimensions.DocumentDimensionUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DocumentDimensions.DocumentDimensionUnit DOCUMENT_DIMENSION_UNIT_UNSPECIFIED
Should not be used.
DOCUMENT_DIMENSION_UNIT_UNSPECIFIED = 0;public static final DocumentDimensions.DocumentDimensionUnit INCH
Document dimension is measured in inches.
INCH = 1;public static final DocumentDimensions.DocumentDimensionUnit CENTIMETER
Document dimension is measured in centimeters.
CENTIMETER = 2;public static final DocumentDimensions.DocumentDimensionUnit POINT
Document dimension is measured in points. 72 points = 1 inch.
POINT = 3;public static final DocumentDimensions.DocumentDimensionUnit UNRECOGNIZED
public static final int DOCUMENT_DIMENSION_UNIT_UNSPECIFIED_VALUE
Should not be used.
DOCUMENT_DIMENSION_UNIT_UNSPECIFIED = 0;public static final int INCH_VALUE
Document dimension is measured in inches.
INCH = 1;public static final int CENTIMETER_VALUE
Document dimension is measured in centimeters.
CENTIMETER = 2;public static final int POINT_VALUE
Document dimension is measured in points. 72 points = 1 inch.
POINT = 3;public static DocumentDimensions.DocumentDimensionUnit[] values()
for (DocumentDimensions.DocumentDimensionUnit c : DocumentDimensions.DocumentDimensionUnit.values()) System.out.println(c);
public static DocumentDimensions.DocumentDimensionUnit valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static DocumentDimensions.DocumentDimensionUnit valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static DocumentDimensions.DocumentDimensionUnit forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<DocumentDimensions.DocumentDimensionUnit> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static DocumentDimensions.DocumentDimensionUnit valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.