Class Document.Page.Matrix.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Document.Page.Matrix.Builder>
com.google.cloud.documentai.v1.Document.Page.Matrix.Builder
All Implemented Interfaces:
Document.Page.MatrixOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Document.Page.Matrix

public static final class Document.Page.Matrix.Builder extends com.google.protobuf.GeneratedMessage.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.v1.Document.Page.Matrix
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Document.Page.Matrix.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Document.Page.Matrix.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Document.Page.Matrix.Builder>
    • getDefaultInstanceForType

      public Document.Page.Matrix getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Document.Page.Matrix build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Document.Page.Matrix buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Document.Page.Matrix.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Page.Matrix.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Document.Page.Matrix.Builder>
    • mergeFrom

      public Document.Page.Matrix.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Page.Matrix.Builder>
      Throws:
      IOException
    • getRows

      public int getRows()
       Number of rows in the matrix.
       
      int32 rows = 1;
      Specified by:
      getRows in interface Document.Page.MatrixOrBuilder
      Returns:
      The rows.
    • setRows

      public Document.Page.Matrix.Builder setRows(int value)
       Number of rows in the matrix.
       
      int32 rows = 1;
      Parameters:
      value - The rows to set.
      Returns:
      This builder for chaining.
    • clearRows

      public Document.Page.Matrix.Builder clearRows()
       Number of rows in the matrix.
       
      int32 rows = 1;
      Returns:
      This builder for chaining.
    • getCols

      public int getCols()
       Number of columns in the matrix.
       
      int32 cols = 2;
      Specified by:
      getCols in interface Document.Page.MatrixOrBuilder
      Returns:
      The cols.
    • setCols

      public Document.Page.Matrix.Builder setCols(int value)
       Number of columns in the matrix.
       
      int32 cols = 2;
      Parameters:
      value - The cols to set.
      Returns:
      This builder for chaining.
    • clearCols

      public Document.Page.Matrix.Builder clearCols()
       Number of columns in the matrix.
       
      int32 cols = 2;
      Returns:
      This builder for chaining.
    • getType

      public int getType()
       This encodes information about what data type the matrix uses.
       For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list
       of OpenCV primitive data types, please refer to
       https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
       
      int32 type = 3;
      Specified by:
      getType in interface Document.Page.MatrixOrBuilder
      Returns:
      The type.
    • setType

      public Document.Page.Matrix.Builder setType(int value)
       This encodes information about what data type the matrix uses.
       For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list
       of OpenCV primitive data types, please refer to
       https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
       
      int32 type = 3;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Document.Page.Matrix.Builder clearType()
       This encodes information about what data type the matrix uses.
       For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list
       of OpenCV primitive data types, please refer to
       https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
       
      int32 type = 3;
      Returns:
      This builder for chaining.
    • getData

      public com.google.protobuf.ByteString getData()
       The matrix data.
       
      bytes data = 4;
      Specified by:
      getData in interface Document.Page.MatrixOrBuilder
      Returns:
      The data.
    • setData

      public Document.Page.Matrix.Builder setData(com.google.protobuf.ByteString value)
       The matrix data.
       
      bytes data = 4;
      Parameters:
      value - The data to set.
      Returns:
      This builder for chaining.
    • clearData

      public Document.Page.Matrix.Builder clearData()
       The matrix data.
       
      bytes data = 4;
      Returns:
      This builder for chaining.