Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerBlobAttachment

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

Overview

Stores binarydata attached to text answer, e.g. image, video, audio, etc.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerBlobAttachment

Returns a new instance of GoogleCloudDiscoveryengineV1betaAnswerBlobAttachment.



18260
18261
18262
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18260

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

Instance Attribute Details

#attribution_typeString

Output only. The attribution type of the blob. Corresponds to the JSON property attributionType

Returns:

  • (String)


18253
18254
18255
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18253

def attribution_type
  @attribution_type
end

#dataGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerBlobAttachmentBlob

The media type and data of the blob. Corresponds to the JSON property data



18258
18259
18260
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18258

def data
  @data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18265
18266
18267
18268
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18265

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