Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerBlobAttachmentBlob

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

The media type and data of the blob.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerBlobAttachmentBlob

Returns a new instance of GoogleCloudDiscoveryengineV1betaAnswerBlobAttachmentBlob.



19135
19136
19137
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19135

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

Instance Attribute Details

#dataString

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

Returns:

  • (String)


19128
19129
19130
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19128

def data
  @data
end

#mime_typeString

Output only. The media type (MIME type) of the generated or retrieved data. Corresponds to the JSON property mimeType

Returns:

  • (String)


19133
19134
19135
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19133

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19140
19141
19142
19143
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19140

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