Class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageImageSize

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

Overview

Image size.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAiLargeModelsVisionImageImageSize

Returns a new instance of CloudAiLargeModelsVisionImageImageSize.



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

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

Instance Attribute Details

#channelsFixnum

Corresponds to the JSON property channels

Returns:

  • (Fixnum)


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

def channels
  @channels
end

#heightFixnum

Corresponds to the JSON property height

Returns:

  • (Fixnum)


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

def height
  @height
end

#widthFixnum

Corresponds to the JSON property width

Returns:

  • (Fixnum)


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

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



521
522
523
524
525
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 521

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