Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ImageLocation

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2beta2ImageLocation

Returns a new instance of GooglePrivacyDlpV2beta2ImageLocation



3045
3046
3047
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3045

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#heightFixnum

Height of the bounding box in pixels. Corresponds to the JSON property height

Returns:

  • (Fixnum)


3028
3029
3030
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3028

def height
  @height
end

#leftFixnum

Left coordinate of the bounding box. (0,0) is upper left. Corresponds to the JSON property left

Returns:

  • (Fixnum)


3033
3034
3035
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3033

def left
  @left
end

#topFixnum

Top coordinate of the bounding box. (0,0) is upper left. Corresponds to the JSON property top

Returns:

  • (Fixnum)


3038
3039
3040
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3038

def top
  @top
end

#widthFixnum

Width of the bounding box in pixels. Corresponds to the JSON property width

Returns:

  • (Fixnum)


3043
3044
3045
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3043

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3050
3051
3052
3053
3054
3055
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3050

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