Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ImageLocation
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ImageLocation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta2/classes.rb,
generated/google/apis/dlp_v2beta2/representations.rb,
generated/google/apis/dlp_v2beta2/representations.rb
Overview
Bounding box encompassing detected text within an image.
Instance Attribute Summary collapse
-
#height ⇒ Fixnum
Height of the bounding box in pixels.
-
#left ⇒ Fixnum
Left coordinate of the bounding box.
-
#top ⇒ Fixnum
Top coordinate of the bounding box.
-
#width ⇒ Fixnum
Width of the bounding box in pixels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2ImageLocation
constructor
A new instance of GooglePrivacyDlpV2beta2ImageLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2ImageLocation
Returns a new instance of GooglePrivacyDlpV2beta2ImageLocation
3405 3406 3407 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3405 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
Height of the bounding box in pixels.
Corresponds to the JSON property height
3388 3389 3390 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3388 def height @height end |
#left ⇒ Fixnum
Left coordinate of the bounding box. (0,0) is upper left.
Corresponds to the JSON property left
3393 3394 3395 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3393 def left @left end |
#top ⇒ Fixnum
Top coordinate of the bounding box. (0,0) is upper left.
Corresponds to the JSON property top
3398 3399 3400 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3398 def top @top end |
#width ⇒ Fixnum
Width of the bounding box in pixels.
Corresponds to the JSON property width
3403 3404 3405 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3403 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3410 3411 3412 3413 3414 3415 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3410 def update!(**args) @height = args[:height] if args.key?(:height) @left = args[:left] if args.key?(:left) @top = args[:top] if args.key?(:top) @width = args[:width] if args.key?(:width) end |