Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ImageLocation
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ImageLocation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta1/classes.rb,
generated/google/apis/dlp_v2beta1/representations.rb,
generated/google/apis/dlp_v2beta1/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) ⇒ GooglePrivacyDlpV2beta1ImageLocation
constructor
A new instance of GooglePrivacyDlpV2beta1ImageLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1ImageLocation
Returns a new instance of GooglePrivacyDlpV2beta1ImageLocation
1341 1342 1343 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1341 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
Height of the bounding box in pixels.
Corresponds to the JSON property height
1324 1325 1326 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1324 def height @height end |
#left ⇒ Fixnum
Left coordinate of the bounding box. (0,0) is upper left.
Corresponds to the JSON property left
1329 1330 1331 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1329 def left @left end |
#top ⇒ Fixnum
Top coordinate of the bounding box. (0,0) is upper left.
Corresponds to the JSON property top
1334 1335 1336 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1334 def top @top end |
#width ⇒ Fixnum
Width of the bounding box in pixels.
Corresponds to the JSON property width
1339 1340 1341 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1339 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1346 1347 1348 1349 1350 1351 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1346 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 |