Class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionNamedBoundingBox

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAiLargeModelsVisionNamedBoundingBox

Returns a new instance of CloudAiLargeModelsVisionNamedBoundingBox.



201
202
203
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 201

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

Instance Attribute Details

#classesArray<String>

Corresponds to the JSON property classes

Returns:

  • (Array<String>)


169
170
171
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 169

def classes
  @classes
end

#entitiesArray<String>

Corresponds to the JSON property entities

Returns:

  • (Array<String>)


174
175
176
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 174

def entities
  @entities
end

#scoresArray<Float>

Corresponds to the JSON property scores

Returns:

  • (Array<Float>)


179
180
181
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 179

def scores
  @scores
end

#x1Float

Corresponds to the JSON property x1

Returns:

  • (Float)


184
185
186
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 184

def x1
  @x1
end

#x2Float

Corresponds to the JSON property x2

Returns:

  • (Float)


189
190
191
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 189

def x2
  @x2
end

#y1Float

Corresponds to the JSON property y1

Returns:

  • (Float)


194
195
196
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 194

def y1
  @y1
end

#y2Float

Corresponds to the JSON property y2

Returns:

  • (Float)


199
200
201
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 199

def y2
  @y2
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



206
207
208
209
210
211
212
213
214
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 206

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