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:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 130

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 (in, px, pt, etc.).
  class FontSize
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#color::Google::Type::Color

Returns Text color.

Returns:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 130

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 (in, px, pt, etc.).
  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.



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 130

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 (in, px, pt, etc.).
  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. https://www.w3schools.com/cssref/pr_font_weight.asp.

Returns:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 130

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 (in, px, pt, etc.).
  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:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 130

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 (in, px, pt, etc.).
  class FontSize
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#text_decoration::String

Returns Text decoration. Follows CSS standard. https://www.w3schools.com/cssref/pr_text_text-decoration.asp.

Returns:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 130

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 (in, px, pt, etc.).
  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. https://www.w3schools.com/cssref/pr_font_font-style.asp.

Returns:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 130

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 (in, px, pt, etc.).
  class FontSize
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end