Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AudioDelta

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1AudioDelta

Returns a new instance of GenaiVertexV1beta1AudioDelta.



1368
1369
1370
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1368

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

Instance Attribute Details

#channelsFixnum

The number of audio channels. Corresponds to the JSON property channels

Returns:

  • (Fixnum)


1340
1341
1342
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1340

def channels
  @channels
end

#dataString

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

Returns:

  • (String)


1346
1347
1348
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1346

def data
  @data
end

#mime_typeString

Corresponds to the JSON property mimeType

Returns:

  • (String)


1351
1352
1353
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1351

def mime_type
  @mime_type
end

#rateFixnum

Deprecated. Use sample_rate instead. The value is ignored. Corresponds to the JSON property rate

Returns:

  • (Fixnum)


1356
1357
1358
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1356

def rate
  @rate
end

#sample_rateFixnum

The sample rate of the audio. Corresponds to the JSON property sampleRate

Returns:

  • (Fixnum)


1361
1362
1363
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1361

def sample_rate
  @sample_rate
end

#uriString

Corresponds to the JSON property uri

Returns:

  • (String)


1366
1367
1368
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1366

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1373
1374
1375
1376
1377
1378
1379
1380
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1373

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