Class: Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionImageImageSize

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

Overview

Image size.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAiLargeModelsVisionImageImageSize

Returns a new instance of CloudAiLargeModelsVisionImageImageSize.



421
422
423
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 421

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

Instance Attribute Details

#channelsFixnum

Corresponds to the JSON property channels

Returns:

  • (Fixnum)


409
410
411
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 409

def channels
  @channels
end

#heightFixnum

Corresponds to the JSON property height

Returns:

  • (Fixnum)


414
415
416
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 414

def height
  @height
end

#widthFixnum

Corresponds to the JSON property width

Returns:

  • (Fixnum)


419
420
421
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 419

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



426
427
428
429
430
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 426

def update!(**args)
  @channels = args[:channels] if args.key?(:channels)
  @height = args[:height] if args.key?(:height)
  @width = args[:width] if args.key?(:width)
end