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".
-
#image ⇒ String
Raw bytes.
-
#image_rai_scores ⇒ Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionImageRaiScores
RAI scores for generated image returned.
-
#rai_info ⇒ Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfo
RAI info for image.
-
#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.
96 97 98 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 96 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
63 64 65 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 63 def encoding @encoding end |
#image ⇒ String
Raw bytes.
Corresponds to the JSON property image
NOTE: Values are automatically base64 encoded/decoded in the client library.
69 70 71 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 69 def image @image end |
#image_rai_scores ⇒ Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionImageRaiScores
RAI scores for generated image returned.
Corresponds to the JSON property imageRaiScores
74 75 76 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 74 def image_rai_scores @image_rai_scores end |
#rai_info ⇒ Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfo
RAI info for image.
Corresponds to the JSON property raiInfo
79 80 81 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 79 def rai_info @rai_info end |
#semantic_filter_response ⇒ Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionSemanticFilterResponse
Semantic filter info for image.
Corresponds to the JSON property semanticFilterResponse
84 85 86 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 84 def semantic_filter_response @semantic_filter_response end |
#text ⇒ String
Text/Expanded text input for imagen.
Corresponds to the JSON property text
89 90 91 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 89 def text @text end |
#uri ⇒ String
Path to another storage (typically Google Cloud Storage).
Corresponds to the JSON property uri
94 95 96 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 94 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
101 102 103 104 105 106 107 108 109 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 101 def update!(**args) @encoding = args[:encoding] if args.key?(:encoding) @image = args[:image] if args.key?(:image) @image_rai_scores = args[:image_rai_scores] if args.key?(:image_rai_scores) @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 |