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.v1beta2.Document.Page.Matrix
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Document.Page.Matrix.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Document.Page.Matrix build()
buildPartial()
public Document.Page.Matrix buildPartial()
clear()
public Document.Page.Matrix.Builder clear()
Overrides
clearCols()
public Document.Page.Matrix.Builder clearCols()
Number of columns in the matrix.
int32 cols = 2;
clearData()
public Document.Page.Matrix.Builder clearData()
The matrix data.
bytes data = 4;
clearField(Descriptors.FieldDescriptor field)
public Document.Page.Matrix.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Document.Page.Matrix.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRows()
public Document.Page.Matrix.Builder clearRows()
Number of rows in the matrix.
int32 rows = 1;
clearType()
public Document.Page.Matrix.Builder clearType()
clone()
public Document.Page.Matrix.Builder clone()
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;
getDefaultInstanceForType()
public Document.Page.Matrix getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Document.Page.Matrix other)
public Document.Page.Matrix.Builder mergeFrom(Document.Page.Matrix other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Document.Page.Matrix.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Document.Page.Matrix.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Document.Page.Matrix.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
setData(ByteString value)
public Document.Page.Matrix.Builder setData(ByteString value)
The matrix data.
bytes data = 4;
Parameter |
Name |
Description |
value |
ByteString
The data to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Document.Page.Matrix.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Document.Page.Matrix.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
setType(int value)
public Document.Page.Matrix.Builder setType(int value)
Parameter |
Name |
Description |
value |
int
The type to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Document.Page.Matrix.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides