public static final class Document.Page.Matrix.Builder extends GeneratedMessageV3.Builder<Document.Page.Matrix.Builder> 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 Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Document.Page.Matrix.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Document.Page.Matrix build()
Returns
buildPartial()
public Document.Page.Matrix buildPartial()
Returns
clear()
public Document.Page.Matrix.Builder clear()
Returns
Overrides
clearCols()
public Document.Page.Matrix.Builder clearCols()
Number of columns in the matrix.
int32 cols = 2;
Returns
clearData()
public Document.Page.Matrix.Builder clearData()
The matrix data.
bytes data = 4;
Returns
clearField(Descriptors.FieldDescriptor field)
public Document.Page.Matrix.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Document.Page.Matrix.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRows()
public Document.Page.Matrix.Builder clearRows()
Number of rows in the matrix.
int32 rows = 1;
Returns
clearType()
public Document.Page.Matrix.Builder clearType()
Returns
clone()
public Document.Page.Matrix.Builder clone()
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getRows()
Number of rows in the matrix.
int32 rows = 1;
Returns
Type | Description |
int | The rows.
|
getType()
Returns
Type | Description |
int | The type.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Document.Page.Matrix other)
public Document.Page.Matrix.Builder mergeFrom(Document.Page.Matrix other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Document.Page.Matrix.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Document.Page.Matrix.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Document.Page.Matrix.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setCols(int value)
public Document.Page.Matrix.Builder setCols(int value)
Number of columns in the matrix.
int32 cols = 2;
Parameter
Name | Description |
value | int
The cols to set.
|
Returns
setData(ByteString value)
public Document.Page.Matrix.Builder setData(ByteString value)
The matrix data.
bytes data = 4;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Document.Page.Matrix.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Document.Page.Matrix.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setRows(int value)
public Document.Page.Matrix.Builder setRows(int value)
Number of rows in the matrix.
int32 rows = 1;
Parameter
Name | Description |
value | int
The rows to set.
|
Returns
setType(int value)
public Document.Page.Matrix.Builder setType(int value)
Parameter
Name | Description |
value | int
The type to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Document.Page.Matrix.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides