-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmodel_video_creation_payload.go
440 lines (374 loc) · 12.4 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
/*
* 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"`
// If you add a video already on the web, this is where you enter the url for the video.
Source *string `json:"source,omitempty"`
// Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Default is true. Tutorials on [private videos](https://api.video/blog/endpoints/private-videos).
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. These pairs can be made dynamic, allowing you to segment your audience. Read more on [dynamic metadata](https://api.video/blog/endpoints/dynamic-metadata).
Metadata *[]Metadata `json:"metadata,omitempty"`
Clip *VideoClip `json:"clip,omitempty"`
Watermark *VideoWatermark `json:"watermark,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
}
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}
}