forked from muxinc/mux-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_asset_non_standard_input_reasons.go
412 lines (350 loc) · 14 KB
/
model_asset_non_standard_input_reasons.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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
/*
* Mux API
*
* Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
*
* API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package muxgo
import (
"encoding/json"
)
// AssetNonStandardInputReasons An object containing one or more reasons the input file is non-standard. See [the guide on minimizing processing time](https://docs.mux.com/guides/video/minimize-processing-time) for more information on what a standard input is defined as. This object only exists on on-demand assets that have non-standard inputs, so if missing you can assume the input qualifies as standard.
type AssetNonStandardInputReasons struct {
// The video codec used on the input file. For example, the input file encoded with `hevc` video codec is non-standard and the value of this parameter is `hevc`.
VideoCodec *string `json:"video_codec,omitempty"`
// The audio codec used on the input file. Non-AAC audio codecs are non-standard.
AudioCodec *string `json:"audio_codec,omitempty"`
// The video key frame Interval (also called as Group of Picture or GOP) of the input file is `high`. This parameter is present when the gop is greater than 10 seconds.
VideoGopSize *string `json:"video_gop_size,omitempty"`
// The video frame rate of the input file. Video with average frames per second (fps) less than 10 or greater than 120 is non-standard. A `-1` frame rate value indicates Mux could not determine the frame rate of the video track.
VideoFrameRate *string `json:"video_frame_rate,omitempty"`
// The video resolution of the input file. Video resolution higher than 2048 pixels on any one dimension (height or width) is considered non-standard, The resolution value is presented as `width` x `height` in pixels.
VideoResolution *string `json:"video_resolution,omitempty"`
// The video pixel aspect ratio of the input file.
PixelAspectRatio *string `json:"pixel_aspect_ratio,omitempty"`
// Video Edit List reason indicates that the input file's video track contains a complex Edit Decision List.
VideoEditList *string `json:"video_edit_list,omitempty"`
// Audio Edit List reason indicates that the input file's audio track contains a complex Edit Decision List.
AudioEditList *string `json:"audio_edit_list,omitempty"`
// A catch-all reason when the input file in created with non-standard encoding parameters.
UnexpectedMediaFileParameters *string `json:"unexpected_media_file_parameters,omitempty"`
}
// NewAssetNonStandardInputReasons instantiates a new AssetNonStandardInputReasons 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 NewAssetNonStandardInputReasons() *AssetNonStandardInputReasons {
this := AssetNonStandardInputReasons{}
return &this
}
// NewAssetNonStandardInputReasonsWithDefaults instantiates a new AssetNonStandardInputReasons 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 NewAssetNonStandardInputReasonsWithDefaults() *AssetNonStandardInputReasons {
this := AssetNonStandardInputReasons{}
return &this
}
// GetVideoCodec returns the VideoCodec field value if set, zero value otherwise.
func (o *AssetNonStandardInputReasons) GetVideoCodec() string {
if o == nil || o.VideoCodec == nil {
var ret string
return ret
}
return *o.VideoCodec
}
// GetVideoCodecOk returns a tuple with the VideoCodec field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AssetNonStandardInputReasons) GetVideoCodecOk() (*string, bool) {
if o == nil || o.VideoCodec == nil {
return nil, false
}
return o.VideoCodec, true
}
// HasVideoCodec returns a boolean if a field has been set.
func (o *AssetNonStandardInputReasons) HasVideoCodec() bool {
if o != nil && o.VideoCodec != nil {
return true
}
return false
}
// SetVideoCodec gets a reference to the given string and assigns it to the VideoCodec field.
func (o *AssetNonStandardInputReasons) SetVideoCodec(v string) {
o.VideoCodec = &v
}
// GetAudioCodec returns the AudioCodec field value if set, zero value otherwise.
func (o *AssetNonStandardInputReasons) GetAudioCodec() string {
if o == nil || o.AudioCodec == nil {
var ret string
return ret
}
return *o.AudioCodec
}
// GetAudioCodecOk returns a tuple with the AudioCodec field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AssetNonStandardInputReasons) GetAudioCodecOk() (*string, bool) {
if o == nil || o.AudioCodec == nil {
return nil, false
}
return o.AudioCodec, true
}
// HasAudioCodec returns a boolean if a field has been set.
func (o *AssetNonStandardInputReasons) HasAudioCodec() bool {
if o != nil && o.AudioCodec != nil {
return true
}
return false
}
// SetAudioCodec gets a reference to the given string and assigns it to the AudioCodec field.
func (o *AssetNonStandardInputReasons) SetAudioCodec(v string) {
o.AudioCodec = &v
}
// GetVideoGopSize returns the VideoGopSize field value if set, zero value otherwise.
func (o *AssetNonStandardInputReasons) GetVideoGopSize() string {
if o == nil || o.VideoGopSize == nil {
var ret string
return ret
}
return *o.VideoGopSize
}
// GetVideoGopSizeOk returns a tuple with the VideoGopSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AssetNonStandardInputReasons) GetVideoGopSizeOk() (*string, bool) {
if o == nil || o.VideoGopSize == nil {
return nil, false
}
return o.VideoGopSize, true
}
// HasVideoGopSize returns a boolean if a field has been set.
func (o *AssetNonStandardInputReasons) HasVideoGopSize() bool {
if o != nil && o.VideoGopSize != nil {
return true
}
return false
}
// SetVideoGopSize gets a reference to the given string and assigns it to the VideoGopSize field.
func (o *AssetNonStandardInputReasons) SetVideoGopSize(v string) {
o.VideoGopSize = &v
}
// GetVideoFrameRate returns the VideoFrameRate field value if set, zero value otherwise.
func (o *AssetNonStandardInputReasons) GetVideoFrameRate() string {
if o == nil || o.VideoFrameRate == nil {
var ret string
return ret
}
return *o.VideoFrameRate
}
// GetVideoFrameRateOk returns a tuple with the VideoFrameRate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AssetNonStandardInputReasons) GetVideoFrameRateOk() (*string, bool) {
if o == nil || o.VideoFrameRate == nil {
return nil, false
}
return o.VideoFrameRate, true
}
// HasVideoFrameRate returns a boolean if a field has been set.
func (o *AssetNonStandardInputReasons) HasVideoFrameRate() bool {
if o != nil && o.VideoFrameRate != nil {
return true
}
return false
}
// SetVideoFrameRate gets a reference to the given string and assigns it to the VideoFrameRate field.
func (o *AssetNonStandardInputReasons) SetVideoFrameRate(v string) {
o.VideoFrameRate = &v
}
// GetVideoResolution returns the VideoResolution field value if set, zero value otherwise.
func (o *AssetNonStandardInputReasons) GetVideoResolution() string {
if o == nil || o.VideoResolution == nil {
var ret string
return ret
}
return *o.VideoResolution
}
// GetVideoResolutionOk returns a tuple with the VideoResolution field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AssetNonStandardInputReasons) GetVideoResolutionOk() (*string, bool) {
if o == nil || o.VideoResolution == nil {
return nil, false
}
return o.VideoResolution, true
}
// HasVideoResolution returns a boolean if a field has been set.
func (o *AssetNonStandardInputReasons) HasVideoResolution() bool {
if o != nil && o.VideoResolution != nil {
return true
}
return false
}
// SetVideoResolution gets a reference to the given string and assigns it to the VideoResolution field.
func (o *AssetNonStandardInputReasons) SetVideoResolution(v string) {
o.VideoResolution = &v
}
// GetPixelAspectRatio returns the PixelAspectRatio field value if set, zero value otherwise.
func (o *AssetNonStandardInputReasons) GetPixelAspectRatio() string {
if o == nil || o.PixelAspectRatio == nil {
var ret string
return ret
}
return *o.PixelAspectRatio
}
// GetPixelAspectRatioOk returns a tuple with the PixelAspectRatio field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AssetNonStandardInputReasons) GetPixelAspectRatioOk() (*string, bool) {
if o == nil || o.PixelAspectRatio == nil {
return nil, false
}
return o.PixelAspectRatio, true
}
// HasPixelAspectRatio returns a boolean if a field has been set.
func (o *AssetNonStandardInputReasons) HasPixelAspectRatio() bool {
if o != nil && o.PixelAspectRatio != nil {
return true
}
return false
}
// SetPixelAspectRatio gets a reference to the given string and assigns it to the PixelAspectRatio field.
func (o *AssetNonStandardInputReasons) SetPixelAspectRatio(v string) {
o.PixelAspectRatio = &v
}
// GetVideoEditList returns the VideoEditList field value if set, zero value otherwise.
func (o *AssetNonStandardInputReasons) GetVideoEditList() string {
if o == nil || o.VideoEditList == nil {
var ret string
return ret
}
return *o.VideoEditList
}
// GetVideoEditListOk returns a tuple with the VideoEditList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AssetNonStandardInputReasons) GetVideoEditListOk() (*string, bool) {
if o == nil || o.VideoEditList == nil {
return nil, false
}
return o.VideoEditList, true
}
// HasVideoEditList returns a boolean if a field has been set.
func (o *AssetNonStandardInputReasons) HasVideoEditList() bool {
if o != nil && o.VideoEditList != nil {
return true
}
return false
}
// SetVideoEditList gets a reference to the given string and assigns it to the VideoEditList field.
func (o *AssetNonStandardInputReasons) SetVideoEditList(v string) {
o.VideoEditList = &v
}
// GetAudioEditList returns the AudioEditList field value if set, zero value otherwise.
func (o *AssetNonStandardInputReasons) GetAudioEditList() string {
if o == nil || o.AudioEditList == nil {
var ret string
return ret
}
return *o.AudioEditList
}
// GetAudioEditListOk returns a tuple with the AudioEditList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AssetNonStandardInputReasons) GetAudioEditListOk() (*string, bool) {
if o == nil || o.AudioEditList == nil {
return nil, false
}
return o.AudioEditList, true
}
// HasAudioEditList returns a boolean if a field has been set.
func (o *AssetNonStandardInputReasons) HasAudioEditList() bool {
if o != nil && o.AudioEditList != nil {
return true
}
return false
}
// SetAudioEditList gets a reference to the given string and assigns it to the AudioEditList field.
func (o *AssetNonStandardInputReasons) SetAudioEditList(v string) {
o.AudioEditList = &v
}
// GetUnexpectedMediaFileParameters returns the UnexpectedMediaFileParameters field value if set, zero value otherwise.
func (o *AssetNonStandardInputReasons) GetUnexpectedMediaFileParameters() string {
if o == nil || o.UnexpectedMediaFileParameters == nil {
var ret string
return ret
}
return *o.UnexpectedMediaFileParameters
}
// GetUnexpectedMediaFileParametersOk returns a tuple with the UnexpectedMediaFileParameters field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AssetNonStandardInputReasons) GetUnexpectedMediaFileParametersOk() (*string, bool) {
if o == nil || o.UnexpectedMediaFileParameters == nil {
return nil, false
}
return o.UnexpectedMediaFileParameters, true
}
// HasUnexpectedMediaFileParameters returns a boolean if a field has been set.
func (o *AssetNonStandardInputReasons) HasUnexpectedMediaFileParameters() bool {
if o != nil && o.UnexpectedMediaFileParameters != nil {
return true
}
return false
}
// SetUnexpectedMediaFileParameters gets a reference to the given string and assigns it to the UnexpectedMediaFileParameters field.
func (o *AssetNonStandardInputReasons) SetUnexpectedMediaFileParameters(v string) {
o.UnexpectedMediaFileParameters = &v
}
func (o AssetNonStandardInputReasons) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.VideoCodec != nil {
toSerialize["video_codec"] = o.VideoCodec
}
if o.AudioCodec != nil {
toSerialize["audio_codec"] = o.AudioCodec
}
if o.VideoGopSize != nil {
toSerialize["video_gop_size"] = o.VideoGopSize
}
if o.VideoFrameRate != nil {
toSerialize["video_frame_rate"] = o.VideoFrameRate
}
if o.VideoResolution != nil {
toSerialize["video_resolution"] = o.VideoResolution
}
if o.PixelAspectRatio != nil {
toSerialize["pixel_aspect_ratio"] = o.PixelAspectRatio
}
if o.VideoEditList != nil {
toSerialize["video_edit_list"] = o.VideoEditList
}
if o.AudioEditList != nil {
toSerialize["audio_edit_list"] = o.AudioEditList
}
if o.UnexpectedMediaFileParameters != nil {
toSerialize["unexpected_media_file_parameters"] = o.UnexpectedMediaFileParameters
}
return json.Marshal(toSerialize)
}
type NullableAssetNonStandardInputReasons struct {
value *AssetNonStandardInputReasons
isSet bool
}
func (v NullableAssetNonStandardInputReasons) Get() *AssetNonStandardInputReasons {
return v.value
}
func (v *NullableAssetNonStandardInputReasons) Set(val *AssetNonStandardInputReasons) {
v.value = val
v.isSet = true
}
func (v NullableAssetNonStandardInputReasons) IsSet() bool {
return v.isSet
}
func (v *NullableAssetNonStandardInputReasons) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAssetNonStandardInputReasons(val *AssetNonStandardInputReasons) *NullableAssetNonStandardInputReasons {
return &NullableAssetNonStandardInputReasons{value: val, isSet: true}
}
func (v NullableAssetNonStandardInputReasons) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAssetNonStandardInputReasons) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}