Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerBlobAttachment

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) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerBlobAttachment

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerBlobAttachment.



8014
8015
8016
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8014

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)


8007
8008
8009
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8007

def attribution_type
  @attribution_type
end

#dataGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerBlobAttachmentBlob

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



8012
8013
8014
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8012

def data
  @data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8019
8020
8021
8022
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8019

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