Class: Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionNamedBoundingBox

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAiLargeModelsVisionNamedBoundingBox

Returns a new instance of CloudAiLargeModelsVisionNamedBoundingBox.



516
517
518
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 516

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

Instance Attribute Details

#classesArray<String>

Corresponds to the JSON property classes

Returns:

  • (Array<String>)


484
485
486
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 484

def classes
  @classes
end

#entitiesArray<String>

Corresponds to the JSON property entities

Returns:

  • (Array<String>)


489
490
491
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 489

def entities
  @entities
end

#scoresArray<Float>

Corresponds to the JSON property scores

Returns:

  • (Array<Float>)


494
495
496
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 494

def scores
  @scores
end

#x1Float

Corresponds to the JSON property x1

Returns:

  • (Float)


499
500
501
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 499

def x1
  @x1
end

#x2Float

Corresponds to the JSON property x2

Returns:

  • (Float)


504
505
506
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 504

def x2
  @x2
end

#y1Float

Corresponds to the JSON property y1

Returns:

  • (Float)


509
510
511
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 509

def y1
  @y1
end

#y2Float

Corresponds to the JSON property y2

Returns:

  • (Float)


514
515
516
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 514

def y2
  @y2
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



521
522
523
524
525
526
527
528
529
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 521

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