public static final class Document.Page.Matrix extends GeneratedMessageV3 implements Document.Page.MatrixOrBuilder
Representation for transformation matrix, intended to be compatible and
used with OpenCV format for image manipulation.
Protobuf type google.cloud.documentai.v1beta3.Document.Page.Matrix
Static Fields
COLS_FIELD_NUMBER
public static final int COLS_FIELD_NUMBER
Field Value
DATA_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
Field Value
ROWS_FIELD_NUMBER
public static final int ROWS_FIELD_NUMBER
Field Value
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Document.Page.Matrix getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Document.Page.Matrix.Builder newBuilder()
Returns
newBuilder(Document.Page.Matrix prototype)
public static Document.Page.Matrix.Builder newBuilder(Document.Page.Matrix prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static Document.Page.Matrix parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Document.Page.Matrix parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Document.Page.Matrix parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Document.Page.Matrix parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Document.Page.Matrix parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Document.Page.Matrix parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static Document.Page.Matrix parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Document.Page.Matrix parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static Document.Page.Matrix parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Document.Page.Matrix parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Document.Page.Matrix parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Document.Page.Matrix parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Document.Page.Matrix> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getCols()
Number of columns in the matrix.
int32 cols = 2;
Returns
Type | Description |
int | The cols.
|
getData()
public ByteString getData()
The matrix data.
bytes data = 4;
Returns
getDefaultInstanceForType()
public Document.Page.Matrix getDefaultInstanceForType()
Returns
getParserForType()
public Parser<Document.Page.Matrix> getParserForType()
Returns
Overrides
getRows()
Number of rows in the matrix.
int32 rows = 1;
Returns
Type | Description |
int | The rows.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getType()
Returns
Type | Description |
int | The type.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Document.Page.Matrix.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Document.Page.Matrix.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Document.Page.Matrix.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions