Class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImage

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAiLargeModelsVisionImage

Returns a new instance of CloudAiLargeModelsVisionImage.



164
165
166
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 164

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

Instance Attribute Details

#encodingString

Image encoding, encoded as "image/png" or "image/jpg". Corresponds to the JSON property encoding

Returns:

  • (String)


131
132
133
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 131

def encoding
  @encoding
end

#imageString

Raw bytes. Corresponds to the JSON property image NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


137
138
139
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 137

def image
  @image
end

#image_rai_scoresGoogle::Apis::AiplatformV1::CloudAiLargeModelsVisionImageRaiScores

RAI scores for generated image returned. Corresponds to the JSON property imageRaiScores



142
143
144
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 142

def image_rai_scores
  @image_rai_scores
end

#rai_infoGoogle::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfo

RAI info for image. Corresponds to the JSON property raiInfo



147
148
149
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 147

def rai_info
  @rai_info
end

#semantic_filter_responseGoogle::Apis::AiplatformV1::CloudAiLargeModelsVisionSemanticFilterResponse

Semantic filter info for image. Corresponds to the JSON property semanticFilterResponse



152
153
154
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 152

def semantic_filter_response
  @semantic_filter_response
end

#textString

Text/Expanded text input for imagen. Corresponds to the JSON property text

Returns:

  • (String)


157
158
159
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 157

def text
  @text
end

#uriString

Path to another storage (typically Google Cloud Storage). Corresponds to the JSON property uri

Returns:

  • (String)


162
163
164
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 162

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



169
170
171
172
173
174
175
176
177
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 169

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