-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmodel_video_status_ingest.go
165 lines (138 loc) · 4.84 KB
/
model_video_status_ingest.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
/*
* 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"
)
// VideoStatusIngest Details about the capturing, transferring, and storing of your video for use immediately or in the future.
type VideoStatusIngest struct {
// There are three possible ingest statuses. missing - you are missing information required to ingest the video. uploading - the video is in the process of being uploaded. uploaded - the video is ready for use.
Status *string `json:"status,omitempty"`
// The size of your file in bytes.
Filesize *int32 `json:"filesize,omitempty"`
// The total number of bytes received, listed for each chunk of the upload.
ReceivedBytes *[]BytesRange `json:"receivedBytes,omitempty"`
}
// NewVideoStatusIngest instantiates a new VideoStatusIngest 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 NewVideoStatusIngest() *VideoStatusIngest {
this := VideoStatusIngest{}
return &this
}
// NewVideoStatusIngestWithDefaults instantiates a new VideoStatusIngest 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 NewVideoStatusIngestWithDefaults() *VideoStatusIngest {
this := VideoStatusIngest{}
return &this
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *VideoStatusIngest) GetStatus() string {
if o == nil || o.Status == nil {
var ret string
return ret
}
return *o.Status
}
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoStatusIngest) GetStatusOk() (*string, bool) {
if o == nil || o.Status == nil {
return nil, false
}
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
func (o *VideoStatusIngest) HasStatus() bool {
if o != nil && o.Status != nil {
return true
}
return false
}
// SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *VideoStatusIngest) SetStatus(v string) {
o.Status = &v
}
// GetFilesize returns the Filesize field value if set, zero value otherwise.
func (o *VideoStatusIngest) GetFilesize() int32 {
if o == nil || o.Filesize == nil {
var ret int32
return ret
}
return *o.Filesize
}
// GetFilesizeOk returns a tuple with the Filesize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoStatusIngest) GetFilesizeOk() (*int32, bool) {
if o == nil || o.Filesize == nil {
return nil, false
}
return o.Filesize, true
}
// HasFilesize returns a boolean if a field has been set.
func (o *VideoStatusIngest) HasFilesize() bool {
if o != nil && o.Filesize != nil {
return true
}
return false
}
// SetFilesize gets a reference to the given int32 and assigns it to the Filesize field.
func (o *VideoStatusIngest) SetFilesize(v int32) {
o.Filesize = &v
}
// GetReceivedBytes returns the ReceivedBytes field value if set, zero value otherwise.
func (o *VideoStatusIngest) GetReceivedBytes() []BytesRange {
if o == nil || o.ReceivedBytes == nil {
var ret []BytesRange
return ret
}
return *o.ReceivedBytes
}
// GetReceivedBytesOk returns a tuple with the ReceivedBytes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VideoStatusIngest) GetReceivedBytesOk() (*[]BytesRange, bool) {
if o == nil || o.ReceivedBytes == nil {
return nil, false
}
return o.ReceivedBytes, true
}
// HasReceivedBytes returns a boolean if a field has been set.
func (o *VideoStatusIngest) HasReceivedBytes() bool {
if o != nil && o.ReceivedBytes != nil {
return true
}
return false
}
// SetReceivedBytes gets a reference to the given []BytesRange and assigns it to the ReceivedBytes field.
func (o *VideoStatusIngest) SetReceivedBytes(v []BytesRange) {
o.ReceivedBytes = &v
}
type NullableVideoStatusIngest struct {
value *VideoStatusIngest
isSet bool
}
func (v NullableVideoStatusIngest) Get() *VideoStatusIngest {
return v.value
}
func (v *NullableVideoStatusIngest) Set(val *VideoStatusIngest) {
v.value = val
v.isSet = true
}
func (v NullableVideoStatusIngest) IsSet() bool {
return v.isSet
}
func (v *NullableVideoStatusIngest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableVideoStatusIngest(val *VideoStatusIngest) *NullableVideoStatusIngest {
return &NullableVideoStatusIngest{value: val, isSet: true}
}