Class: Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionImage
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionImage
- 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.
Instance Attribute Summary collapse
-
#encoding ⇒ String
Image encoding, encoded as "image/png" or "image/jpg".
-
#generation_seed ⇒ Fixnum
Generation seed for the sampled image.
-
#image ⇒ String
Raw bytes.
-
#image_rai_scores ⇒ Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionImageRaiScores
RAI scores for generated image returned.
-
#image_size ⇒ Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionImageImageSize
Image size.
-
#rai_info ⇒ Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfo
Next ID: 6 Corresponds to the JSON property
raiInfo. -
#semantic_filter_response ⇒ Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionSemanticFilterResponse
Semantic filter info for image.
-
#text ⇒ String
Text/Expanded text input for imagen.
-
#uri ⇒ String
Path to another storage (typically Google Cloud Storage).
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudAiLargeModelsVisionImage
constructor
A new instance of CloudAiLargeModelsVisionImage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudAiLargeModelsVisionImage
Returns a new instance of CloudAiLargeModelsVisionImage.
384 385 386 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 384 def initialize(**args) update!(**args) end |
Instance Attribute Details
#encoding ⇒ String
Image encoding, encoded as "image/png" or "image/jpg".
Corresponds to the JSON property encoding
339 340 341 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 339 def encoding @encoding end |
#generation_seed ⇒ Fixnum
Generation seed for the sampled image. This parameter is exposed to the user
only if one of the following is true: 1. The user specified per-example seeds
in the request. 2. The user doesn't specify the generation seed in the request.
Corresponds to the JSON property generationSeed
346 347 348 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 346 def generation_seed @generation_seed end |
#image ⇒ String
Raw bytes.
Corresponds to the JSON property image
NOTE: Values are automatically base64 encoded/decoded in the client library.
352 353 354 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 352 def image @image end |
#image_rai_scores ⇒ Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionImageRaiScores
RAI scores for generated image returned.
Corresponds to the JSON property imageRaiScores
357 358 359 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 357 def image_rai_scores @image_rai_scores end |
#image_size ⇒ Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionImageImageSize
Image size.
Corresponds to the JSON property imageSize
362 363 364 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 362 def image_size @image_size end |
#rai_info ⇒ Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfo
Next ID: 6
Corresponds to the JSON property raiInfo
367 368 369 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 367 def rai_info @rai_info end |
#semantic_filter_response ⇒ Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionSemanticFilterResponse
Semantic filter info for image.
Corresponds to the JSON property semanticFilterResponse
372 373 374 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 372 def semantic_filter_response @semantic_filter_response end |
#text ⇒ String
Text/Expanded text input for imagen.
Corresponds to the JSON property text
377 378 379 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 377 def text @text end |
#uri ⇒ String
Path to another storage (typically Google Cloud Storage).
Corresponds to the JSON property uri
382 383 384 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 382 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
389 390 391 392 393 394 395 396 397 398 399 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 389 def update!(**args) @encoding = args[:encoding] if args.key?(:encoding) @generation_seed = args[:generation_seed] if args.key?(:generation_seed) @image = args[:image] if args.key?(:image) @image_rai_scores = args[:image_rai_scores] if args.key?(:image_rai_scores) @image_size = args[:image_size] if args.key?(:image_size) @rai_info = args[:rai_info] if args.key?(:rai_info) @semantic_filter_response = args[:semantic_filter_response] if args.key?(:semantic_filter_response) @text = args[:text] if args.key?(:text) @uri = args[:uri] if args.key?(:uri) end |