Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AudioDelta
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AudioDelta
- 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
-
#channels ⇒ Fixnum
The number of audio channels.
-
#data ⇒ String
Corresponds to the JSON property
dataNOTE: Values are automatically base64 encoded/decoded in the client library. -
#mime_type ⇒ String
Corresponds to the JSON property
mime_type. -
#rate ⇒ Fixnum
Deprecated.
-
#sample_rate ⇒ Fixnum
The sample rate of the audio.
-
#uri ⇒ String
Corresponds to the JSON property
uri.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenaiVertexV1beta1AudioDelta
constructor
A new instance of GenaiVertexV1beta1AudioDelta.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenaiVertexV1beta1AudioDelta
Returns a new instance of GenaiVertexV1beta1AudioDelta.
1047 1048 1049 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1047 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channels ⇒ Fixnum
The number of audio channels.
Corresponds to the JSON property channels
1019 1020 1021 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1019 def channels @channels end |
#data ⇒ String
Corresponds to the JSON property data
NOTE: Values are automatically base64 encoded/decoded in the client library.
1025 1026 1027 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1025 def data @data end |
#mime_type ⇒ String
Corresponds to the JSON property mime_type
1030 1031 1032 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1030 def mime_type @mime_type end |
#rate ⇒ Fixnum
Deprecated. Use sample_rate instead. The value is ignored.
Corresponds to the JSON property rate
1035 1036 1037 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1035 def rate @rate end |
#sample_rate ⇒ Fixnum
The sample rate of the audio.
Corresponds to the JSON property sample_rate
1040 1041 1042 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1040 def sample_rate @sample_rate end |
#uri ⇒ String
Corresponds to the JSON property uri
1045 1046 1047 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1045 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1052 1053 1054 1055 1056 1057 1058 1059 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1052 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 |