Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchRequestImageQuery

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb

Overview

Specifies the image query input.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SearchRequestImageQuery

Returns a new instance of GoogleCloudDiscoveryengineV1SearchRequestImageQuery.



7436
7437
7438
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7436

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

Instance Attribute Details

#image_bytesString

Base64 encoded image bytes. Supported image formats: JPEG, PNG, and BMP. Corresponds to the JSON property imageBytes

Returns:

  • (String)


7434
7435
7436
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7434

def image_bytes
  @image_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7441
7442
7443
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7441

def update!(**args)
  @image_bytes = args[:image_bytes] if args.key?(:image_bytes)
end