public final class DocumentDimensions extends GeneratedMessage implements DocumentDimensionsOrBuilderMessage that describes dimension of a document.
Protobuf type google.cloud.automl.v1.DocumentDimensions
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > DocumentDimensionsImplements
DocumentDimensionsOrBuilderStatic 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 |
|
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> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getUnit()
public DocumentDimensions.DocumentDimensionUnit getUnit()Unit of the dimension.
.google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1;
| Returns | |
|---|---|
| Type | Description |
DocumentDimensions.DocumentDimensionUnit |
The unit. |
getUnitValue()
public int getUnitValue()Unit of the dimension.
.google.cloud.automl.v1.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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public DocumentDimensions.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
DocumentDimensions.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected DocumentDimensions.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
DocumentDimensions.Builder |
|
toBuilder()
public DocumentDimensions.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
DocumentDimensions.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|