-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_channel_transcode_audio_encoders_inner_loudness.go
200 lines (166 loc) · 7.01 KB
/
model_channel_transcode_audio_encoders_inner_loudness.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
/*
* WBD Aventus Channels API
*
* API version: 0.0.0
* Contact: live-control-plane-devs@wbd.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package isp
import (
"encoding/json"
)
// checks if the ChannelTranscodeAudioEncodersInnerLoudness type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ChannelTranscodeAudioEncodersInnerLoudness{}
// ChannelTranscodeAudioEncodersInnerLoudness Loudness normalization settings. Loudness configuration is required for non-passthrough AC-3 and EAC-3.
type ChannelTranscodeAudioEncodersInnerLoudness struct {
// Enable Dialog Intelligence. Only supported for (E)AC-3 encoders. This may only be set if lkfs is explicitly configured to -24.
DialogIntel *bool `json:"dialog_intel,omitempty" doc:"Enable Dialog Intelligence. Only supported for (E)AC-3 encoders. This may only be set if lkfs is explicitly configured to -24."`
// Loudness normalization LKFS setting. Default value is -24.
Lkfs *int32 `json:"lkfs,omitempty" format:"int32" doc:"Loudness normalization LKFS setting. Default value is -24."`
// Peak Limit. The only allowable value is -2.0. This field is soft-deprecated and will be unsupported in a future transcoder version. In the current transcoder version, the values 0.0 and -2.0 both produce the same configuration.
PeakLimit *float32 `json:"peak_limit,omitempty" format:"float" doc:"Peak Limit. The only allowable value is -2.0. This field is soft-deprecated and will be unsupported in a future transcoder version. In the current transcoder version, the values 0.0 and -2.0 both produce the same configuration."`
}
// NewChannelTranscodeAudioEncodersInnerLoudness instantiates a new ChannelTranscodeAudioEncodersInnerLoudness object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewChannelTranscodeAudioEncodersInnerLoudness() *ChannelTranscodeAudioEncodersInnerLoudness {
this := ChannelTranscodeAudioEncodersInnerLoudness{}
return &this
}
// NewChannelTranscodeAudioEncodersInnerLoudnessWithDefaults instantiates a new ChannelTranscodeAudioEncodersInnerLoudness object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewChannelTranscodeAudioEncodersInnerLoudnessWithDefaults() *ChannelTranscodeAudioEncodersInnerLoudness {
this := ChannelTranscodeAudioEncodersInnerLoudness{}
return &this
}
// GetDialogIntel returns the DialogIntel field value if set, zero value otherwise.
func (o *ChannelTranscodeAudioEncodersInnerLoudness) GetDialogIntel() bool {
if o == nil || IsNil(o.DialogIntel) {
var ret bool
return ret
}
return *o.DialogIntel
}
// GetDialogIntelOk returns a tuple with the DialogIntel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelTranscodeAudioEncodersInnerLoudness) GetDialogIntelOk() (*bool, bool) {
if o == nil || IsNil(o.DialogIntel) {
return nil, false
}
return o.DialogIntel, true
}
// HasDialogIntel returns a boolean if a field has been set.
func (o *ChannelTranscodeAudioEncodersInnerLoudness) HasDialogIntel() bool {
if o != nil && !IsNil(o.DialogIntel) {
return true
}
return false
}
// SetDialogIntel gets a reference to the given bool and assigns it to the DialogIntel field.
func (o *ChannelTranscodeAudioEncodersInnerLoudness) SetDialogIntel(v bool) {
o.DialogIntel = &v
}
// GetLkfs returns the Lkfs field value if set, zero value otherwise.
func (o *ChannelTranscodeAudioEncodersInnerLoudness) GetLkfs() int32 {
if o == nil || IsNil(o.Lkfs) {
var ret int32
return ret
}
return *o.Lkfs
}
// GetLkfsOk returns a tuple with the Lkfs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelTranscodeAudioEncodersInnerLoudness) GetLkfsOk() (*int32, bool) {
if o == nil || IsNil(o.Lkfs) {
return nil, false
}
return o.Lkfs, true
}
// HasLkfs returns a boolean if a field has been set.
func (o *ChannelTranscodeAudioEncodersInnerLoudness) HasLkfs() bool {
if o != nil && !IsNil(o.Lkfs) {
return true
}
return false
}
// SetLkfs gets a reference to the given int32 and assigns it to the Lkfs field.
func (o *ChannelTranscodeAudioEncodersInnerLoudness) SetLkfs(v int32) {
o.Lkfs = &v
}
// GetPeakLimit returns the PeakLimit field value if set, zero value otherwise.
func (o *ChannelTranscodeAudioEncodersInnerLoudness) GetPeakLimit() float32 {
if o == nil || IsNil(o.PeakLimit) {
var ret float32
return ret
}
return *o.PeakLimit
}
// GetPeakLimitOk returns a tuple with the PeakLimit field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelTranscodeAudioEncodersInnerLoudness) GetPeakLimitOk() (*float32, bool) {
if o == nil || IsNil(o.PeakLimit) {
return nil, false
}
return o.PeakLimit, true
}
// HasPeakLimit returns a boolean if a field has been set.
func (o *ChannelTranscodeAudioEncodersInnerLoudness) HasPeakLimit() bool {
if o != nil && !IsNil(o.PeakLimit) {
return true
}
return false
}
// SetPeakLimit gets a reference to the given float32 and assigns it to the PeakLimit field.
func (o *ChannelTranscodeAudioEncodersInnerLoudness) SetPeakLimit(v float32) {
o.PeakLimit = &v
}
func (o ChannelTranscodeAudioEncodersInnerLoudness) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ChannelTranscodeAudioEncodersInnerLoudness) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.DialogIntel) {
toSerialize["dialog_intel"] = o.DialogIntel
}
if !IsNil(o.Lkfs) {
toSerialize["lkfs"] = o.Lkfs
}
if !IsNil(o.PeakLimit) {
toSerialize["peak_limit"] = o.PeakLimit
}
return toSerialize, nil
}
type NullableChannelTranscodeAudioEncodersInnerLoudness struct {
value *ChannelTranscodeAudioEncodersInnerLoudness
isSet bool
}
func (v NullableChannelTranscodeAudioEncodersInnerLoudness) Get() *ChannelTranscodeAudioEncodersInnerLoudness {
return v.value
}
func (v *NullableChannelTranscodeAudioEncodersInnerLoudness) Set(val *ChannelTranscodeAudioEncodersInnerLoudness) {
v.value = val
v.isSet = true
}
func (v NullableChannelTranscodeAudioEncodersInnerLoudness) IsSet() bool {
return v.isSet
}
func (v *NullableChannelTranscodeAudioEncodersInnerLoudness) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableChannelTranscodeAudioEncodersInnerLoudness(val *ChannelTranscodeAudioEncodersInnerLoudness) *NullableChannelTranscodeAudioEncodersInnerLoudness {
return &NullableChannelTranscodeAudioEncodersInnerLoudness{value: val, isSet: true}
}
func (v NullableChannelTranscodeAudioEncodersInnerLoudness) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableChannelTranscodeAudioEncodersInnerLoudness) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}