Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ImageContent

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

An image content block.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1ImageContent

Returns a new instance of GenaiVertexV1beta1ImageContent.



2906
2907
2908
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2906

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

Instance Attribute Details

#dataString

The image content. Corresponds to the JSON property data NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2889
2890
2891
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2889

def data
  @data
end

#mime_typeString

The mime type of the image. Corresponds to the JSON property mime_type

Returns:

  • (String)


2894
2895
2896
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2894

def mime_type
  @mime_type
end

#resolutionString

The resolution of the media. Corresponds to the JSON property resolution

Returns:

  • (String)


2899
2900
2901
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2899

def resolution
  @resolution
end

#uriString

The URI of the image. Corresponds to the JSON property uri

Returns:

  • (String)


2904
2905
2906
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2904

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2911
2912
2913
2914
2915
2916
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2911

def update!(**args)
  @data = args[:data] if args.key?(:data)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
  @resolution = args[:resolution] if args.key?(:resolution)
  @uri = args[:uri] if args.key?(:uri)
end