Class: Google::Cloud::AutoML::V1beta1::DocumentDimensions

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/automl/v1beta1/data_items.rb

Overview

Message that describes dimension of a document.

Defined Under Namespace

Modules: DocumentDimensionUnit

Instance Attribute Summary collapse

Instance Attribute Details

#height::Float

Returns Height value of the document, works together with the unit.

Returns:

  • (::Float)

    Height value of the document, works together with the unit.



70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'proto_docs/google/cloud/automl/v1beta1/data_items.rb', line 70

class DocumentDimensions
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Unit of the document dimension.
  module DocumentDimensionUnit
    # Should not be used.
    DOCUMENT_DIMENSION_UNIT_UNSPECIFIED = 0

    # Document dimension is measured in inches.
    INCH = 1

    # Document dimension is measured in centimeters.
    CENTIMETER = 2

    # Document dimension is measured in points. 72 points = 1 inch.
    POINT = 3
  end
end

#unit::Google::Cloud::AutoML::V1beta1::DocumentDimensions::DocumentDimensionUnit

Returns Unit of the dimension.



70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'proto_docs/google/cloud/automl/v1beta1/data_items.rb', line 70

class DocumentDimensions
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Unit of the document dimension.
  module DocumentDimensionUnit
    # Should not be used.
    DOCUMENT_DIMENSION_UNIT_UNSPECIFIED = 0

    # Document dimension is measured in inches.
    INCH = 1

    # Document dimension is measured in centimeters.
    CENTIMETER = 2

    # Document dimension is measured in points. 72 points = 1 inch.
    POINT = 3
  end
end

#width::Float

Returns Width value of the document, works together with the unit.

Returns:

  • (::Float)

    Width value of the document, works together with the unit.



70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'proto_docs/google/cloud/automl/v1beta1/data_items.rb', line 70

class DocumentDimensions
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Unit of the document dimension.
  module DocumentDimensionUnit
    # Should not be used.
    DOCUMENT_DIMENSION_UNIT_UNSPECIFIED = 0

    # Document dimension is measured in inches.
    INCH = 1

    # Document dimension is measured in centimeters.
    CENTIMETER = 2

    # Document dimension is measured in points. 72 points = 1 inch.
    POINT = 3
  end
end