-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_channel_signaling.go
273 lines (229 loc) · 8.82 KB
/
model_channel_signaling.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
/*
* WBD Aventus Channels API
*
* API version: 0.0.0
* Contact: live-control-plane-devs@wbd.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package isp
import (
"encoding/json"
)
// checks if the ChannelSignaling type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ChannelSignaling{}
// ChannelSignaling Signaling configures in-band signaling (i.e. SCTE-35).
type ChannelSignaling struct {
BlackoutSettings *ChannelSignalingBlackoutSettings `json:"blackout_settings,omitempty"`
// Disable parsing SCTE-35 in-band signaling. Out-of-band signaling is still allowed.
DisableInbandParsing *bool `json:"disable_inband_parsing,omitempty" doc:"Disable parsing SCTE-35 in-band signaling. Out-of-band signaling is still allowed."`
// Defines the specific PID containing the SCTE that the transcoder should process. Using '0' (default value) will pick the first PID containing SCTE-35 in the PMT.
SctePid *int32 `json:"scte_pid,omitempty" format:"int32" minimum:"0" doc:"Defines the specific PID containing the SCTE that the transcoder should process. Using '0' (default value) will pick the first PID containing SCTE-35 in the PMT."`
// Settings that apply to specific segments.
SegmentSettings []ChannelSignalingSegmentSettingsInner `json:"segment_settings,omitempty" doc:"Settings that apply to specific segments."`
// Segment types to process for in-band signaling.
Segments []string `json:"segments,omitempty" uniqueItems:"true" enum:"SPLICE_INSERT,NOT_INDICATED,CONTENT_ID,PROGRAM,PROGRAM_BLACKOUT_OVERRIDE,PROGRAM_BREAKAWAY,CHAPTER,BREAK,OPENING_CREDIT,CLOSING_CREDIT,PROVIDER_PLACEMENT_OP,DISTRIBUTOR_PLACEMENT_OP,PROVIDER_OVERLAY_OP,DISTRIBUTOR_OVERLAY_OP,PROVIDER_AD,DISTRIBUTOR_AD,UNSCHEDULED_EVENT,NETWORK,SLATE" doc:"Segment types to process for in-band signaling."`
}
// NewChannelSignaling instantiates a new ChannelSignaling 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 NewChannelSignaling() *ChannelSignaling {
this := ChannelSignaling{}
return &this
}
// NewChannelSignalingWithDefaults instantiates a new ChannelSignaling 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 NewChannelSignalingWithDefaults() *ChannelSignaling {
this := ChannelSignaling{}
return &this
}
// GetBlackoutSettings returns the BlackoutSettings field value if set, zero value otherwise.
func (o *ChannelSignaling) GetBlackoutSettings() ChannelSignalingBlackoutSettings {
if o == nil || IsNil(o.BlackoutSettings) {
var ret ChannelSignalingBlackoutSettings
return ret
}
return *o.BlackoutSettings
}
// GetBlackoutSettingsOk returns a tuple with the BlackoutSettings field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelSignaling) GetBlackoutSettingsOk() (*ChannelSignalingBlackoutSettings, bool) {
if o == nil || IsNil(o.BlackoutSettings) {
return nil, false
}
return o.BlackoutSettings, true
}
// HasBlackoutSettings returns a boolean if a field has been set.
func (o *ChannelSignaling) HasBlackoutSettings() bool {
if o != nil && !IsNil(o.BlackoutSettings) {
return true
}
return false
}
// SetBlackoutSettings gets a reference to the given ChannelSignalingBlackoutSettings and assigns it to the BlackoutSettings field.
func (o *ChannelSignaling) SetBlackoutSettings(v ChannelSignalingBlackoutSettings) {
o.BlackoutSettings = &v
}
// GetDisableInbandParsing returns the DisableInbandParsing field value if set, zero value otherwise.
func (o *ChannelSignaling) GetDisableInbandParsing() bool {
if o == nil || IsNil(o.DisableInbandParsing) {
var ret bool
return ret
}
return *o.DisableInbandParsing
}
// GetDisableInbandParsingOk returns a tuple with the DisableInbandParsing field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelSignaling) GetDisableInbandParsingOk() (*bool, bool) {
if o == nil || IsNil(o.DisableInbandParsing) {
return nil, false
}
return o.DisableInbandParsing, true
}
// HasDisableInbandParsing returns a boolean if a field has been set.
func (o *ChannelSignaling) HasDisableInbandParsing() bool {
if o != nil && !IsNil(o.DisableInbandParsing) {
return true
}
return false
}
// SetDisableInbandParsing gets a reference to the given bool and assigns it to the DisableInbandParsing field.
func (o *ChannelSignaling) SetDisableInbandParsing(v bool) {
o.DisableInbandParsing = &v
}
// GetSctePid returns the SctePid field value if set, zero value otherwise.
func (o *ChannelSignaling) GetSctePid() int32 {
if o == nil || IsNil(o.SctePid) {
var ret int32
return ret
}
return *o.SctePid
}
// GetSctePidOk returns a tuple with the SctePid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelSignaling) GetSctePidOk() (*int32, bool) {
if o == nil || IsNil(o.SctePid) {
return nil, false
}
return o.SctePid, true
}
// HasSctePid returns a boolean if a field has been set.
func (o *ChannelSignaling) HasSctePid() bool {
if o != nil && !IsNil(o.SctePid) {
return true
}
return false
}
// SetSctePid gets a reference to the given int32 and assigns it to the SctePid field.
func (o *ChannelSignaling) SetSctePid(v int32) {
o.SctePid = &v
}
// GetSegmentSettings returns the SegmentSettings field value if set, zero value otherwise.
func (o *ChannelSignaling) GetSegmentSettings() []ChannelSignalingSegmentSettingsInner {
if o == nil || IsNil(o.SegmentSettings) {
var ret []ChannelSignalingSegmentSettingsInner
return ret
}
return o.SegmentSettings
}
// GetSegmentSettingsOk returns a tuple with the SegmentSettings field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelSignaling) GetSegmentSettingsOk() ([]ChannelSignalingSegmentSettingsInner, bool) {
if o == nil || IsNil(o.SegmentSettings) {
return nil, false
}
return o.SegmentSettings, true
}
// HasSegmentSettings returns a boolean if a field has been set.
func (o *ChannelSignaling) HasSegmentSettings() bool {
if o != nil && !IsNil(o.SegmentSettings) {
return true
}
return false
}
// SetSegmentSettings gets a reference to the given []ChannelSignalingSegmentSettingsInner and assigns it to the SegmentSettings field.
func (o *ChannelSignaling) SetSegmentSettings(v []ChannelSignalingSegmentSettingsInner) {
o.SegmentSettings = v
}
// GetSegments returns the Segments field value if set, zero value otherwise.
func (o *ChannelSignaling) GetSegments() []string {
if o == nil || IsNil(o.Segments) {
var ret []string
return ret
}
return o.Segments
}
// GetSegmentsOk returns a tuple with the Segments field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelSignaling) GetSegmentsOk() ([]string, bool) {
if o == nil || IsNil(o.Segments) {
return nil, false
}
return o.Segments, true
}
// HasSegments returns a boolean if a field has been set.
func (o *ChannelSignaling) HasSegments() bool {
if o != nil && !IsNil(o.Segments) {
return true
}
return false
}
// SetSegments gets a reference to the given []string and assigns it to the Segments field.
func (o *ChannelSignaling) SetSegments(v []string) {
o.Segments = v
}
func (o ChannelSignaling) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ChannelSignaling) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.BlackoutSettings) {
toSerialize["blackout_settings"] = o.BlackoutSettings
}
if !IsNil(o.DisableInbandParsing) {
toSerialize["disable_inband_parsing"] = o.DisableInbandParsing
}
if !IsNil(o.SctePid) {
toSerialize["scte_pid"] = o.SctePid
}
if !IsNil(o.SegmentSettings) {
toSerialize["segment_settings"] = o.SegmentSettings
}
if !IsNil(o.Segments) {
toSerialize["segments"] = o.Segments
}
return toSerialize, nil
}
type NullableChannelSignaling struct {
value *ChannelSignaling
isSet bool
}
func (v NullableChannelSignaling) Get() *ChannelSignaling {
return v.value
}
func (v *NullableChannelSignaling) Set(val *ChannelSignaling) {
v.value = val
v.isSet = true
}
func (v NullableChannelSignaling) IsSet() bool {
return v.isSet
}
func (v *NullableChannelSignaling) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableChannelSignaling(val *ChannelSignaling) *NullableChannelSignaling {
return &NullableChannelSignaling{value: val, isSet: true}
}
func (v NullableChannelSignaling) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableChannelSignaling) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}