Class: Google::Cloud::DocumentAI::V1beta3::Document::Style

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/documentai/v1beta3/document.rb

Overview

Annotation for common text style attributes. This adheres to CSS conventions as much as possible.

Defined Under Namespace

Classes: FontSize

Instance Attribute Summary collapse

Instance Attribute Details

#background_color::Google::Type::Color

Returns Text background color.

Returns:



142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142

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

  # Font size with unit.
  # @!attribute [rw] size
  #   @return [::Float]
  #     Font size for the text.
  # @!attribute [rw] unit
  #   @return [::String]
  #     Unit for the font size. Follows CSS naming (such as `in`, `px`, and
  #     `pt`).
  class FontSize
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#color::Google::Type::Color

Returns Text color.

Returns:



142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142

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

  # Font size with unit.
  # @!attribute [rw] size
  #   @return [::Float]
  #     Font size for the text.
  # @!attribute [rw] unit
  #   @return [::String]
  #     Unit for the font size. Follows CSS naming (such as `in`, `px`, and
  #     `pt`).
  class FontSize
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#font_family::String

Returns Font family such as Arial, Times New Roman. https://www.w3schools.com/cssref/pr_font_font-family.asp.

Returns:



142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142

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

  # Font size with unit.
  # @!attribute [rw] size
  #   @return [::Float]
  #     Font size for the text.
  # @!attribute [rw] unit
  #   @return [::String]
  #     Unit for the font size. Follows CSS naming (such as `in`, `px`, and
  #     `pt`).
  class FontSize
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#font_size::Google::Cloud::DocumentAI::V1beta3::Document::Style::FontSize

Returns Font size.



142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142

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

  # Font size with unit.
  # @!attribute [rw] size
  #   @return [::Float]
  #     Font size for the text.
  # @!attribute [rw] unit
  #   @return [::String]
  #     Unit for the font size. Follows CSS naming (such as `in`, `px`, and
  #     `pt`).
  class FontSize
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#font_weight::String

Returns Font weight. Possible values are normal, bold, bolder, and lighter.

Returns:

  • (::String)

    Font weight. Possible values are normal, bold, bolder, and lighter.



142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142

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

  # Font size with unit.
  # @!attribute [rw] size
  #   @return [::Float]
  #     Font size for the text.
  # @!attribute [rw] unit
  #   @return [::String]
  #     Unit for the font size. Follows CSS naming (such as `in`, `px`, and
  #     `pt`).
  class FontSize
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#text_anchor::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor

Returns Text anchor indexing into the Document.text.

Returns:



142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142

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

  # Font size with unit.
  # @!attribute [rw] size
  #   @return [::Float]
  #     Font size for the text.
  # @!attribute [rw] unit
  #   @return [::String]
  #     Unit for the font size. Follows CSS naming (such as `in`, `px`, and
  #     `pt`).
  class FontSize
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#text_decoration::String

Returns Text decoration. Follows CSS standard. .

Returns:



142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142

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

  # Font size with unit.
  # @!attribute [rw] size
  #   @return [::Float]
  #     Font size for the text.
  # @!attribute [rw] unit
  #   @return [::String]
  #     Unit for the font size. Follows CSS naming (such as `in`, `px`, and
  #     `pt`).
  class FontSize
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#text_style::String

Returns Text style. Possible values are normal, italic, and oblique.

Returns:

  • (::String)

    Text style. Possible values are normal, italic, and oblique.



142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 142

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

  # Font size with unit.
  # @!attribute [rw] size
  #   @return [::Float]
  #     Font size for the text.
  # @!attribute [rw] unit
  #   @return [::String]
  #     Unit for the font size. Follows CSS naming (such as `in`, `px`, and
  #     `pt`).
  class FontSize
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end