-
Notifications
You must be signed in to change notification settings - Fork 4
/
model_filter_by_2.go
334 lines (282 loc) · 9.58 KB
/
model_filter_by_2.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
/*
* 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"
)
// FilterBy2 struct for FilterBy2
type FilterBy2 struct {
// Returns analytics based on the unique identifiers of a video or a live stream.
MediaId *[]string `json:"mediaId,omitempty"`
MediaType *string `json:"mediaType,omitempty"`
// Returns analytics based on the viewers' continent. The list of supported continents names are based on the [GeoNames public database](https://www.geonames.org/countries/). You must use the ISO-3166 alpha2 format, for example `EU`.
Continent *[]string `json:"continent,omitempty"`
// Returns analytics based on the viewers' country. The list of supported country names are based on the [GeoNames public database](https://www.geonames.org/countries/). You must use the ISO-3166 alpha2 format, for example `FR`.
Country *[]string `json:"country,omitempty"`
// Returns analytics based on the type of device used by the viewers. Response values can include: `computer`, `phone`, `tablet`, `tv`, `console`, `wearable`, `unknown`.
DeviceType *[]string `json:"deviceType,omitempty"`
// Returns analytics based on the operating system used by the viewers. Response values can include `windows`, `mac osx`, `android`, `ios`, `linux`.
OperatingSystem *[]string `json:"operatingSystem,omitempty"`
// Returns analytics based on the browser used by the viewers. Response values can include `chrome`, `firefox`, `edge`, `opera`.
Browser *[]string `json:"browser,omitempty"`
// Returns analytics for videos using this tag. This filter only accepts a single value and is case sensitive. Read more about tagging your videos [here](https://docs.api.video/vod/tags-metadata).
Tag *string `json:"tag,omitempty"`
}
// NewFilterBy2 instantiates a new FilterBy2 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 NewFilterBy2() *FilterBy2 {
this := FilterBy2{}
return &this
}
// NewFilterBy2WithDefaults instantiates a new FilterBy2 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 NewFilterBy2WithDefaults() *FilterBy2 {
this := FilterBy2{}
return &this
}
// GetMediaId returns the MediaId field value if set, zero value otherwise.
func (o *FilterBy2) GetMediaId() []string {
if o == nil || o.MediaId == nil {
var ret []string
return ret
}
return *o.MediaId
}
// GetMediaIdOk returns a tuple with the MediaId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FilterBy2) GetMediaIdOk() (*[]string, bool) {
if o == nil || o.MediaId == nil {
return nil, false
}
return o.MediaId, true
}
// HasMediaId returns a boolean if a field has been set.
func (o *FilterBy2) HasMediaId() bool {
if o != nil && o.MediaId != nil {
return true
}
return false
}
// SetMediaId gets a reference to the given []string and assigns it to the MediaId field.
func (o *FilterBy2) SetMediaId(v []string) {
o.MediaId = &v
}
// GetMediaType returns the MediaType field value if set, zero value otherwise.
func (o *FilterBy2) GetMediaType() string {
if o == nil || o.MediaType == nil {
var ret string
return ret
}
return *o.MediaType
}
// GetMediaTypeOk returns a tuple with the MediaType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FilterBy2) GetMediaTypeOk() (*string, bool) {
if o == nil || o.MediaType == nil {
return nil, false
}
return o.MediaType, true
}
// HasMediaType returns a boolean if a field has been set.
func (o *FilterBy2) HasMediaType() bool {
if o != nil && o.MediaType != nil {
return true
}
return false
}
// SetMediaType gets a reference to the given string and assigns it to the MediaType field.
func (o *FilterBy2) SetMediaType(v string) {
o.MediaType = &v
}
// GetContinent returns the Continent field value if set, zero value otherwise.
func (o *FilterBy2) GetContinent() []string {
if o == nil || o.Continent == nil {
var ret []string
return ret
}
return *o.Continent
}
// GetContinentOk returns a tuple with the Continent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FilterBy2) GetContinentOk() (*[]string, bool) {
if o == nil || o.Continent == nil {
return nil, false
}
return o.Continent, true
}
// HasContinent returns a boolean if a field has been set.
func (o *FilterBy2) HasContinent() bool {
if o != nil && o.Continent != nil {
return true
}
return false
}
// SetContinent gets a reference to the given []string and assigns it to the Continent field.
func (o *FilterBy2) SetContinent(v []string) {
o.Continent = &v
}
// GetCountry returns the Country field value if set, zero value otherwise.
func (o *FilterBy2) GetCountry() []string {
if o == nil || o.Country == nil {
var ret []string
return ret
}
return *o.Country
}
// GetCountryOk returns a tuple with the Country field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FilterBy2) GetCountryOk() (*[]string, bool) {
if o == nil || o.Country == nil {
return nil, false
}
return o.Country, true
}
// HasCountry returns a boolean if a field has been set.
func (o *FilterBy2) HasCountry() bool {
if o != nil && o.Country != nil {
return true
}
return false
}
// SetCountry gets a reference to the given []string and assigns it to the Country field.
func (o *FilterBy2) SetCountry(v []string) {
o.Country = &v
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise.
func (o *FilterBy2) GetDeviceType() []string {
if o == nil || o.DeviceType == nil {
var ret []string
return ret
}
return *o.DeviceType
}
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FilterBy2) GetDeviceTypeOk() (*[]string, bool) {
if o == nil || o.DeviceType == nil {
return nil, false
}
return o.DeviceType, true
}
// HasDeviceType returns a boolean if a field has been set.
func (o *FilterBy2) HasDeviceType() bool {
if o != nil && o.DeviceType != nil {
return true
}
return false
}
// SetDeviceType gets a reference to the given []string and assigns it to the DeviceType field.
func (o *FilterBy2) SetDeviceType(v []string) {
o.DeviceType = &v
}
// GetOperatingSystem returns the OperatingSystem field value if set, zero value otherwise.
func (o *FilterBy2) GetOperatingSystem() []string {
if o == nil || o.OperatingSystem == nil {
var ret []string
return ret
}
return *o.OperatingSystem
}
// GetOperatingSystemOk returns a tuple with the OperatingSystem field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FilterBy2) GetOperatingSystemOk() (*[]string, bool) {
if o == nil || o.OperatingSystem == nil {
return nil, false
}
return o.OperatingSystem, true
}
// HasOperatingSystem returns a boolean if a field has been set.
func (o *FilterBy2) HasOperatingSystem() bool {
if o != nil && o.OperatingSystem != nil {
return true
}
return false
}
// SetOperatingSystem gets a reference to the given []string and assigns it to the OperatingSystem field.
func (o *FilterBy2) SetOperatingSystem(v []string) {
o.OperatingSystem = &v
}
// GetBrowser returns the Browser field value if set, zero value otherwise.
func (o *FilterBy2) GetBrowser() []string {
if o == nil || o.Browser == nil {
var ret []string
return ret
}
return *o.Browser
}
// GetBrowserOk returns a tuple with the Browser field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FilterBy2) GetBrowserOk() (*[]string, bool) {
if o == nil || o.Browser == nil {
return nil, false
}
return o.Browser, true
}
// HasBrowser returns a boolean if a field has been set.
func (o *FilterBy2) HasBrowser() bool {
if o != nil && o.Browser != nil {
return true
}
return false
}
// SetBrowser gets a reference to the given []string and assigns it to the Browser field.
func (o *FilterBy2) SetBrowser(v []string) {
o.Browser = &v
}
// GetTag returns the Tag field value if set, zero value otherwise.
func (o *FilterBy2) GetTag() string {
if o == nil || o.Tag == nil {
var ret string
return ret
}
return *o.Tag
}
// GetTagOk returns a tuple with the Tag field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FilterBy2) GetTagOk() (*string, bool) {
if o == nil || o.Tag == nil {
return nil, false
}
return o.Tag, true
}
// HasTag returns a boolean if a field has been set.
func (o *FilterBy2) HasTag() bool {
if o != nil && o.Tag != nil {
return true
}
return false
}
// SetTag gets a reference to the given string and assigns it to the Tag field.
func (o *FilterBy2) SetTag(v string) {
o.Tag = &v
}
type NullableFilterBy2 struct {
value *FilterBy2
isSet bool
}
func (v NullableFilterBy2) Get() *FilterBy2 {
return v.value
}
func (v *NullableFilterBy2) Set(val *FilterBy2) {
v.value = val
v.isSet = true
}
func (v NullableFilterBy2) IsSet() bool {
return v.isSet
}
func (v *NullableFilterBy2) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableFilterBy2(val *FilterBy2) *NullableFilterBy2 {
return &NullableFilterBy2{value: val, isSet: true}
}