/
model_blob.go
368 lines (309 loc) · 7.61 KB
/
model_blob.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
/*
Tinybeans API - Unofficial
Reverse Engineered API for Tinybeans. This is horribly incomplete, and not supported
API version: 0.0.1
Contact: dave@mudsite.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package tinybeans
import (
"encoding/json"
)
// Blob struct for Blob
type Blob struct {
O *string `json:"o,omitempty"`
O2 *string `json:"o2,omitempty"`
T *string `json:"t,omitempty"`
S *string `json:"s,omitempty"`
S2 *string `json:"s2,omitempty"`
M *string `json:"m,omitempty"`
L *string `json:"l,omitempty"`
P *string `json:"p,omitempty"`
}
// NewBlob instantiates a new Blob 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 NewBlob() *Blob {
this := Blob{}
return &this
}
// NewBlobWithDefaults instantiates a new Blob 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 NewBlobWithDefaults() *Blob {
this := Blob{}
return &this
}
// GetO returns the O field value if set, zero value otherwise.
func (o *Blob) GetO() string {
if o == nil || isNil(o.O) {
var ret string
return ret
}
return *o.O
}
// GetOOk returns a tuple with the O field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Blob) GetOOk() (*string, bool) {
if o == nil || isNil(o.O) {
return nil, false
}
return o.O, true
}
// HasO returns a boolean if a field has been set.
func (o *Blob) HasO() bool {
if o != nil && !isNil(o.O) {
return true
}
return false
}
// SetO gets a reference to the given string and assigns it to the O field.
func (o *Blob) SetO(v string) {
o.O = &v
}
// GetO2 returns the O2 field value if set, zero value otherwise.
func (o *Blob) GetO2() string {
if o == nil || isNil(o.O2) {
var ret string
return ret
}
return *o.O2
}
// GetO2Ok returns a tuple with the O2 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Blob) GetO2Ok() (*string, bool) {
if o == nil || isNil(o.O2) {
return nil, false
}
return o.O2, true
}
// HasO2 returns a boolean if a field has been set.
func (o *Blob) HasO2() bool {
if o != nil && !isNil(o.O2) {
return true
}
return false
}
// SetO2 gets a reference to the given string and assigns it to the O2 field.
func (o *Blob) SetO2(v string) {
o.O2 = &v
}
// GetT returns the T field value if set, zero value otherwise.
func (o *Blob) GetT() string {
if o == nil || isNil(o.T) {
var ret string
return ret
}
return *o.T
}
// GetTOk returns a tuple with the T field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Blob) GetTOk() (*string, bool) {
if o == nil || isNil(o.T) {
return nil, false
}
return o.T, true
}
// HasT returns a boolean if a field has been set.
func (o *Blob) HasT() bool {
if o != nil && !isNil(o.T) {
return true
}
return false
}
// SetT gets a reference to the given string and assigns it to the T field.
func (o *Blob) SetT(v string) {
o.T = &v
}
// GetS returns the S field value if set, zero value otherwise.
func (o *Blob) GetS() string {
if o == nil || isNil(o.S) {
var ret string
return ret
}
return *o.S
}
// GetSOk returns a tuple with the S field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Blob) GetSOk() (*string, bool) {
if o == nil || isNil(o.S) {
return nil, false
}
return o.S, true
}
// HasS returns a boolean if a field has been set.
func (o *Blob) HasS() bool {
if o != nil && !isNil(o.S) {
return true
}
return false
}
// SetS gets a reference to the given string and assigns it to the S field.
func (o *Blob) SetS(v string) {
o.S = &v
}
// GetS2 returns the S2 field value if set, zero value otherwise.
func (o *Blob) GetS2() string {
if o == nil || isNil(o.S2) {
var ret string
return ret
}
return *o.S2
}
// GetS2Ok returns a tuple with the S2 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Blob) GetS2Ok() (*string, bool) {
if o == nil || isNil(o.S2) {
return nil, false
}
return o.S2, true
}
// HasS2 returns a boolean if a field has been set.
func (o *Blob) HasS2() bool {
if o != nil && !isNil(o.S2) {
return true
}
return false
}
// SetS2 gets a reference to the given string and assigns it to the S2 field.
func (o *Blob) SetS2(v string) {
o.S2 = &v
}
// GetM returns the M field value if set, zero value otherwise.
func (o *Blob) GetM() string {
if o == nil || isNil(o.M) {
var ret string
return ret
}
return *o.M
}
// GetMOk returns a tuple with the M field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Blob) GetMOk() (*string, bool) {
if o == nil || isNil(o.M) {
return nil, false
}
return o.M, true
}
// HasM returns a boolean if a field has been set.
func (o *Blob) HasM() bool {
if o != nil && !isNil(o.M) {
return true
}
return false
}
// SetM gets a reference to the given string and assigns it to the M field.
func (o *Blob) SetM(v string) {
o.M = &v
}
// GetL returns the L field value if set, zero value otherwise.
func (o *Blob) GetL() string {
if o == nil || isNil(o.L) {
var ret string
return ret
}
return *o.L
}
// GetLOk returns a tuple with the L field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Blob) GetLOk() (*string, bool) {
if o == nil || isNil(o.L) {
return nil, false
}
return o.L, true
}
// HasL returns a boolean if a field has been set.
func (o *Blob) HasL() bool {
if o != nil && !isNil(o.L) {
return true
}
return false
}
// SetL gets a reference to the given string and assigns it to the L field.
func (o *Blob) SetL(v string) {
o.L = &v
}
// GetP returns the P field value if set, zero value otherwise.
func (o *Blob) GetP() string {
if o == nil || isNil(o.P) {
var ret string
return ret
}
return *o.P
}
// GetPOk returns a tuple with the P field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Blob) GetPOk() (*string, bool) {
if o == nil || isNil(o.P) {
return nil, false
}
return o.P, true
}
// HasP returns a boolean if a field has been set.
func (o *Blob) HasP() bool {
if o != nil && !isNil(o.P) {
return true
}
return false
}
// SetP gets a reference to the given string and assigns it to the P field.
func (o *Blob) SetP(v string) {
o.P = &v
}
func (o Blob) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.O) {
toSerialize["o"] = o.O
}
if !isNil(o.O2) {
toSerialize["o2"] = o.O2
}
if !isNil(o.T) {
toSerialize["t"] = o.T
}
if !isNil(o.S) {
toSerialize["s"] = o.S
}
if !isNil(o.S2) {
toSerialize["s2"] = o.S2
}
if !isNil(o.M) {
toSerialize["m"] = o.M
}
if !isNil(o.L) {
toSerialize["l"] = o.L
}
if !isNil(o.P) {
toSerialize["p"] = o.P
}
return json.Marshal(toSerialize)
}
type NullableBlob struct {
value *Blob
isSet bool
}
func (v NullableBlob) Get() *Blob {
return v.value
}
func (v *NullableBlob) Set(val *Blob) {
v.value = val
v.isSet = true
}
func (v NullableBlob) IsSet() bool {
return v.isSet
}
func (v *NullableBlob) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBlob(val *Blob) *NullableBlob {
return &NullableBlob{value: val, isSet: true}
}
func (v NullableBlob) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableBlob) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}