/
model_video_update_payload.go
346 lines (292 loc) · 10.2 KB
/
model_video_update_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
/*
* 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"
)
// VideoUpdatePayload struct for VideoUpdatePayload
type VideoUpdatePayload struct {
// The unique ID for the player you want to associate with your video.
PlayerId *NullableString `json:"playerId,omitempty"`
// The title you want to use for your video.
Title *string `json:"title,omitempty"`
// A brief description of the video.
Description *string `json:"description,omitempty"`
// Whether the video is publicly available or not. False means it is set to private. Default is true. Tutorials on [private videos](https://api.video/blog/endpoints/private-videos/).
Public *bool `json:"public,omitempty"`
// Whether the video is a 360 degree or immersive video.
Panoramic *bool `json:"panoramic,omitempty"`
// Whether the player supports the mp4 format.
Mp4Support *bool `json:"mp4Support,omitempty"`
// A list of terms or words you want to tag the video with. Make sure the list includes all the tags you want as whatever you send in this list will overwrite the existing list for the video.
Tags *[]string `json:"tags,omitempty"`
// A list (array) of dictionaries where each dictionary contains a key value pair that describes the video. As with tags, you must send the complete list of metadata you want as whatever you send here will overwrite the existing metadata for the video. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata/) allows you to define a key that allows any value pair.
Metadata *[]Metadata `json:"metadata,omitempty"`
}
// NewVideoUpdatePayload instantiates a new VideoUpdatePayload 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 NewVideoUpdatePayload() *VideoUpdatePayload {
this := VideoUpdatePayload{}
return &this
}
// NewVideoUpdatePayloadWithDefaults instantiates a new VideoUpdatePayload 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 NewVideoUpdatePayloadWithDefaults() *VideoUpdatePayload {
this := VideoUpdatePayload{}
return &this
}
// GetPlayerId returns the PlayerId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *VideoUpdatePayload) GetPlayerId() string {
if o == nil || o.PlayerId.Get() == nil {
var ret string
return ret
}
return *o.PlayerId.Get()
}
// GetPlayerIdOk returns a tuple with the PlayerId 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 *VideoUpdatePayload) GetPlayerIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.PlayerId.Get(), o.PlayerId.IsSet()
}
// HasPlayerId returns a boolean if a field has been set.
func (o *VideoUpdatePayload) HasPlayerId() bool {
if o != nil && o.PlayerId.IsSet() {
return true
}
return false
}
// SetPlayerId gets a reference to the given NullableString and assigns it to the PlayerId field.
func (o *VideoUpdatePayload) SetPlayerId(v string) {
o.PlayerId.Set(&v)
}
// SetPlayerIdNil sets the value for PlayerId to be an explicit nil
func (o *VideoUpdatePayload) SetPlayerIdNil() {
o.PlayerId.Set(nil)
}
// UnsetPlayerId ensures that no value is present for PlayerId, not even an explicit nil
func (o *VideoUpdatePayload) UnsetPlayerId() {
o.PlayerId.Unset()
}
// GetTitle returns the Title field value if set, zero value otherwise.
func (o *VideoUpdatePayload) GetTitle() string {
if o == nil || o.Title == nil {
var ret string
return ret
}
return *o.Title
}
// GetTitleOk returns a tuple with the Title field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoUpdatePayload) GetTitleOk() (*string, bool) {
if o == nil || o.Title == nil {
return nil, false
}
return o.Title, true
}
// HasTitle returns a boolean if a field has been set.
func (o *VideoUpdatePayload) HasTitle() bool {
if o != nil && o.Title != nil {
return true
}
return false
}
// SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *VideoUpdatePayload) SetTitle(v string) {
o.Title = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *VideoUpdatePayload) 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 *VideoUpdatePayload) 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 *VideoUpdatePayload) 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 *VideoUpdatePayload) SetDescription(v string) {
o.Description = &v
}
// GetPublic returns the Public field value if set, zero value otherwise.
func (o *VideoUpdatePayload) 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 *VideoUpdatePayload) 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 *VideoUpdatePayload) 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 *VideoUpdatePayload) SetPublic(v bool) {
o.Public = &v
}
// GetPanoramic returns the Panoramic field value if set, zero value otherwise.
func (o *VideoUpdatePayload) 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 *VideoUpdatePayload) 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 *VideoUpdatePayload) 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 *VideoUpdatePayload) SetPanoramic(v bool) {
o.Panoramic = &v
}
// GetMp4Support returns the Mp4Support field value if set, zero value otherwise.
func (o *VideoUpdatePayload) 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 *VideoUpdatePayload) 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 *VideoUpdatePayload) 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 *VideoUpdatePayload) SetMp4Support(v bool) {
o.Mp4Support = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *VideoUpdatePayload) 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 *VideoUpdatePayload) 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 *VideoUpdatePayload) 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 *VideoUpdatePayload) SetTags(v []string) {
o.Tags = &v
}
// GetMetadata returns the Metadata field value if set, zero value otherwise.
func (o *VideoUpdatePayload) 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 *VideoUpdatePayload) 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 *VideoUpdatePayload) 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 *VideoUpdatePayload) SetMetadata(v []Metadata) {
o.Metadata = &v
}
type NullableVideoUpdatePayload struct {
value *VideoUpdatePayload
isSet bool
}
func (v NullableVideoUpdatePayload) Get() *VideoUpdatePayload {
return v.value
}
func (v *NullableVideoUpdatePayload) Set(val *VideoUpdatePayload) {
v.value = val
v.isSet = true
}
func (v NullableVideoUpdatePayload) IsSet() bool {
return v.isSet
}
func (v *NullableVideoUpdatePayload) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableVideoUpdatePayload(val *VideoUpdatePayload) *NullableVideoUpdatePayload {
return &NullableVideoUpdatePayload{value: val, isSet: true}
}