Class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionNamedBoundingBox
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::CloudAiLargeModelsVisionNamedBoundingBox
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Instance Attribute Summary collapse
-
#classes ⇒ Array<String>
Corresponds to the JSON property
classes
. -
#entities ⇒ Array<String>
Corresponds to the JSON property
entities
. -
#scores ⇒ Array<Float>
Corresponds to the JSON property
scores
. -
#x1 ⇒ Float
Corresponds to the JSON property
x1
. -
#x2 ⇒ Float
Corresponds to the JSON property
x2
. -
#y1 ⇒ Float
Corresponds to the JSON property
y1
. -
#y2 ⇒ Float
Corresponds to the JSON property
y2
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudAiLargeModelsVisionNamedBoundingBox
constructor
A new instance of CloudAiLargeModelsVisionNamedBoundingBox.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudAiLargeModelsVisionNamedBoundingBox
Returns a new instance of CloudAiLargeModelsVisionNamedBoundingBox.
240 241 242 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 240 def initialize(**args) update!(**args) end |
Instance Attribute Details
#classes ⇒ Array<String>
Corresponds to the JSON property classes
208 209 210 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 208 def classes @classes end |
#entities ⇒ Array<String>
Corresponds to the JSON property entities
213 214 215 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 213 def entities @entities end |
#scores ⇒ Array<Float>
Corresponds to the JSON property scores
218 219 220 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 218 def scores @scores end |
#x1 ⇒ Float
Corresponds to the JSON property x1
223 224 225 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 223 def x1 @x1 end |
#x2 ⇒ Float
Corresponds to the JSON property x2
228 229 230 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 228 def x2 @x2 end |
#y1 ⇒ Float
Corresponds to the JSON property y1
233 234 235 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 233 def y1 @y1 end |
#y2 ⇒ Float
Corresponds to the JSON property y2
238 239 240 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 238 def y2 @y2 end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
245 246 247 248 249 250 251 252 253 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 245 def update!(**args) @classes = args[:classes] if args.key?(:classes) @entities = args[:entities] if args.key?(:entities) @scores = args[:scores] if args.key?(:scores) @x1 = args[:x1] if args.key?(:x1) @x2 = args[:x2] if args.key?(:x2) @y1 = args[:y1] if args.key?(:y1) @y2 = args[:y2] if args.key?(:y2) end |