-
Notifications
You must be signed in to change notification settings - Fork 4
/
model_caption.go
237 lines (200 loc) · 5.98 KB
/
model_caption.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
/*
* 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"
)
// Caption struct for Caption
type Caption struct {
// The unique resource identifier of the uploaded caption.
Uri *string `json:"uri,omitempty"`
// A direct URL to the uploaded caption file.
Src *string `json:"src,omitempty"`
// Indicates the language of the uploaded caption file using IETF language tags.
Srclang *string `json:"srclang,omitempty"`
// Returns the native name of the caption language in UTF-8 encoding.
LanguageName *string `json:"languageName,omitempty"`
// Whether you will have subtitles or not. True for yes you will have subtitles, false for no you will not have subtitles.
Default *bool `json:"default,omitempty"`
}
// NewCaption instantiates a new Caption 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 NewCaption() *Caption {
this := Caption{}
var default_ bool = false
this.Default = &default_
return &this
}
// NewCaptionWithDefaults instantiates a new Caption 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 NewCaptionWithDefaults() *Caption {
this := Caption{}
var default_ bool = false
this.Default = &default_
return &this
}
// GetUri returns the Uri field value if set, zero value otherwise.
func (o *Caption) GetUri() string {
if o == nil || o.Uri == nil {
var ret string
return ret
}
return *o.Uri
}
// GetUriOk returns a tuple with the Uri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Caption) GetUriOk() (*string, bool) {
if o == nil || o.Uri == nil {
return nil, false
}
return o.Uri, true
}
// HasUri returns a boolean if a field has been set.
func (o *Caption) HasUri() bool {
if o != nil && o.Uri != nil {
return true
}
return false
}
// SetUri gets a reference to the given string and assigns it to the Uri field.
func (o *Caption) SetUri(v string) {
o.Uri = &v
}
// GetSrc returns the Src field value if set, zero value otherwise.
func (o *Caption) GetSrc() string {
if o == nil || o.Src == nil {
var ret string
return ret
}
return *o.Src
}
// GetSrcOk returns a tuple with the Src field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Caption) GetSrcOk() (*string, bool) {
if o == nil || o.Src == nil {
return nil, false
}
return o.Src, true
}
// HasSrc returns a boolean if a field has been set.
func (o *Caption) HasSrc() bool {
if o != nil && o.Src != nil {
return true
}
return false
}
// SetSrc gets a reference to the given string and assigns it to the Src field.
func (o *Caption) SetSrc(v string) {
o.Src = &v
}
// GetSrclang returns the Srclang field value if set, zero value otherwise.
func (o *Caption) GetSrclang() string {
if o == nil || o.Srclang == nil {
var ret string
return ret
}
return *o.Srclang
}
// GetSrclangOk returns a tuple with the Srclang field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Caption) GetSrclangOk() (*string, bool) {
if o == nil || o.Srclang == nil {
return nil, false
}
return o.Srclang, true
}
// HasSrclang returns a boolean if a field has been set.
func (o *Caption) HasSrclang() bool {
if o != nil && o.Srclang != nil {
return true
}
return false
}
// SetSrclang gets a reference to the given string and assigns it to the Srclang field.
func (o *Caption) SetSrclang(v string) {
o.Srclang = &v
}
// GetLanguageName returns the LanguageName field value if set, zero value otherwise.
func (o *Caption) GetLanguageName() string {
if o == nil || o.LanguageName == nil {
var ret string
return ret
}
return *o.LanguageName
}
// GetLanguageNameOk returns a tuple with the LanguageName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Caption) GetLanguageNameOk() (*string, bool) {
if o == nil || o.LanguageName == nil {
return nil, false
}
return o.LanguageName, true
}
// HasLanguageName returns a boolean if a field has been set.
func (o *Caption) HasLanguageName() bool {
if o != nil && o.LanguageName != nil {
return true
}
return false
}
// SetLanguageName gets a reference to the given string and assigns it to the LanguageName field.
func (o *Caption) SetLanguageName(v string) {
o.LanguageName = &v
}
// GetDefault returns the Default field value if set, zero value otherwise.
func (o *Caption) GetDefault() bool {
if o == nil || o.Default == nil {
var ret bool
return ret
}
return *o.Default
}
// GetDefaultOk returns a tuple with the Default field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Caption) GetDefaultOk() (*bool, bool) {
if o == nil || o.Default == nil {
return nil, false
}
return o.Default, true
}
// HasDefault returns a boolean if a field has been set.
func (o *Caption) HasDefault() bool {
if o != nil && o.Default != nil {
return true
}
return false
}
// SetDefault gets a reference to the given bool and assigns it to the Default field.
func (o *Caption) SetDefault(v bool) {
o.Default = &v
}
type NullableCaption struct {
value *Caption
isSet bool
}
func (v NullableCaption) Get() *Caption {
return v.value
}
func (v *NullableCaption) Set(val *Caption) {
v.value = val
v.isSet = true
}
func (v NullableCaption) IsSet() bool {
return v.isSet
}
func (v *NullableCaption) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCaption(val *Caption) *NullableCaption {
return &NullableCaption{value: val, isSet: true}
}