-
Notifications
You must be signed in to change notification settings - Fork 4
/
model_video_creation_payload.go
553 lines (470 loc) · 17.1 KB
/
model_video_creation_payload.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
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
/*
* api.video
*
* api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes.
*
* API version: 1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package apivideosdk
import (
//"encoding/json"
)
// VideoCreationPayload struct for VideoCreationPayload
type VideoCreationPayload struct {
// The title of your new video.
Title string `json:"title"`
// A brief description of your video.
Description *string `json:"description,omitempty"`
// You can either add a video already on the web, by entering the URL of the video, or you can also enter the `videoId` of one of the videos you already have on your api.video acccount, and this will generate a copy of your video. Creating a copy of a video can be especially useful if you want to keep your original video and trim or apply a watermark onto the copy you would create.
Source *string `json:"source,omitempty"`
// Default: True. If set to `false` the video will become private. More information on private videos can be found [here](https://docs.api.video/delivery/video-privacy-access-management)
Public *bool `json:"public,omitempty"`
// Indicates if your video is a 360/immersive video.
Panoramic *bool `json:"panoramic,omitempty"`
// Enables mp4 version in addition to streamed version.
Mp4Support *bool `json:"mp4Support,omitempty"`
// The unique identification number for your video player.
PlayerId *string `json:"playerId,omitempty"`
// A list of tags you want to use to describe your video.
Tags *[]string `json:"tags,omitempty"`
// A list of key value pairs that you use to provide metadata for your video.
Metadata *[]Metadata `json:"metadata,omitempty"`
Clip *VideoClip `json:"clip,omitempty"`
Watermark *VideoWatermark `json:"watermark,omitempty"`
// Use this parameter to set the language of the video. When this parameter is set, the API creates a transcript of the video using the language you specify. You must use the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. `language` is a permanent attribute of the video. You can update it to another language using the [`PATCH /videos/{videoId}`](https://docs.api.video/reference/api/Videos#update-a-video-object) operation. This triggers the API to generate a new transcript using a different language.
Language *NullableString `json:"language,omitempty"`
// Use this parameter to enable transcription. - When `true`, the API generates a transcript for the video. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to transcribe the video. If you do not define a language, the API detects it based on the video. - When the API generates a transcript, it will be available as a caption for the video.
Transcript *bool `json:"transcript,omitempty"`
// Use this parameter to enable summarization. We recommend using this parameter together with `transcript: true`. - When `true`, the API generates a summary for the video, based on the transcription. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to summarize the video. If you do not define a language, the API detects it based on the video.
TranscriptSummary *bool `json:"transcriptSummary,omitempty"`
}
// NewVideoCreationPayload instantiates a new VideoCreationPayload 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 NewVideoCreationPayload(title string) *VideoCreationPayload {
this := VideoCreationPayload{}
this.Title = title
var public bool = true
this.Public = &public
var panoramic bool = false
this.Panoramic = &panoramic
var mp4Support bool = true
this.Mp4Support = &mp4Support
return &this
}
// NewVideoCreationPayloadWithDefaults instantiates a new VideoCreationPayload 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 NewVideoCreationPayloadWithDefaults() *VideoCreationPayload {
this := VideoCreationPayload{}
var public bool = true
this.Public = &public
var panoramic bool = false
this.Panoramic = &panoramic
var mp4Support bool = true
this.Mp4Support = &mp4Support
return &this
}
// GetTitle returns the Title field value
func (o *VideoCreationPayload) GetTitle() string {
if o == nil {
var ret string
return ret
}
return o.Title
}
// GetTitleOk returns a tuple with the Title field value
// and a boolean to check if the value has been set.
func (o *VideoCreationPayload) GetTitleOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Title, true
}
// SetTitle sets field value
func (o *VideoCreationPayload) SetTitle(v string) {
o.Title = v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *VideoCreationPayload) GetDescription() string {
if o == nil || o.Description == nil {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoCreationPayload) GetDescriptionOk() (*string, bool) {
if o == nil || o.Description == nil {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *VideoCreationPayload) HasDescription() bool {
if o != nil && o.Description != nil {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *VideoCreationPayload) SetDescription(v string) {
o.Description = &v
}
// GetSource returns the Source field value if set, zero value otherwise.
func (o *VideoCreationPayload) GetSource() string {
if o == nil || o.Source == nil {
var ret string
return ret
}
return *o.Source
}
// GetSourceOk returns a tuple with the Source field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoCreationPayload) GetSourceOk() (*string, bool) {
if o == nil || o.Source == nil {
return nil, false
}
return o.Source, true
}
// HasSource returns a boolean if a field has been set.
func (o *VideoCreationPayload) HasSource() bool {
if o != nil && o.Source != nil {
return true
}
return false
}
// SetSource gets a reference to the given string and assigns it to the Source field.
func (o *VideoCreationPayload) SetSource(v string) {
o.Source = &v
}
// GetPublic returns the Public field value if set, zero value otherwise.
func (o *VideoCreationPayload) GetPublic() bool {
if o == nil || o.Public == nil {
var ret bool
return ret
}
return *o.Public
}
// GetPublicOk returns a tuple with the Public field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoCreationPayload) GetPublicOk() (*bool, bool) {
if o == nil || o.Public == nil {
return nil, false
}
return o.Public, true
}
// HasPublic returns a boolean if a field has been set.
func (o *VideoCreationPayload) HasPublic() bool {
if o != nil && o.Public != nil {
return true
}
return false
}
// SetPublic gets a reference to the given bool and assigns it to the Public field.
func (o *VideoCreationPayload) SetPublic(v bool) {
o.Public = &v
}
// GetPanoramic returns the Panoramic field value if set, zero value otherwise.
func (o *VideoCreationPayload) GetPanoramic() bool {
if o == nil || o.Panoramic == nil {
var ret bool
return ret
}
return *o.Panoramic
}
// GetPanoramicOk returns a tuple with the Panoramic field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoCreationPayload) GetPanoramicOk() (*bool, bool) {
if o == nil || o.Panoramic == nil {
return nil, false
}
return o.Panoramic, true
}
// HasPanoramic returns a boolean if a field has been set.
func (o *VideoCreationPayload) HasPanoramic() bool {
if o != nil && o.Panoramic != nil {
return true
}
return false
}
// SetPanoramic gets a reference to the given bool and assigns it to the Panoramic field.
func (o *VideoCreationPayload) SetPanoramic(v bool) {
o.Panoramic = &v
}
// GetMp4Support returns the Mp4Support field value if set, zero value otherwise.
func (o *VideoCreationPayload) GetMp4Support() bool {
if o == nil || o.Mp4Support == nil {
var ret bool
return ret
}
return *o.Mp4Support
}
// GetMp4SupportOk returns a tuple with the Mp4Support field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoCreationPayload) GetMp4SupportOk() (*bool, bool) {
if o == nil || o.Mp4Support == nil {
return nil, false
}
return o.Mp4Support, true
}
// HasMp4Support returns a boolean if a field has been set.
func (o *VideoCreationPayload) HasMp4Support() bool {
if o != nil && o.Mp4Support != nil {
return true
}
return false
}
// SetMp4Support gets a reference to the given bool and assigns it to the Mp4Support field.
func (o *VideoCreationPayload) SetMp4Support(v bool) {
o.Mp4Support = &v
}
// GetPlayerId returns the PlayerId field value if set, zero value otherwise.
func (o *VideoCreationPayload) GetPlayerId() string {
if o == nil || o.PlayerId == nil {
var ret string
return ret
}
return *o.PlayerId
}
// GetPlayerIdOk returns a tuple with the PlayerId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoCreationPayload) GetPlayerIdOk() (*string, bool) {
if o == nil || o.PlayerId == nil {
return nil, false
}
return o.PlayerId, true
}
// HasPlayerId returns a boolean if a field has been set.
func (o *VideoCreationPayload) HasPlayerId() bool {
if o != nil && o.PlayerId != nil {
return true
}
return false
}
// SetPlayerId gets a reference to the given string and assigns it to the PlayerId field.
func (o *VideoCreationPayload) SetPlayerId(v string) {
o.PlayerId = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *VideoCreationPayload) GetTags() []string {
if o == nil || o.Tags == nil {
var ret []string
return ret
}
return *o.Tags
}
// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoCreationPayload) GetTagsOk() (*[]string, bool) {
if o == nil || o.Tags == nil {
return nil, false
}
return o.Tags, true
}
// HasTags returns a boolean if a field has been set.
func (o *VideoCreationPayload) HasTags() bool {
if o != nil && o.Tags != nil {
return true
}
return false
}
// SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *VideoCreationPayload) SetTags(v []string) {
o.Tags = &v
}
// GetMetadata returns the Metadata field value if set, zero value otherwise.
func (o *VideoCreationPayload) GetMetadata() []Metadata {
if o == nil || o.Metadata == nil {
var ret []Metadata
return ret
}
return *o.Metadata
}
// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoCreationPayload) GetMetadataOk() (*[]Metadata, bool) {
if o == nil || o.Metadata == nil {
return nil, false
}
return o.Metadata, true
}
// HasMetadata returns a boolean if a field has been set.
func (o *VideoCreationPayload) HasMetadata() bool {
if o != nil && o.Metadata != nil {
return true
}
return false
}
// SetMetadata gets a reference to the given []Metadata and assigns it to the Metadata field.
func (o *VideoCreationPayload) SetMetadata(v []Metadata) {
o.Metadata = &v
}
// GetClip returns the Clip field value if set, zero value otherwise.
func (o *VideoCreationPayload) GetClip() VideoClip {
if o == nil || o.Clip == nil {
var ret VideoClip
return ret
}
return *o.Clip
}
// GetClipOk returns a tuple with the Clip field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoCreationPayload) GetClipOk() (*VideoClip, bool) {
if o == nil || o.Clip == nil {
return nil, false
}
return o.Clip, true
}
// HasClip returns a boolean if a field has been set.
func (o *VideoCreationPayload) HasClip() bool {
if o != nil && o.Clip != nil {
return true
}
return false
}
// SetClip gets a reference to the given VideoClip and assigns it to the Clip field.
func (o *VideoCreationPayload) SetClip(v VideoClip) {
o.Clip = &v
}
// GetWatermark returns the Watermark field value if set, zero value otherwise.
func (o *VideoCreationPayload) GetWatermark() VideoWatermark {
if o == nil || o.Watermark == nil {
var ret VideoWatermark
return ret
}
return *o.Watermark
}
// GetWatermarkOk returns a tuple with the Watermark field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoCreationPayload) GetWatermarkOk() (*VideoWatermark, bool) {
if o == nil || o.Watermark == nil {
return nil, false
}
return o.Watermark, true
}
// HasWatermark returns a boolean if a field has been set.
func (o *VideoCreationPayload) HasWatermark() bool {
if o != nil && o.Watermark != nil {
return true
}
return false
}
// SetWatermark gets a reference to the given VideoWatermark and assigns it to the Watermark field.
func (o *VideoCreationPayload) SetWatermark(v VideoWatermark) {
o.Watermark = &v
}
// GetLanguage returns the Language field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *VideoCreationPayload) GetLanguage() string {
if o == nil || o.Language.Get() == nil {
var ret string
return ret
}
return *o.Language.Get()
}
// GetLanguageOk returns a tuple with the Language field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *VideoCreationPayload) GetLanguageOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Language.Get(), o.Language.IsSet()
}
// HasLanguage returns a boolean if a field has been set.
func (o *VideoCreationPayload) HasLanguage() bool {
if o != nil && o.Language.IsSet() {
return true
}
return false
}
// SetLanguage gets a reference to the given NullableString and assigns it to the Language field.
func (o *VideoCreationPayload) SetLanguage(v string) {
o.Language.Set(&v)
}
// SetLanguageNil sets the value for Language to be an explicit nil
func (o *VideoCreationPayload) SetLanguageNil() {
o.Language.Set(nil)
}
// UnsetLanguage ensures that no value is present for Language, not even an explicit nil
func (o *VideoCreationPayload) UnsetLanguage() {
o.Language.Unset()
}
// GetTranscript returns the Transcript field value if set, zero value otherwise.
func (o *VideoCreationPayload) GetTranscript() bool {
if o == nil || o.Transcript == nil {
var ret bool
return ret
}
return *o.Transcript
}
// GetTranscriptOk returns a tuple with the Transcript field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoCreationPayload) GetTranscriptOk() (*bool, bool) {
if o == nil || o.Transcript == nil {
return nil, false
}
return o.Transcript, true
}
// HasTranscript returns a boolean if a field has been set.
func (o *VideoCreationPayload) HasTranscript() bool {
if o != nil && o.Transcript != nil {
return true
}
return false
}
// SetTranscript gets a reference to the given bool and assigns it to the Transcript field.
func (o *VideoCreationPayload) SetTranscript(v bool) {
o.Transcript = &v
}
// GetTranscriptSummary returns the TranscriptSummary field value if set, zero value otherwise.
func (o *VideoCreationPayload) GetTranscriptSummary() bool {
if o == nil || o.TranscriptSummary == nil {
var ret bool
return ret
}
return *o.TranscriptSummary
}
// GetTranscriptSummaryOk returns a tuple with the TranscriptSummary field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoCreationPayload) GetTranscriptSummaryOk() (*bool, bool) {
if o == nil || o.TranscriptSummary == nil {
return nil, false
}
return o.TranscriptSummary, true
}
// HasTranscriptSummary returns a boolean if a field has been set.
func (o *VideoCreationPayload) HasTranscriptSummary() bool {
if o != nil && o.TranscriptSummary != nil {
return true
}
return false
}
// SetTranscriptSummary gets a reference to the given bool and assigns it to the TranscriptSummary field.
func (o *VideoCreationPayload) SetTranscriptSummary(v bool) {
o.TranscriptSummary = &v
}
type NullableVideoCreationPayload struct {
value *VideoCreationPayload
isSet bool
}
func (v NullableVideoCreationPayload) Get() *VideoCreationPayload {
return v.value
}
func (v *NullableVideoCreationPayload) Set(val *VideoCreationPayload) {
v.value = val
v.isSet = true
}
func (v NullableVideoCreationPayload) IsSet() bool {
return v.isSet
}
func (v *NullableVideoCreationPayload) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableVideoCreationPayload(val *VideoCreationPayload) *NullableVideoCreationPayload {
return &NullableVideoCreationPayload{value: val, isSet: true}
}