-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathcall_transcript.go
373 lines (371 loc) · 13.9 KB
/
call_transcript.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
367
368
369
370
371
372
373
package models
import (
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)
type CallTranscript struct {
Entity
}
// NewCallTranscript instantiates a new CallTranscript and sets the default values.
func NewCallTranscript()(*CallTranscript) {
m := &CallTranscript{
Entity: *NewEntity(),
}
return m
}
// CreateCallTranscriptFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
// returns a Parsable when successful
func CreateCallTranscriptFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewCallTranscript(), nil
}
// GetCallId gets the callId property value. The unique identifier for the call that is related to this transcript. Read-only.
// returns a *string when successful
func (m *CallTranscript) GetCallId()(*string) {
val, err := m.GetBackingStore().Get("callId")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetContent gets the content property value. The content of the transcript. Read-only.
// returns a []byte when successful
func (m *CallTranscript) GetContent()([]byte) {
val, err := m.GetBackingStore().Get("content")
if err != nil {
panic(err)
}
if val != nil {
return val.([]byte)
}
return nil
}
// GetContentCorrelationId gets the contentCorrelationId property value. The unique identifier that links the transcript with its corresponding recording. Read-only.
// returns a *string when successful
func (m *CallTranscript) GetContentCorrelationId()(*string) {
val, err := m.GetBackingStore().Get("contentCorrelationId")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetCreatedDateTime gets the createdDateTime property value. Date and time at which the transcript was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
// returns a *Time when successful
func (m *CallTranscript) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
val, err := m.GetBackingStore().Get("createdDateTime")
if err != nil {
panic(err)
}
if val != nil {
return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
}
return nil
}
// GetEndDateTime gets the endDateTime property value. Date and time at which the transcription ends. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
// returns a *Time when successful
func (m *CallTranscript) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
val, err := m.GetBackingStore().Get("endDateTime")
if err != nil {
panic(err)
}
if val != nil {
return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
}
return nil
}
// GetFieldDeserializers the deserialization information for the current model
// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (m *CallTranscript) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := m.Entity.GetFieldDeserializers()
res["callId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetCallId(val)
}
return nil
}
res["content"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetByteArrayValue()
if err != nil {
return err
}
if val != nil {
m.SetContent(val)
}
return nil
}
res["contentCorrelationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetContentCorrelationId(val)
}
return nil
}
res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetTimeValue()
if err != nil {
return err
}
if val != nil {
m.SetCreatedDateTime(val)
}
return nil
}
res["endDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetTimeValue()
if err != nil {
return err
}
if val != nil {
m.SetEndDateTime(val)
}
return nil
}
res["meetingId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetMeetingId(val)
}
return nil
}
res["meetingOrganizer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreateIdentitySetFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetMeetingOrganizer(val.(IdentitySetable))
}
return nil
}
res["metadataContent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetByteArrayValue()
if err != nil {
return err
}
if val != nil {
m.SetMetadataContent(val)
}
return nil
}
res["transcriptContentUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetTranscriptContentUrl(val)
}
return nil
}
return res
}
// GetMeetingId gets the meetingId property value. The unique identifier of the online meeting related to this transcript. Read-only.
// returns a *string when successful
func (m *CallTranscript) GetMeetingId()(*string) {
val, err := m.GetBackingStore().Get("meetingId")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetMeetingOrganizer gets the meetingOrganizer property value. The identity information of the organizer of the onlineMeeting related to this transcript. Read-only.
// returns a IdentitySetable when successful
func (m *CallTranscript) GetMeetingOrganizer()(IdentitySetable) {
val, err := m.GetBackingStore().Get("meetingOrganizer")
if err != nil {
panic(err)
}
if val != nil {
return val.(IdentitySetable)
}
return nil
}
// GetMetadataContent gets the metadataContent property value. The time-aligned metadata of the utterances in the transcript. Read-only.
// returns a []byte when successful
func (m *CallTranscript) GetMetadataContent()([]byte) {
val, err := m.GetBackingStore().Get("metadataContent")
if err != nil {
panic(err)
}
if val != nil {
return val.([]byte)
}
return nil
}
// GetTranscriptContentUrl gets the transcriptContentUrl property value. The URL that can be used to access the content of the transcript. Read-only.
// returns a *string when successful
func (m *CallTranscript) GetTranscriptContentUrl()(*string) {
val, err := m.GetBackingStore().Get("transcriptContentUrl")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// Serialize serializes information the current object
func (m *CallTranscript) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
err := m.Entity.Serialize(writer)
if err != nil {
return err
}
{
err = writer.WriteStringValue("callId", m.GetCallId())
if err != nil {
return err
}
}
{
err = writer.WriteByteArrayValue("content", m.GetContent())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("contentCorrelationId", m.GetContentCorrelationId())
if err != nil {
return err
}
}
{
err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime())
if err != nil {
return err
}
}
{
err = writer.WriteTimeValue("endDateTime", m.GetEndDateTime())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("meetingId", m.GetMeetingId())
if err != nil {
return err
}
}
{
err = writer.WriteObjectValue("meetingOrganizer", m.GetMeetingOrganizer())
if err != nil {
return err
}
}
{
err = writer.WriteByteArrayValue("metadataContent", m.GetMetadataContent())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("transcriptContentUrl", m.GetTranscriptContentUrl())
if err != nil {
return err
}
}
return nil
}
// SetCallId sets the callId property value. The unique identifier for the call that is related to this transcript. Read-only.
func (m *CallTranscript) SetCallId(value *string)() {
err := m.GetBackingStore().Set("callId", value)
if err != nil {
panic(err)
}
}
// SetContent sets the content property value. The content of the transcript. Read-only.
func (m *CallTranscript) SetContent(value []byte)() {
err := m.GetBackingStore().Set("content", value)
if err != nil {
panic(err)
}
}
// SetContentCorrelationId sets the contentCorrelationId property value. The unique identifier that links the transcript with its corresponding recording. Read-only.
func (m *CallTranscript) SetContentCorrelationId(value *string)() {
err := m.GetBackingStore().Set("contentCorrelationId", value)
if err != nil {
panic(err)
}
}
// SetCreatedDateTime sets the createdDateTime property value. Date and time at which the transcript was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
func (m *CallTranscript) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
err := m.GetBackingStore().Set("createdDateTime", value)
if err != nil {
panic(err)
}
}
// SetEndDateTime sets the endDateTime property value. Date and time at which the transcription ends. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
func (m *CallTranscript) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
err := m.GetBackingStore().Set("endDateTime", value)
if err != nil {
panic(err)
}
}
// SetMeetingId sets the meetingId property value. The unique identifier of the online meeting related to this transcript. Read-only.
func (m *CallTranscript) SetMeetingId(value *string)() {
err := m.GetBackingStore().Set("meetingId", value)
if err != nil {
panic(err)
}
}
// SetMeetingOrganizer sets the meetingOrganizer property value. The identity information of the organizer of the onlineMeeting related to this transcript. Read-only.
func (m *CallTranscript) SetMeetingOrganizer(value IdentitySetable)() {
err := m.GetBackingStore().Set("meetingOrganizer", value)
if err != nil {
panic(err)
}
}
// SetMetadataContent sets the metadataContent property value. The time-aligned metadata of the utterances in the transcript. Read-only.
func (m *CallTranscript) SetMetadataContent(value []byte)() {
err := m.GetBackingStore().Set("metadataContent", value)
if err != nil {
panic(err)
}
}
// SetTranscriptContentUrl sets the transcriptContentUrl property value. The URL that can be used to access the content of the transcript. Read-only.
func (m *CallTranscript) SetTranscriptContentUrl(value *string)() {
err := m.GetBackingStore().Set("transcriptContentUrl", value)
if err != nil {
panic(err)
}
}
type CallTranscriptable interface {
Entityable
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetCallId()(*string)
GetContent()([]byte)
GetContentCorrelationId()(*string)
GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
GetMeetingId()(*string)
GetMeetingOrganizer()(IdentitySetable)
GetMetadataContent()([]byte)
GetTranscriptContentUrl()(*string)
SetCallId(value *string)()
SetContent(value []byte)()
SetContentCorrelationId(value *string)()
SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
SetMeetingId(value *string)()
SetMeetingOrganizer(value IdentitySetable)()
SetMetadataContent(value []byte)()
SetTranscriptContentUrl(value *string)()
}