• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

uber / cadence / 0187fc45-1fa7-4f9b-9c10-2aef2ebb54e0

08 May 2023 05:10PM UTC coverage: 57.153% (-0.07%) from 57.225%
0187fc45-1fa7-4f9b-9c10-2aef2ebb54e0

push

buildkite

GitHub
Update persistence layer to adopt idl update for isolation (#5254)

204 of 204 new or added lines in 15 files covered. (100.0%)

85781 of 150089 relevant lines covered (57.15%)

2419.35 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

40.37
/common/types/shared.go
1
// Copyright (c) 2017-2020 Uber Technologies Inc.
2
//
3
// Permission is hereby granted, free of charge, to any person obtaining a copy
4
// of this software and associated documentation files (the "Software"), to deal
5
// in the Software without restriction, including without limitation the rights
6
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
// copies of the Software, and to permit persons to whom the Software is
8
// furnished to do so, subject to the following conditions:
9
//
10
// The above copyright notice and this permission notice shall be included in all
11
// copies or substantial portions of the Software.
12
//
13
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
// SOFTWARE.
20

21
package types
22

23
import (
24
        "encoding/json"
25
        "fmt"
26
        "strconv"
27
        "strings"
28
        "time"
29
)
30

31
// AccessDeniedError is an internal type (TBD...)
32
type AccessDeniedError struct {
33
        Message string `json:"message,required"`
34
}
35

36
// ActivityLocalDispatchInfo is an internal type (TBD...)
37
type ActivityLocalDispatchInfo struct {
38
        ActivityID                      string `json:"activityId,omitempty"`
39
        ScheduledTimestamp              *int64 `json:"scheduledTimestamp,omitempty"`
40
        StartedTimestamp                *int64 `json:"startedTimestamp,omitempty"`
41
        ScheduledTimestampOfThisAttempt *int64 `json:"scheduledTimestampOfThisAttempt,omitempty"`
42
        TaskToken                       []byte `json:"taskToken,omitempty"`
43
}
44

45
// GetScheduledTimestamp is an internal getter (TBD...)
46
func (v *ActivityLocalDispatchInfo) GetScheduledTimestamp() (o int64) {
×
47
        if v != nil && v.ScheduledTimestamp != nil {
×
48
                return *v.ScheduledTimestamp
×
49
        }
×
50
        return
×
51
}
52

53
// ActivityTaskCancelRequestedEventAttributes is an internal type (TBD...)
54
type ActivityTaskCancelRequestedEventAttributes struct {
55
        ActivityID                   string `json:"activityId,omitempty"`
56
        DecisionTaskCompletedEventID int64  `json:"decisionTaskCompletedEventId,omitempty"`
57
}
58

59
// GetActivityID is an internal getter (TBD...)
60
func (v *ActivityTaskCancelRequestedEventAttributes) GetActivityID() (o string) {
3✔
61
        if v != nil {
6✔
62
                return v.ActivityID
3✔
63
        }
3✔
64
        return
×
65
}
66

67
// ActivityTaskCanceledEventAttributes is an internal type (TBD...)
68
type ActivityTaskCanceledEventAttributes struct {
69
        Details                      []byte `json:"details,omitempty"`
70
        LatestCancelRequestedEventID int64  `json:"latestCancelRequestedEventId,omitempty"`
71
        ScheduledEventID             int64  `json:"scheduledEventId,omitempty"`
72
        StartedEventID               int64  `json:"startedEventId,omitempty"`
73
        Identity                     string `json:"identity,omitempty"`
74
}
75

76
// GetScheduledEventID is an internal getter (TBD...)
77
func (v *ActivityTaskCanceledEventAttributes) GetScheduledEventID() (o int64) {
6✔
78
        if v != nil {
12✔
79
                return v.ScheduledEventID
6✔
80
        }
6✔
81
        return
×
82
}
83

84
// ActivityTaskCompletedEventAttributes is an internal type (TBD...)
85
type ActivityTaskCompletedEventAttributes struct {
86
        Result           []byte `json:"result,omitempty"`
87
        ScheduledEventID int64  `json:"scheduledEventId,omitempty"`
88
        StartedEventID   int64  `json:"startedEventId,omitempty"`
89
        Identity         string `json:"identity,omitempty"`
90
}
91

92
// GetScheduledEventID is an internal getter (TBD...)
93
func (v *ActivityTaskCompletedEventAttributes) GetScheduledEventID() (o int64) {
567✔
94
        if v != nil {
1,134✔
95
                return v.ScheduledEventID
567✔
96
        }
567✔
97
        return
×
98
}
99

100
// GetStartedEventID is an internal getter (TBD...)
101
func (v *ActivityTaskCompletedEventAttributes) GetStartedEventID() (o int64) {
3✔
102
        if v != nil {
6✔
103
                return v.StartedEventID
3✔
104
        }
3✔
105
        return
×
106
}
107

108
// ActivityTaskFailedEventAttributes is an internal type (TBD...)
109
type ActivityTaskFailedEventAttributes struct {
110
        Reason           *string `json:"reason,omitempty"`
111
        Details          []byte  `json:"details,omitempty"`
112
        ScheduledEventID int64   `json:"scheduledEventId,omitempty"`
113
        StartedEventID   int64   `json:"startedEventId,omitempty"`
114
        Identity         string  `json:"identity,omitempty"`
115
}
116

117
// GetScheduledEventID is an internal getter (TBD...)
118
func (v *ActivityTaskFailedEventAttributes) GetScheduledEventID() (o int64) {
18✔
119
        if v != nil {
36✔
120
                return v.ScheduledEventID
18✔
121
        }
18✔
122
        return
×
123
}
124

125
// GetStartedEventID is an internal getter (TBD...)
126
func (v *ActivityTaskFailedEventAttributes) GetStartedEventID() (o int64) {
×
127
        if v != nil {
×
128
                return v.StartedEventID
×
129
        }
×
130
        return
×
131
}
132

133
// ActivityTaskScheduledEventAttributes is an internal type (TBD...)
134
type ActivityTaskScheduledEventAttributes struct {
135
        ActivityID                    string        `json:"activityId,omitempty"`
136
        ActivityType                  *ActivityType `json:"activityType,omitempty"`
137
        Domain                        *string       `json:"domain,omitempty"`
138
        TaskList                      *TaskList     `json:"taskList,omitempty"`
139
        Input                         []byte        `json:"input,omitempty"`
140
        ScheduleToCloseTimeoutSeconds *int32        `json:"scheduleToCloseTimeoutSeconds,omitempty"`
141
        ScheduleToStartTimeoutSeconds *int32        `json:"scheduleToStartTimeoutSeconds,omitempty"`
142
        StartToCloseTimeoutSeconds    *int32        `json:"startToCloseTimeoutSeconds,omitempty"`
143
        HeartbeatTimeoutSeconds       *int32        `json:"heartbeatTimeoutSeconds,omitempty"`
144
        DecisionTaskCompletedEventID  int64         `json:"decisionTaskCompletedEventId,omitempty"`
145
        RetryPolicy                   *RetryPolicy  `json:"retryPolicy,omitempty"`
146
        Header                        *Header       `json:"header,omitempty"`
147
}
148

149
// GetActivityID is an internal getter (TBD...)
150
func (v *ActivityTaskScheduledEventAttributes) GetActivityID() (o string) {
342✔
151
        if v != nil {
684✔
152
                return v.ActivityID
342✔
153
        }
342✔
154
        return
×
155
}
156

157
// GetActivityType is an internal getter (TBD...)
158
func (v *ActivityTaskScheduledEventAttributes) GetActivityType() (o *ActivityType) {
324✔
159
        if v != nil && v.ActivityType != nil {
648✔
160
                return v.ActivityType
324✔
161
        }
324✔
162
        return
×
163
}
164

165
// GetDomain is an internal getter (TBD...)
166
func (v *ActivityTaskScheduledEventAttributes) GetDomain() (o string) {
768✔
167
        if v != nil && v.Domain != nil {
780✔
168
                return *v.Domain
12✔
169
        }
12✔
170
        return
759✔
171
}
172

173
// GetTaskList is an internal getter (TBD...)
174
func (v *ActivityTaskScheduledEventAttributes) GetTaskList() (o *TaskList) {
×
175
        if v != nil && v.TaskList != nil {
×
176
                return v.TaskList
×
177
        }
×
178
        return
×
179
}
180

181
// GetScheduleToCloseTimeoutSeconds is an internal getter (TBD...)
182
func (v *ActivityTaskScheduledEventAttributes) GetScheduleToCloseTimeoutSeconds() (o int32) {
420✔
183
        if v != nil && v.ScheduleToCloseTimeoutSeconds != nil {
840✔
184
                return *v.ScheduleToCloseTimeoutSeconds
420✔
185
        }
420✔
186
        return
×
187
}
188

189
// GetScheduleToStartTimeoutSeconds is an internal getter (TBD...)
190
func (v *ActivityTaskScheduledEventAttributes) GetScheduleToStartTimeoutSeconds() (o int32) {
420✔
191
        if v != nil && v.ScheduleToStartTimeoutSeconds != nil {
840✔
192
                return *v.ScheduleToStartTimeoutSeconds
420✔
193
        }
420✔
194
        return
×
195
}
196

197
// GetStartToCloseTimeoutSeconds is an internal getter (TBD...)
198
func (v *ActivityTaskScheduledEventAttributes) GetStartToCloseTimeoutSeconds() (o int32) {
420✔
199
        if v != nil && v.StartToCloseTimeoutSeconds != nil {
840✔
200
                return *v.StartToCloseTimeoutSeconds
420✔
201
        }
420✔
202
        return
×
203
}
204

205
// GetHeartbeatTimeoutSeconds is an internal getter (TBD...)
206
func (v *ActivityTaskScheduledEventAttributes) GetHeartbeatTimeoutSeconds() (o int32) {
420✔
207
        if v != nil && v.HeartbeatTimeoutSeconds != nil {
840✔
208
                return *v.HeartbeatTimeoutSeconds
420✔
209
        }
420✔
210
        return
3✔
211
}
212

213
// ActivityTaskStartedEventAttributes is an internal type (TBD...)
214
type ActivityTaskStartedEventAttributes struct {
215
        ScheduledEventID   int64   `json:"scheduledEventId,omitempty"`
216
        Identity           string  `json:"identity,omitempty"`
217
        RequestID          string  `json:"requestId,omitempty"`
218
        Attempt            int32   `json:"attempt,omitempty"`
219
        LastFailureReason  *string `json:"lastFailureReason,omitempty"`
220
        LastFailureDetails []byte  `json:"lastFailureDetails,omitempty"`
221
}
222

223
// GetScheduledEventID is an internal getter (TBD...)
224
func (v *ActivityTaskStartedEventAttributes) GetScheduledEventID() (o int64) {
663✔
225
        if v != nil {
1,326✔
226
                return v.ScheduledEventID
663✔
227
        }
663✔
228
        return
×
229
}
230

231
// GetRequestID is an internal getter (TBD...)
232
func (v *ActivityTaskStartedEventAttributes) GetRequestID() (o string) {
336✔
233
        if v != nil {
672✔
234
                return v.RequestID
336✔
235
        }
336✔
236
        return
×
237
}
238

239
// ActivityTaskTimedOutEventAttributes is an internal type (TBD...)
240
type ActivityTaskTimedOutEventAttributes struct {
241
        Details            []byte       `json:"details,omitempty"`
242
        ScheduledEventID   int64        `json:"scheduledEventId,omitempty"`
243
        StartedEventID     int64        `json:"startedEventId,omitempty"`
244
        TimeoutType        *TimeoutType `json:"timeoutType,omitempty"`
245
        LastFailureReason  *string      `json:"lastFailureReason,omitempty"`
246
        LastFailureDetails []byte       `json:"lastFailureDetails,omitempty"`
247
}
248

249
// GetScheduledEventID is an internal getter (TBD...)
250
func (v *ActivityTaskTimedOutEventAttributes) GetScheduledEventID() (o int64) {
276✔
251
        if v != nil {
552✔
252
                return v.ScheduledEventID
276✔
253
        }
276✔
254
        return
×
255
}
256

257
// GetTimeoutType is an internal getter (TBD...)
258
func (v *ActivityTaskTimedOutEventAttributes) GetTimeoutType() (o TimeoutType) {
42✔
259
        if v != nil && v.TimeoutType != nil {
84✔
260
                return *v.TimeoutType
42✔
261
        }
42✔
262
        return
×
263
}
264

265
// ActivityType is an internal type (TBD...)
266
type ActivityType struct {
267
        Name string `json:"name,omitempty"`
268
}
269

270
// GetName is an internal getter (TBD...)
271
func (v *ActivityType) GetName() (o string) {
1,119✔
272
        if v != nil {
2,238✔
273
                return v.Name
1,119✔
274
        }
1,119✔
275
        return
×
276
}
277

278
// ArchivalStatus is an internal type (TBD...)
279
type ArchivalStatus int32
280

281
// Ptr is a helper function for getting pointer value
282
func (e ArchivalStatus) Ptr() *ArchivalStatus {
261✔
283
        return &e
261✔
284
}
261✔
285

286
// String returns a readable string representation of ArchivalStatus.
287
func (e ArchivalStatus) String() string {
×
288
        w := int32(e)
×
289
        switch w {
×
290
        case 0:
×
291
                return "DISABLED"
×
292
        case 1:
×
293
                return "ENABLED"
×
294
        }
295
        return fmt.Sprintf("ArchivalStatus(%d)", w)
×
296
}
297

298
// UnmarshalText parses enum value from string representation
299
func (e *ArchivalStatus) UnmarshalText(value []byte) error {
×
300
        switch s := strings.ToUpper(string(value)); s {
×
301
        case "DISABLED":
×
302
                *e = ArchivalStatusDisabled
×
303
                return nil
×
304
        case "ENABLED":
×
305
                *e = ArchivalStatusEnabled
×
306
                return nil
×
307
        default:
×
308
                val, err := strconv.ParseInt(s, 10, 32)
×
309
                if err != nil {
×
310
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "ArchivalStatus", err)
×
311
                }
×
312
                *e = ArchivalStatus(val)
×
313
                return nil
×
314
        }
315
}
316

317
// MarshalText encodes ArchivalStatus to text.
318
func (e ArchivalStatus) MarshalText() ([]byte, error) {
×
319
        return []byte(e.String()), nil
×
320
}
×
321

322
const (
323
        // ArchivalStatusDisabled is an option for ArchivalStatus
324
        ArchivalStatusDisabled ArchivalStatus = iota
325
        // ArchivalStatusEnabled is an option for ArchivalStatus
326
        ArchivalStatusEnabled
327
)
328

329
// BadBinaries is an internal type (TBD...)
330
type BadBinaries struct {
331
        Binaries map[string]*BadBinaryInfo `json:"binaries,omitempty"`
332
}
333

334
// BadBinaryInfo is an internal type (TBD...)
335
type BadBinaryInfo struct {
336
        Reason          string `json:"reason,omitempty"`
337
        Operator        string `json:"operator,omitempty"`
338
        CreatedTimeNano *int64 `json:"createdTimeNano,omitempty"`
339
}
340

341
// GetReason is an internal getter (TBD...)
342
func (v *BadBinaryInfo) GetReason() (o string) {
×
343
        if v != nil {
×
344
                return v.Reason
×
345
        }
×
346
        return
×
347
}
348

349
// GetOperator is an internal getter (TBD...)
350
func (v *BadBinaryInfo) GetOperator() (o string) {
×
351
        if v != nil {
×
352
                return v.Operator
×
353
        }
×
354
        return
×
355
}
356

357
// GetCreatedTimeNano is an internal getter (TBD...)
358
func (v *BadBinaryInfo) GetCreatedTimeNano() (o int64) {
×
359
        if v != nil && v.CreatedTimeNano != nil {
×
360
                return *v.CreatedTimeNano
×
361
        }
×
362
        return
×
363
}
364

365
// BadRequestError is an internal type (TBD...)
366
type BadRequestError struct {
367
        Message string `json:"message,required"`
368
}
369

370
// CancelExternalWorkflowExecutionFailedCause is an internal type (TBD...)
371
type CancelExternalWorkflowExecutionFailedCause int32
372

373
// Ptr is a helper function for getting pointer value
374
func (e CancelExternalWorkflowExecutionFailedCause) Ptr() *CancelExternalWorkflowExecutionFailedCause {
6✔
375
        return &e
6✔
376
}
6✔
377

378
// String returns a readable string representation of CancelExternalWorkflowExecutionFailedCause.
379
func (e CancelExternalWorkflowExecutionFailedCause) String() string {
×
380
        w := int32(e)
×
381
        switch w {
×
382
        case 0:
×
383
                return "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"
×
384
        }
385
        return fmt.Sprintf("CancelExternalWorkflowExecutionFailedCause(%d)", w)
×
386
}
387

388
// UnmarshalText parses enum value from string representation
389
func (e *CancelExternalWorkflowExecutionFailedCause) UnmarshalText(value []byte) error {
×
390
        switch s := strings.ToUpper(string(value)); s {
×
391
        case "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION":
×
392
                *e = CancelExternalWorkflowExecutionFailedCauseUnknownExternalWorkflowExecution
×
393
                return nil
×
394
        default:
×
395
                val, err := strconv.ParseInt(s, 10, 32)
×
396
                if err != nil {
×
397
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "CancelExternalWorkflowExecutionFailedCause", err)
×
398
                }
×
399
                *e = CancelExternalWorkflowExecutionFailedCause(val)
×
400
                return nil
×
401
        }
402
}
403

404
// MarshalText encodes CancelExternalWorkflowExecutionFailedCause to text.
405
func (e CancelExternalWorkflowExecutionFailedCause) MarshalText() ([]byte, error) {
×
406
        return []byte(e.String()), nil
×
407
}
×
408

409
const (
410
        // CancelExternalWorkflowExecutionFailedCauseUnknownExternalWorkflowExecution is an option for CancelExternalWorkflowExecutionFailedCause
411
        CancelExternalWorkflowExecutionFailedCauseUnknownExternalWorkflowExecution CancelExternalWorkflowExecutionFailedCause = iota
412
)
413

414
// CancelTimerDecisionAttributes is an internal type (TBD...)
415
type CancelTimerDecisionAttributes struct {
416
        TimerID string `json:"timerId,omitempty"`
417
}
418

419
// GetTimerID is an internal getter (TBD...)
420
func (v *CancelTimerDecisionAttributes) GetTimerID() (o string) {
18✔
421
        if v != nil {
36✔
422
                return v.TimerID
18✔
423
        }
18✔
424
        return
×
425
}
426

427
// CancelTimerFailedEventAttributes is an internal type (TBD...)
428
type CancelTimerFailedEventAttributes struct {
429
        TimerID                      string `json:"timerId,omitempty"`
430
        Cause                        string `json:"cause,omitempty"`
431
        DecisionTaskCompletedEventID int64  `json:"decisionTaskCompletedEventId,omitempty"`
432
        Identity                     string `json:"identity,omitempty"`
433
}
434

435
// CancelWorkflowExecutionDecisionAttributes is an internal type (TBD...)
436
type CancelWorkflowExecutionDecisionAttributes struct {
437
        Details []byte `json:"details,omitempty"`
438
}
439

440
// CancellationAlreadyRequestedError is an internal type (TBD...)
441
type CancellationAlreadyRequestedError struct {
442
        Message string `json:"message,required"`
443
}
444

445
// ChildWorkflowExecutionCanceledEventAttributes is an internal type (TBD...)
446
type ChildWorkflowExecutionCanceledEventAttributes struct {
447
        Details           []byte             `json:"details,omitempty"`
448
        Domain            string             `json:"domain,omitempty"`
449
        WorkflowExecution *WorkflowExecution `json:"workflowExecution,omitempty"`
450
        WorkflowType      *WorkflowType      `json:"workflowType,omitempty"`
451
        InitiatedEventID  int64              `json:"initiatedEventId,omitempty"`
452
        StartedEventID    int64              `json:"startedEventId,omitempty"`
453
}
454

455
// GetInitiatedEventID is an internal getter (TBD...)
456
func (v *ChildWorkflowExecutionCanceledEventAttributes) GetInitiatedEventID() (o int64) {
3✔
457
        if v != nil {
6✔
458
                return v.InitiatedEventID
3✔
459
        }
3✔
460
        return
×
461
}
462

463
// ChildWorkflowExecutionCompletedEventAttributes is an internal type (TBD...)
464
type ChildWorkflowExecutionCompletedEventAttributes struct {
465
        Result            []byte             `json:"result,omitempty"`
466
        Domain            string             `json:"domain,omitempty"`
467
        WorkflowExecution *WorkflowExecution `json:"workflowExecution,omitempty"`
468
        WorkflowType      *WorkflowType      `json:"workflowType,omitempty"`
469
        InitiatedEventID  int64              `json:"initiatedEventId,omitempty"`
470
        StartedEventID    int64              `json:"startedEventId,omitempty"`
471
}
472

473
// GetInitiatedEventID is an internal getter (TBD...)
474
func (v *ChildWorkflowExecutionCompletedEventAttributes) GetInitiatedEventID() (o int64) {
27✔
475
        if v != nil {
54✔
476
                return v.InitiatedEventID
27✔
477
        }
27✔
478
        return
×
479
}
480

481
// ChildWorkflowExecutionFailedCause is an internal type (TBD...)
482
type ChildWorkflowExecutionFailedCause int32
483

484
// Ptr is a helper function for getting pointer value
485
func (e ChildWorkflowExecutionFailedCause) Ptr() *ChildWorkflowExecutionFailedCause {
3✔
486
        return &e
3✔
487
}
3✔
488

489
// String returns a readable string representation of ChildWorkflowExecutionFailedCause.
490
func (e ChildWorkflowExecutionFailedCause) String() string {
×
491
        w := int32(e)
×
492
        switch w {
×
493
        case 0:
×
494
                return "WORKFLOW_ALREADY_RUNNING"
×
495
        }
496
        return fmt.Sprintf("ChildWorkflowExecutionFailedCause(%d)", w)
×
497
}
498

499
// UnmarshalText parses enum value from string representation
500
func (e *ChildWorkflowExecutionFailedCause) UnmarshalText(value []byte) error {
×
501
        switch s := strings.ToUpper(string(value)); s {
×
502
        case "WORKFLOW_ALREADY_RUNNING":
×
503
                *e = ChildWorkflowExecutionFailedCauseWorkflowAlreadyRunning
×
504
                return nil
×
505
        default:
×
506
                val, err := strconv.ParseInt(s, 10, 32)
×
507
                if err != nil {
×
508
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "ChildWorkflowExecutionFailedCause", err)
×
509
                }
×
510
                *e = ChildWorkflowExecutionFailedCause(val)
×
511
                return nil
×
512
        }
513
}
514

515
// MarshalText encodes ChildWorkflowExecutionFailedCause to text.
516
func (e ChildWorkflowExecutionFailedCause) MarshalText() ([]byte, error) {
×
517
        return []byte(e.String()), nil
×
518
}
×
519

520
const (
521
        // ChildWorkflowExecutionFailedCauseWorkflowAlreadyRunning is an option for ChildWorkflowExecutionFailedCause
522
        ChildWorkflowExecutionFailedCauseWorkflowAlreadyRunning ChildWorkflowExecutionFailedCause = iota
523
)
524

525
// ChildWorkflowExecutionFailedEventAttributes is an internal type (TBD...)
526
type ChildWorkflowExecutionFailedEventAttributes struct {
527
        Reason            *string            `json:"reason,omitempty"`
528
        Details           []byte             `json:"details,omitempty"`
529
        Domain            string             `json:"domain,omitempty"`
530
        WorkflowExecution *WorkflowExecution `json:"workflowExecution,omitempty"`
531
        WorkflowType      *WorkflowType      `json:"workflowType,omitempty"`
532
        InitiatedEventID  int64              `json:"initiatedEventId,omitempty"`
533
        StartedEventID    int64              `json:"startedEventId,omitempty"`
534
}
535

536
// GetInitiatedEventID is an internal getter (TBD...)
537
func (v *ChildWorkflowExecutionFailedEventAttributes) GetInitiatedEventID() (o int64) {
3✔
538
        if v != nil {
6✔
539
                return v.InitiatedEventID
3✔
540
        }
3✔
541
        return
×
542
}
543

544
// ChildWorkflowExecutionStartedEventAttributes is an internal type (TBD...)
545
type ChildWorkflowExecutionStartedEventAttributes struct {
546
        Domain            string             `json:"domain,omitempty"`
547
        InitiatedEventID  int64              `json:"initiatedEventId,omitempty"`
548
        WorkflowExecution *WorkflowExecution `json:"workflowExecution,omitempty"`
549
        WorkflowType      *WorkflowType      `json:"workflowType,omitempty"`
550
        Header            *Header            `json:"header,omitempty"`
551
}
552

553
// GetDomain is an internal getter (TBD...)
554
func (v *ChildWorkflowExecutionStartedEventAttributes) GetDomain() (o string) {
×
555
        if v != nil {
×
556
                return v.Domain
×
557
        }
×
558
        return
×
559
}
560

561
// GetInitiatedEventID is an internal getter (TBD...)
562
func (v *ChildWorkflowExecutionStartedEventAttributes) GetInitiatedEventID() (o int64) {
42✔
563
        if v != nil {
84✔
564
                return v.InitiatedEventID
42✔
565
        }
42✔
566
        return
×
567
}
568

569
// GetWorkflowExecution is an internal getter (TBD...)
570
func (v *ChildWorkflowExecutionStartedEventAttributes) GetWorkflowExecution() (o *WorkflowExecution) {
21✔
571
        if v != nil && v.WorkflowExecution != nil {
42✔
572
                return v.WorkflowExecution
21✔
573
        }
21✔
574
        return
×
575
}
576

577
// ChildWorkflowExecutionTerminatedEventAttributes is an internal type (TBD...)
578
type ChildWorkflowExecutionTerminatedEventAttributes struct {
579
        Domain            string             `json:"domain,omitempty"`
580
        WorkflowExecution *WorkflowExecution `json:"workflowExecution,omitempty"`
581
        WorkflowType      *WorkflowType      `json:"workflowType,omitempty"`
582
        InitiatedEventID  int64              `json:"initiatedEventId,omitempty"`
583
        StartedEventID    int64              `json:"startedEventId,omitempty"`
584
}
585

586
// GetInitiatedEventID is an internal getter (TBD...)
587
func (v *ChildWorkflowExecutionTerminatedEventAttributes) GetInitiatedEventID() (o int64) {
9✔
588
        if v != nil {
18✔
589
                return v.InitiatedEventID
9✔
590
        }
9✔
591
        return
×
592
}
593

594
// ChildWorkflowExecutionTimedOutEventAttributes is an internal type (TBD...)
595
type ChildWorkflowExecutionTimedOutEventAttributes struct {
596
        TimeoutType       *TimeoutType       `json:"timeoutType,omitempty"`
597
        Domain            string             `json:"domain,omitempty"`
598
        WorkflowExecution *WorkflowExecution `json:"workflowExecution,omitempty"`
599
        WorkflowType      *WorkflowType      `json:"workflowType,omitempty"`
600
        InitiatedEventID  int64              `json:"initiatedEventId,omitempty"`
601
        StartedEventID    int64              `json:"startedEventId,omitempty"`
602
}
603

604
// GetInitiatedEventID is an internal getter (TBD...)
605
func (v *ChildWorkflowExecutionTimedOutEventAttributes) GetInitiatedEventID() (o int64) {
3✔
606
        if v != nil {
6✔
607
                return v.InitiatedEventID
3✔
608
        }
3✔
609
        return
×
610
}
611

612
// ClientVersionNotSupportedError is an internal type (TBD...)
613
type ClientVersionNotSupportedError struct {
614
        FeatureVersion    string `json:"featureVersion,required"`
615
        ClientImpl        string `json:"clientImpl,required"`
616
        SupportedVersions string `json:"supportedVersions,required"`
617
}
618

619
// FeatureNotEnabledError is an internal type (TBD...)
620
type FeatureNotEnabledError struct {
621
        FeatureFlag string `json:"featureFlag,required"`
622
}
623

624
// CloseShardRequest is an internal type (TBD...)
625
type CloseShardRequest struct {
626
        ShardID int32 `json:"shardID,omitempty"`
627
}
628

629
func (v *CloseShardRequest) SerializeForLogging() (string, error) {
×
630
        if v == nil {
×
631
                return "", nil
×
632
        }
×
633
        return SerializeRequest(v)
×
634
}
635

636
// GetShardID is an internal getter (TBD...)
637
func (v *CloseShardRequest) GetShardID() (o int32) {
×
638
        if v != nil {
×
639
                return v.ShardID
×
640
        }
×
641
        return
×
642
}
643

644
// ClusterInfo is an internal type (TBD...)
645
type ClusterInfo struct {
646
        SupportedClientVersions *SupportedClientVersions `json:"supportedClientVersions,omitempty"`
647
}
648

649
// ClusterReplicationConfiguration is an internal type (TBD...)
650
type ClusterReplicationConfiguration struct {
651
        ClusterName string `json:"clusterName,omitempty"`
652
}
653

654
// GetClusterName is an internal getter (TBD...)
655
func (v *ClusterReplicationConfiguration) GetClusterName() (o string) {
3✔
656
        if v != nil {
6✔
657
                return v.ClusterName
3✔
658
        }
3✔
659
        return
×
660
}
661

662
// CompleteWorkflowExecutionDecisionAttributes is an internal type (TBD...)
663
type CompleteWorkflowExecutionDecisionAttributes struct {
664
        Result []byte `json:"result,omitempty"`
665
}
666

667
// ContinueAsNewInitiator is an internal type (TBD...)
668
type ContinueAsNewInitiator int32
669

670
// Ptr is a helper function for getting pointer value
671
func (e ContinueAsNewInitiator) Ptr() *ContinueAsNewInitiator {
159✔
672
        return &e
159✔
673
}
159✔
674

675
// String returns a readable string representation of ContinueAsNewInitiator.
676
func (e ContinueAsNewInitiator) String() string {
72✔
677
        w := int32(e)
72✔
678
        switch w {
72✔
679
        case 0:
72✔
680
                return "Decider"
72✔
681
        case 1:
×
682
                return "RetryPolicy"
×
683
        case 2:
×
684
                return "CronSchedule"
×
685
        }
686
        return fmt.Sprintf("ContinueAsNewInitiator(%d)", w)
×
687
}
688

689
// UnmarshalText parses enum value from string representation
690
func (e *ContinueAsNewInitiator) UnmarshalText(value []byte) error {
12✔
691
        switch s := strings.ToUpper(string(value)); s {
12✔
692
        case "DECIDER":
12✔
693
                *e = ContinueAsNewInitiatorDecider
12✔
694
                return nil
12✔
695
        case "RETRYPOLICY":
×
696
                *e = ContinueAsNewInitiatorRetryPolicy
×
697
                return nil
×
698
        case "CRONSCHEDULE":
×
699
                *e = ContinueAsNewInitiatorCronSchedule
×
700
                return nil
×
701
        default:
×
702
                val, err := strconv.ParseInt(s, 10, 32)
×
703
                if err != nil {
×
704
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "ContinueAsNewInitiator", err)
×
705
                }
×
706
                *e = ContinueAsNewInitiator(val)
×
707
                return nil
×
708
        }
709
}
710

711
// MarshalText encodes ContinueAsNewInitiator to text.
712
func (e ContinueAsNewInitiator) MarshalText() ([]byte, error) {
72✔
713
        return []byte(e.String()), nil
72✔
714
}
72✔
715

716
const (
717
        // ContinueAsNewInitiatorDecider is an option for ContinueAsNewInitiator
718
        ContinueAsNewInitiatorDecider ContinueAsNewInitiator = iota
719
        // ContinueAsNewInitiatorRetryPolicy is an option for ContinueAsNewInitiator
720
        ContinueAsNewInitiatorRetryPolicy
721
        // ContinueAsNewInitiatorCronSchedule is an option for ContinueAsNewInitiator
722
        ContinueAsNewInitiatorCronSchedule
723
)
724

725
// ContinueAsNewWorkflowExecutionDecisionAttributes is an internal type (TBD...)
726
type ContinueAsNewWorkflowExecutionDecisionAttributes struct {
727
        WorkflowType                        *WorkflowType           `json:"workflowType,omitempty"`
728
        TaskList                            *TaskList               `json:"taskList,omitempty"`
729
        Input                               []byte                  `json:"input,omitempty"`
730
        ExecutionStartToCloseTimeoutSeconds *int32                  `json:"executionStartToCloseTimeoutSeconds,omitempty"`
731
        TaskStartToCloseTimeoutSeconds      *int32                  `json:"taskStartToCloseTimeoutSeconds,omitempty"`
732
        BackoffStartIntervalInSeconds       *int32                  `json:"backoffStartIntervalInSeconds,omitempty"`
733
        RetryPolicy                         *RetryPolicy            `json:"retryPolicy,omitempty"`
734
        Initiator                           *ContinueAsNewInitiator `json:"initiator,omitempty"`
735
        FailureReason                       *string                 `json:"failureReason,omitempty"`
736
        FailureDetails                      []byte                  `json:"failureDetails,omitempty"`
737
        LastCompletionResult                []byte                  `json:"lastCompletionResult,omitempty"`
738
        CronSchedule                        string                  `json:"cronSchedule,omitempty"`
739
        Header                              *Header                 `json:"header,omitempty"`
740
        Memo                                *Memo                   `json:"memo,omitempty"`
741
        SearchAttributes                    *SearchAttributes       `json:"searchAttributes,omitempty"`
742
        JitterStartSeconds                  *int32                  `json:"jitterStartSeconds,omitempty"`
743
}
744

745
// GetExecutionStartToCloseTimeoutSeconds is an internal getter (TBD...)
746
func (v *ContinueAsNewWorkflowExecutionDecisionAttributes) GetExecutionStartToCloseTimeoutSeconds() (o int32) {
111✔
747
        if v != nil && v.ExecutionStartToCloseTimeoutSeconds != nil {
192✔
748
                return *v.ExecutionStartToCloseTimeoutSeconds
81✔
749
        }
81✔
750
        return
30✔
751
}
752

753
// GetTaskStartToCloseTimeoutSeconds is an internal getter (TBD...)
754
func (v *ContinueAsNewWorkflowExecutionDecisionAttributes) GetTaskStartToCloseTimeoutSeconds() (o int32) {
267✔
755
        if v != nil && v.TaskStartToCloseTimeoutSeconds != nil {
504✔
756
                return *v.TaskStartToCloseTimeoutSeconds
237✔
757
        }
237✔
758
        return
30✔
759
}
760

761
// GetBackoffStartIntervalInSeconds is an internal getter (TBD...)
762
func (v *ContinueAsNewWorkflowExecutionDecisionAttributes) GetBackoffStartIntervalInSeconds() (o int32) {
267✔
763
        if v != nil && v.BackoffStartIntervalInSeconds != nil {
312✔
764
                return *v.BackoffStartIntervalInSeconds
45✔
765
        }
45✔
766
        return
222✔
767
}
768

769
// GetJitterStartSeconds is an internal getter (TBD...)
770
func (v *ContinueAsNewWorkflowExecutionDecisionAttributes) GetJitterStartSeconds() (o int32) {
×
771
        if v != nil && v.JitterStartSeconds != nil {
×
772
                return *v.JitterStartSeconds
×
773
        }
×
774
        return
×
775
}
776

777
// GetInitiator is an internal getter (TBD...)
778
func (v *ContinueAsNewWorkflowExecutionDecisionAttributes) GetInitiator() (o ContinueAsNewInitiator) {
156✔
779
        if v != nil && v.Initiator != nil {
201✔
780
                return *v.Initiator
45✔
781
        }
45✔
782
        return
111✔
783
}
784

785
// GetSearchAttributes is an internal getter (TBD...)
786
func (v *ContinueAsNewWorkflowExecutionDecisionAttributes) GetSearchAttributes() (o *SearchAttributes) {
111✔
787
        if v != nil && v.SearchAttributes != nil {
141✔
788
                return v.SearchAttributes
30✔
789
        }
30✔
790
        return
81✔
791
}
792

793
// CountWorkflowExecutionsRequest is an internal type (TBD...)
794
type CountWorkflowExecutionsRequest struct {
795
        Domain string `json:"domain,omitempty"`
796
        Query  string `json:"query,omitempty"`
797
}
798

799
func (v *CountWorkflowExecutionsRequest) SerializeForLogging() (string, error) {
×
800
        if v == nil {
×
801
                return "", nil
×
802
        }
×
803
        return SerializeRequest(v)
×
804
}
805

806
// GetDomain is an internal getter (TBD...)
807
func (v *CountWorkflowExecutionsRequest) GetDomain() (o string) {
84✔
808
        if v != nil {
168✔
809
                return v.Domain
84✔
810
        }
84✔
811
        return
×
812
}
813

814
// GetQuery is an internal getter (TBD...)
815
func (v *CountWorkflowExecutionsRequest) GetQuery() (o string) {
12✔
816
        if v != nil {
24✔
817
                return v.Query
12✔
818
        }
12✔
819
        return
×
820
}
821

822
// CountWorkflowExecutionsResponse is an internal type (TBD...)
823
type CountWorkflowExecutionsResponse struct {
824
        Count int64 `json:"count,omitempty"`
825
}
826

827
// GetCount is an internal getter (TBD...)
828
func (v *CountWorkflowExecutionsResponse) GetCount() (o int64) {
15✔
829
        if v != nil {
30✔
830
                return v.Count
15✔
831
        }
15✔
832
        return
×
833
}
834

835
// CurrentBranchChangedError is an internal type (TBD...)
836
type CurrentBranchChangedError struct {
837
        Message            string `json:"message,required"`
838
        CurrentBranchToken []byte `json:"currentBranchToken,required"`
839
}
840

841
// GetCurrentBranchToken is an internal getter (TBD...)
842
func (v *CurrentBranchChangedError) GetCurrentBranchToken() (o []byte) {
×
843
        if v != nil && v.CurrentBranchToken != nil {
×
844
                return v.CurrentBranchToken
×
845
        }
×
846
        return
×
847
}
848

849
// DataBlob is an internal type (TBD...)
850
type DataBlob struct {
851
        EncodingType *EncodingType `json:"EncodingType,omitempty"`
852
        Data         []byte        `json:"Data,omitempty"`
853
}
854

855
// GetEncodingType is an internal getter (TBD...)
856
func (v *DataBlob) GetEncodingType() (o EncodingType) {
3✔
857
        if v != nil && v.EncodingType != nil {
6✔
858
                return *v.EncodingType
3✔
859
        }
3✔
860
        return
×
861
}
862

863
// GetData is an internal getter (TBD...)
864
func (v *DataBlob) GetData() (o []byte) {
×
865
        if v != nil && v.Data != nil {
×
866
                return v.Data
×
867
        }
×
868
        return
×
869
}
870

871
// Decision is an internal type (TBD...)
872
type Decision struct {
873
        DecisionType                                             *DecisionType                                             `json:"decisionType,omitempty"`
874
        ScheduleActivityTaskDecisionAttributes                   *ScheduleActivityTaskDecisionAttributes                   `json:"scheduleActivityTaskDecisionAttributes,omitempty"`
875
        StartTimerDecisionAttributes                             *StartTimerDecisionAttributes                             `json:"startTimerDecisionAttributes,omitempty"`
876
        CompleteWorkflowExecutionDecisionAttributes              *CompleteWorkflowExecutionDecisionAttributes              `json:"completeWorkflowExecutionDecisionAttributes,omitempty"`
877
        FailWorkflowExecutionDecisionAttributes                  *FailWorkflowExecutionDecisionAttributes                  `json:"failWorkflowExecutionDecisionAttributes,omitempty"`
878
        RequestCancelActivityTaskDecisionAttributes              *RequestCancelActivityTaskDecisionAttributes              `json:"requestCancelActivityTaskDecisionAttributes,omitempty"`
879
        CancelTimerDecisionAttributes                            *CancelTimerDecisionAttributes                            `json:"cancelTimerDecisionAttributes,omitempty"`
880
        CancelWorkflowExecutionDecisionAttributes                *CancelWorkflowExecutionDecisionAttributes                `json:"cancelWorkflowExecutionDecisionAttributes,omitempty"`
881
        RequestCancelExternalWorkflowExecutionDecisionAttributes *RequestCancelExternalWorkflowExecutionDecisionAttributes `json:"requestCancelExternalWorkflowExecutionDecisionAttributes,omitempty"`
882
        RecordMarkerDecisionAttributes                           *RecordMarkerDecisionAttributes                           `json:"recordMarkerDecisionAttributes,omitempty"`
883
        ContinueAsNewWorkflowExecutionDecisionAttributes         *ContinueAsNewWorkflowExecutionDecisionAttributes         `json:"continueAsNewWorkflowExecutionDecisionAttributes,omitempty"`
884
        StartChildWorkflowExecutionDecisionAttributes            *StartChildWorkflowExecutionDecisionAttributes            `json:"startChildWorkflowExecutionDecisionAttributes,omitempty"`
885
        SignalExternalWorkflowExecutionDecisionAttributes        *SignalExternalWorkflowExecutionDecisionAttributes        `json:"signalExternalWorkflowExecutionDecisionAttributes,omitempty"`
886
        UpsertWorkflowSearchAttributesDecisionAttributes         *UpsertWorkflowSearchAttributesDecisionAttributes         `json:"upsertWorkflowSearchAttributesDecisionAttributes,omitempty"`
887
}
888

889
// GetDecisionType is an internal getter (TBD...)
890
func (v *Decision) GetDecisionType() (o DecisionType) {
1,290✔
891
        if v != nil && v.DecisionType != nil {
2,580✔
892
                return *v.DecisionType
1,290✔
893
        }
1,290✔
894
        return
×
895
}
896

897
// DecisionTaskCompletedEventAttributes is an internal type (TBD...)
898
type DecisionTaskCompletedEventAttributes struct {
899
        ExecutionContext []byte `json:"executionContext,omitempty"`
900
        ScheduledEventID int64  `json:"scheduledEventId,omitempty"`
901
        StartedEventID   int64  `json:"startedEventId,omitempty"`
902
        Identity         string `json:"identity,omitempty"`
903
        BinaryChecksum   string `json:"binaryChecksum,omitempty"`
904
}
905

906
// GetStartedEventID is an internal getter (TBD...)
907
func (v *DecisionTaskCompletedEventAttributes) GetStartedEventID() (o int64) {
934✔
908
        if v != nil {
1,868✔
909
                return v.StartedEventID
934✔
910
        }
934✔
911
        return
×
912
}
913

914
// GetBinaryChecksum is an internal getter (TBD...)
915
func (v *DecisionTaskCompletedEventAttributes) GetBinaryChecksum() (o string) {
934✔
916
        if v != nil {
1,868✔
917
                return v.BinaryChecksum
934✔
918
        }
934✔
919
        return
×
920
}
921

922
// DecisionTaskFailedCause is an internal type (TBD...)
923
type DecisionTaskFailedCause int32
924

925
// Ptr is a helper function for getting pointer value
926
func (e DecisionTaskFailedCause) Ptr() *DecisionTaskFailedCause {
423✔
927
        return &e
423✔
928
}
423✔
929

930
// String returns a readable string representation of DecisionTaskFailedCause.
931
func (e DecisionTaskFailedCause) String() string {
99✔
932
        w := int32(e)
99✔
933
        switch w {
99✔
934
        case 0:
3✔
935
                return "UNHANDLED_DECISION"
3✔
936
        case 1:
×
937
                return "BAD_SCHEDULE_ACTIVITY_ATTRIBUTES"
×
938
        case 2:
×
939
                return "BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES"
×
940
        case 3:
×
941
                return "BAD_START_TIMER_ATTRIBUTES"
×
942
        case 4:
×
943
                return "BAD_CANCEL_TIMER_ATTRIBUTES"
×
944
        case 5:
×
945
                return "BAD_RECORD_MARKER_ATTRIBUTES"
×
946
        case 6:
×
947
                return "BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES"
×
948
        case 7:
×
949
                return "BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES"
×
950
        case 8:
×
951
                return "BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES"
×
952
        case 9:
×
953
                return "BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES"
×
954
        case 10:
×
955
                return "BAD_CONTINUE_AS_NEW_ATTRIBUTES"
×
956
        case 11:
×
957
                return "START_TIMER_DUPLICATE_I_D"
×
958
        case 12:
×
959
                return "RESET_STICKY_TASKLIST"
×
960
        case 13:
84✔
961
                return "WORKFLOW_WORKER_UNHANDLED_FAILURE"
84✔
962
        case 14:
×
963
                return "BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES"
×
964
        case 15:
×
965
                return "BAD_START_CHILD_EXECUTION_ATTRIBUTES"
×
966
        case 16:
12✔
967
                return "FORCE_CLOSE_DECISION"
12✔
968
        case 17:
×
969
                return "FAILOVER_CLOSE_DECISION"
×
970
        case 18:
×
971
                return "BAD_SIGNAL_INPUT_SIZE"
×
972
        case 19:
×
973
                return "RESET_WORKFLOW"
×
974
        case 20:
×
975
                return "BAD_BINARY"
×
976
        case 21:
×
977
                return "SCHEDULE_ACTIVITY_DUPLICATE_I_D"
×
978
        case 22:
×
979
                return "BAD_SEARCH_ATTRIBUTES"
×
980
        }
981
        return fmt.Sprintf("DecisionTaskFailedCause(%d)", w)
×
982
}
983

984
// UnmarshalText parses enum value from string representation
985
func (e *DecisionTaskFailedCause) UnmarshalText(value []byte) error {
×
986
        switch s := strings.ToUpper(string(value)); s {
×
987
        case "UNHANDLED_DECISION":
×
988
                *e = DecisionTaskFailedCauseUnhandledDecision
×
989
                return nil
×
990
        case "BAD_SCHEDULE_ACTIVITY_ATTRIBUTES":
×
991
                *e = DecisionTaskFailedCauseBadScheduleActivityAttributes
×
992
                return nil
×
993
        case "BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES":
×
994
                *e = DecisionTaskFailedCauseBadRequestCancelActivityAttributes
×
995
                return nil
×
996
        case "BAD_START_TIMER_ATTRIBUTES":
×
997
                *e = DecisionTaskFailedCauseBadStartTimerAttributes
×
998
                return nil
×
999
        case "BAD_CANCEL_TIMER_ATTRIBUTES":
×
1000
                *e = DecisionTaskFailedCauseBadCancelTimerAttributes
×
1001
                return nil
×
1002
        case "BAD_RECORD_MARKER_ATTRIBUTES":
×
1003
                *e = DecisionTaskFailedCauseBadRecordMarkerAttributes
×
1004
                return nil
×
1005
        case "BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES":
×
1006
                *e = DecisionTaskFailedCauseBadCompleteWorkflowExecutionAttributes
×
1007
                return nil
×
1008
        case "BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES":
×
1009
                *e = DecisionTaskFailedCauseBadFailWorkflowExecutionAttributes
×
1010
                return nil
×
1011
        case "BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES":
×
1012
                *e = DecisionTaskFailedCauseBadCancelWorkflowExecutionAttributes
×
1013
                return nil
×
1014
        case "BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES":
×
1015
                *e = DecisionTaskFailedCauseBadRequestCancelExternalWorkflowExecutionAttributes
×
1016
                return nil
×
1017
        case "BAD_CONTINUE_AS_NEW_ATTRIBUTES":
×
1018
                *e = DecisionTaskFailedCauseBadContinueAsNewAttributes
×
1019
                return nil
×
1020
        case "START_TIMER_DUPLICATE_I_D":
×
1021
                *e = DecisionTaskFailedCauseStartTimerDuplicateID
×
1022
                return nil
×
1023
        case "RESET_STICKY_TASKLIST":
×
1024
                *e = DecisionTaskFailedCauseResetStickyTasklist
×
1025
                return nil
×
1026
        case "WORKFLOW_WORKER_UNHANDLED_FAILURE":
×
1027
                *e = DecisionTaskFailedCauseWorkflowWorkerUnhandledFailure
×
1028
                return nil
×
1029
        case "BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES":
×
1030
                *e = DecisionTaskFailedCauseBadSignalWorkflowExecutionAttributes
×
1031
                return nil
×
1032
        case "BAD_START_CHILD_EXECUTION_ATTRIBUTES":
×
1033
                *e = DecisionTaskFailedCauseBadStartChildExecutionAttributes
×
1034
                return nil
×
1035
        case "FORCE_CLOSE_DECISION":
×
1036
                *e = DecisionTaskFailedCauseForceCloseDecision
×
1037
                return nil
×
1038
        case "FAILOVER_CLOSE_DECISION":
×
1039
                *e = DecisionTaskFailedCauseFailoverCloseDecision
×
1040
                return nil
×
1041
        case "BAD_SIGNAL_INPUT_SIZE":
×
1042
                *e = DecisionTaskFailedCauseBadSignalInputSize
×
1043
                return nil
×
1044
        case "RESET_WORKFLOW":
×
1045
                *e = DecisionTaskFailedCauseResetWorkflow
×
1046
                return nil
×
1047
        case "BAD_BINARY":
×
1048
                *e = DecisionTaskFailedCauseBadBinary
×
1049
                return nil
×
1050
        case "SCHEDULE_ACTIVITY_DUPLICATE_I_D":
×
1051
                *e = DecisionTaskFailedCauseScheduleActivityDuplicateID
×
1052
                return nil
×
1053
        case "BAD_SEARCH_ATTRIBUTES":
×
1054
                *e = DecisionTaskFailedCauseBadSearchAttributes
×
1055
                return nil
×
1056
        default:
×
1057
                val, err := strconv.ParseInt(s, 10, 32)
×
1058
                if err != nil {
×
1059
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "DecisionTaskFailedCause", err)
×
1060
                }
×
1061
                *e = DecisionTaskFailedCause(val)
×
1062
                return nil
×
1063
        }
1064
}
1065

1066
// MarshalText encodes DecisionTaskFailedCause to text.
1067
func (e DecisionTaskFailedCause) MarshalText() ([]byte, error) {
99✔
1068
        return []byte(e.String()), nil
99✔
1069
}
99✔
1070

1071
const (
1072
        // DecisionTaskFailedCauseUnhandledDecision is an option for DecisionTaskFailedCause
1073
        DecisionTaskFailedCauseUnhandledDecision DecisionTaskFailedCause = iota
1074
        // DecisionTaskFailedCauseBadScheduleActivityAttributes is an option for DecisionTaskFailedCause
1075
        DecisionTaskFailedCauseBadScheduleActivityAttributes
1076
        // DecisionTaskFailedCauseBadRequestCancelActivityAttributes is an option for DecisionTaskFailedCause
1077
        DecisionTaskFailedCauseBadRequestCancelActivityAttributes
1078
        // DecisionTaskFailedCauseBadStartTimerAttributes is an option for DecisionTaskFailedCause
1079
        DecisionTaskFailedCauseBadStartTimerAttributes
1080
        // DecisionTaskFailedCauseBadCancelTimerAttributes is an option for DecisionTaskFailedCause
1081
        DecisionTaskFailedCauseBadCancelTimerAttributes
1082
        // DecisionTaskFailedCauseBadRecordMarkerAttributes is an option for DecisionTaskFailedCause
1083
        DecisionTaskFailedCauseBadRecordMarkerAttributes
1084
        // DecisionTaskFailedCauseBadCompleteWorkflowExecutionAttributes is an option for DecisionTaskFailedCause
1085
        DecisionTaskFailedCauseBadCompleteWorkflowExecutionAttributes
1086
        // DecisionTaskFailedCauseBadFailWorkflowExecutionAttributes is an option for DecisionTaskFailedCause
1087
        DecisionTaskFailedCauseBadFailWorkflowExecutionAttributes
1088
        // DecisionTaskFailedCauseBadCancelWorkflowExecutionAttributes is an option for DecisionTaskFailedCause
1089
        DecisionTaskFailedCauseBadCancelWorkflowExecutionAttributes
1090
        // DecisionTaskFailedCauseBadRequestCancelExternalWorkflowExecutionAttributes is an option for DecisionTaskFailedCause
1091
        DecisionTaskFailedCauseBadRequestCancelExternalWorkflowExecutionAttributes
1092
        // DecisionTaskFailedCauseBadContinueAsNewAttributes is an option for DecisionTaskFailedCause
1093
        DecisionTaskFailedCauseBadContinueAsNewAttributes
1094
        // DecisionTaskFailedCauseStartTimerDuplicateID is an option for DecisionTaskFailedCause
1095
        DecisionTaskFailedCauseStartTimerDuplicateID
1096
        // DecisionTaskFailedCauseResetStickyTasklist is an option for DecisionTaskFailedCause
1097
        DecisionTaskFailedCauseResetStickyTasklist
1098
        // DecisionTaskFailedCauseWorkflowWorkerUnhandledFailure is an option for DecisionTaskFailedCause
1099
        DecisionTaskFailedCauseWorkflowWorkerUnhandledFailure
1100
        // DecisionTaskFailedCauseBadSignalWorkflowExecutionAttributes is an option for DecisionTaskFailedCause
1101
        DecisionTaskFailedCauseBadSignalWorkflowExecutionAttributes
1102
        // DecisionTaskFailedCauseBadStartChildExecutionAttributes is an option for DecisionTaskFailedCause
1103
        DecisionTaskFailedCauseBadStartChildExecutionAttributes
1104
        // DecisionTaskFailedCauseForceCloseDecision is an option for DecisionTaskFailedCause
1105
        DecisionTaskFailedCauseForceCloseDecision
1106
        // DecisionTaskFailedCauseFailoverCloseDecision is an option for DecisionTaskFailedCause
1107
        DecisionTaskFailedCauseFailoverCloseDecision
1108
        // DecisionTaskFailedCauseBadSignalInputSize is an option for DecisionTaskFailedCause
1109
        DecisionTaskFailedCauseBadSignalInputSize
1110
        // DecisionTaskFailedCauseResetWorkflow is an option for DecisionTaskFailedCause
1111
        DecisionTaskFailedCauseResetWorkflow
1112
        // DecisionTaskFailedCauseBadBinary is an option for DecisionTaskFailedCause
1113
        DecisionTaskFailedCauseBadBinary
1114
        // DecisionTaskFailedCauseScheduleActivityDuplicateID is an option for DecisionTaskFailedCause
1115
        DecisionTaskFailedCauseScheduleActivityDuplicateID
1116
        // DecisionTaskFailedCauseBadSearchAttributes is an option for DecisionTaskFailedCause
1117
        DecisionTaskFailedCauseBadSearchAttributes
1118
)
1119

1120
// DecisionTaskFailedEventAttributes is an internal type (TBD...)
1121
type DecisionTaskFailedEventAttributes struct {
1122
        ScheduledEventID int64                    `json:"scheduledEventId,omitempty"`
1123
        StartedEventID   int64                    `json:"startedEventId,omitempty"`
1124
        Cause            *DecisionTaskFailedCause `json:"cause,omitempty"`
1125
        Details          []byte                   `json:"details,omitempty"`
1126
        Identity         string                   `json:"identity,omitempty"`
1127
        Reason           *string                  `json:"reason,omitempty"`
1128
        BaseRunID        string                   `json:"baseRunId,omitempty"`
1129
        NewRunID         string                   `json:"newRunId,omitempty"`
1130
        ForkEventVersion int64                    `json:"forkEventVersion,omitempty"`
1131
        BinaryChecksum   string                   `json:"binaryChecksum,omitempty"`
1132
}
1133

1134
// GetCause is an internal getter (TBD...)
1135
func (v *DecisionTaskFailedEventAttributes) GetCause() (o DecisionTaskFailedCause) {
3✔
1136
        if v != nil && v.Cause != nil {
6✔
1137
                return *v.Cause
3✔
1138
        }
3✔
1139
        return
×
1140
}
1141

1142
// GetDetails is an internal getter (TBD...)
1143
func (v *DecisionTaskFailedEventAttributes) GetDetails() (o []byte) {
3✔
1144
        if v != nil && v.Details != nil {
6✔
1145
                return v.Details
3✔
1146
        }
3✔
1147
        return
×
1148
}
1149

1150
// GetBaseRunID is an internal getter (TBD...)
1151
func (v *DecisionTaskFailedEventAttributes) GetBaseRunID() (o string) {
3✔
1152
        if v != nil {
6✔
1153
                return v.BaseRunID
3✔
1154
        }
3✔
1155
        return
×
1156
}
1157

1158
// GetNewRunID is an internal getter (TBD...)
1159
func (v *DecisionTaskFailedEventAttributes) GetNewRunID() (o string) {
3✔
1160
        if v != nil {
6✔
1161
                return v.NewRunID
3✔
1162
        }
3✔
1163
        return
×
1164
}
1165

1166
// GetForkEventVersion is an internal getter (TBD...)
1167
func (v *DecisionTaskFailedEventAttributes) GetForkEventVersion() (o int64) {
3✔
1168
        if v != nil {
6✔
1169
                return v.ForkEventVersion
3✔
1170
        }
3✔
1171
        return
×
1172
}
1173

1174
// DecisionTaskScheduledEventAttributes is an internal type (TBD...)
1175
type DecisionTaskScheduledEventAttributes struct {
1176
        TaskList                   *TaskList `json:"taskList,omitempty"`
1177
        StartToCloseTimeoutSeconds *int32    `json:"startToCloseTimeoutSeconds,omitempty"`
1178
        Attempt                    int64     `json:"attempt,omitempty"`
1179
}
1180

1181
// GetTaskList is an internal getter (TBD...)
1182
func (v *DecisionTaskScheduledEventAttributes) GetTaskList() (o *TaskList) {
×
1183
        if v != nil && v.TaskList != nil {
×
1184
                return v.TaskList
×
1185
        }
×
1186
        return
×
1187
}
1188

1189
// GetStartToCloseTimeoutSeconds is an internal getter (TBD...)
1190
func (v *DecisionTaskScheduledEventAttributes) GetStartToCloseTimeoutSeconds() (o int32) {
30✔
1191
        if v != nil && v.StartToCloseTimeoutSeconds != nil {
60✔
1192
                return *v.StartToCloseTimeoutSeconds
30✔
1193
        }
30✔
1194
        return
×
1195
}
1196

1197
// GetAttempt is an internal getter (TBD...)
1198
func (v *DecisionTaskScheduledEventAttributes) GetAttempt() (o int64) {
99✔
1199
        if v != nil {
198✔
1200
                return v.Attempt
99✔
1201
        }
99✔
1202
        return
×
1203
}
1204

1205
// DecisionTaskStartedEventAttributes is an internal type (TBD...)
1206
type DecisionTaskStartedEventAttributes struct {
1207
        ScheduledEventID int64  `json:"scheduledEventId,omitempty"`
1208
        Identity         string `json:"identity,omitempty"`
1209
        RequestID        string `json:"requestId,omitempty"`
1210
}
1211

1212
// GetScheduledEventID is an internal getter (TBD...)
1213
func (v *DecisionTaskStartedEventAttributes) GetScheduledEventID() (o int64) {
24✔
1214
        if v != nil {
48✔
1215
                return v.ScheduledEventID
24✔
1216
        }
24✔
1217
        return
×
1218
}
1219

1220
// GetRequestID is an internal getter (TBD...)
1221
func (v *DecisionTaskStartedEventAttributes) GetRequestID() (o string) {
24✔
1222
        if v != nil {
48✔
1223
                return v.RequestID
24✔
1224
        }
24✔
1225
        return
×
1226
}
1227

1228
// DecisionTaskTimedOutCause is an internal type (TBD...)
1229
type DecisionTaskTimedOutCause int32
1230

1231
// Ptr is a helper function for getting pointer value
1232
func (e DecisionTaskTimedOutCause) Ptr() *DecisionTaskTimedOutCause {
57✔
1233
        return &e
57✔
1234
}
57✔
1235

1236
// String returns a readable string representation of DecisionTaskTimedOutCause.
1237
func (e DecisionTaskTimedOutCause) String() string {
78✔
1238
        w := int32(e)
78✔
1239
        switch w {
78✔
1240
        case 0:
78✔
1241
                return "Timeout"
78✔
1242
        case 1:
×
1243
                return "Reset"
×
1244
        }
1245
        return fmt.Sprintf("DecisionTaskTimedOutCause(%d)", w)
×
1246
}
1247

1248
// UnmarshalText parses enum value from string representation
1249
func (e *DecisionTaskTimedOutCause) UnmarshalText(value []byte) error {
×
1250
        switch s := strings.ToLower(string(value)); s {
×
1251
        case "timeout":
×
1252
                *e = DecisionTaskTimedOutCauseTimeout
×
1253
                return nil
×
1254
        case "reset":
×
1255
                *e = DecisionTaskTimedOutCauseReset
×
1256
                return nil
×
1257
        default:
×
1258
                val, err := strconv.ParseInt(s, 10, 32)
×
1259
                if err != nil {
×
1260
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "DecisionTaskTimedOutCause", err)
×
1261
                }
×
1262
                *e = DecisionTaskTimedOutCause(val)
×
1263
                return nil
×
1264
        }
1265
}
1266

1267
// MarshalText encodes DecisionTaskFailedCause to text.
1268
func (e DecisionTaskTimedOutCause) MarshalText() ([]byte, error) {
78✔
1269
        return []byte(e.String()), nil
78✔
1270
}
78✔
1271

1272
const (
1273
        // DecisionTaskTimedOutCauseTimeout is an option for DecisionTaskTimedOutCause
1274
        DecisionTaskTimedOutCauseTimeout DecisionTaskTimedOutCause = iota
1275
        // DecisionTaskTimedOutCauseReset is an option for DecisionTaskTimedOutCause
1276
        DecisionTaskTimedOutCauseReset
1277
)
1278

1279
// DecisionTaskTimedOutEventAttributes is an internal type (TBD...)
1280
type DecisionTaskTimedOutEventAttributes struct {
1281
        ScheduledEventID int64                      `json:"scheduledEventId,omitempty"`
1282
        StartedEventID   int64                      `json:"startedEventId,omitempty"`
1283
        TimeoutType      *TimeoutType               `json:"timeoutType,omitempty"`
1284
        BaseRunID        string                     `json:"baseRunId,omitempty"`
1285
        NewRunID         string                     `json:"newRunId,omitempty"`
1286
        ForkEventVersion int64                      `json:"forkEventVersion,omitempty"`
1287
        Reason           string                     `json:"reason,omitempty"`
1288
        Cause            *DecisionTaskTimedOutCause `json:"cause,omitempty"`
1289
}
1290

1291
// GetScheduledEventID is an internal getter (TBD...)
1292
func (v *DecisionTaskTimedOutEventAttributes) GetScheduledEventID() (o int64) {
×
1293
        if v != nil {
×
1294
                return v.ScheduledEventID
×
1295
        }
×
1296
        return
×
1297
}
1298

1299
// GetTimeoutType is an internal getter (TBD...)
1300
func (v *DecisionTaskTimedOutEventAttributes) GetTimeoutType() (o TimeoutType) {
12✔
1301
        if v != nil && v.TimeoutType != nil {
24✔
1302
                return *v.TimeoutType
12✔
1303
        }
12✔
1304
        return
×
1305
}
1306

1307
// GetBaseRunID is an internal getter (TBD...)
1308
func (v *DecisionTaskTimedOutEventAttributes) GetBaseRunID() (o string) {
×
1309
        if v != nil {
×
1310
                return v.BaseRunID
×
1311
        }
×
1312
        return
×
1313
}
1314

1315
// GetNewRunID is an internal getter (TBD...)
1316
func (v *DecisionTaskTimedOutEventAttributes) GetNewRunID() (o string) {
×
1317
        if v != nil {
×
1318
                return v.NewRunID
×
1319
        }
×
1320
        return
×
1321
}
1322

1323
// GetForkEventVersion is an internal getter (TBD...)
1324
func (v *DecisionTaskTimedOutEventAttributes) GetForkEventVersion() (o int64) {
×
1325
        if v != nil {
×
1326
                return v.ForkEventVersion
×
1327
        }
×
1328
        return
×
1329
}
1330

1331
// DecisionType is an internal type (TBD...)
1332
type DecisionType int32
1333

1334
// Ptr is a helper function for getting pointer value
1335
func (e DecisionType) Ptr() *DecisionType {
1,686✔
1336
        return &e
1,686✔
1337
}
1,686✔
1338

1339
// String returns a readable string representation of DecisionType.
1340
func (e DecisionType) String() string {
780✔
1341
        w := int32(e)
780✔
1342
        switch w {
780✔
1343
        case 0:
390✔
1344
                return "ScheduleActivityTask"
390✔
1345
        case 1:
×
1346
                return "RequestCancelActivityTask"
×
1347
        case 2:
×
1348
                return "StartTimer"
×
1349
        case 3:
174✔
1350
                return "CompleteWorkflowExecution"
174✔
1351
        case 4:
36✔
1352
                return "FailWorkflowExecution"
36✔
1353
        case 5:
×
1354
                return "CancelTimer"
×
1355
        case 6:
×
1356
                return "CancelWorkflowExecution"
×
1357
        case 7:
×
1358
                return "RequestCancelExternalWorkflowExecution"
×
1359
        case 8:
30✔
1360
                return "RecordMarker"
30✔
1361
        case 9:
111✔
1362
                return "ContinueAsNewWorkflowExecution"
111✔
1363
        case 10:
18✔
1364
                return "StartChildWorkflowExecution"
18✔
1365
        case 11:
12✔
1366
                return "SignalExternalWorkflowExecution"
12✔
1367
        case 12:
9✔
1368
                return "UpsertWorkflowSearchAttributes"
9✔
1369
        }
1370
        return fmt.Sprintf("DecisionType(%d)", w)
×
1371
}
1372

1373
// UnmarshalText parses enum value from string representation
1374
func (e *DecisionType) UnmarshalText(value []byte) error {
×
1375
        switch s := strings.ToUpper(string(value)); s {
×
1376
        case "SCHEDULEACTIVITYTASK":
×
1377
                *e = DecisionTypeScheduleActivityTask
×
1378
                return nil
×
1379
        case "REQUESTCANCELACTIVITYTASK":
×
1380
                *e = DecisionTypeRequestCancelActivityTask
×
1381
                return nil
×
1382
        case "STARTTIMER":
×
1383
                *e = DecisionTypeStartTimer
×
1384
                return nil
×
1385
        case "COMPLETEWORKFLOWEXECUTION":
×
1386
                *e = DecisionTypeCompleteWorkflowExecution
×
1387
                return nil
×
1388
        case "FAILWORKFLOWEXECUTION":
×
1389
                *e = DecisionTypeFailWorkflowExecution
×
1390
                return nil
×
1391
        case "CANCELTIMER":
×
1392
                *e = DecisionTypeCancelTimer
×
1393
                return nil
×
1394
        case "CANCELWORKFLOWEXECUTION":
×
1395
                *e = DecisionTypeCancelWorkflowExecution
×
1396
                return nil
×
1397
        case "REQUESTCANCELEXTERNALWORKFLOWEXECUTION":
×
1398
                *e = DecisionTypeRequestCancelExternalWorkflowExecution
×
1399
                return nil
×
1400
        case "RECORDMARKER":
×
1401
                *e = DecisionTypeRecordMarker
×
1402
                return nil
×
1403
        case "CONTINUEASNEWWORKFLOWEXECUTION":
×
1404
                *e = DecisionTypeContinueAsNewWorkflowExecution
×
1405
                return nil
×
1406
        case "STARTCHILDWORKFLOWEXECUTION":
×
1407
                *e = DecisionTypeStartChildWorkflowExecution
×
1408
                return nil
×
1409
        case "SIGNALEXTERNALWORKFLOWEXECUTION":
×
1410
                *e = DecisionTypeSignalExternalWorkflowExecution
×
1411
                return nil
×
1412
        case "UPSERTWORKFLOWSEARCHATTRIBUTES":
×
1413
                *e = DecisionTypeUpsertWorkflowSearchAttributes
×
1414
                return nil
×
1415
        default:
×
1416
                val, err := strconv.ParseInt(s, 10, 32)
×
1417
                if err != nil {
×
1418
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "DecisionType", err)
×
1419
                }
×
1420
                *e = DecisionType(val)
×
1421
                return nil
×
1422
        }
1423
}
1424

1425
// MarshalText encodes DecisionType to text.
1426
func (e DecisionType) MarshalText() ([]byte, error) {
×
1427
        return []byte(e.String()), nil
×
1428
}
×
1429

1430
const (
1431
        // DecisionTypeScheduleActivityTask is an option for DecisionType
1432
        DecisionTypeScheduleActivityTask DecisionType = iota
1433
        // DecisionTypeRequestCancelActivityTask is an option for DecisionType
1434
        DecisionTypeRequestCancelActivityTask
1435
        // DecisionTypeStartTimer is an option for DecisionType
1436
        DecisionTypeStartTimer
1437
        // DecisionTypeCompleteWorkflowExecution is an option for DecisionType
1438
        DecisionTypeCompleteWorkflowExecution
1439
        // DecisionTypeFailWorkflowExecution is an option for DecisionType
1440
        DecisionTypeFailWorkflowExecution
1441
        // DecisionTypeCancelTimer is an option for DecisionType
1442
        DecisionTypeCancelTimer
1443
        // DecisionTypeCancelWorkflowExecution is an option for DecisionType
1444
        DecisionTypeCancelWorkflowExecution
1445
        // DecisionTypeRequestCancelExternalWorkflowExecution is an option for DecisionType
1446
        DecisionTypeRequestCancelExternalWorkflowExecution
1447
        // DecisionTypeRecordMarker is an option for DecisionType
1448
        DecisionTypeRecordMarker
1449
        // DecisionTypeContinueAsNewWorkflowExecution is an option for DecisionType
1450
        DecisionTypeContinueAsNewWorkflowExecution
1451
        // DecisionTypeStartChildWorkflowExecution is an option for DecisionType
1452
        DecisionTypeStartChildWorkflowExecution
1453
        // DecisionTypeSignalExternalWorkflowExecution is an option for DecisionType
1454
        DecisionTypeSignalExternalWorkflowExecution
1455
        // DecisionTypeUpsertWorkflowSearchAttributes is an option for DecisionType
1456
        DecisionTypeUpsertWorkflowSearchAttributes
1457
)
1458

1459
// DeprecateDomainRequest is an internal type (TBD...)
1460
type DeprecateDomainRequest struct {
1461
        Name          string `json:"name,omitempty"`
1462
        SecurityToken string `json:"securityToken,omitempty"`
1463
}
1464

1465
func (v *DeprecateDomainRequest) SerializeForLogging() (string, error) {
×
1466
        if v == nil {
×
1467
                return "", nil
×
1468
        }
×
1469
        return SerializeRequest(v)
×
1470
}
1471

1472
// GetName is an internal getter (TBD...)
1473
func (v *DeprecateDomainRequest) GetName() (o string) {
×
1474
        if v != nil {
×
1475
                return v.Name
×
1476
        }
×
1477
        return
×
1478
}
1479

1480
// DescribeDomainRequest is an internal type (TBD...)
1481
type DescribeDomainRequest struct {
1482
        Name *string `json:"name,omitempty"`
1483
        UUID *string `json:"uuid,omitempty"`
1484
}
1485

1486
func (v *DescribeDomainRequest) SerializeForLogging() (string, error) {
×
1487
        if v == nil {
×
1488
                return "", nil
×
1489
        }
×
1490
        return SerializeRequest(v)
×
1491
}
1492

1493
// GetName is an internal getter (TBD...)
1494
func (v *DescribeDomainRequest) GetName() (o string) {
519✔
1495
        if v != nil && v.Name != nil {
1,038✔
1496
                return *v.Name
519✔
1497
        }
519✔
1498
        return
×
1499
}
1500

1501
// GetUUID is an internal getter (TBD...)
1502
func (v *DescribeDomainRequest) GetUUID() (o string) {
132✔
1503
        if v != nil && v.UUID != nil {
132✔
1504
                return *v.UUID
×
1505
        }
×
1506
        return
132✔
1507
}
1508

1509
// DescribeDomainResponse is an internal type (TBD...)
1510
type DescribeDomainResponse struct {
1511
        DomainInfo               *DomainInfo                     `json:"domainInfo,omitempty"`
1512
        Configuration            *DomainConfiguration            `json:"configuration,omitempty"`
1513
        ReplicationConfiguration *DomainReplicationConfiguration `json:"replicationConfiguration,omitempty"`
1514
        FailoverVersion          int64                           `json:"failoverVersion,omitempty"`
1515
        IsGlobalDomain           bool                            `json:"isGlobalDomain,omitempty"`
1516
        FailoverInfo             *FailoverInfo                   `json:"failoverInfo,omitempty"`
1517
}
1518

1519
// GetDomainInfo is an internal getter (TBD...)
1520
func (v *DescribeDomainResponse) GetDomainInfo() (o *DomainInfo) {
3✔
1521
        if v != nil && v.DomainInfo != nil {
6✔
1522
                return v.DomainInfo
3✔
1523
        }
3✔
1524
        return
×
1525
}
1526

1527
// GetFailoverVersion is an internal getter (TBD...)
1528
func (v *DescribeDomainResponse) GetFailoverVersion() (o int64) {
×
1529
        if v != nil {
×
1530
                return v.FailoverVersion
×
1531
        }
×
1532
        return
×
1533
}
1534

1535
// GetIsGlobalDomain is an internal getter (TBD...)
1536
func (v *DescribeDomainResponse) GetIsGlobalDomain() (o bool) {
×
1537
        if v != nil {
×
1538
                return v.IsGlobalDomain
×
1539
        }
×
1540
        return
×
1541
}
1542

1543
// GetFailoverInfo is an internal getter (TBD...)
1544
func (v *DescribeDomainResponse) GetFailoverInfo() (o *FailoverInfo) {
261✔
1545
        if v != nil {
522✔
1546
                return v.FailoverInfo
261✔
1547
        }
261✔
1548
        return
×
1549
}
1550

1551
// DescribeHistoryHostRequest is an internal type (TBD...)
1552
type DescribeHistoryHostRequest struct {
1553
        HostAddress      *string            `json:"hostAddress,omitempty"`
1554
        ShardIDForHost   *int32             `json:"shardIdForHost,omitempty"`
1555
        ExecutionForHost *WorkflowExecution `json:"executionForHost,omitempty"`
1556
}
1557

1558
func (v *DescribeHistoryHostRequest) SerializeForLogging() (string, error) {
×
1559
        if v == nil {
×
1560
                return "", nil
×
1561
        }
×
1562
        return SerializeRequest(v)
×
1563
}
1564

1565
// DescribeShardDistributionRequest is an internal type (TBD...)
1566
type DescribeShardDistributionRequest struct {
1567
        PageSize int32 `json:"pageSize,omitempty"`
1568
        PageID   int32 `json:"pageID,omitempty"`
1569
}
1570

1571
func (v *DescribeShardDistributionRequest) SerializeForLogging() (string, error) {
×
1572
        if v == nil {
×
1573
                return "", nil
×
1574
        }
×
1575
        return SerializeRequest(v)
×
1576
}
1577

1578
// GetHostAddress is an internal getter (TBD...)
1579
func (v *DescribeHistoryHostRequest) GetHostAddress() (o string) {
×
1580
        if v != nil && v.HostAddress != nil {
×
1581
                return *v.HostAddress
×
1582
        }
×
1583
        return
×
1584
}
1585

1586
// GetShardIDForHost is an internal getter (TBD...)
1587
func (v *DescribeHistoryHostRequest) GetShardIDForHost() (o int32) {
×
1588
        if v != nil && v.ShardIDForHost != nil {
×
1589
                return *v.ShardIDForHost
×
1590
        }
×
1591
        return
×
1592
}
1593

1594
// DescribeShardDistributionResponse is an internal type (TBD...)
1595
type DescribeShardDistributionResponse struct {
1596
        NumberOfShards int32            `json:"numberOfShards,omitempty"`
1597
        Shards         map[int32]string `json:"shardIDs,omitempty"`
1598
}
1599

1600
// DescribeHistoryHostResponse is an internal type (TBD...)
1601
type DescribeHistoryHostResponse struct {
1602
        NumberOfShards        int32            `json:"numberOfShards,omitempty"`
1603
        ShardIDs              []int32          `json:"shardIDs,omitempty"`
1604
        DomainCache           *DomainCacheInfo `json:"domainCache,omitempty"`
1605
        ShardControllerStatus string           `json:"shardControllerStatus,omitempty"`
1606
        Address               string           `json:"address,omitempty"`
1607
}
1608

1609
// DescribeQueueRequest is an internal type (TBD...)
1610
type DescribeQueueRequest struct {
1611
        ShardID     int32  `json:"shardID,omitempty"`
1612
        ClusterName string `json:"clusterName,omitempty"`
1613
        Type        *int32 `json:"type,omitempty"`
1614
}
1615

1616
func (v *DescribeQueueRequest) SerializeForLogging() (string, error) {
×
1617
        if v == nil {
×
1618
                return "", nil
×
1619
        }
×
1620
        return SerializeRequest(v)
×
1621
}
1622

1623
// GetShardID is an internal getter (TBD...)
1624
func (v *DescribeQueueRequest) GetShardID() (o int32) {
×
1625
        if v != nil {
×
1626
                return v.ShardID
×
1627
        }
×
1628
        return
×
1629
}
1630

1631
// GetClusterName is an internal getter (TBD...)
1632
func (v *DescribeQueueRequest) GetClusterName() (o string) {
×
1633
        if v != nil {
×
1634
                return v.ClusterName
×
1635
        }
×
1636
        return
×
1637
}
1638

1639
// GetType is an internal getter (TBD...)
1640
func (v *DescribeQueueRequest) GetType() (o int32) {
×
1641
        if v != nil && v.Type != nil {
×
1642
                return *v.Type
×
1643
        }
×
1644
        return
×
1645
}
1646

1647
// DescribeQueueResponse is an internal type (TBD...)
1648
type DescribeQueueResponse struct {
1649
        ProcessingQueueStates []string `json:"processingQueueStates,omitempty"`
1650
}
1651

1652
// DescribeTaskListRequest is an internal type (TBD...)
1653
type DescribeTaskListRequest struct {
1654
        Domain                string        `json:"domain,omitempty"`
1655
        TaskList              *TaskList     `json:"taskList,omitempty"`
1656
        TaskListType          *TaskListType `json:"taskListType,omitempty"`
1657
        IncludeTaskListStatus bool          `json:"includeTaskListStatus,omitempty"`
1658
}
1659

1660
func (v *DescribeTaskListRequest) SerializeForLogging() (string, error) {
×
1661
        if v == nil {
×
1662
                return "", nil
×
1663
        }
×
1664
        return SerializeRequest(v)
×
1665
}
1666

1667
// GetDomain is an internal getter (TBD...)
1668
func (v *DescribeTaskListRequest) GetDomain() (o string) {
144✔
1669
        if v != nil {
288✔
1670
                return v.Domain
144✔
1671
        }
144✔
1672
        return
×
1673
}
1674

1675
// GetTaskList is an internal getter (TBD...)
1676
func (v *DescribeTaskListRequest) GetTaskList() (o *TaskList) {
54✔
1677
        if v != nil && v.TaskList != nil {
108✔
1678
                return v.TaskList
54✔
1679
        }
54✔
1680
        return
×
1681
}
1682

1683
// GetTaskListType is an internal getter (TBD...)
1684
func (v *DescribeTaskListRequest) GetTaskListType() (o TaskListType) {
18✔
1685
        if v != nil && v.TaskListType != nil {
36✔
1686
                return *v.TaskListType
18✔
1687
        }
18✔
1688
        return
×
1689
}
1690

1691
// GetIncludeTaskListStatus is an internal getter (TBD...)
1692
func (v *DescribeTaskListRequest) GetIncludeTaskListStatus() (o bool) {
18✔
1693
        if v != nil {
36✔
1694
                return v.IncludeTaskListStatus
18✔
1695
        }
18✔
1696
        return
×
1697
}
1698

1699
// DescribeTaskListResponse is an internal type (TBD...)
1700
type DescribeTaskListResponse struct {
1701
        Pollers        []*PollerInfo   `json:"pollers,omitempty"`
1702
        TaskListStatus *TaskListStatus `json:"taskListStatus,omitempty"`
1703
}
1704

1705
// GetPollers is an internal getter (TBD...)
1706
func (v *DescribeTaskListResponse) GetPollers() (o []*PollerInfo) {
×
1707
        if v != nil && v.Pollers != nil {
×
1708
                return v.Pollers
×
1709
        }
×
1710
        return
×
1711
}
1712

1713
// GetTaskListStatus is an internal getter (TBD...)
1714
func (v *DescribeTaskListResponse) GetTaskListStatus() (o *TaskListStatus) {
×
1715
        if v != nil && v.TaskListStatus != nil {
×
1716
                return v.TaskListStatus
×
1717
        }
×
1718
        return
×
1719
}
1720

1721
// DescribeWorkflowExecutionRequest is an internal type (TBD...)
1722
type DescribeWorkflowExecutionRequest struct {
1723
        Domain    string             `json:"domain,omitempty"`
1724
        Execution *WorkflowExecution `json:"execution,omitempty"`
1725
}
1726

1727
func (v *DescribeWorkflowExecutionRequest) SerializeForLogging() (string, error) {
×
1728
        if v == nil {
×
1729
                return "", nil
×
1730
        }
×
1731
        return SerializeRequest(v)
×
1732
}
1733

1734
// GetDomain is an internal getter (TBD...)
1735
func (v *DescribeWorkflowExecutionRequest) GetDomain() (o string) {
633✔
1736
        if v != nil {
1,266✔
1737
                return v.Domain
633✔
1738
        }
633✔
1739
        return
×
1740
}
1741

1742
// GetExecution is an internal getter (TBD...)
1743
func (v *DescribeWorkflowExecutionRequest) GetExecution() (o *WorkflowExecution) {
93✔
1744
        if v != nil && v.Execution != nil {
186✔
1745
                return v.Execution
93✔
1746
        }
93✔
1747
        return
×
1748
}
1749

1750
// DescribeWorkflowExecutionResponse is an internal type (TBD...)
1751
type DescribeWorkflowExecutionResponse struct {
1752
        ExecutionConfiguration *WorkflowExecutionConfiguration `json:"executionConfiguration,omitempty"`
1753
        WorkflowExecutionInfo  *WorkflowExecutionInfo          `json:"workflowExecutionInfo,omitempty"`
1754
        PendingActivities      []*PendingActivityInfo          `json:"pendingActivities,omitempty"`
1755
        PendingChildren        []*PendingChildExecutionInfo    `json:"pendingChildren,omitempty"`
1756
        PendingDecision        *PendingDecisionInfo            `json:"pendingDecision,omitempty"`
1757
}
1758

1759
// GetWorkflowExecutionInfo is an internal getter (TBD...)
1760
func (v *DescribeWorkflowExecutionResponse) GetWorkflowExecutionInfo() (o *WorkflowExecutionInfo) {
3✔
1761
        if v != nil && v.WorkflowExecutionInfo != nil {
6✔
1762
                return v.WorkflowExecutionInfo
3✔
1763
        }
3✔
1764
        return
×
1765
}
1766

1767
// GetPendingActivities is an internal getter (TBD...)
1768
func (v *DescribeWorkflowExecutionResponse) GetPendingActivities() (o []*PendingActivityInfo) {
15✔
1769
        if v != nil && v.PendingActivities != nil {
27✔
1770
                return v.PendingActivities
12✔
1771
        }
12✔
1772
        return
3✔
1773
}
1774

1775
// DomainAlreadyExistsError is an internal type (TBD...)
1776
type DomainAlreadyExistsError struct {
1777
        Message string `json:"message,required"`
1778
}
1779

1780
// DomainCacheInfo is an internal type (TBD...)
1781
type DomainCacheInfo struct {
1782
        NumOfItemsInCacheByID   int64 `json:"numOfItemsInCacheByID,omitempty"`
1783
        NumOfItemsInCacheByName int64 `json:"numOfItemsInCacheByName,omitempty"`
1784
}
1785

1786
// DomainConfiguration is an internal type (TBD...)
1787
type DomainConfiguration struct {
1788
        WorkflowExecutionRetentionPeriodInDays int32           `json:"workflowExecutionRetentionPeriodInDays,omitempty"`
1789
        EmitMetric                             bool            `json:"emitMetric,omitempty"`
1790
        BadBinaries                            *BadBinaries    `json:"badBinaries,omitempty"`
1791
        HistoryArchivalStatus                  *ArchivalStatus `json:"historyArchivalStatus,omitempty"`
1792
        HistoryArchivalURI                     string          `json:"historyArchivalURI,omitempty"`
1793
        VisibilityArchivalStatus               *ArchivalStatus `json:"visibilityArchivalStatus,omitempty"`
1794
        VisibilityArchivalURI                  string          `json:"visibilityArchivalURI,omitempty"`
1795
}
1796

1797
// GetWorkflowExecutionRetentionPeriodInDays is an internal getter (TBD...)
1798
func (v *DomainConfiguration) GetWorkflowExecutionRetentionPeriodInDays() (o int32) {
×
1799
        if v != nil {
×
1800
                return v.WorkflowExecutionRetentionPeriodInDays
×
1801
        }
×
1802
        return
×
1803
}
1804

1805
// GetEmitMetric is an internal getter (TBD...)
1806
func (v *DomainConfiguration) GetEmitMetric() (o bool) {
×
1807
        if v != nil {
×
1808
                return v.EmitMetric
×
1809
        }
×
1810
        return
×
1811
}
1812

1813
// GetBadBinaries is an internal getter (TBD...)
1814
func (v *DomainConfiguration) GetBadBinaries() (o *BadBinaries) {
×
1815
        if v != nil && v.BadBinaries != nil {
×
1816
                return v.BadBinaries
×
1817
        }
×
1818
        return
×
1819
}
1820

1821
// GetHistoryArchivalStatus is an internal getter (TBD...)
1822
func (v *DomainConfiguration) GetHistoryArchivalStatus() (o ArchivalStatus) {
×
1823
        if v != nil && v.HistoryArchivalStatus != nil {
×
1824
                return *v.HistoryArchivalStatus
×
1825
        }
×
1826
        return
×
1827
}
1828

1829
// GetHistoryArchivalURI is an internal getter (TBD...)
1830
func (v *DomainConfiguration) GetHistoryArchivalURI() (o string) {
×
1831
        if v != nil {
×
1832
                return v.HistoryArchivalURI
×
1833
        }
×
1834
        return
×
1835
}
1836

1837
// GetVisibilityArchivalStatus is an internal getter (TBD...)
1838
func (v *DomainConfiguration) GetVisibilityArchivalStatus() (o ArchivalStatus) {
×
1839
        if v != nil && v.VisibilityArchivalStatus != nil {
×
1840
                return *v.VisibilityArchivalStatus
×
1841
        }
×
1842
        return
×
1843
}
1844

1845
// GetVisibilityArchivalURI is an internal getter (TBD...)
1846
func (v *DomainConfiguration) GetVisibilityArchivalURI() (o string) {
×
1847
        if v != nil {
×
1848
                return v.VisibilityArchivalURI
×
1849
        }
×
1850
        return
×
1851
}
1852

1853
// DomainInfo is an internal type (TBD...)
1854
type DomainInfo struct {
1855
        Name        string            `json:"name,omitempty"`
1856
        Status      *DomainStatus     `json:"status,omitempty"`
1857
        Description string            `json:"description,omitempty"`
1858
        OwnerEmail  string            `json:"ownerEmail,omitempty"`
1859
        Data        map[string]string `json:"data,omitempty"`
1860
        UUID        string            `json:"uuid,omitempty"`
1861
}
1862

1863
// GetName is an internal getter (TBD...)
1864
func (v *DomainInfo) GetName() (o string) {
×
1865
        if v != nil {
×
1866
                return v.Name
×
1867
        }
×
1868
        return
×
1869
}
1870

1871
// GetStatus is an internal getter (TBD...)
1872
func (v *DomainInfo) GetStatus() (o DomainStatus) {
×
1873
        if v != nil && v.Status != nil {
×
1874
                return *v.Status
×
1875
        }
×
1876
        return
×
1877
}
1878

1879
// GetDescription is an internal getter (TBD...)
1880
func (v *DomainInfo) GetDescription() (o string) {
×
1881
        if v != nil {
×
1882
                return v.Description
×
1883
        }
×
1884
        return
×
1885
}
1886

1887
// GetOwnerEmail is an internal getter (TBD...)
1888
func (v *DomainInfo) GetOwnerEmail() (o string) {
×
1889
        if v != nil {
×
1890
                return v.OwnerEmail
×
1891
        }
×
1892
        return
×
1893
}
1894

1895
// GetData is an internal getter (TBD...)
1896
func (v *DomainInfo) GetData() (o map[string]string) {
×
1897
        if v != nil && v.Data != nil {
×
1898
                return v.Data
×
1899
        }
×
1900
        return
×
1901
}
1902

1903
// GetUUID is an internal getter (TBD...)
1904
func (v *DomainInfo) GetUUID() (o string) {
15✔
1905
        if v != nil {
30✔
1906
                return v.UUID
15✔
1907
        }
15✔
1908
        return
×
1909
}
1910

1911
// DomainNotActiveError is an internal type (TBD...)
1912
type DomainNotActiveError struct {
1913
        Message        string `json:"message,required"`
1914
        DomainName     string `json:"domainName,required"`
1915
        CurrentCluster string `json:"currentCluster,required"`
1916
        ActiveCluster  string `json:"activeCluster,required"`
1917
}
1918

1919
// GetCurrentCluster is an internal getter (TBD...)
1920
func (v *DomainNotActiveError) GetCurrentCluster() (o string) {
×
1921
        if v != nil {
×
1922
                return v.CurrentCluster
×
1923
        }
×
1924
        return
×
1925
}
1926

1927
// GetActiveCluster is an internal getter (TBD...)
1928
func (v *DomainNotActiveError) GetActiveCluster() (o string) {
×
1929
        if v != nil {
×
1930
                return v.ActiveCluster
×
1931
        }
×
1932
        return
×
1933
}
1934

1935
// DomainReplicationConfiguration is an internal type (TBD...)
1936
type DomainReplicationConfiguration struct {
1937
        ActiveClusterName string                             `json:"activeClusterName,omitempty"`
1938
        Clusters          []*ClusterReplicationConfiguration `json:"clusters,omitempty"`
1939
}
1940

1941
// GetActiveClusterName is an internal getter (TBD...)
1942
func (v *DomainReplicationConfiguration) GetActiveClusterName() (o string) {
×
1943
        if v != nil {
×
1944
                return v.ActiveClusterName
×
1945
        }
×
1946
        return
×
1947
}
1948

1949
// GetClusters is an internal getter (TBD...)
1950
func (v *DomainReplicationConfiguration) GetClusters() (o []*ClusterReplicationConfiguration) {
×
1951
        if v != nil && v.Clusters != nil {
×
1952
                return v.Clusters
×
1953
        }
×
1954
        return
×
1955
}
1956

1957
// DomainStatus is an internal type (TBD...)
1958
type DomainStatus int32
1959

1960
// Ptr is a helper function for getting pointer value
1961
func (e DomainStatus) Ptr() *DomainStatus {
×
1962
        return &e
×
1963
}
×
1964

1965
// String returns a readable string representation of DomainStatus.
1966
func (e DomainStatus) String() string {
×
1967
        w := int32(e)
×
1968
        switch w {
×
1969
        case 0:
×
1970
                return "REGISTERED"
×
1971
        case 1:
×
1972
                return "DEPRECATED"
×
1973
        case 2:
×
1974
                return "DELETED"
×
1975
        }
1976
        return fmt.Sprintf("DomainStatus(%d)", w)
×
1977
}
1978

1979
// UnmarshalText parses enum value from string representation
1980
func (e *DomainStatus) UnmarshalText(value []byte) error {
×
1981
        switch s := strings.ToUpper(string(value)); s {
×
1982
        case "REGISTERED":
×
1983
                *e = DomainStatusRegistered
×
1984
                return nil
×
1985
        case "DEPRECATED":
×
1986
                *e = DomainStatusDeprecated
×
1987
                return nil
×
1988
        case "DELETED":
×
1989
                *e = DomainStatusDeleted
×
1990
                return nil
×
1991
        default:
×
1992
                val, err := strconv.ParseInt(s, 10, 32)
×
1993
                if err != nil {
×
1994
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "DomainStatus", err)
×
1995
                }
×
1996
                *e = DomainStatus(val)
×
1997
                return nil
×
1998
        }
1999
}
2000

2001
// MarshalText encodes DomainStatus to text.
2002
func (e DomainStatus) MarshalText() ([]byte, error) {
×
2003
        return []byte(e.String()), nil
×
2004
}
×
2005

2006
const (
2007
        // DomainStatusRegistered is an option for DomainStatus
2008
        DomainStatusRegistered DomainStatus = iota
2009
        // DomainStatusDeprecated is an option for DomainStatus
2010
        DomainStatusDeprecated
2011
        // DomainStatusDeleted is an option for DomainStatus
2012
        DomainStatusDeleted
2013
)
2014

2015
// EncodingType is an internal type (TBD...)
2016
type EncodingType int32
2017

2018
// Ptr is a helper function for getting pointer value
2019
func (e EncodingType) Ptr() *EncodingType {
3✔
2020
        return &e
3✔
2021
}
3✔
2022

2023
// String returns a readable string representation of EncodingType.
2024
func (e EncodingType) String() string {
×
2025
        w := int32(e)
×
2026
        switch w {
×
2027
        case 0:
×
2028
                return "ThriftRW"
×
2029
        case 1:
×
2030
                return "JSON"
×
2031
        }
2032
        return fmt.Sprintf("EncodingType(%d)", w)
×
2033
}
2034

2035
// UnmarshalText parses enum value from string representation
2036
func (e *EncodingType) UnmarshalText(value []byte) error {
×
2037
        switch s := strings.ToUpper(string(value)); s {
×
2038
        case "THRIFTRW":
×
2039
                *e = EncodingTypeThriftRW
×
2040
                return nil
×
2041
        case "JSON":
×
2042
                *e = EncodingTypeJSON
×
2043
                return nil
×
2044
        default:
×
2045
                val, err := strconv.ParseInt(s, 10, 32)
×
2046
                if err != nil {
×
2047
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "EncodingType", err)
×
2048
                }
×
2049
                *e = EncodingType(val)
×
2050
                return nil
×
2051
        }
2052
}
2053

2054
// MarshalText encodes EncodingType to text.
2055
func (e EncodingType) MarshalText() ([]byte, error) {
×
2056
        return []byte(e.String()), nil
×
2057
}
×
2058

2059
const (
2060
        // EncodingTypeThriftRW is an option for EncodingType
2061
        EncodingTypeThriftRW EncodingType = iota
2062
        // EncodingTypeJSON is an option for EncodingType
2063
        EncodingTypeJSON
2064
)
2065

2066
// EntityNotExistsError is an internal type (TBD...)
2067
type EntityNotExistsError struct {
2068
        Message        string `json:"message,required"`
2069
        CurrentCluster string `json:"currentCluster,omitempty"`
2070
        ActiveCluster  string `json:"activeCluster,omitempty"`
2071
}
2072

2073
// WorkflowExecutionAlreadyCompletedError is an internal type (TBD...)
2074
type WorkflowExecutionAlreadyCompletedError struct {
2075
        Message string `json:"message,required"`
2076
}
2077

2078
// EventType is an internal type (TBD...)
2079
type EventType int32
2080

2081
// Ptr is a helper function for getting pointer value
2082
func (e EventType) Ptr() *EventType {
1,556✔
2083
        return &e
1,556✔
2084
}
1,556✔
2085

2086
// String returns a readable string representation of EventType.
2087
func (e EventType) String() string {
4,113✔
2088
        w := int32(e)
4,113✔
2089
        switch w {
4,113✔
2090
        case 0:
297✔
2091
                return "WorkflowExecutionStarted"
297✔
2092
        case 1:
42✔
2093
                return "WorkflowExecutionCompleted"
42✔
2094
        case 2:
3✔
2095
                return "WorkflowExecutionFailed"
3✔
2096
        case 3:
3✔
2097
                return "WorkflowExecutionTimedOut"
3✔
2098
        case 4:
837✔
2099
                return "DecisionTaskScheduled"
837✔
2100
        case 5:
756✔
2101
                return "DecisionTaskStarted"
756✔
2102
        case 6:
504✔
2103
                return "DecisionTaskCompleted"
504✔
2104
        case 7:
81✔
2105
                return "DecisionTaskTimedOut"
81✔
2106
        case 8:
123✔
2107
                return "DecisionTaskFailed"
123✔
2108
        case 9:
300✔
2109
                return "ActivityTaskScheduled"
300✔
2110
        case 10:
300✔
2111
                return "ActivityTaskStarted"
300✔
2112
        case 11:
300✔
2113
                return "ActivityTaskCompleted"
300✔
2114
        case 12:
3✔
2115
                return "ActivityTaskFailed"
3✔
2116
        case 13:
3✔
2117
                return "ActivityTaskTimedOut"
3✔
2118
        case 14:
3✔
2119
                return "ActivityTaskCancelRequested"
3✔
2120
        case 15:
3✔
2121
                return "RequestCancelActivityTaskFailed"
3✔
2122
        case 16:
3✔
2123
                return "ActivityTaskCanceled"
3✔
2124
        case 17:
6✔
2125
                return "TimerStarted"
6✔
2126
        case 18:
6✔
2127
                return "TimerFired"
6✔
2128
        case 19:
×
2129
                return "CancelTimerFailed"
×
2130
        case 20:
3✔
2131
                return "TimerCanceled"
3✔
2132
        case 21:
3✔
2133
                return "WorkflowExecutionCancelRequested"
3✔
2134
        case 22:
3✔
2135
                return "WorkflowExecutionCanceled"
3✔
2136
        case 23:
3✔
2137
                return "RequestCancelExternalWorkflowExecutionInitiated"
3✔
2138
        case 24:
3✔
2139
                return "RequestCancelExternalWorkflowExecutionFailed"
3✔
2140
        case 25:
3✔
2141
                return "ExternalWorkflowExecutionCancelRequested"
3✔
2142
        case 26:
51✔
2143
                return "MarkerRecorded"
51✔
2144
        case 27:
438✔
2145
                return "WorkflowExecutionSignaled"
438✔
2146
        case 28:
39✔
2147
                return "WorkflowExecutionTerminated"
39✔
2148
        case 29:
75✔
2149
                return "WorkflowExecutionContinuedAsNew"
75✔
2150
        case 30:
3✔
2151
                return "StartChildWorkflowExecutionInitiated"
3✔
2152
        case 31:
3✔
2153
                return "StartChildWorkflowExecutionFailed"
3✔
2154
        case 32:
3✔
2155
                return "ChildWorkflowExecutionStarted"
3✔
2156
        case 33:
3✔
2157
                return "ChildWorkflowExecutionCompleted"
3✔
2158
        case 34:
3✔
2159
                return "ChildWorkflowExecutionFailed"
3✔
2160
        case 35:
3✔
2161
                return "ChildWorkflowExecutionCanceled"
3✔
2162
        case 36:
3✔
2163
                return "ChildWorkflowExecutionTimedOut"
3✔
2164
        case 37:
3✔
2165
                return "ChildWorkflowExecutionTerminated"
3✔
2166
        case 38:
3✔
2167
                return "SignalExternalWorkflowExecutionInitiated"
3✔
2168
        case 39:
3✔
2169
                return "SignalExternalWorkflowExecutionFailed"
3✔
2170
        case 40:
3✔
2171
                return "ExternalWorkflowExecutionSignaled"
3✔
2172
        case 41:
×
2173
                return "UpsertWorkflowSearchAttributes"
×
2174
        }
2175
        return fmt.Sprintf("EventType(%d)", w)
×
2176
}
2177

2178
// UnmarshalText parses enum value from string representation
2179
func (e *EventType) UnmarshalText(value []byte) error {
393✔
2180
        switch s := strings.ToUpper(string(value)); s {
393✔
2181
        case "WORKFLOWEXECUTIONSTARTED":
21✔
2182
                *e = EventTypeWorkflowExecutionStarted
21✔
2183
                return nil
21✔
2184
        case "WORKFLOWEXECUTIONCOMPLETED":
9✔
2185
                *e = EventTypeWorkflowExecutionCompleted
9✔
2186
                return nil
9✔
2187
        case "WORKFLOWEXECUTIONFAILED":
×
2188
                *e = EventTypeWorkflowExecutionFailed
×
2189
                return nil
×
2190
        case "WORKFLOWEXECUTIONTIMEDOUT":
×
2191
                *e = EventTypeWorkflowExecutionTimedOut
×
2192
                return nil
×
2193
        case "DECISIONTASKSCHEDULED":
69✔
2194
                *e = EventTypeDecisionTaskScheduled
69✔
2195
                return nil
69✔
2196
        case "DECISIONTASKSTARTED":
69✔
2197
                *e = EventTypeDecisionTaskStarted
69✔
2198
                return nil
69✔
2199
        case "DECISIONTASKCOMPLETED":
69✔
2200
                *e = EventTypeDecisionTaskCompleted
69✔
2201
                return nil
69✔
2202
        case "DECISIONTASKTIMEDOUT":
×
2203
                *e = EventTypeDecisionTaskTimedOut
×
2204
                return nil
×
2205
        case "DECISIONTASKFAILED":
×
2206
                *e = EventTypeDecisionTaskFailed
×
2207
                return nil
×
2208
        case "ACTIVITYTASKSCHEDULED":
48✔
2209
                *e = EventTypeActivityTaskScheduled
48✔
2210
                return nil
48✔
2211
        case "ACTIVITYTASKSTARTED":
48✔
2212
                *e = EventTypeActivityTaskStarted
48✔
2213
                return nil
48✔
2214
        case "ACTIVITYTASKCOMPLETED":
48✔
2215
                *e = EventTypeActivityTaskCompleted
48✔
2216
                return nil
48✔
2217
        case "ACTIVITYTASKFAILED":
×
2218
                *e = EventTypeActivityTaskFailed
×
2219
                return nil
×
2220
        case "ACTIVITYTASKTIMEDOUT":
×
2221
                *e = EventTypeActivityTaskTimedOut
×
2222
                return nil
×
2223
        case "ACTIVITYTASKCANCELREQUESTED":
×
2224
                *e = EventTypeActivityTaskCancelRequested
×
2225
                return nil
×
2226
        case "REQUESTCANCELACTIVITYTASKFAILED":
×
2227
                *e = EventTypeRequestCancelActivityTaskFailed
×
2228
                return nil
×
2229
        case "ACTIVITYTASKCANCELED":
×
2230
                *e = EventTypeActivityTaskCanceled
×
2231
                return nil
×
2232
        case "TIMERSTARTED":
×
2233
                *e = EventTypeTimerStarted
×
2234
                return nil
×
2235
        case "TIMERFIRED":
×
2236
                *e = EventTypeTimerFired
×
2237
                return nil
×
2238
        case "CANCELTIMERFAILED":
×
2239
                *e = EventTypeCancelTimerFailed
×
2240
                return nil
×
2241
        case "TIMERCANCELED":
×
2242
                *e = EventTypeTimerCanceled
×
2243
                return nil
×
2244
        case "WORKFLOWEXECUTIONCANCELREQUESTED":
×
2245
                *e = EventTypeWorkflowExecutionCancelRequested
×
2246
                return nil
×
2247
        case "WORKFLOWEXECUTIONCANCELED":
×
2248
                *e = EventTypeWorkflowExecutionCanceled
×
2249
                return nil
×
2250
        case "REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATED":
×
2251
                *e = EventTypeRequestCancelExternalWorkflowExecutionInitiated
×
2252
                return nil
×
2253
        case "REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILED":
×
2254
                *e = EventTypeRequestCancelExternalWorkflowExecutionFailed
×
2255
                return nil
×
2256
        case "EXTERNALWORKFLOWEXECUTIONCANCELREQUESTED":
×
2257
                *e = EventTypeExternalWorkflowExecutionCancelRequested
×
2258
                return nil
×
2259
        case "MARKERRECORDED":
×
2260
                *e = EventTypeMarkerRecorded
×
2261
                return nil
×
2262
        case "WORKFLOWEXECUTIONSIGNALED":
×
2263
                *e = EventTypeWorkflowExecutionSignaled
×
2264
                return nil
×
2265
        case "WORKFLOWEXECUTIONTERMINATED":
×
2266
                *e = EventTypeWorkflowExecutionTerminated
×
2267
                return nil
×
2268
        case "WORKFLOWEXECUTIONCONTINUEDASNEW":
12✔
2269
                *e = EventTypeWorkflowExecutionContinuedAsNew
12✔
2270
                return nil
12✔
2271
        case "STARTCHILDWORKFLOWEXECUTIONINITIATED":
×
2272
                *e = EventTypeStartChildWorkflowExecutionInitiated
×
2273
                return nil
×
2274
        case "STARTCHILDWORKFLOWEXECUTIONFAILED":
×
2275
                *e = EventTypeStartChildWorkflowExecutionFailed
×
2276
                return nil
×
2277
        case "CHILDWORKFLOWEXECUTIONSTARTED":
×
2278
                *e = EventTypeChildWorkflowExecutionStarted
×
2279
                return nil
×
2280
        case "CHILDWORKFLOWEXECUTIONCOMPLETED":
×
2281
                *e = EventTypeChildWorkflowExecutionCompleted
×
2282
                return nil
×
2283
        case "CHILDWORKFLOWEXECUTIONFAILED":
×
2284
                *e = EventTypeChildWorkflowExecutionFailed
×
2285
                return nil
×
2286
        case "CHILDWORKFLOWEXECUTIONCANCELED":
×
2287
                *e = EventTypeChildWorkflowExecutionCanceled
×
2288
                return nil
×
2289
        case "CHILDWORKFLOWEXECUTIONTIMEDOUT":
×
2290
                *e = EventTypeChildWorkflowExecutionTimedOut
×
2291
                return nil
×
2292
        case "CHILDWORKFLOWEXECUTIONTERMINATED":
×
2293
                *e = EventTypeChildWorkflowExecutionTerminated
×
2294
                return nil
×
2295
        case "SIGNALEXTERNALWORKFLOWEXECUTIONINITIATED":
×
2296
                *e = EventTypeSignalExternalWorkflowExecutionInitiated
×
2297
                return nil
×
2298
        case "SIGNALEXTERNALWORKFLOWEXECUTIONFAILED":
×
2299
                *e = EventTypeSignalExternalWorkflowExecutionFailed
×
2300
                return nil
×
2301
        case "EXTERNALWORKFLOWEXECUTIONSIGNALED":
×
2302
                *e = EventTypeExternalWorkflowExecutionSignaled
×
2303
                return nil
×
2304
        case "UPSERTWORKFLOWSEARCHATTRIBUTES":
×
2305
                *e = EventTypeUpsertWorkflowSearchAttributes
×
2306
                return nil
×
2307
        default:
×
2308
                val, err := strconv.ParseInt(s, 10, 32)
×
2309
                if err != nil {
×
2310
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "EventType", err)
×
2311
                }
×
2312
                *e = EventType(val)
×
2313
                return nil
×
2314
        }
2315
}
2316

2317
// MarshalText encodes EventType to text.
2318
func (e EventType) MarshalText() ([]byte, error) {
3,939✔
2319
        return []byte(e.String()), nil
3,939✔
2320
}
3,939✔
2321

2322
const (
2323
        // EventTypeWorkflowExecutionStarted is an option for EventType
2324
        EventTypeWorkflowExecutionStarted EventType = iota
2325
        // EventTypeWorkflowExecutionCompleted is an option for EventType
2326
        EventTypeWorkflowExecutionCompleted
2327
        // EventTypeWorkflowExecutionFailed is an option for EventType
2328
        EventTypeWorkflowExecutionFailed
2329
        // EventTypeWorkflowExecutionTimedOut is an option for EventType
2330
        EventTypeWorkflowExecutionTimedOut
2331
        // EventTypeDecisionTaskScheduled is an option for EventType
2332
        EventTypeDecisionTaskScheduled
2333
        // EventTypeDecisionTaskStarted is an option for EventType
2334
        EventTypeDecisionTaskStarted
2335
        // EventTypeDecisionTaskCompleted is an option for EventType
2336
        EventTypeDecisionTaskCompleted
2337
        // EventTypeDecisionTaskTimedOut is an option for EventType
2338
        EventTypeDecisionTaskTimedOut
2339
        // EventTypeDecisionTaskFailed is an option for EventType
2340
        EventTypeDecisionTaskFailed
2341
        // EventTypeActivityTaskScheduled is an option for EventType
2342
        EventTypeActivityTaskScheduled
2343
        // EventTypeActivityTaskStarted is an option for EventType
2344
        EventTypeActivityTaskStarted
2345
        // EventTypeActivityTaskCompleted is an option for EventType
2346
        EventTypeActivityTaskCompleted
2347
        // EventTypeActivityTaskFailed is an option for EventType
2348
        EventTypeActivityTaskFailed
2349
        // EventTypeActivityTaskTimedOut is an option for EventType
2350
        EventTypeActivityTaskTimedOut
2351
        // EventTypeActivityTaskCancelRequested is an option for EventType
2352
        EventTypeActivityTaskCancelRequested
2353
        // EventTypeRequestCancelActivityTaskFailed is an option for EventType
2354
        EventTypeRequestCancelActivityTaskFailed
2355
        // EventTypeActivityTaskCanceled is an option for EventType
2356
        EventTypeActivityTaskCanceled
2357
        // EventTypeTimerStarted is an option for EventType
2358
        EventTypeTimerStarted
2359
        // EventTypeTimerFired is an option for EventType
2360
        EventTypeTimerFired
2361
        // EventTypeCancelTimerFailed is an option for EventType
2362
        EventTypeCancelTimerFailed
2363
        // EventTypeTimerCanceled is an option for EventType
2364
        EventTypeTimerCanceled
2365
        // EventTypeWorkflowExecutionCancelRequested is an option for EventType
2366
        EventTypeWorkflowExecutionCancelRequested
2367
        // EventTypeWorkflowExecutionCanceled is an option for EventType
2368
        EventTypeWorkflowExecutionCanceled
2369
        // EventTypeRequestCancelExternalWorkflowExecutionInitiated is an option for EventType
2370
        EventTypeRequestCancelExternalWorkflowExecutionInitiated
2371
        // EventTypeRequestCancelExternalWorkflowExecutionFailed is an option for EventType
2372
        EventTypeRequestCancelExternalWorkflowExecutionFailed
2373
        // EventTypeExternalWorkflowExecutionCancelRequested is an option for EventType
2374
        EventTypeExternalWorkflowExecutionCancelRequested
2375
        // EventTypeMarkerRecorded is an option for EventType
2376
        EventTypeMarkerRecorded
2377
        // EventTypeWorkflowExecutionSignaled is an option for EventType
2378
        EventTypeWorkflowExecutionSignaled
2379
        // EventTypeWorkflowExecutionTerminated is an option for EventType
2380
        EventTypeWorkflowExecutionTerminated
2381
        // EventTypeWorkflowExecutionContinuedAsNew is an option for EventType
2382
        EventTypeWorkflowExecutionContinuedAsNew
2383
        // EventTypeStartChildWorkflowExecutionInitiated is an option for EventType
2384
        EventTypeStartChildWorkflowExecutionInitiated
2385
        // EventTypeStartChildWorkflowExecutionFailed is an option for EventType
2386
        EventTypeStartChildWorkflowExecutionFailed
2387
        // EventTypeChildWorkflowExecutionStarted is an option for EventType
2388
        EventTypeChildWorkflowExecutionStarted
2389
        // EventTypeChildWorkflowExecutionCompleted is an option for EventType
2390
        EventTypeChildWorkflowExecutionCompleted
2391
        // EventTypeChildWorkflowExecutionFailed is an option for EventType
2392
        EventTypeChildWorkflowExecutionFailed
2393
        // EventTypeChildWorkflowExecutionCanceled is an option for EventType
2394
        EventTypeChildWorkflowExecutionCanceled
2395
        // EventTypeChildWorkflowExecutionTimedOut is an option for EventType
2396
        EventTypeChildWorkflowExecutionTimedOut
2397
        // EventTypeChildWorkflowExecutionTerminated is an option for EventType
2398
        EventTypeChildWorkflowExecutionTerminated
2399
        // EventTypeSignalExternalWorkflowExecutionInitiated is an option for EventType
2400
        EventTypeSignalExternalWorkflowExecutionInitiated
2401
        // EventTypeSignalExternalWorkflowExecutionFailed is an option for EventType
2402
        EventTypeSignalExternalWorkflowExecutionFailed
2403
        // EventTypeExternalWorkflowExecutionSignaled is an option for EventType
2404
        EventTypeExternalWorkflowExecutionSignaled
2405
        // EventTypeUpsertWorkflowSearchAttributes is an option for EventType
2406
        EventTypeUpsertWorkflowSearchAttributes
2407
)
2408

2409
// ExternalWorkflowExecutionCancelRequestedEventAttributes is an internal type (TBD...)
2410
type ExternalWorkflowExecutionCancelRequestedEventAttributes struct {
2411
        InitiatedEventID  int64              `json:"initiatedEventId,omitempty"`
2412
        Domain            string             `json:"domain,omitempty"`
2413
        WorkflowExecution *WorkflowExecution `json:"workflowExecution,omitempty"`
2414
}
2415

2416
// GetInitiatedEventID is an internal getter (TBD...)
2417
func (v *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetInitiatedEventID() (o int64) {
6✔
2418
        if v != nil {
12✔
2419
                return v.InitiatedEventID
6✔
2420
        }
6✔
2421
        return
×
2422
}
2423

2424
// GetDomain is an internal getter (TBD...)
2425
func (v *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetDomain() (o string) {
×
2426
        if v != nil {
×
2427
                return v.Domain
×
2428
        }
×
2429
        return
×
2430
}
2431

2432
// ExternalWorkflowExecutionSignaledEventAttributes is an internal type (TBD...)
2433
type ExternalWorkflowExecutionSignaledEventAttributes struct {
2434
        InitiatedEventID  int64              `json:"initiatedEventId,omitempty"`
2435
        Domain            string             `json:"domain,omitempty"`
2436
        WorkflowExecution *WorkflowExecution `json:"workflowExecution,omitempty"`
2437
        Control           []byte             `json:"control,omitempty"`
2438
}
2439

2440
// GetInitiatedEventID is an internal getter (TBD...)
2441
func (v *ExternalWorkflowExecutionSignaledEventAttributes) GetInitiatedEventID() (o int64) {
15✔
2442
        if v != nil {
30✔
2443
                return v.InitiatedEventID
15✔
2444
        }
15✔
2445
        return
×
2446
}
2447

2448
// GetDomain is an internal getter (TBD...)
2449
func (v *ExternalWorkflowExecutionSignaledEventAttributes) GetDomain() (o string) {
×
2450
        if v != nil {
×
2451
                return v.Domain
×
2452
        }
×
2453
        return
×
2454
}
2455

2456
// FailWorkflowExecutionDecisionAttributes is an internal type (TBD...)
2457
type FailWorkflowExecutionDecisionAttributes struct {
2458
        Reason  *string `json:"reason,omitempty"`
2459
        Details []byte  `json:"details,omitempty"`
2460
}
2461

2462
// GetReason is an internal getter (TBD...)
2463
func (v *FailWorkflowExecutionDecisionAttributes) GetReason() (o string) {
36✔
2464
        if v != nil && v.Reason != nil {
72✔
2465
                return *v.Reason
36✔
2466
        }
36✔
2467
        return
×
2468
}
2469

2470
// GetSearchAttributesResponse is an internal type (TBD...)
2471
type GetSearchAttributesResponse struct {
2472
        Keys map[string]IndexedValueType `json:"keys,omitempty"`
2473
}
2474

2475
// GetKeys is an internal getter (TBD...)
2476
func (v *GetSearchAttributesResponse) GetKeys() (o map[string]IndexedValueType) {
×
2477
        if v != nil && v.Keys != nil {
×
2478
                return v.Keys
×
2479
        }
×
2480
        return
×
2481
}
2482

2483
// GetWorkflowExecutionHistoryRequest is an internal type (TBD...)
2484
type GetWorkflowExecutionHistoryRequest struct {
2485
        Domain                 string                  `json:"domain,omitempty"`
2486
        Execution              *WorkflowExecution      `json:"execution,omitempty"`
2487
        MaximumPageSize        int32                   `json:"maximumPageSize,omitempty"`
2488
        NextPageToken          []byte                  `json:"nextPageToken,omitempty"`
2489
        WaitForNewEvent        bool                    `json:"waitForNewEvent,omitempty"`
2490
        HistoryEventFilterType *HistoryEventFilterType `json:"HistoryEventFilterType,omitempty"`
2491
        SkipArchival           bool                    `json:"skipArchival,omitempty"`
2492
}
2493

2494
func (v *GetWorkflowExecutionHistoryRequest) SerializeForLogging() (string, error) {
×
2495
        if v == nil {
×
2496
                return "", nil
×
2497
        }
×
2498
        return SerializeRequest(v)
×
2499
}
2500

2501
// GetDomain is an internal getter (TBD...)
2502
func (v *GetWorkflowExecutionHistoryRequest) GetDomain() (o string) {
3,010✔
2503
        if v != nil {
6,020✔
2504
                return v.Domain
3,010✔
2505
        }
3,010✔
2506
        return
×
2507
}
2508

2509
// GetExecution is an internal getter (TBD...)
2510
func (v *GetWorkflowExecutionHistoryRequest) GetExecution() (o *WorkflowExecution) {
1,365✔
2511
        if v != nil && v.Execution != nil {
2,730✔
2512
                return v.Execution
1,365✔
2513
        }
1,365✔
2514
        return
×
2515
}
2516

2517
// GetMaximumPageSize is an internal getter (TBD...)
2518
func (v *GetWorkflowExecutionHistoryRequest) GetMaximumPageSize() (o int32) {
1,346✔
2519
        if v != nil {
2,692✔
2520
                return v.MaximumPageSize
1,346✔
2521
        }
1,346✔
2522
        return
×
2523
}
2524

2525
// GetNextPageToken is an internal getter (TBD...)
2526
func (v *GetWorkflowExecutionHistoryRequest) GetNextPageToken() (o []byte) {
24✔
2527
        if v != nil && v.NextPageToken != nil {
24✔
2528
                return v.NextPageToken
×
2529
        }
×
2530
        return
24✔
2531
}
2532

2533
// GetWaitForNewEvent is an internal getter (TBD...)
2534
func (v *GetWorkflowExecutionHistoryRequest) GetWaitForNewEvent() (o bool) {
427✔
2535
        if v != nil {
854✔
2536
                return v.WaitForNewEvent
427✔
2537
        }
427✔
2538
        return
×
2539
}
2540

2541
// GetHistoryEventFilterType is an internal getter (TBD...)
2542
func (v *GetWorkflowExecutionHistoryRequest) GetHistoryEventFilterType() (o HistoryEventFilterType) {
427✔
2543
        if v != nil && v.HistoryEventFilterType != nil {
475✔
2544
                return *v.HistoryEventFilterType
48✔
2545
        }
48✔
2546
        return
379✔
2547
}
2548

2549
// GetSkipArchival is an internal getter (TBD...)
2550
func (v *GetWorkflowExecutionHistoryRequest) GetSkipArchival() (o bool) {
451✔
2551
        if v != nil {
902✔
2552
                return v.SkipArchival
451✔
2553
        }
451✔
2554
        return
×
2555
}
2556

2557
// GetWorkflowExecutionHistoryResponse is an internal type (TBD...)
2558
type GetWorkflowExecutionHistoryResponse struct {
2559
        History       *History    `json:"history,omitempty"`
2560
        RawHistory    []*DataBlob `json:"rawHistory,omitempty"`
2561
        NextPageToken []byte      `json:"nextPageToken,omitempty"`
2562
        Archived      bool        `json:"archived,omitempty"`
2563
}
2564

2565
// GetHistory is an internal getter (TBD...)
2566
func (v *GetWorkflowExecutionHistoryResponse) GetHistory() (o *History) {
6✔
2567
        if v != nil && v.History != nil {
12✔
2568
                return v.History
6✔
2569
        }
6✔
2570
        return
×
2571
}
2572

2573
// GetArchived is an internal getter (TBD...)
2574
func (v *GetWorkflowExecutionHistoryResponse) GetArchived() (o bool) {
48✔
2575
        if v != nil {
96✔
2576
                return v.Archived
48✔
2577
        }
48✔
2578
        return
×
2579
}
2580

2581
// FailoverInfo is an internal type (TBD...)
2582
type FailoverInfo struct {
2583
        FailoverVersion         int64   `json:"failoverVersion,omitempty"`
2584
        FailoverStartTimestamp  int64   `json:"failoverStartTimestamp,omitempty"`
2585
        FailoverExpireTimestamp int64   `json:"failoverExpireTimestamp,omitempty"`
2586
        CompletedShardCount     int32   `json:"completedShardCount,omitempty"`
2587
        PendingShards           []int32 `json:"pendingShards,omitempty"`
2588
}
2589

2590
// GetFailoverVersion is an internal getter (TBD...)
2591
func (v *FailoverInfo) GetFailoverVersion() (o int64) {
×
2592
        if v != nil {
×
2593
                return v.FailoverVersion
×
2594
        }
×
2595
        return
×
2596
}
2597

2598
// GetFailoverStartTimestamp is an internal getter (TBD...)
2599
func (v *FailoverInfo) GetFailoverStartTimestamp() (o int64) {
×
2600
        if v != nil {
×
2601
                return v.FailoverStartTimestamp
×
2602
        }
×
2603
        return
×
2604
}
2605

2606
// GetFailoverExpireTimestamp is an internal getter (TBD...)
2607
func (v *FailoverInfo) GetFailoverExpireTimestamp() (o int64) {
×
2608
        if v != nil {
×
2609
                return v.FailoverExpireTimestamp
×
2610
        }
×
2611
        return
×
2612
}
2613

2614
// GetCompletedShardCount is an internal getter (TBD...)
2615
func (v *FailoverInfo) GetCompletedShardCount() (o int32) {
×
2616
        if v != nil {
×
2617
                return v.CompletedShardCount
×
2618
        }
×
2619
        return
×
2620
}
2621

2622
// GetPendingShards is an internal getter (TBD...)
2623
func (v *FailoverInfo) GetPendingShards() (o []int32) {
×
2624
        if v != nil {
×
2625
                return v.PendingShards
×
2626
        }
×
2627
        return
×
2628
}
2629

2630
// Header is an internal type (TBD...)
2631
type Header struct {
2632
        Fields map[string][]byte `json:"fields,omitempty"`
2633
}
2634

2635
// History is an internal type (TBD...)
2636
type History struct {
2637
        Events []*HistoryEvent `json:"events,omitempty"`
2638
}
2639

2640
// GetEvents is an internal getter (TBD...)
2641
func (v *History) GetEvents() (o []*HistoryEvent) {
9✔
2642
        if v != nil && v.Events != nil {
18✔
2643
                return v.Events
9✔
2644
        }
9✔
2645
        return
×
2646
}
2647

2648
// HistoryBranch is an internal type (TBD...)
2649
type HistoryBranch struct {
2650
        TreeID    string
2651
        BranchID  string
2652
        Ancestors []*HistoryBranchRange
2653
}
2654

2655
// HistoryBranchRange is an internal type (TBD...)
2656
type HistoryBranchRange struct {
2657
        BranchID    string
2658
        BeginNodeID int64
2659
        EndNodeID   int64
2660
}
2661

2662
// HistoryEvent is an internal type (TBD...)
2663
type HistoryEvent struct {
2664
        ID                                                             int64                                                           `json:"eventId,omitempty"`
2665
        Timestamp                                                      *int64                                                          `json:"timestamp,omitempty"`
2666
        EventType                                                      *EventType                                                      `json:"eventType,omitempty"`
2667
        Version                                                        int64                                                           `json:"version,omitempty"`
2668
        TaskID                                                         int64                                                           `json:"taskId,omitempty"`
2669
        WorkflowExecutionStartedEventAttributes                        *WorkflowExecutionStartedEventAttributes                        `json:"workflowExecutionStartedEventAttributes,omitempty"`
2670
        WorkflowExecutionCompletedEventAttributes                      *WorkflowExecutionCompletedEventAttributes                      `json:"workflowExecutionCompletedEventAttributes,omitempty"`
2671
        WorkflowExecutionFailedEventAttributes                         *WorkflowExecutionFailedEventAttributes                         `json:"workflowExecutionFailedEventAttributes,omitempty"`
2672
        WorkflowExecutionTimedOutEventAttributes                       *WorkflowExecutionTimedOutEventAttributes                       `json:"workflowExecutionTimedOutEventAttributes,omitempty"`
2673
        DecisionTaskScheduledEventAttributes                           *DecisionTaskScheduledEventAttributes                           `json:"decisionTaskScheduledEventAttributes,omitempty"`
2674
        DecisionTaskStartedEventAttributes                             *DecisionTaskStartedEventAttributes                             `json:"decisionTaskStartedEventAttributes,omitempty"`
2675
        DecisionTaskCompletedEventAttributes                           *DecisionTaskCompletedEventAttributes                           `json:"decisionTaskCompletedEventAttributes,omitempty"`
2676
        DecisionTaskTimedOutEventAttributes                            *DecisionTaskTimedOutEventAttributes                            `json:"decisionTaskTimedOutEventAttributes,omitempty"`
2677
        DecisionTaskFailedEventAttributes                              *DecisionTaskFailedEventAttributes                              `json:"decisionTaskFailedEventAttributes,omitempty"`
2678
        ActivityTaskScheduledEventAttributes                           *ActivityTaskScheduledEventAttributes                           `json:"activityTaskScheduledEventAttributes,omitempty"`
2679
        ActivityTaskStartedEventAttributes                             *ActivityTaskStartedEventAttributes                             `json:"activityTaskStartedEventAttributes,omitempty"`
2680
        ActivityTaskCompletedEventAttributes                           *ActivityTaskCompletedEventAttributes                           `json:"activityTaskCompletedEventAttributes,omitempty"`
2681
        ActivityTaskFailedEventAttributes                              *ActivityTaskFailedEventAttributes                              `json:"activityTaskFailedEventAttributes,omitempty"`
2682
        ActivityTaskTimedOutEventAttributes                            *ActivityTaskTimedOutEventAttributes                            `json:"activityTaskTimedOutEventAttributes,omitempty"`
2683
        TimerStartedEventAttributes                                    *TimerStartedEventAttributes                                    `json:"timerStartedEventAttributes,omitempty"`
2684
        TimerFiredEventAttributes                                      *TimerFiredEventAttributes                                      `json:"timerFiredEventAttributes,omitempty"`
2685
        ActivityTaskCancelRequestedEventAttributes                     *ActivityTaskCancelRequestedEventAttributes                     `json:"activityTaskCancelRequestedEventAttributes,omitempty"`
2686
        RequestCancelActivityTaskFailedEventAttributes                 *RequestCancelActivityTaskFailedEventAttributes                 `json:"requestCancelActivityTaskFailedEventAttributes,omitempty"`
2687
        ActivityTaskCanceledEventAttributes                            *ActivityTaskCanceledEventAttributes                            `json:"activityTaskCanceledEventAttributes,omitempty"`
2688
        TimerCanceledEventAttributes                                   *TimerCanceledEventAttributes                                   `json:"timerCanceledEventAttributes,omitempty"`
2689
        CancelTimerFailedEventAttributes                               *CancelTimerFailedEventAttributes                               `json:"cancelTimerFailedEventAttributes,omitempty"`
2690
        MarkerRecordedEventAttributes                                  *MarkerRecordedEventAttributes                                  `json:"markerRecordedEventAttributes,omitempty"`
2691
        WorkflowExecutionSignaledEventAttributes                       *WorkflowExecutionSignaledEventAttributes                       `json:"workflowExecutionSignaledEventAttributes,omitempty"`
2692
        WorkflowExecutionTerminatedEventAttributes                     *WorkflowExecutionTerminatedEventAttributes                     `json:"workflowExecutionTerminatedEventAttributes,omitempty"`
2693
        WorkflowExecutionCancelRequestedEventAttributes                *WorkflowExecutionCancelRequestedEventAttributes                `json:"workflowExecutionCancelRequestedEventAttributes,omitempty"`
2694
        WorkflowExecutionCanceledEventAttributes                       *WorkflowExecutionCanceledEventAttributes                       `json:"workflowExecutionCanceledEventAttributes,omitempty"`
2695
        RequestCancelExternalWorkflowExecutionInitiatedEventAttributes *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes `json:"requestCancelExternalWorkflowExecutionInitiatedEventAttributes,omitempty"`
2696
        RequestCancelExternalWorkflowExecutionFailedEventAttributes    *RequestCancelExternalWorkflowExecutionFailedEventAttributes    `json:"requestCancelExternalWorkflowExecutionFailedEventAttributes,omitempty"`
2697
        ExternalWorkflowExecutionCancelRequestedEventAttributes        *ExternalWorkflowExecutionCancelRequestedEventAttributes        `json:"externalWorkflowExecutionCancelRequestedEventAttributes,omitempty"`
2698
        WorkflowExecutionContinuedAsNewEventAttributes                 *WorkflowExecutionContinuedAsNewEventAttributes                 `json:"workflowExecutionContinuedAsNewEventAttributes,omitempty"`
2699
        StartChildWorkflowExecutionInitiatedEventAttributes            *StartChildWorkflowExecutionInitiatedEventAttributes            `json:"startChildWorkflowExecutionInitiatedEventAttributes,omitempty"`
2700
        StartChildWorkflowExecutionFailedEventAttributes               *StartChildWorkflowExecutionFailedEventAttributes               `json:"startChildWorkflowExecutionFailedEventAttributes,omitempty"`
2701
        ChildWorkflowExecutionStartedEventAttributes                   *ChildWorkflowExecutionStartedEventAttributes                   `json:"childWorkflowExecutionStartedEventAttributes,omitempty"`
2702
        ChildWorkflowExecutionCompletedEventAttributes                 *ChildWorkflowExecutionCompletedEventAttributes                 `json:"childWorkflowExecutionCompletedEventAttributes,omitempty"`
2703
        ChildWorkflowExecutionFailedEventAttributes                    *ChildWorkflowExecutionFailedEventAttributes                    `json:"childWorkflowExecutionFailedEventAttributes,omitempty"`
2704
        ChildWorkflowExecutionCanceledEventAttributes                  *ChildWorkflowExecutionCanceledEventAttributes                  `json:"childWorkflowExecutionCanceledEventAttributes,omitempty"`
2705
        ChildWorkflowExecutionTimedOutEventAttributes                  *ChildWorkflowExecutionTimedOutEventAttributes                  `json:"childWorkflowExecutionTimedOutEventAttributes,omitempty"`
2706
        ChildWorkflowExecutionTerminatedEventAttributes                *ChildWorkflowExecutionTerminatedEventAttributes                `json:"childWorkflowExecutionTerminatedEventAttributes,omitempty"`
2707
        SignalExternalWorkflowExecutionInitiatedEventAttributes        *SignalExternalWorkflowExecutionInitiatedEventAttributes        `json:"signalExternalWorkflowExecutionInitiatedEventAttributes,omitempty"`
2708
        SignalExternalWorkflowExecutionFailedEventAttributes           *SignalExternalWorkflowExecutionFailedEventAttributes           `json:"signalExternalWorkflowExecutionFailedEventAttributes,omitempty"`
2709
        ExternalWorkflowExecutionSignaledEventAttributes               *ExternalWorkflowExecutionSignaledEventAttributes               `json:"externalWorkflowExecutionSignaledEventAttributes,omitempty"`
2710
        UpsertWorkflowSearchAttributesEventAttributes                  *UpsertWorkflowSearchAttributesEventAttributes                  `json:"upsertWorkflowSearchAttributesEventAttributes,omitempty"`
2711
}
2712

2713
// GetTimestamp is an internal getter (TBD...)
2714
func (v *HistoryEvent) GetTimestamp() (o int64) {
7,510✔
2715
        if v != nil && v.Timestamp != nil {
15,020✔
2716
                return *v.Timestamp
7,510✔
2717
        }
7,510✔
2718
        return
3✔
2719
}
2720

2721
// GetEventType is an internal getter (TBD...)
2722
func (v *HistoryEvent) GetEventType() (o EventType) {
24,315✔
2723
        if v != nil && v.EventType != nil {
48,630✔
2724
                return *v.EventType
24,315✔
2725
        }
24,315✔
2726
        return
×
2727
}
2728

2729
// GetWorkflowExecutionStartedEventAttributes is an internal getter (TBD...)
2730
func (v *HistoryEvent) GetWorkflowExecutionStartedEventAttributes() (o *WorkflowExecutionStartedEventAttributes) {
324✔
2731
        if v != nil && v.WorkflowExecutionStartedEventAttributes != nil {
648✔
2732
                return v.WorkflowExecutionStartedEventAttributes
324✔
2733
        }
324✔
2734
        return
×
2735
}
2736

2737
// GetWorkflowExecutionCompletedEventAttributes is an internal getter (TBD...)
2738
func (v *HistoryEvent) GetWorkflowExecutionCompletedEventAttributes() (o *WorkflowExecutionCompletedEventAttributes) {
×
2739
        if v != nil && v.WorkflowExecutionCompletedEventAttributes != nil {
×
2740
                return v.WorkflowExecutionCompletedEventAttributes
×
2741
        }
×
2742
        return
×
2743
}
2744

2745
// GetWorkflowExecutionFailedEventAttributes is an internal getter (TBD...)
2746
func (v *HistoryEvent) GetWorkflowExecutionFailedEventAttributes() (o *WorkflowExecutionFailedEventAttributes) {
×
2747
        if v != nil && v.WorkflowExecutionFailedEventAttributes != nil {
×
2748
                return v.WorkflowExecutionFailedEventAttributes
×
2749
        }
×
2750
        return
×
2751
}
2752

2753
// GetWorkflowExecutionTimedOutEventAttributes is an internal getter (TBD...)
2754
func (v *HistoryEvent) GetWorkflowExecutionTimedOutEventAttributes() (o *WorkflowExecutionTimedOutEventAttributes) {
×
2755
        if v != nil && v.WorkflowExecutionTimedOutEventAttributes != nil {
×
2756
                return v.WorkflowExecutionTimedOutEventAttributes
×
2757
        }
×
2758
        return
×
2759
}
2760

2761
// GetDecisionTaskScheduledEventAttributes is an internal getter (TBD...)
2762
func (v *HistoryEvent) GetDecisionTaskScheduledEventAttributes() (o *DecisionTaskScheduledEventAttributes) {
×
2763
        if v != nil && v.DecisionTaskScheduledEventAttributes != nil {
×
2764
                return v.DecisionTaskScheduledEventAttributes
×
2765
        }
×
2766
        return
×
2767
}
2768

2769
// GetDecisionTaskStartedEventAttributes is an internal getter (TBD...)
2770
func (v *HistoryEvent) GetDecisionTaskStartedEventAttributes() (o *DecisionTaskStartedEventAttributes) {
3✔
2771
        if v != nil && v.DecisionTaskStartedEventAttributes != nil {
6✔
2772
                return v.DecisionTaskStartedEventAttributes
3✔
2773
        }
3✔
2774
        return
×
2775
}
2776

2777
// GetDecisionTaskCompletedEventAttributes is an internal getter (TBD...)
2778
func (v *HistoryEvent) GetDecisionTaskCompletedEventAttributes() (o *DecisionTaskCompletedEventAttributes) {
1,865✔
2779
        if v != nil && v.DecisionTaskCompletedEventAttributes != nil {
3,730✔
2780
                return v.DecisionTaskCompletedEventAttributes
1,865✔
2781
        }
1,865✔
2782
        return
×
2783
}
2784

2785
// GetDecisionTaskTimedOutEventAttributes is an internal getter (TBD...)
2786
func (v *HistoryEvent) GetDecisionTaskTimedOutEventAttributes() (o *DecisionTaskTimedOutEventAttributes) {
×
2787
        if v != nil && v.DecisionTaskTimedOutEventAttributes != nil {
×
2788
                return v.DecisionTaskTimedOutEventAttributes
×
2789
        }
×
2790
        return
×
2791
}
2792

2793
// GetDecisionTaskFailedEventAttributes is an internal getter (TBD...)
2794
func (v *HistoryEvent) GetDecisionTaskFailedEventAttributes() (o *DecisionTaskFailedEventAttributes) {
3✔
2795
        if v != nil && v.DecisionTaskFailedEventAttributes != nil {
6✔
2796
                return v.DecisionTaskFailedEventAttributes
3✔
2797
        }
3✔
2798
        return
×
2799
}
2800

2801
// GetActivityTaskScheduledEventAttributes is an internal getter (TBD...)
2802
func (v *HistoryEvent) GetActivityTaskScheduledEventAttributes() (o *ActivityTaskScheduledEventAttributes) {
×
2803
        if v != nil && v.ActivityTaskScheduledEventAttributes != nil {
×
2804
                return v.ActivityTaskScheduledEventAttributes
×
2805
        }
×
2806
        return
×
2807
}
2808

2809
// GetActivityTaskStartedEventAttributes is an internal getter (TBD...)
2810
func (v *HistoryEvent) GetActivityTaskStartedEventAttributes() (o *ActivityTaskStartedEventAttributes) {
3✔
2811
        if v != nil && v.ActivityTaskStartedEventAttributes != nil {
6✔
2812
                return v.ActivityTaskStartedEventAttributes
3✔
2813
        }
3✔
2814
        return
×
2815
}
2816

2817
// GetActivityTaskCompletedEventAttributes is an internal getter (TBD...)
2818
func (v *HistoryEvent) GetActivityTaskCompletedEventAttributes() (o *ActivityTaskCompletedEventAttributes) {
×
2819
        if v != nil && v.ActivityTaskCompletedEventAttributes != nil {
×
2820
                return v.ActivityTaskCompletedEventAttributes
×
2821
        }
×
2822
        return
×
2823
}
2824

2825
// GetActivityTaskFailedEventAttributes is an internal getter (TBD...)
2826
func (v *HistoryEvent) GetActivityTaskFailedEventAttributes() (o *ActivityTaskFailedEventAttributes) {
×
2827
        if v != nil && v.ActivityTaskFailedEventAttributes != nil {
×
2828
                return v.ActivityTaskFailedEventAttributes
×
2829
        }
×
2830
        return
×
2831
}
2832

2833
// GetActivityTaskTimedOutEventAttributes is an internal getter (TBD...)
2834
func (v *HistoryEvent) GetActivityTaskTimedOutEventAttributes() (o *ActivityTaskTimedOutEventAttributes) {
×
2835
        if v != nil && v.ActivityTaskTimedOutEventAttributes != nil {
×
2836
                return v.ActivityTaskTimedOutEventAttributes
×
2837
        }
×
2838
        return
×
2839
}
2840

2841
// GetTimerStartedEventAttributes is an internal getter (TBD...)
2842
func (v *HistoryEvent) GetTimerStartedEventAttributes() (o *TimerStartedEventAttributes) {
3✔
2843
        if v != nil && v.TimerStartedEventAttributes != nil {
6✔
2844
                return v.TimerStartedEventAttributes
3✔
2845
        }
3✔
2846
        return
×
2847
}
2848

2849
// GetTimerFiredEventAttributes is an internal getter (TBD...)
2850
func (v *HistoryEvent) GetTimerFiredEventAttributes() (o *TimerFiredEventAttributes) {
3✔
2851
        if v != nil && v.TimerFiredEventAttributes != nil {
6✔
2852
                return v.TimerFiredEventAttributes
3✔
2853
        }
3✔
2854
        return
×
2855
}
2856

2857
// GetActivityTaskCancelRequestedEventAttributes is an internal getter (TBD...)
2858
func (v *HistoryEvent) GetActivityTaskCancelRequestedEventAttributes() (o *ActivityTaskCancelRequestedEventAttributes) {
×
2859
        if v != nil && v.ActivityTaskCancelRequestedEventAttributes != nil {
×
2860
                return v.ActivityTaskCancelRequestedEventAttributes
×
2861
        }
×
2862
        return
×
2863
}
2864

2865
// GetRequestCancelActivityTaskFailedEventAttributes is an internal getter (TBD...)
2866
func (v *HistoryEvent) GetRequestCancelActivityTaskFailedEventAttributes() (o *RequestCancelActivityTaskFailedEventAttributes) {
×
2867
        if v != nil && v.RequestCancelActivityTaskFailedEventAttributes != nil {
×
2868
                return v.RequestCancelActivityTaskFailedEventAttributes
×
2869
        }
×
2870
        return
×
2871
}
2872

2873
// GetActivityTaskCanceledEventAttributes is an internal getter (TBD...)
2874
func (v *HistoryEvent) GetActivityTaskCanceledEventAttributes() (o *ActivityTaskCanceledEventAttributes) {
×
2875
        if v != nil && v.ActivityTaskCanceledEventAttributes != nil {
×
2876
                return v.ActivityTaskCanceledEventAttributes
×
2877
        }
×
2878
        return
×
2879
}
2880

2881
// GetTimerCanceledEventAttributes is an internal getter (TBD...)
2882
func (v *HistoryEvent) GetTimerCanceledEventAttributes() (o *TimerCanceledEventAttributes) {
×
2883
        if v != nil && v.TimerCanceledEventAttributes != nil {
×
2884
                return v.TimerCanceledEventAttributes
×
2885
        }
×
2886
        return
×
2887
}
2888

2889
// GetCancelTimerFailedEventAttributes is an internal getter (TBD...)
2890
func (v *HistoryEvent) GetCancelTimerFailedEventAttributes() (o *CancelTimerFailedEventAttributes) {
×
2891
        if v != nil && v.CancelTimerFailedEventAttributes != nil {
×
2892
                return v.CancelTimerFailedEventAttributes
×
2893
        }
×
2894
        return
×
2895
}
2896

2897
// GetMarkerRecordedEventAttributes is an internal getter (TBD...)
2898
func (v *HistoryEvent) GetMarkerRecordedEventAttributes() (o *MarkerRecordedEventAttributes) {
×
2899
        if v != nil && v.MarkerRecordedEventAttributes != nil {
×
2900
                return v.MarkerRecordedEventAttributes
×
2901
        }
×
2902
        return
×
2903
}
2904

2905
// GetWorkflowExecutionSignaledEventAttributes is an internal getter (TBD...)
2906
func (v *HistoryEvent) GetWorkflowExecutionSignaledEventAttributes() (o *WorkflowExecutionSignaledEventAttributes) {
×
2907
        if v != nil && v.WorkflowExecutionSignaledEventAttributes != nil {
×
2908
                return v.WorkflowExecutionSignaledEventAttributes
×
2909
        }
×
2910
        return
×
2911
}
2912

2913
// GetWorkflowExecutionTerminatedEventAttributes is an internal getter (TBD...)
2914
func (v *HistoryEvent) GetWorkflowExecutionTerminatedEventAttributes() (o *WorkflowExecutionTerminatedEventAttributes) {
×
2915
        if v != nil && v.WorkflowExecutionTerminatedEventAttributes != nil {
×
2916
                return v.WorkflowExecutionTerminatedEventAttributes
×
2917
        }
×
2918
        return
×
2919
}
2920

2921
// GetWorkflowExecutionCancelRequestedEventAttributes is an internal getter (TBD...)
2922
func (v *HistoryEvent) GetWorkflowExecutionCancelRequestedEventAttributes() (o *WorkflowExecutionCancelRequestedEventAttributes) {
×
2923
        if v != nil && v.WorkflowExecutionCancelRequestedEventAttributes != nil {
×
2924
                return v.WorkflowExecutionCancelRequestedEventAttributes
×
2925
        }
×
2926
        return
×
2927
}
2928

2929
// GetWorkflowExecutionCanceledEventAttributes is an internal getter (TBD...)
2930
func (v *HistoryEvent) GetWorkflowExecutionCanceledEventAttributes() (o *WorkflowExecutionCanceledEventAttributes) {
×
2931
        if v != nil && v.WorkflowExecutionCanceledEventAttributes != nil {
×
2932
                return v.WorkflowExecutionCanceledEventAttributes
×
2933
        }
×
2934
        return
×
2935
}
2936

2937
// GetRequestCancelExternalWorkflowExecutionInitiatedEventAttributes is an internal getter (TBD...)
2938
func (v *HistoryEvent) GetRequestCancelExternalWorkflowExecutionInitiatedEventAttributes() (o *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) {
3✔
2939
        if v != nil && v.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes != nil {
6✔
2940
                return v.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
3✔
2941
        }
3✔
2942
        return
×
2943
}
2944

2945
// GetRequestCancelExternalWorkflowExecutionFailedEventAttributes is an internal getter (TBD...)
2946
func (v *HistoryEvent) GetRequestCancelExternalWorkflowExecutionFailedEventAttributes() (o *RequestCancelExternalWorkflowExecutionFailedEventAttributes) {
×
2947
        if v != nil && v.RequestCancelExternalWorkflowExecutionFailedEventAttributes != nil {
×
2948
                return v.RequestCancelExternalWorkflowExecutionFailedEventAttributes
×
2949
        }
×
2950
        return
×
2951
}
2952

2953
// GetExternalWorkflowExecutionCancelRequestedEventAttributes is an internal getter (TBD...)
2954
func (v *HistoryEvent) GetExternalWorkflowExecutionCancelRequestedEventAttributes() (o *ExternalWorkflowExecutionCancelRequestedEventAttributes) {
×
2955
        if v != nil && v.ExternalWorkflowExecutionCancelRequestedEventAttributes != nil {
×
2956
                return v.ExternalWorkflowExecutionCancelRequestedEventAttributes
×
2957
        }
×
2958
        return
×
2959
}
2960

2961
// GetWorkflowExecutionContinuedAsNewEventAttributes is an internal getter (TBD...)
2962
func (v *HistoryEvent) GetWorkflowExecutionContinuedAsNewEventAttributes() (o *WorkflowExecutionContinuedAsNewEventAttributes) {
3✔
2963
        if v != nil && v.WorkflowExecutionContinuedAsNewEventAttributes != nil {
6✔
2964
                return v.WorkflowExecutionContinuedAsNewEventAttributes
3✔
2965
        }
3✔
2966
        return
3✔
2967
}
2968

2969
// GetStartChildWorkflowExecutionInitiatedEventAttributes is an internal getter (TBD...)
2970
func (v *HistoryEvent) GetStartChildWorkflowExecutionInitiatedEventAttributes() (o *StartChildWorkflowExecutionInitiatedEventAttributes) {
3✔
2971
        if v != nil && v.StartChildWorkflowExecutionInitiatedEventAttributes != nil {
6✔
2972
                return v.StartChildWorkflowExecutionInitiatedEventAttributes
3✔
2973
        }
3✔
2974
        return
×
2975
}
2976

2977
// GetStartChildWorkflowExecutionFailedEventAttributes is an internal getter (TBD...)
2978
func (v *HistoryEvent) GetStartChildWorkflowExecutionFailedEventAttributes() (o *StartChildWorkflowExecutionFailedEventAttributes) {
×
2979
        if v != nil && v.StartChildWorkflowExecutionFailedEventAttributes != nil {
×
2980
                return v.StartChildWorkflowExecutionFailedEventAttributes
×
2981
        }
×
2982
        return
×
2983
}
2984

2985
// GetChildWorkflowExecutionStartedEventAttributes is an internal getter (TBD...)
2986
func (v *HistoryEvent) GetChildWorkflowExecutionStartedEventAttributes() (o *ChildWorkflowExecutionStartedEventAttributes) {
3✔
2987
        if v != nil && v.ChildWorkflowExecutionStartedEventAttributes != nil {
6✔
2988
                return v.ChildWorkflowExecutionStartedEventAttributes
3✔
2989
        }
3✔
2990
        return
×
2991
}
2992

2993
// GetChildWorkflowExecutionCompletedEventAttributes is an internal getter (TBD...)
2994
func (v *HistoryEvent) GetChildWorkflowExecutionCompletedEventAttributes() (o *ChildWorkflowExecutionCompletedEventAttributes) {
×
2995
        if v != nil && v.ChildWorkflowExecutionCompletedEventAttributes != nil {
×
2996
                return v.ChildWorkflowExecutionCompletedEventAttributes
×
2997
        }
×
2998
        return
×
2999
}
3000

3001
// GetChildWorkflowExecutionFailedEventAttributes is an internal getter (TBD...)
3002
func (v *HistoryEvent) GetChildWorkflowExecutionFailedEventAttributes() (o *ChildWorkflowExecutionFailedEventAttributes) {
×
3003
        if v != nil && v.ChildWorkflowExecutionFailedEventAttributes != nil {
×
3004
                return v.ChildWorkflowExecutionFailedEventAttributes
×
3005
        }
×
3006
        return
×
3007
}
3008

3009
// GetChildWorkflowExecutionCanceledEventAttributes is an internal getter (TBD...)
3010
func (v *HistoryEvent) GetChildWorkflowExecutionCanceledEventAttributes() (o *ChildWorkflowExecutionCanceledEventAttributes) {
×
3011
        if v != nil && v.ChildWorkflowExecutionCanceledEventAttributes != nil {
×
3012
                return v.ChildWorkflowExecutionCanceledEventAttributes
×
3013
        }
×
3014
        return
×
3015
}
3016

3017
// GetChildWorkflowExecutionTimedOutEventAttributes is an internal getter (TBD...)
3018
func (v *HistoryEvent) GetChildWorkflowExecutionTimedOutEventAttributes() (o *ChildWorkflowExecutionTimedOutEventAttributes) {
×
3019
        if v != nil && v.ChildWorkflowExecutionTimedOutEventAttributes != nil {
×
3020
                return v.ChildWorkflowExecutionTimedOutEventAttributes
×
3021
        }
×
3022
        return
×
3023
}
3024

3025
// GetChildWorkflowExecutionTerminatedEventAttributes is an internal getter (TBD...)
3026
func (v *HistoryEvent) GetChildWorkflowExecutionTerminatedEventAttributes() (o *ChildWorkflowExecutionTerminatedEventAttributes) {
×
3027
        if v != nil && v.ChildWorkflowExecutionTerminatedEventAttributes != nil {
×
3028
                return v.ChildWorkflowExecutionTerminatedEventAttributes
×
3029
        }
×
3030
        return
×
3031
}
3032

3033
// GetSignalExternalWorkflowExecutionInitiatedEventAttributes is an internal getter (TBD...)
3034
func (v *HistoryEvent) GetSignalExternalWorkflowExecutionInitiatedEventAttributes() (o *SignalExternalWorkflowExecutionInitiatedEventAttributes) {
3✔
3035
        if v != nil && v.SignalExternalWorkflowExecutionInitiatedEventAttributes != nil {
6✔
3036
                return v.SignalExternalWorkflowExecutionInitiatedEventAttributes
3✔
3037
        }
3✔
3038
        return
×
3039
}
3040

3041
// GetSignalExternalWorkflowExecutionFailedEventAttributes is an internal getter (TBD...)
3042
func (v *HistoryEvent) GetSignalExternalWorkflowExecutionFailedEventAttributes() (o *SignalExternalWorkflowExecutionFailedEventAttributes) {
×
3043
        if v != nil && v.SignalExternalWorkflowExecutionFailedEventAttributes != nil {
×
3044
                return v.SignalExternalWorkflowExecutionFailedEventAttributes
×
3045
        }
×
3046
        return
×
3047
}
3048

3049
// GetExternalWorkflowExecutionSignaledEventAttributes is an internal getter (TBD...)
3050
func (v *HistoryEvent) GetExternalWorkflowExecutionSignaledEventAttributes() (o *ExternalWorkflowExecutionSignaledEventAttributes) {
×
3051
        if v != nil && v.ExternalWorkflowExecutionSignaledEventAttributes != nil {
×
3052
                return v.ExternalWorkflowExecutionSignaledEventAttributes
×
3053
        }
×
3054
        return
×
3055
}
3056

3057
// GetUpsertWorkflowSearchAttributesEventAttributes is an internal getter (TBD...)
3058
func (v *HistoryEvent) GetUpsertWorkflowSearchAttributesEventAttributes() (o *UpsertWorkflowSearchAttributesEventAttributes) {
×
3059
        if v != nil && v.UpsertWorkflowSearchAttributesEventAttributes != nil {
×
3060
                return v.UpsertWorkflowSearchAttributesEventAttributes
×
3061
        }
×
3062
        return
×
3063
}
3064

3065
// HistoryEventFilterType is an internal type (TBD...)
3066
type HistoryEventFilterType int32
3067

3068
// Ptr is a helper function for getting pointer value
3069
func (e HistoryEventFilterType) Ptr() *HistoryEventFilterType {
45✔
3070
        return &e
45✔
3071
}
45✔
3072

3073
// String returns a readable string representation of HistoryEventFilterType.
3074
func (e HistoryEventFilterType) String() string {
×
3075
        w := int32(e)
×
3076
        switch w {
×
3077
        case 0:
×
3078
                return "ALL_EVENT"
×
3079
        case 1:
×
3080
                return "CLOSE_EVENT"
×
3081
        }
3082
        return fmt.Sprintf("HistoryEventFilterType(%d)", w)
×
3083
}
3084

3085
// UnmarshalText parses enum value from string representation
3086
func (e *HistoryEventFilterType) UnmarshalText(value []byte) error {
×
3087
        switch s := strings.ToUpper(string(value)); s {
×
3088
        case "ALL_EVENT":
×
3089
                *e = HistoryEventFilterTypeAllEvent
×
3090
                return nil
×
3091
        case "CLOSE_EVENT":
×
3092
                *e = HistoryEventFilterTypeCloseEvent
×
3093
                return nil
×
3094
        default:
×
3095
                val, err := strconv.ParseInt(s, 10, 32)
×
3096
                if err != nil {
×
3097
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "HistoryEventFilterType", err)
×
3098
                }
×
3099
                *e = HistoryEventFilterType(val)
×
3100
                return nil
×
3101
        }
3102
}
3103

3104
// MarshalText encodes HistoryEventFilterType to text.
3105
func (e HistoryEventFilterType) MarshalText() ([]byte, error) {
×
3106
        return []byte(e.String()), nil
×
3107
}
×
3108

3109
const (
3110
        // HistoryEventFilterTypeAllEvent is an option for HistoryEventFilterType
3111
        HistoryEventFilterTypeAllEvent HistoryEventFilterType = iota
3112
        // HistoryEventFilterTypeCloseEvent is an option for HistoryEventFilterType
3113
        HistoryEventFilterTypeCloseEvent
3114
)
3115

3116
// IndexedValueType is an internal type (TBD...)
3117
type IndexedValueType int32
3118

3119
// Ptr is a helper function for getting pointer value
3120
func (e IndexedValueType) Ptr() *IndexedValueType {
×
3121
        return &e
×
3122
}
×
3123

3124
// String returns a readable string representation of IndexedValueType.
3125
func (e IndexedValueType) String() string {
×
3126
        w := int32(e)
×
3127
        switch w {
×
3128
        case 0:
×
3129
                return "STRING"
×
3130
        case 1:
×
3131
                return "KEYWORD"
×
3132
        case 2:
×
3133
                return "INT"
×
3134
        case 3:
×
3135
                return "DOUBLE"
×
3136
        case 4:
×
3137
                return "BOOL"
×
3138
        case 5:
×
3139
                return "DATETIME"
×
3140
        }
3141
        return fmt.Sprintf("IndexedValueType(%d)", w)
×
3142
}
3143

3144
// UnmarshalText parses enum value from string representation
3145
func (e *IndexedValueType) UnmarshalText(value []byte) error {
×
3146
        switch s := strings.ToUpper(string(value)); s {
×
3147
        case "STRING":
×
3148
                *e = IndexedValueTypeString
×
3149
                return nil
×
3150
        case "KEYWORD":
×
3151
                *e = IndexedValueTypeKeyword
×
3152
                return nil
×
3153
        case "INT":
×
3154
                *e = IndexedValueTypeInt
×
3155
                return nil
×
3156
        case "DOUBLE":
×
3157
                *e = IndexedValueTypeDouble
×
3158
                return nil
×
3159
        case "BOOL":
×
3160
                *e = IndexedValueTypeBool
×
3161
                return nil
×
3162
        case "DATETIME":
×
3163
                *e = IndexedValueTypeDatetime
×
3164
                return nil
×
3165
        default:
×
3166
                val, err := strconv.ParseInt(s, 10, 32)
×
3167
                if err != nil {
×
3168
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "IndexedValueType", err)
×
3169
                }
×
3170
                *e = IndexedValueType(val)
×
3171
                return nil
×
3172
        }
3173
}
3174

3175
// MarshalText encodes IndexedValueType to text.
3176
func (e IndexedValueType) MarshalText() ([]byte, error) {
×
3177
        return []byte(e.String()), nil
×
3178
}
×
3179

3180
const (
3181
        // IndexedValueTypeString is an option for IndexedValueType
3182
        IndexedValueTypeString IndexedValueType = iota
3183
        // IndexedValueTypeKeyword is an option for IndexedValueType
3184
        IndexedValueTypeKeyword
3185
        // IndexedValueTypeInt is an option for IndexedValueType
3186
        IndexedValueTypeInt
3187
        // IndexedValueTypeDouble is an option for IndexedValueType
3188
        IndexedValueTypeDouble
3189
        // IndexedValueTypeBool is an option for IndexedValueType
3190
        IndexedValueTypeBool
3191
        // IndexedValueTypeDatetime is an option for IndexedValueType
3192
        IndexedValueTypeDatetime
3193
)
3194

3195
// InternalDataInconsistencyError is an internal type (TBD...)
3196
type InternalDataInconsistencyError struct {
3197
        Message string `json:"message,required"`
3198
}
3199

3200
// InternalServiceError is an internal type (TBD...)
3201
type InternalServiceError struct {
3202
        Message string `json:"message,required"`
3203
}
3204

3205
// GetMessage is an internal getter (TBD...)
3206
func (v *InternalServiceError) GetMessage() (o string) {
×
3207
        if v != nil {
×
3208
                return v.Message
×
3209
        }
×
3210
        return
×
3211
}
3212

3213
// LimitExceededError is an internal type (TBD...)
3214
type LimitExceededError struct {
3215
        Message string `json:"message,required"`
3216
}
3217

3218
// ListArchivedWorkflowExecutionsRequest is an internal type (TBD...)
3219
type ListArchivedWorkflowExecutionsRequest struct {
3220
        Domain        string `json:"domain,omitempty"`
3221
        PageSize      int32  `json:"pageSize,omitempty"`
3222
        NextPageToken []byte `json:"nextPageToken,omitempty"`
3223
        Query         string `json:"query,omitempty"`
3224
}
3225

3226
func (v *ListArchivedWorkflowExecutionsRequest) SerializeForLogging() (string, error) {
×
3227
        if v == nil {
×
3228
                return "", nil
×
3229
        }
×
3230
        return SerializeRequest(v)
×
3231
}
3232

3233
// GetDomain is an internal getter (TBD...)
3234
func (v *ListArchivedWorkflowExecutionsRequest) GetDomain() (o string) {
63✔
3235
        if v != nil {
126✔
3236
                return v.Domain
63✔
3237
        }
63✔
3238
        return
×
3239
}
3240

3241
// GetPageSize is an internal getter (TBD...)
3242
func (v *ListArchivedWorkflowExecutionsRequest) GetPageSize() (o int32) {
27✔
3243
        if v != nil {
54✔
3244
                return v.PageSize
27✔
3245
        }
27✔
3246
        return
×
3247
}
3248

3249
// GetQuery is an internal getter (TBD...)
3250
func (v *ListArchivedWorkflowExecutionsRequest) GetQuery() (o string) {
9✔
3251
        if v != nil {
18✔
3252
                return v.Query
9✔
3253
        }
9✔
3254
        return
×
3255
}
3256

3257
// ListArchivedWorkflowExecutionsResponse is an internal type (TBD...)
3258
type ListArchivedWorkflowExecutionsResponse struct {
3259
        Executions    []*WorkflowExecutionInfo `json:"executions,omitempty"`
3260
        NextPageToken []byte                   `json:"nextPageToken,omitempty"`
3261
}
3262

3263
// GetExecutions is an internal getter (TBD...)
3264
func (v *ListArchivedWorkflowExecutionsResponse) GetExecutions() (o []*WorkflowExecutionInfo) {
9✔
3265
        if v != nil && v.Executions != nil {
18✔
3266
                return v.Executions
9✔
3267
        }
9✔
3268
        return
×
3269
}
3270

3271
// ListClosedWorkflowExecutionsRequest is an internal type (TBD...)
3272
type ListClosedWorkflowExecutionsRequest struct {
3273
        Domain          string                        `json:"domain,omitempty"`
3274
        MaximumPageSize int32                         `json:"maximumPageSize,omitempty"`
3275
        NextPageToken   []byte                        `json:"nextPageToken,omitempty"`
3276
        StartTimeFilter *StartTimeFilter              `json:"StartTimeFilter,omitempty"`
3277
        ExecutionFilter *WorkflowExecutionFilter      `json:"executionFilter,omitempty"`
3278
        TypeFilter      *WorkflowTypeFilter           `json:"typeFilter,omitempty"`
3279
        StatusFilter    *WorkflowExecutionCloseStatus `json:"statusFilter,omitempty"`
3280
}
3281

3282
func (v *ListClosedWorkflowExecutionsRequest) SerializeForLogging() (string, error) {
×
3283
        if v == nil {
×
3284
                return "", nil
×
3285
        }
×
3286
        return SerializeRequest(v)
×
3287
}
3288

3289
// GetDomain is an internal getter (TBD...)
3290
func (v *ListClosedWorkflowExecutionsRequest) GetDomain() (o string) {
207✔
3291
        if v != nil {
414✔
3292
                return v.Domain
207✔
3293
        }
207✔
3294
        return
×
3295
}
3296

3297
// GetMaximumPageSize is an internal getter (TBD...)
3298
func (v *ListClosedWorkflowExecutionsRequest) GetMaximumPageSize() (o int32) {
72✔
3299
        if v != nil {
144✔
3300
                return v.MaximumPageSize
72✔
3301
        }
72✔
3302
        return
×
3303
}
3304

3305
// GetStatusFilter is an internal getter (TBD...)
3306
func (v *ListClosedWorkflowExecutionsRequest) GetStatusFilter() (o WorkflowExecutionCloseStatus) {
×
3307
        if v != nil && v.StatusFilter != nil {
×
3308
                return *v.StatusFilter
×
3309
        }
×
3310
        return
×
3311
}
3312

3313
// ListClosedWorkflowExecutionsResponse is an internal type (TBD...)
3314
type ListClosedWorkflowExecutionsResponse struct {
3315
        Executions    []*WorkflowExecutionInfo `json:"executions,omitempty"`
3316
        NextPageToken []byte                   `json:"nextPageToken,omitempty"`
3317
}
3318

3319
// GetExecutions is an internal getter (TBD...)
3320
func (v *ListClosedWorkflowExecutionsResponse) GetExecutions() (o []*WorkflowExecutionInfo) {
12✔
3321
        if v != nil && v.Executions != nil {
24✔
3322
                return v.Executions
12✔
3323
        }
12✔
3324
        return
×
3325
}
3326

3327
// ListDomainsRequest is an internal type (TBD...)
3328
type ListDomainsRequest struct {
3329
        PageSize      int32  `json:"pageSize,omitempty"`
3330
        NextPageToken []byte `json:"nextPageToken,omitempty"`
3331
}
3332

3333
func (v *ListDomainsRequest) SerializeForLogging() (string, error) {
×
3334
        if v == nil {
×
3335
                return "", nil
×
3336
        }
×
3337
        return SerializeRequest(v)
×
3338
}
3339

3340
// GetPageSize is an internal getter (TBD...)
3341
func (v *ListDomainsRequest) GetPageSize() (o int32) {
×
3342
        if v != nil {
×
3343
                return v.PageSize
×
3344
        }
×
3345
        return
×
3346
}
3347

3348
// ListDomainsResponse is an internal type (TBD...)
3349
type ListDomainsResponse struct {
3350
        Domains       []*DescribeDomainResponse `json:"domains,omitempty"`
3351
        NextPageToken []byte                    `json:"nextPageToken,omitempty"`
3352
}
3353

3354
// GetDomains is an internal getter (TBD...)
3355
func (v *ListDomainsResponse) GetDomains() (o []*DescribeDomainResponse) {
×
3356
        if v != nil && v.Domains != nil {
×
3357
                return v.Domains
×
3358
        }
×
3359
        return
×
3360
}
3361

3362
// GetNextPageToken is an internal getter (TBD...)
3363
func (v *ListDomainsResponse) GetNextPageToken() (o []byte) {
×
3364
        if v != nil && v.NextPageToken != nil {
×
3365
                return v.NextPageToken
×
3366
        }
×
3367
        return
×
3368
}
3369

3370
// ListOpenWorkflowExecutionsRequest is an internal type (TBD...)
3371
type ListOpenWorkflowExecutionsRequest struct {
3372
        Domain          string                   `json:"domain,omitempty"`
3373
        MaximumPageSize int32                    `json:"maximumPageSize,omitempty"`
3374
        NextPageToken   []byte                   `json:"nextPageToken,omitempty"`
3375
        StartTimeFilter *StartTimeFilter         `json:"StartTimeFilter,omitempty"`
3376
        ExecutionFilter *WorkflowExecutionFilter `json:"executionFilter,omitempty"`
3377
        TypeFilter      *WorkflowTypeFilter      `json:"typeFilter,omitempty"`
3378
}
3379

3380
func (v *ListOpenWorkflowExecutionsRequest) SerializeForLogging() (string, error) {
×
3381
        if v == nil {
×
3382
                return "", nil
×
3383
        }
×
3384
        return SerializeRequest(v)
×
3385
}
3386

3387
// GetDomain is an internal getter (TBD...)
3388
func (v *ListOpenWorkflowExecutionsRequest) GetDomain() (o string) {
964✔
3389
        if v != nil {
1,928✔
3390
                return v.Domain
964✔
3391
        }
964✔
3392
        return
×
3393
}
3394

3395
// GetMaximumPageSize is an internal getter (TBD...)
3396
func (v *ListOpenWorkflowExecutionsRequest) GetMaximumPageSize() (o int32) {
303✔
3397
        if v != nil {
606✔
3398
                return v.MaximumPageSize
303✔
3399
        }
303✔
3400
        return
×
3401
}
3402

3403
// ListOpenWorkflowExecutionsResponse is an internal type (TBD...)
3404
type ListOpenWorkflowExecutionsResponse struct {
3405
        Executions    []*WorkflowExecutionInfo `json:"executions,omitempty"`
3406
        NextPageToken []byte                   `json:"nextPageToken,omitempty"`
3407
}
3408

3409
// GetExecutions is an internal getter (TBD...)
3410
func (v *ListOpenWorkflowExecutionsResponse) GetExecutions() (o []*WorkflowExecutionInfo) {
24✔
3411
        if v != nil && v.Executions != nil {
48✔
3412
                return v.Executions
24✔
3413
        }
24✔
3414
        return
×
3415
}
3416

3417
// ListTaskListPartitionsRequest is an internal type (TBD...)
3418
type ListTaskListPartitionsRequest struct {
3419
        Domain   string    `json:"domain,omitempty"`
3420
        TaskList *TaskList `json:"taskList,omitempty"`
3421
}
3422

3423
func (v *ListTaskListPartitionsRequest) SerializeForLogging() (string, error) {
×
3424
        if v == nil {
×
3425
                return "", nil
×
3426
        }
×
3427
        return SerializeRequest(v)
×
3428
}
3429

3430
// GetDomain is an internal getter (TBD...)
3431
func (v *ListTaskListPartitionsRequest) GetDomain() (o string) {
×
3432
        if v != nil {
×
3433
                return v.Domain
×
3434
        }
×
3435
        return
×
3436
}
3437

3438
// ListTaskListPartitionsResponse is an internal type (TBD...)
3439
type ListTaskListPartitionsResponse struct {
3440
        ActivityTaskListPartitions []*TaskListPartitionMetadata `json:"activityTaskListPartitions,omitempty"`
3441
        DecisionTaskListPartitions []*TaskListPartitionMetadata `json:"decisionTaskListPartitions,omitempty"`
3442
}
3443

3444
// GetTaskListsByDomainRequest is an internal type (TBD...)
3445
type GetTaskListsByDomainRequest struct {
3446
        Domain string `json:"domain,omitempty"`
3447
}
3448

3449
func (v *GetTaskListsByDomainRequest) SerializeForLogging() (string, error) {
×
3450
        if v == nil {
×
3451
                return "", nil
×
3452
        }
×
3453
        return SerializeRequest(v)
×
3454
}
3455

3456
// GetDomain is an internal getter (TBD...)
3457
func (v *GetTaskListsByDomainRequest) GetDomain() (o string) {
×
3458
        if v != nil {
×
3459
                return v.Domain
×
3460
        }
×
3461
        return
×
3462
}
3463

3464
// GetTaskListsByDomainResponse is an internal type (TBD...)
3465
type GetTaskListsByDomainResponse struct {
3466
        DecisionTaskListMap map[string]*DescribeTaskListResponse `json:"decisionTaskListMap,omitempty"`
3467
        ActivityTaskListMap map[string]*DescribeTaskListResponse `json:"activityTaskListMap,omitempty"`
3468
}
3469

3470
// GetDecisionTaskListMap is an internal getter (TBD...)
3471
func (v *GetTaskListsByDomainResponse) GetDecisionTaskListMap() (o map[string]*DescribeTaskListResponse) {
×
3472
        if v != nil && v.DecisionTaskListMap != nil {
×
3473
                return v.DecisionTaskListMap
×
3474
        }
×
3475
        return
×
3476
}
3477

3478
// GetActivityTaskListMap is an internal getter (TBD...)
3479
func (v *GetTaskListsByDomainResponse) GetActivityTaskListMap() (o map[string]*DescribeTaskListResponse) {
×
3480
        if v != nil && v.ActivityTaskListMap != nil {
×
3481
                return v.ActivityTaskListMap
×
3482
        }
×
3483
        return
×
3484
}
3485

3486
// ListWorkflowExecutionsRequest is an internal type (TBD...)
3487
type ListWorkflowExecutionsRequest struct {
3488
        Domain        string `json:"domain,omitempty"`
3489
        PageSize      int32  `json:"pageSize,omitempty"`
3490
        NextPageToken []byte `json:"nextPageToken,omitempty"`
3491
        Query         string `json:"query,omitempty"`
3492
}
3493

3494
func (v *ListWorkflowExecutionsRequest) SerializeForLogging() (string, error) {
×
3495
        if v == nil {
×
3496
                return "", nil
×
3497
        }
×
3498
        return SerializeRequest(v)
×
3499
}
3500

3501
// GetDomain is an internal getter (TBD...)
3502
func (v *ListWorkflowExecutionsRequest) GetDomain() (o string) {
1,352✔
3503
        if v != nil {
2,704✔
3504
                return v.Domain
1,352✔
3505
        }
1,352✔
3506
        return
×
3507
}
3508

3509
// GetPageSize is an internal getter (TBD...)
3510
func (v *ListWorkflowExecutionsRequest) GetPageSize() (o int32) {
510✔
3511
        if v != nil {
1,020✔
3512
                return v.PageSize
510✔
3513
        }
510✔
3514
        return
×
3515
}
3516

3517
// GetQuery is an internal getter (TBD...)
3518
func (v *ListWorkflowExecutionsRequest) GetQuery() (o string) {
169✔
3519
        if v != nil {
338✔
3520
                return v.Query
169✔
3521
        }
169✔
3522
        return
×
3523
}
3524

3525
// ListWorkflowExecutionsResponse is an internal type (TBD...)
3526
type ListWorkflowExecutionsResponse struct {
3527
        Executions    []*WorkflowExecutionInfo `json:"executions,omitempty"`
3528
        NextPageToken []byte                   `json:"nextPageToken,omitempty"`
3529
}
3530

3531
// GetExecutions is an internal getter (TBD...)
3532
func (v *ListWorkflowExecutionsResponse) GetExecutions() (o []*WorkflowExecutionInfo) {
344✔
3533
        if v != nil && v.Executions != nil {
688✔
3534
                return v.Executions
344✔
3535
        }
344✔
3536
        return
×
3537
}
3538

3539
// GetNextPageToken is an internal getter (TBD...)
3540
func (v *ListWorkflowExecutionsResponse) GetNextPageToken() (o []byte) {
39✔
3541
        if v != nil && v.NextPageToken != nil {
66✔
3542
                return v.NextPageToken
27✔
3543
        }
27✔
3544
        return
12✔
3545
}
3546

3547
// MarkerRecordedEventAttributes is an internal type (TBD...)
3548
type MarkerRecordedEventAttributes struct {
3549
        MarkerName                   string  `json:"markerName,omitempty"`
3550
        Details                      []byte  `json:"details,omitempty"`
3551
        DecisionTaskCompletedEventID int64   `json:"decisionTaskCompletedEventId,omitempty"`
3552
        Header                       *Header `json:"header,omitempty"`
3553
}
3554

3555
// GetMarkerName is an internal getter (TBD...)
3556
func (v *MarkerRecordedEventAttributes) GetMarkerName() (o string) {
×
3557
        if v != nil {
×
3558
                return v.MarkerName
×
3559
        }
×
3560
        return
×
3561
}
3562

3563
// Memo is an internal type (TBD...)
3564
type Memo struct {
3565
        Fields map[string][]byte `json:"fields,omitempty"`
3566
}
3567

3568
// GetFields is an internal getter (TBD...)
3569
func (v *Memo) GetFields() (o map[string][]byte) {
105✔
3570
        if v != nil && v.Fields != nil {
180✔
3571
                return v.Fields
75✔
3572
        }
75✔
3573
        return
30✔
3574
}
3575

3576
// ParentClosePolicy is an internal type (TBD...)
3577
type ParentClosePolicy int32
3578

3579
// Ptr is a helper function for getting pointer value
3580
func (e ParentClosePolicy) Ptr() *ParentClosePolicy {
51✔
3581
        return &e
51✔
3582
}
51✔
3583

3584
// String returns a readable string representation of ParentClosePolicy.
3585
func (e ParentClosePolicy) String() string {
×
3586
        w := int32(e)
×
3587
        switch w {
×
3588
        case 0:
×
3589
                return "ABANDON"
×
3590
        case 1:
×
3591
                return "REQUEST_CANCEL"
×
3592
        case 2:
×
3593
                return "TERMINATE"
×
3594
        }
3595
        return fmt.Sprintf("ParentClosePolicy(%d)", w)
×
3596
}
3597

3598
// UnmarshalText parses enum value from string representation
3599
func (e *ParentClosePolicy) UnmarshalText(value []byte) error {
×
3600
        switch s := strings.ToUpper(string(value)); s {
×
3601
        case "ABANDON":
×
3602
                *e = ParentClosePolicyAbandon
×
3603
                return nil
×
3604
        case "REQUEST_CANCEL":
×
3605
                *e = ParentClosePolicyRequestCancel
×
3606
                return nil
×
3607
        case "TERMINATE":
×
3608
                *e = ParentClosePolicyTerminate
×
3609
                return nil
×
3610
        default:
×
3611
                val, err := strconv.ParseInt(s, 10, 32)
×
3612
                if err != nil {
×
3613
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "ParentClosePolicy", err)
×
3614
                }
×
3615
                *e = ParentClosePolicy(val)
×
3616
                return nil
×
3617
        }
3618
}
3619

3620
// MarshalText encodes ParentClosePolicy to text.
3621
func (e ParentClosePolicy) MarshalText() ([]byte, error) {
×
3622
        return []byte(e.String()), nil
×
3623
}
×
3624

3625
const (
3626
        // ParentClosePolicyAbandon is an option for ParentClosePolicy
3627
        ParentClosePolicyAbandon ParentClosePolicy = iota
3628
        // ParentClosePolicyRequestCancel is an option for ParentClosePolicy
3629
        ParentClosePolicyRequestCancel
3630
        // ParentClosePolicyTerminate is an option for ParentClosePolicy
3631
        ParentClosePolicyTerminate
3632
)
3633

3634
// PendingActivityInfo is an internal type (TBD...)
3635
type PendingActivityInfo struct {
3636
        ActivityID             string                `json:"activityID,omitempty"`
3637
        ActivityType           *ActivityType         `json:"activityType,omitempty"`
3638
        State                  *PendingActivityState `json:"state,omitempty"`
3639
        HeartbeatDetails       []byte                `json:"heartbeatDetails,omitempty"`
3640
        LastHeartbeatTimestamp *int64                `json:"lastHeartbeatTimestamp,omitempty"`
3641
        LastStartedTimestamp   *int64                `json:"lastStartedTimestamp,omitempty"`
3642
        Attempt                int32                 `json:"attempt,omitempty"`
3643
        MaximumAttempts        int32                 `json:"maximumAttempts,omitempty"`
3644
        ScheduledTimestamp     *int64                `json:"scheduledTimestamp,omitempty"`
3645
        ExpirationTimestamp    *int64                `json:"expirationTimestamp,omitempty"`
3646
        LastFailureReason      *string               `json:"lastFailureReason,omitempty"`
3647
        LastWorkerIdentity     string                `json:"lastWorkerIdentity,omitempty"`
3648
        LastFailureDetails     []byte                `json:"lastFailureDetails,omitempty"`
3649
}
3650

3651
// GetActivityID is an internal getter (TBD...)
3652
func (v *PendingActivityInfo) GetActivityID() (o string) {
9✔
3653
        if v != nil {
18✔
3654
                return v.ActivityID
9✔
3655
        }
9✔
3656
        return
×
3657
}
3658

3659
// GetState is an internal getter (TBD...)
3660
func (v *PendingActivityInfo) GetState() (o PendingActivityState) {
6✔
3661
        if v != nil && v.State != nil {
12✔
3662
                return *v.State
6✔
3663
        }
6✔
3664
        return
×
3665
}
3666

3667
// GetHeartbeatDetails is an internal getter (TBD...)
3668
func (v *PendingActivityInfo) GetHeartbeatDetails() (o []byte) {
6✔
3669
        if v != nil && v.HeartbeatDetails != nil {
12✔
3670
                return v.HeartbeatDetails
6✔
3671
        }
6✔
3672
        return
×
3673
}
3674

3675
// GetLastHeartbeatTimestamp is an internal getter (TBD...)
3676
func (v *PendingActivityInfo) GetLastHeartbeatTimestamp() (o int64) {
3✔
3677
        if v != nil && v.LastHeartbeatTimestamp != nil {
3✔
3678
                return *v.LastHeartbeatTimestamp
×
3679
        }
×
3680
        return
3✔
3681
}
3682

3683
// GetAttempt is an internal getter (TBD...)
3684
func (v *PendingActivityInfo) GetAttempt() (o int32) {
6✔
3685
        if v != nil {
12✔
3686
                return v.Attempt
6✔
3687
        }
6✔
3688
        return
×
3689
}
3690

3691
// GetMaximumAttempts is an internal getter (TBD...)
3692
func (v *PendingActivityInfo) GetMaximumAttempts() (o int32) {
6✔
3693
        if v != nil {
12✔
3694
                return v.MaximumAttempts
6✔
3695
        }
6✔
3696
        return
×
3697
}
3698

3699
// GetLastFailureReason is an internal getter (TBD...)
3700
func (v *PendingActivityInfo) GetLastFailureReason() (o string) {
9✔
3701
        if v != nil && v.LastFailureReason != nil {
18✔
3702
                return *v.LastFailureReason
9✔
3703
        }
9✔
3704
        return
×
3705
}
3706

3707
// GetLastWorkerIdentity is an internal getter (TBD...)
3708
func (v *PendingActivityInfo) GetLastWorkerIdentity() (o string) {
9✔
3709
        if v != nil {
18✔
3710
                return v.LastWorkerIdentity
9✔
3711
        }
9✔
3712
        return
×
3713
}
3714

3715
// GetLastFailureDetails is an internal getter (TBD...)
3716
func (v *PendingActivityInfo) GetLastFailureDetails() (o []byte) {
9✔
3717
        if v != nil && v.LastFailureDetails != nil {
15✔
3718
                return v.LastFailureDetails
6✔
3719
        }
6✔
3720
        return
3✔
3721
}
3722

3723
// PendingActivityState is an internal type (TBD...)
3724
type PendingActivityState int32
3725

3726
// Ptr is a helper function for getting pointer value
3727
func (e PendingActivityState) Ptr() *PendingActivityState {
18✔
3728
        return &e
18✔
3729
}
18✔
3730

3731
// String returns a readable string representation of PendingActivityState.
3732
func (e PendingActivityState) String() string {
×
3733
        w := int32(e)
×
3734
        switch w {
×
3735
        case 0:
×
3736
                return "SCHEDULED"
×
3737
        case 1:
×
3738
                return "STARTED"
×
3739
        case 2:
×
3740
                return "CANCEL_REQUESTED"
×
3741
        }
3742
        return fmt.Sprintf("PendingActivityState(%d)", w)
×
3743
}
3744

3745
// UnmarshalText parses enum value from string representation
3746
func (e *PendingActivityState) UnmarshalText(value []byte) error {
×
3747
        switch s := strings.ToUpper(string(value)); s {
×
3748
        case "SCHEDULED":
×
3749
                *e = PendingActivityStateScheduled
×
3750
                return nil
×
3751
        case "STARTED":
×
3752
                *e = PendingActivityStateStarted
×
3753
                return nil
×
3754
        case "CANCEL_REQUESTED":
×
3755
                *e = PendingActivityStateCancelRequested
×
3756
                return nil
×
3757
        default:
×
3758
                val, err := strconv.ParseInt(s, 10, 32)
×
3759
                if err != nil {
×
3760
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "PendingActivityState", err)
×
3761
                }
×
3762
                *e = PendingActivityState(val)
×
3763
                return nil
×
3764
        }
3765
}
3766

3767
// MarshalText encodes PendingActivityState to text.
3768
func (e PendingActivityState) MarshalText() ([]byte, error) {
×
3769
        return []byte(e.String()), nil
×
3770
}
×
3771

3772
const (
3773
        // PendingActivityStateScheduled is an option for PendingActivityState
3774
        PendingActivityStateScheduled PendingActivityState = iota
3775
        // PendingActivityStateStarted is an option for PendingActivityState
3776
        PendingActivityStateStarted
3777
        // PendingActivityStateCancelRequested is an option for PendingActivityState
3778
        PendingActivityStateCancelRequested
3779
)
3780

3781
// PendingChildExecutionInfo is an internal type (TBD...)
3782
type PendingChildExecutionInfo struct {
3783
        Domain            string             `json:"domain,omitempty"`
3784
        WorkflowID        string             `json:"workflowID,omitempty"`
3785
        RunID             string             `json:"runID,omitempty"`
3786
        WorkflowTypeName  string             `json:"workflowTypeName,omitempty"`
3787
        InitiatedID       int64              `json:"initiatedID,omitempty"`
3788
        ParentClosePolicy *ParentClosePolicy `json:"parentClosePolicy,omitempty"`
3789
}
3790

3791
// GetDomain is an internal getter (TBD...)
3792
func (v *PendingChildExecutionInfo) GetDomain() (o string) {
3✔
3793
        if v != nil {
6✔
3794
                return v.Domain
3✔
3795
        }
3✔
3796
        return
×
3797
}
3798

3799
// GetWorkflowID is an internal getter (TBD...)
3800
func (v *PendingChildExecutionInfo) GetWorkflowID() (o string) {
3✔
3801
        if v != nil {
6✔
3802
                return v.WorkflowID
3✔
3803
        }
3✔
3804
        return
×
3805
}
3806

3807
// GetRunID is an internal getter (TBD...)
3808
func (v *PendingChildExecutionInfo) GetRunID() (o string) {
6✔
3809
        if v != nil {
12✔
3810
                return v.RunID
6✔
3811
        }
6✔
3812
        return
×
3813
}
3814

3815
// GetWorkflowTypeName is an internal getter (TBD...)
3816
func (v *PendingChildExecutionInfo) GetWorkflowTypeName() (o string) {
3✔
3817
        if v != nil {
6✔
3818
                return v.WorkflowTypeName
3✔
3819
        }
3✔
3820
        return
×
3821
}
3822

3823
// PendingDecisionInfo is an internal type (TBD...)
3824
type PendingDecisionInfo struct {
3825
        State                      *PendingDecisionState `json:"state,omitempty"`
3826
        ScheduledTimestamp         *int64                `json:"scheduledTimestamp,omitempty"`
3827
        StartedTimestamp           *int64                `json:"startedTimestamp,omitempty"`
3828
        Attempt                    int64                 `json:"attempt,omitempty"`
3829
        OriginalScheduledTimestamp *int64                `json:"originalScheduledTimestamp,omitempty"`
3830
}
3831

3832
// PendingDecisionState is an internal type (TBD...)
3833
type PendingDecisionState int32
3834

3835
// Ptr is a helper function for getting pointer value
3836
func (e PendingDecisionState) Ptr() *PendingDecisionState {
108✔
3837
        return &e
108✔
3838
}
108✔
3839

3840
// String returns a readable string representation of PendingDecisionState.
3841
func (e PendingDecisionState) String() string {
×
3842
        w := int32(e)
×
3843
        switch w {
×
3844
        case 0:
×
3845
                return "SCHEDULED"
×
3846
        case 1:
×
3847
                return "STARTED"
×
3848
        }
3849
        return fmt.Sprintf("PendingDecisionState(%d)", w)
×
3850
}
3851

3852
// UnmarshalText parses enum value from string representation
3853
func (e *PendingDecisionState) UnmarshalText(value []byte) error {
×
3854
        switch s := strings.ToUpper(string(value)); s {
×
3855
        case "SCHEDULED":
×
3856
                *e = PendingDecisionStateScheduled
×
3857
                return nil
×
3858
        case "STARTED":
×
3859
                *e = PendingDecisionStateStarted
×
3860
                return nil
×
3861
        default:
×
3862
                val, err := strconv.ParseInt(s, 10, 32)
×
3863
                if err != nil {
×
3864
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "PendingDecisionState", err)
×
3865
                }
×
3866
                *e = PendingDecisionState(val)
×
3867
                return nil
×
3868
        }
3869
}
3870

3871
// MarshalText encodes PendingDecisionState to text.
3872
func (e PendingDecisionState) MarshalText() ([]byte, error) {
×
3873
        return []byte(e.String()), nil
×
3874
}
×
3875

3876
const (
3877
        // PendingDecisionStateScheduled is an option for PendingDecisionState
3878
        PendingDecisionStateScheduled PendingDecisionState = iota
3879
        // PendingDecisionStateStarted is an option for PendingDecisionState
3880
        PendingDecisionStateStarted
3881
)
3882

3883
// PollForActivityTaskRequest is an internal type (TBD...)
3884
type PollForActivityTaskRequest struct {
3885
        Domain           string            `json:"domain,omitempty"`
3886
        TaskList         *TaskList         `json:"taskList,omitempty"`
3887
        Identity         string            `json:"identity,omitempty"`
3888
        TaskListMetadata *TaskListMetadata `json:"taskListMetadata,omitempty"`
3889
}
3890

3891
func (v *PollForActivityTaskRequest) SerializeForLogging() (string, error) {
×
3892
        if v == nil {
×
3893
                return "", nil
×
3894
        }
×
3895
        return SerializeRequest(v)
×
3896
}
3897

3898
// GetDomain is an internal getter (TBD...)
3899
func (v *PollForActivityTaskRequest) GetDomain() (o string) {
4,566✔
3900
        if v != nil {
9,132✔
3901
                return v.Domain
4,566✔
3902
        }
4,566✔
3903
        return
×
3904
}
3905

3906
// GetTaskList is an internal getter (TBD...)
3907
func (v *PollForActivityTaskRequest) GetTaskList() (o *TaskList) {
2,204✔
3908
        if v != nil && v.TaskList != nil {
4,408✔
3909
                return v.TaskList
2,204✔
3910
        }
2,204✔
3911
        return
×
3912
}
3913

3914
// GetIdentity is an internal getter (TBD...)
3915
func (v *PollForActivityTaskRequest) GetIdentity() (o string) {
1,825✔
3916
        if v != nil {
3,650✔
3917
                return v.Identity
1,825✔
3918
        }
1,825✔
3919
        return
×
3920
}
3921

3922
// PollForActivityTaskResponse is an internal type (TBD...)
3923
type PollForActivityTaskResponse struct {
3924
        TaskToken                       []byte             `json:"taskToken,omitempty"`
3925
        WorkflowExecution               *WorkflowExecution `json:"workflowExecution,omitempty"`
3926
        ActivityID                      string             `json:"activityId,omitempty"`
3927
        ActivityType                    *ActivityType      `json:"activityType,omitempty"`
3928
        Input                           []byte             `json:"input,omitempty"`
3929
        ScheduledTimestamp              *int64             `json:"scheduledTimestamp,omitempty"`
3930
        ScheduleToCloseTimeoutSeconds   *int32             `json:"scheduleToCloseTimeoutSeconds,omitempty"`
3931
        StartedTimestamp                *int64             `json:"startedTimestamp,omitempty"`
3932
        StartToCloseTimeoutSeconds      *int32             `json:"startToCloseTimeoutSeconds,omitempty"`
3933
        HeartbeatTimeoutSeconds         *int32             `json:"heartbeatTimeoutSeconds,omitempty"`
3934
        Attempt                         int32              `json:"attempt,omitempty"`
3935
        ScheduledTimestampOfThisAttempt *int64             `json:"scheduledTimestampOfThisAttempt,omitempty"`
3936
        HeartbeatDetails                []byte             `json:"heartbeatDetails,omitempty"`
3937
        WorkflowType                    *WorkflowType      `json:"workflowType,omitempty"`
3938
        WorkflowDomain                  string             `json:"workflowDomain,omitempty"`
3939
        Header                          *Header            `json:"header,omitempty"`
3940
}
3941

3942
// GetActivityID is an internal getter (TBD...)
3943
func (v *PollForActivityTaskResponse) GetActivityID() (o string) {
150✔
3944
        if v != nil {
300✔
3945
                return v.ActivityID
150✔
3946
        }
150✔
3947
        return
×
3948
}
3949

3950
// PollForDecisionTaskRequest is an internal type (TBD...)
3951
type PollForDecisionTaskRequest struct {
3952
        Domain         string    `json:"domain,omitempty"`
3953
        TaskList       *TaskList `json:"taskList,omitempty"`
3954
        Identity       string    `json:"identity,omitempty"`
3955
        BinaryChecksum string    `json:"binaryChecksum,omitempty"`
3956
}
3957

3958
func (v *PollForDecisionTaskRequest) SerializeForLogging() (string, error) {
×
3959
        if v == nil {
×
3960
                return "", nil
×
3961
        }
×
3962
        return SerializeRequest(v)
×
3963
}
3964

3965
// GetDomain is an internal getter (TBD...)
3966
func (v *PollForDecisionTaskRequest) GetDomain() (o string) {
8,944✔
3967
        if v != nil {
17,888✔
3968
                return v.Domain
8,944✔
3969
        }
8,944✔
3970
        return
×
3971
}
3972

3973
// GetTaskList is an internal getter (TBD...)
3974
func (v *PollForDecisionTaskRequest) GetTaskList() (o *TaskList) {
7,821✔
3975
        if v != nil && v.TaskList != nil {
15,642✔
3976
                return v.TaskList
7,821✔
3977
        }
7,821✔
3978
        return
×
3979
}
3980

3981
// GetIdentity is an internal getter (TBD...)
3982
func (v *PollForDecisionTaskRequest) GetIdentity() (o string) {
5,561✔
3983
        if v != nil {
11,122✔
3984
                return v.Identity
5,561✔
3985
        }
5,561✔
3986
        return
×
3987
}
3988

3989
// GetBinaryChecksum is an internal getter (TBD...)
3990
func (v *PollForDecisionTaskRequest) GetBinaryChecksum() (o string) {
1,229✔
3991
        if v != nil {
2,458✔
3992
                return v.BinaryChecksum
1,229✔
3993
        }
1,229✔
3994
        return
×
3995
}
3996

3997
// PollForDecisionTaskResponse is an internal type (TBD...)
3998
type PollForDecisionTaskResponse struct {
3999
        TaskToken                 []byte                    `json:"taskToken,omitempty"`
4000
        WorkflowExecution         *WorkflowExecution        `json:"workflowExecution,omitempty"`
4001
        WorkflowType              *WorkflowType             `json:"workflowType,omitempty"`
4002
        PreviousStartedEventID    *int64                    `json:"previousStartedEventId,omitempty"`
4003
        StartedEventID            int64                     `json:"startedEventId,omitempty"`
4004
        Attempt                   int64                     `json:"attempt,omitempty"`
4005
        BacklogCountHint          int64                     `json:"backlogCountHint,omitempty"`
4006
        History                   *History                  `json:"history,omitempty"`
4007
        NextPageToken             []byte                    `json:"nextPageToken,omitempty"`
4008
        Query                     *WorkflowQuery            `json:"query,omitempty"`
4009
        WorkflowExecutionTaskList *TaskList                 `json:"WorkflowExecutionTaskList,omitempty"`
4010
        ScheduledTimestamp        *int64                    `json:"scheduledTimestamp,omitempty"`
4011
        StartedTimestamp          *int64                    `json:"startedTimestamp,omitempty"`
4012
        Queries                   map[string]*WorkflowQuery `json:"queries,omitempty"`
4013
        NextEventID               int64                     `json:"nextEventId,omitempty"`
4014
}
4015

4016
// GetTaskToken is an internal getter (TBD...)
4017
func (v *PollForDecisionTaskResponse) GetTaskToken() (o []byte) {
147✔
4018
        if v != nil && v.TaskToken != nil {
294✔
4019
                return v.TaskToken
147✔
4020
        }
147✔
4021
        return
×
4022
}
4023

4024
// GetPreviousStartedEventID is an internal getter (TBD...)
4025
func (v *PollForDecisionTaskResponse) GetPreviousStartedEventID() (o int64) {
6✔
4026
        if v != nil && v.PreviousStartedEventID != nil {
12✔
4027
                return *v.PreviousStartedEventID
6✔
4028
        }
6✔
4029
        return
×
4030
}
4031

4032
// GetStartedEventID is an internal getter (TBD...)
4033
func (v *PollForDecisionTaskResponse) GetStartedEventID() (o int64) {
96✔
4034
        if v != nil {
192✔
4035
                return v.StartedEventID
96✔
4036
        }
96✔
4037
        return
×
4038
}
4039

4040
// GetAttempt is an internal getter (TBD...)
4041
func (v *PollForDecisionTaskResponse) GetAttempt() (o int64) {
102✔
4042
        if v != nil {
204✔
4043
                return v.Attempt
102✔
4044
        }
102✔
4045
        return
×
4046
}
4047

4048
// GetQueries is an internal getter (TBD...)
4049
func (v *PollForDecisionTaskResponse) GetQueries() (o map[string]*WorkflowQuery) {
802✔
4050
        if v != nil && v.Queries != nil {
808✔
4051
                return v.Queries
6✔
4052
        }
6✔
4053
        return
796✔
4054
}
4055

4056
// GetNextEventID is an internal getter (TBD...)
4057
func (v *PollForDecisionTaskResponse) GetNextEventID() (o int64) {
907✔
4058
        if v != nil {
1,814✔
4059
                return v.NextEventID
907✔
4060
        }
907✔
4061
        return
×
4062
}
4063

4064
// PollerInfo is an internal type (TBD...)
4065
type PollerInfo struct {
4066
        LastAccessTime *int64  `json:"lastAccessTime,omitempty"`
4067
        Identity       string  `json:"identity,omitempty"`
4068
        RatePerSecond  float64 `json:"ratePerSecond,omitempty"`
4069
}
4070

4071
// GetLastAccessTime is an internal getter (TBD...)
4072
func (v *PollerInfo) GetLastAccessTime() (o int64) {
18✔
4073
        if v != nil && v.LastAccessTime != nil {
36✔
4074
                return *v.LastAccessTime
18✔
4075
        }
18✔
4076
        return
×
4077
}
4078

4079
// GetIdentity is an internal getter (TBD...)
4080
func (v *PollerInfo) GetIdentity() (o string) {
9✔
4081
        if v != nil {
18✔
4082
                return v.Identity
9✔
4083
        }
9✔
4084
        return
×
4085
}
4086

4087
// GetRatePerSecond is an internal getter (TBD...)
4088
func (v *PollerInfo) GetRatePerSecond() (o float64) {
×
4089
        if v != nil {
×
4090
                return v.RatePerSecond
×
4091
        }
×
4092
        return
×
4093
}
4094

4095
// QueryConsistencyLevel is an internal type (TBD...)
4096
type QueryConsistencyLevel int32
4097

4098
// Ptr is a helper function for getting pointer value
4099
func (e QueryConsistencyLevel) Ptr() *QueryConsistencyLevel {
29✔
4100
        return &e
29✔
4101
}
29✔
4102

4103
// String returns a readable string representation of QueryConsistencyLevel.
4104
func (e QueryConsistencyLevel) String() string {
×
4105
        w := int32(e)
×
4106
        switch w {
×
4107
        case 0:
×
4108
                return "EVENTUAL"
×
4109
        case 1:
×
4110
                return "STRONG"
×
4111
        }
4112
        return fmt.Sprintf("QueryConsistencyLevel(%d)", w)
×
4113
}
4114

4115
// UnmarshalText parses enum value from string representation
4116
func (e *QueryConsistencyLevel) UnmarshalText(value []byte) error {
×
4117
        switch s := strings.ToUpper(string(value)); s {
×
4118
        case "EVENTUAL":
×
4119
                *e = QueryConsistencyLevelEventual
×
4120
                return nil
×
4121
        case "STRONG":
×
4122
                *e = QueryConsistencyLevelStrong
×
4123
                return nil
×
4124
        default:
×
4125
                val, err := strconv.ParseInt(s, 10, 32)
×
4126
                if err != nil {
×
4127
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "QueryConsistencyLevel", err)
×
4128
                }
×
4129
                *e = QueryConsistencyLevel(val)
×
4130
                return nil
×
4131
        }
4132
}
4133

4134
// MarshalText encodes QueryConsistencyLevel to text.
4135
func (e QueryConsistencyLevel) MarshalText() ([]byte, error) {
×
4136
        return []byte(e.String()), nil
×
4137
}
×
4138

4139
const (
4140
        // QueryConsistencyLevelEventual is an option for QueryConsistencyLevel
4141
        QueryConsistencyLevelEventual QueryConsistencyLevel = iota
4142
        // QueryConsistencyLevelStrong is an option for QueryConsistencyLevel
4143
        QueryConsistencyLevelStrong
4144
)
4145

4146
// QueryFailedError is an internal type (TBD...)
4147
type QueryFailedError struct {
4148
        Message string `json:"message,required"`
4149
}
4150

4151
// QueryRejectCondition is an internal type (TBD...)
4152
type QueryRejectCondition int32
4153

4154
// Ptr is a helper function for getting pointer value
4155
func (e QueryRejectCondition) Ptr() *QueryRejectCondition {
10✔
4156
        return &e
10✔
4157
}
10✔
4158

4159
// String returns a readable string representation of QueryRejectCondition.
4160
func (e QueryRejectCondition) String() string {
×
4161
        w := int32(e)
×
4162
        switch w {
×
4163
        case 0:
×
4164
                return "NOT_OPEN"
×
4165
        case 1:
×
4166
                return "NOT_COMPLETED_CLEANLY"
×
4167
        }
4168
        return fmt.Sprintf("QueryRejectCondition(%d)", w)
×
4169
}
4170

4171
// UnmarshalText parses enum value from string representation
4172
func (e *QueryRejectCondition) UnmarshalText(value []byte) error {
×
4173
        switch s := strings.ToUpper(string(value)); s {
×
4174
        case "NOT_OPEN":
×
4175
                *e = QueryRejectConditionNotOpen
×
4176
                return nil
×
4177
        case "NOT_COMPLETED_CLEANLY":
×
4178
                *e = QueryRejectConditionNotCompletedCleanly
×
4179
                return nil
×
4180
        default:
×
4181
                val, err := strconv.ParseInt(s, 10, 32)
×
4182
                if err != nil {
×
4183
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "QueryRejectCondition", err)
×
4184
                }
×
4185
                *e = QueryRejectCondition(val)
×
4186
                return nil
×
4187
        }
4188
}
4189

4190
// MarshalText encodes QueryRejectCondition to text.
4191
func (e QueryRejectCondition) MarshalText() ([]byte, error) {
×
4192
        return []byte(e.String()), nil
×
4193
}
×
4194

4195
const (
4196
        // QueryRejectConditionNotOpen is an option for QueryRejectCondition
4197
        QueryRejectConditionNotOpen QueryRejectCondition = iota
4198
        // QueryRejectConditionNotCompletedCleanly is an option for QueryRejectCondition
4199
        QueryRejectConditionNotCompletedCleanly
4200
)
4201

4202
// QueryRejected is an internal type (TBD...)
4203
type QueryRejected struct {
4204
        CloseStatus *WorkflowExecutionCloseStatus `json:"closeStatus,omitempty"`
4205
}
4206

4207
// QueryResultType is an internal type (TBD...)
4208
type QueryResultType int32
4209

4210
// Ptr is a helper function for getting pointer value
4211
func (e QueryResultType) Ptr() *QueryResultType {
12✔
4212
        return &e
12✔
4213
}
12✔
4214

4215
// String returns a readable string representation of QueryResultType.
4216
func (e QueryResultType) String() string {
×
4217
        w := int32(e)
×
4218
        switch w {
×
4219
        case 0:
×
4220
                return "ANSWERED"
×
4221
        case 1:
×
4222
                return "FAILED"
×
4223
        }
4224
        return fmt.Sprintf("QueryResultType(%d)", w)
×
4225
}
4226

4227
// UnmarshalText parses enum value from string representation
4228
func (e *QueryResultType) UnmarshalText(value []byte) error {
×
4229
        switch s := strings.ToUpper(string(value)); s {
×
4230
        case "ANSWERED":
×
4231
                *e = QueryResultTypeAnswered
×
4232
                return nil
×
4233
        case "FAILED":
×
4234
                *e = QueryResultTypeFailed
×
4235
                return nil
×
4236
        default:
×
4237
                val, err := strconv.ParseInt(s, 10, 32)
×
4238
                if err != nil {
×
4239
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "QueryResultType", err)
×
4240
                }
×
4241
                *e = QueryResultType(val)
×
4242
                return nil
×
4243
        }
4244
}
4245

4246
// MarshalText encodes QueryResultType to text.
4247
func (e QueryResultType) MarshalText() ([]byte, error) {
×
4248
        return []byte(e.String()), nil
×
4249
}
×
4250

4251
const (
4252
        // QueryResultTypeAnswered is an option for QueryResultType
4253
        QueryResultTypeAnswered QueryResultType = iota
4254
        // QueryResultTypeFailed is an option for QueryResultType
4255
        QueryResultTypeFailed
4256
)
4257

4258
// QueryTaskCompletedType is an internal type (TBD...)
4259
type QueryTaskCompletedType int32
4260

4261
// Ptr is a helper function for getting pointer value
4262
func (e QueryTaskCompletedType) Ptr() *QueryTaskCompletedType {
36✔
4263
        return &e
36✔
4264
}
36✔
4265

4266
// String returns a readable string representation of QueryTaskCompletedType.
4267
func (e QueryTaskCompletedType) String() string {
×
4268
        w := int32(e)
×
4269
        switch w {
×
4270
        case 0:
×
4271
                return "COMPLETED"
×
4272
        case 1:
×
4273
                return "FAILED"
×
4274
        }
4275
        return fmt.Sprintf("QueryTaskCompletedType(%d)", w)
×
4276
}
4277

4278
// UnmarshalText parses enum value from string representation
4279
func (e *QueryTaskCompletedType) UnmarshalText(value []byte) error {
×
4280
        switch s := strings.ToUpper(string(value)); s {
×
4281
        case "COMPLETED":
×
4282
                *e = QueryTaskCompletedTypeCompleted
×
4283
                return nil
×
4284
        case "FAILED":
×
4285
                *e = QueryTaskCompletedTypeFailed
×
4286
                return nil
×
4287
        default:
×
4288
                val, err := strconv.ParseInt(s, 10, 32)
×
4289
                if err != nil {
×
4290
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "QueryTaskCompletedType", err)
×
4291
                }
×
4292
                *e = QueryTaskCompletedType(val)
×
4293
                return nil
×
4294
        }
4295
}
4296

4297
// MarshalText encodes QueryTaskCompletedType to text.
4298
func (e QueryTaskCompletedType) MarshalText() ([]byte, error) {
×
4299
        return []byte(e.String()), nil
×
4300
}
×
4301

4302
const (
4303
        // QueryTaskCompletedTypeCompleted is an option for QueryTaskCompletedType
4304
        QueryTaskCompletedTypeCompleted QueryTaskCompletedType = iota
4305
        // QueryTaskCompletedTypeFailed is an option for QueryTaskCompletedType
4306
        QueryTaskCompletedTypeFailed
4307
)
4308

4309
// QueryWorkflowRequest is an internal type (TBD...)
4310
type QueryWorkflowRequest struct {
4311
        Domain                string                 `json:"domain,omitempty"`
4312
        Execution             *WorkflowExecution     `json:"execution,omitempty"`
4313
        Query                 *WorkflowQuery         `json:"query,omitempty"`
4314
        QueryRejectCondition  *QueryRejectCondition  `json:"queryRejectCondition,omitempty"`
4315
        QueryConsistencyLevel *QueryConsistencyLevel `json:"queryConsistencyLevel,omitempty"`
4316
}
4317

4318
func (v *QueryWorkflowRequest) SerializeForLogging() (string, error) {
×
4319
        if v == nil {
×
4320
                return "", nil
×
4321
        }
×
4322
        return SerializeRequest(v)
×
4323
}
4324

4325
// GetDomain is an internal getter (TBD...)
4326
func (v *QueryWorkflowRequest) GetDomain() (o string) {
414✔
4327
        if v != nil {
828✔
4328
                return v.Domain
414✔
4329
        }
414✔
4330
        return
×
4331
}
4332

4333
// GetExecution is an internal getter (TBD...)
4334
func (v *QueryWorkflowRequest) GetExecution() (o *WorkflowExecution) {
339✔
4335
        if v != nil && v.Execution != nil {
678✔
4336
                return v.Execution
339✔
4337
        }
339✔
4338
        return
×
4339
}
4340

4341
// GetQuery is an internal getter (TBD...)
4342
func (v *QueryWorkflowRequest) GetQuery() (o *WorkflowQuery) {
57✔
4343
        if v != nil && v.Query != nil {
114✔
4344
                return v.Query
57✔
4345
        }
57✔
4346
        return
×
4347
}
4348

4349
// GetQueryRejectCondition is an internal getter (TBD...)
4350
func (v *QueryWorkflowRequest) GetQueryRejectCondition() (o QueryRejectCondition) {
12✔
4351
        if v != nil && v.QueryRejectCondition != nil {
24✔
4352
                return *v.QueryRejectCondition
12✔
4353
        }
12✔
4354
        return
×
4355
}
4356

4357
// GetQueryConsistencyLevel is an internal getter (TBD...)
4358
func (v *QueryWorkflowRequest) GetQueryConsistencyLevel() (o QueryConsistencyLevel) {
153✔
4359
        if v != nil && v.QueryConsistencyLevel != nil {
192✔
4360
                return *v.QueryConsistencyLevel
39✔
4361
        }
39✔
4362
        return
114✔
4363
}
4364

4365
// QueryWorkflowResponse is an internal type (TBD...)
4366
type QueryWorkflowResponse struct {
4367
        QueryResult   []byte         `json:"queryResult,omitempty"`
4368
        QueryRejected *QueryRejected `json:"queryRejected,omitempty"`
4369
}
4370

4371
// GetQueryResult is an internal getter (TBD...)
4372
func (v *QueryWorkflowResponse) GetQueryResult() (o []byte) {
×
4373
        if v != nil && v.QueryResult != nil {
×
4374
                return v.QueryResult
×
4375
        }
×
4376
        return
×
4377
}
4378

4379
// GetQueryRejected is an internal getter (TBD...)
4380
func (v *QueryWorkflowResponse) GetQueryRejected() (o *QueryRejected) {
×
4381
        if v != nil && v.QueryRejected != nil {
×
4382
                return v.QueryRejected
×
4383
        }
×
4384
        return
×
4385
}
4386

4387
// ReapplyEventsRequest is an internal type (TBD...)
4388
type ReapplyEventsRequest struct {
4389
        DomainName        string             `json:"domainName,omitempty"`
4390
        WorkflowExecution *WorkflowExecution `json:"workflowExecution,omitempty"`
4391
        Events            *DataBlob          `json:"events,omitempty"`
4392
}
4393

4394
func (v *ReapplyEventsRequest) SerializeForLogging() (string, error) {
×
4395
        if v == nil {
×
4396
                return "", nil
×
4397
        }
×
4398
        return SerializeRequest(v)
×
4399
}
4400

4401
// GetDomainName is an internal getter (TBD...)
4402
func (v *ReapplyEventsRequest) GetDomainName() (o string) {
×
4403
        if v != nil {
×
4404
                return v.DomainName
×
4405
        }
×
4406
        return
×
4407
}
4408

4409
// GetWorkflowExecution is an internal getter (TBD...)
4410
func (v *ReapplyEventsRequest) GetWorkflowExecution() (o *WorkflowExecution) {
×
4411
        if v != nil && v.WorkflowExecution != nil {
×
4412
                return v.WorkflowExecution
×
4413
        }
×
4414
        return
×
4415
}
4416

4417
// GetEvents is an internal getter (TBD...)
4418
func (v *ReapplyEventsRequest) GetEvents() (o *DataBlob) {
×
4419
        if v != nil && v.Events != nil {
×
4420
                return v.Events
×
4421
        }
×
4422
        return
×
4423
}
4424

4425
// RecordActivityTaskHeartbeatByIDRequest is an internal type (TBD...)
4426
type RecordActivityTaskHeartbeatByIDRequest struct {
4427
        Domain     string `json:"domain,omitempty"`
4428
        WorkflowID string `json:"workflowID,omitempty"`
4429
        RunID      string `json:"runID,omitempty"`
4430
        ActivityID string `json:"activityID,omitempty"`
4431
        Details    []byte `json:"details,omitempty"`
4432
        Identity   string `json:"identity,omitempty"`
4433
}
4434

4435
// GetDomain is an internal getter (TBD...)
4436
func (v *RecordActivityTaskHeartbeatByIDRequest) GetDomain() (o string) {
×
4437
        if v != nil {
×
4438
                return v.Domain
×
4439
        }
×
4440
        return
×
4441
}
4442

4443
// GetWorkflowID is an internal getter (TBD...)
4444
func (v *RecordActivityTaskHeartbeatByIDRequest) GetWorkflowID() (o string) {
×
4445
        if v != nil {
×
4446
                return v.WorkflowID
×
4447
        }
×
4448
        return
×
4449
}
4450

4451
// GetRunID is an internal getter (TBD...)
4452
func (v *RecordActivityTaskHeartbeatByIDRequest) GetRunID() (o string) {
×
4453
        if v != nil {
×
4454
                return v.RunID
×
4455
        }
×
4456
        return
×
4457
}
4458

4459
// GetActivityID is an internal getter (TBD...)
4460
func (v *RecordActivityTaskHeartbeatByIDRequest) GetActivityID() (o string) {
×
4461
        if v != nil {
×
4462
                return v.ActivityID
×
4463
        }
×
4464
        return
×
4465
}
4466

4467
// RecordActivityTaskHeartbeatRequest is an internal type (TBD...)
4468
type RecordActivityTaskHeartbeatRequest struct {
4469
        TaskToken []byte `json:"taskToken,omitempty"`
4470
        Details   []byte `json:"details,omitempty"`
4471
        Identity  string `json:"identity,omitempty"`
4472
}
4473

4474
func (v *RecordActivityTaskHeartbeatRequest) SerializeForLogging() (string, error) {
×
4475
        if v == nil {
×
4476
                return "", nil
×
4477
        }
×
4478
        return SerializeRequest(v)
×
4479
}
4480

4481
// RecordActivityTaskHeartbeatResponse is an internal type (TBD...)
4482
type RecordActivityTaskHeartbeatResponse struct {
4483
        CancelRequested bool `json:"cancelRequested,omitempty"`
4484
}
4485

4486
// RecordMarkerDecisionAttributes is an internal type (TBD...)
4487
type RecordMarkerDecisionAttributes struct {
4488
        MarkerName string  `json:"markerName,omitempty"`
4489
        Details    []byte  `json:"details,omitempty"`
4490
        Header     *Header `json:"header,omitempty"`
4491
}
4492

4493
// GetMarkerName is an internal getter (TBD...)
4494
func (v *RecordMarkerDecisionAttributes) GetMarkerName() (o string) {
60✔
4495
        if v != nil {
120✔
4496
                return v.MarkerName
60✔
4497
        }
60✔
4498
        return
×
4499
}
4500

4501
// RefreshWorkflowTasksRequest is an internal type (TBD...)
4502
type RefreshWorkflowTasksRequest struct {
4503
        Domain    string             `json:"domain,omitempty"`
4504
        Execution *WorkflowExecution `json:"execution,omitempty"`
4505
}
4506

4507
func (v *RefreshWorkflowTasksRequest) SerializeForLogging() (string, error) {
×
4508
        if v == nil {
×
4509
                return "", nil
×
4510
        }
×
4511
        return SerializeRequest(v)
×
4512
}
4513

4514
// GetDomain is an internal getter (TBD...)
4515
func (v *RefreshWorkflowTasksRequest) GetDomain() (o string) {
×
4516
        if v != nil {
×
4517
                return v.Domain
×
4518
        }
×
4519
        return
×
4520
}
4521

4522
// GetExecution is an internal getter (TBD...)
4523
func (v *RefreshWorkflowTasksRequest) GetExecution() (o *WorkflowExecution) {
×
4524
        if v != nil && v.Execution != nil {
×
4525
                return v.Execution
×
4526
        }
×
4527
        return
×
4528
}
4529

4530
// RegisterDomainRequest is an internal type (TBD...)
4531
type RegisterDomainRequest struct {
4532
        Name                                   string                             `json:"name,omitempty"`
4533
        Description                            string                             `json:"description,omitempty"`
4534
        OwnerEmail                             string                             `json:"ownerEmail,omitempty"`
4535
        WorkflowExecutionRetentionPeriodInDays int32                              `json:"workflowExecutionRetentionPeriodInDays,omitempty"`
4536
        EmitMetric                             *bool                              `json:"emitMetric,omitempty"`
4537
        Clusters                               []*ClusterReplicationConfiguration `json:"clusters,omitempty"`
4538
        ActiveClusterName                      string                             `json:"activeClusterName,omitempty"`
4539
        Data                                   map[string]string                  `json:"data,omitempty"`
4540
        SecurityToken                          string                             `json:"securityToken,omitempty"`
4541
        IsGlobalDomain                         bool                               `json:"isGlobalDomain,omitempty"`
4542
        HistoryArchivalStatus                  *ArchivalStatus                    `json:"historyArchivalStatus,omitempty"`
4543
        HistoryArchivalURI                     string                             `json:"historyArchivalURI,omitempty"`
4544
        VisibilityArchivalStatus               *ArchivalStatus                    `json:"visibilityArchivalStatus,omitempty"`
4545
        VisibilityArchivalURI                  string                             `json:"visibilityArchivalURI,omitempty"`
4546
}
4547

4548
func (v *RegisterDomainRequest) SerializeForLogging() (string, error) {
×
4549
        if v == nil {
×
4550
                return "", nil
×
4551
        }
×
4552
        return SerializeRequest(v)
×
4553
}
4554

4555
// GetName is an internal getter (TBD...)
4556
func (v *RegisterDomainRequest) GetName() (o string) {
219✔
4557
        if v != nil {
438✔
4558
                return v.Name
219✔
4559
        }
219✔
4560
        return
×
4561
}
4562

4563
// GetDescription is an internal getter (TBD...)
4564
func (v *RegisterDomainRequest) GetDescription() (o string) {
39✔
4565
        if v != nil {
78✔
4566
                return v.Description
39✔
4567
        }
39✔
4568
        return
×
4569
}
4570

4571
// GetOwnerEmail is an internal getter (TBD...)
4572
func (v *RegisterDomainRequest) GetOwnerEmail() (o string) {
39✔
4573
        if v != nil {
78✔
4574
                return v.OwnerEmail
39✔
4575
        }
39✔
4576
        return
×
4577
}
4578

4579
// GetWorkflowExecutionRetentionPeriodInDays is an internal getter (TBD...)
4580
func (v *RegisterDomainRequest) GetWorkflowExecutionRetentionPeriodInDays() (o int32) {
75✔
4581
        if v != nil {
150✔
4582
                return v.WorkflowExecutionRetentionPeriodInDays
75✔
4583
        }
75✔
4584
        return
×
4585
}
4586

4587
// GetEmitMetric is an internal getter (TBD...)
4588
func (v *RegisterDomainRequest) GetEmitMetric() (o bool) {
39✔
4589
        if v != nil && v.EmitMetric != nil {
78✔
4590
                return *v.EmitMetric
39✔
4591
        }
39✔
4592
        o = true
×
4593
        return
×
4594
}
4595

4596
// GetActiveClusterName is an internal getter (TBD...)
4597
func (v *RegisterDomainRequest) GetActiveClusterName() (o string) {
3✔
4598
        if v != nil {
6✔
4599
                return v.ActiveClusterName
3✔
4600
        }
3✔
4601
        return
×
4602
}
4603

4604
// GetData is an internal getter (TBD...)
4605
func (v *RegisterDomainRequest) GetData() (o map[string]string) {
39✔
4606
        if v != nil && v.Data != nil {
39✔
4607
                return v.Data
×
4608
        }
×
4609
        return
39✔
4610
}
4611

4612
// GetIsGlobalDomain is an internal getter (TBD...)
4613
func (v *RegisterDomainRequest) GetIsGlobalDomain() (o bool) {
111✔
4614
        if v != nil {
222✔
4615
                return v.IsGlobalDomain
111✔
4616
        }
111✔
4617
        return
×
4618
}
4619

4620
// GetHistoryArchivalURI is an internal getter (TBD...)
4621
func (v *RegisterDomainRequest) GetHistoryArchivalURI() (o string) {
9✔
4622
        if v != nil {
18✔
4623
                return v.HistoryArchivalURI
9✔
4624
        }
9✔
4625
        return
×
4626
}
4627

4628
// GetVisibilityArchivalURI is an internal getter (TBD...)
4629
func (v *RegisterDomainRequest) GetVisibilityArchivalURI() (o string) {
9✔
4630
        if v != nil {
18✔
4631
                return v.VisibilityArchivalURI
9✔
4632
        }
9✔
4633
        return
×
4634
}
4635

4636
// RemoteSyncMatchedError is an internal type (TBD...)
4637
type RemoteSyncMatchedError struct {
4638
        Message string `json:"message,required"`
4639
}
4640

4641
// RemoveTaskRequest is an internal type (TBD...)
4642
type RemoveTaskRequest struct {
4643
        ShardID             int32  `json:"shardID,omitempty"`
4644
        Type                *int32 `json:"type,omitempty"`
4645
        TaskID              int64  `json:"taskID,omitempty"`
4646
        VisibilityTimestamp *int64 `json:"visibilityTimestamp,omitempty"`
4647
        ClusterName         string `json:"clusterName,omitempty"`
4648
}
4649

4650
func (v *RemoveTaskRequest) SerializeForLogging() (string, error) {
×
4651
        if v == nil {
×
4652
                return "", nil
×
4653
        }
×
4654
        return SerializeRequest(v)
×
4655
}
4656

4657
// GetShardID is an internal getter (TBD...)
4658
func (v *RemoveTaskRequest) GetShardID() (o int32) {
×
4659
        if v != nil {
×
4660
                return v.ShardID
×
4661
        }
×
4662
        return
×
4663
}
4664

4665
// GetType is an internal getter (TBD...)
4666
func (v *RemoveTaskRequest) GetType() (o int32) {
×
4667
        if v != nil && v.Type != nil {
×
4668
                return *v.Type
×
4669
        }
×
4670
        return
×
4671
}
4672

4673
// GetTaskID is an internal getter (TBD...)
4674
func (v *RemoveTaskRequest) GetTaskID() (o int64) {
×
4675
        if v != nil {
×
4676
                return v.TaskID
×
4677
        }
×
4678
        return
×
4679
}
4680

4681
// GetVisibilityTimestamp is an internal getter (TBD...)
4682
func (v *RemoveTaskRequest) GetVisibilityTimestamp() (o int64) {
×
4683
        if v != nil && v.VisibilityTimestamp != nil {
×
4684
                return *v.VisibilityTimestamp
×
4685
        }
×
4686
        return
×
4687
}
4688

4689
// GetClusterName is an internal getter (TBD...)
4690
func (v *RemoveTaskRequest) GetClusterName() (o string) {
×
4691
        if v != nil {
×
4692
                return v.ClusterName
×
4693
        }
×
4694
        return
×
4695
}
4696

4697
// RequestCancelActivityTaskDecisionAttributes is an internal type (TBD...)
4698
type RequestCancelActivityTaskDecisionAttributes struct {
4699
        ActivityID string `json:"activityId,omitempty"`
4700
}
4701

4702
// GetActivityID is an internal getter (TBD...)
4703
func (v *RequestCancelActivityTaskDecisionAttributes) GetActivityID() (o string) {
18✔
4704
        if v != nil {
36✔
4705
                return v.ActivityID
18✔
4706
        }
18✔
4707
        return
×
4708
}
4709

4710
// RequestCancelActivityTaskFailedEventAttributes is an internal type (TBD...)
4711
type RequestCancelActivityTaskFailedEventAttributes struct {
4712
        ActivityID                   string `json:"activityId,omitempty"`
4713
        Cause                        string `json:"cause,omitempty"`
4714
        DecisionTaskCompletedEventID int64  `json:"decisionTaskCompletedEventId,omitempty"`
4715
}
4716

4717
// RequestCancelExternalWorkflowExecutionDecisionAttributes is an internal type (TBD...)
4718
type RequestCancelExternalWorkflowExecutionDecisionAttributes struct {
4719
        Domain            string `json:"domain,omitempty"`
4720
        WorkflowID        string `json:"workflowId,omitempty"`
4721
        RunID             string `json:"runId,omitempty"`
4722
        Control           []byte `json:"control,omitempty"`
4723
        ChildWorkflowOnly bool   `json:"childWorkflowOnly,omitempty"`
4724
}
4725

4726
// GetDomain is an internal getter (TBD...)
4727
func (v *RequestCancelExternalWorkflowExecutionDecisionAttributes) GetDomain() (o string) {
42✔
4728
        if v != nil {
84✔
4729
                return v.Domain
42✔
4730
        }
42✔
4731
        return
×
4732
}
4733

4734
// GetWorkflowID is an internal getter (TBD...)
4735
func (v *RequestCancelExternalWorkflowExecutionDecisionAttributes) GetWorkflowID() (o string) {
6✔
4736
        if v != nil {
12✔
4737
                return v.WorkflowID
6✔
4738
        }
6✔
4739
        return
×
4740
}
4741

4742
// GetRunID is an internal getter (TBD...)
4743
func (v *RequestCancelExternalWorkflowExecutionDecisionAttributes) GetRunID() (o string) {
6✔
4744
        if v != nil {
12✔
4745
                return v.RunID
6✔
4746
        }
6✔
4747
        return
×
4748
}
4749

4750
// RequestCancelExternalWorkflowExecutionFailedEventAttributes is an internal type (TBD...)
4751
type RequestCancelExternalWorkflowExecutionFailedEventAttributes struct {
4752
        Cause                        *CancelExternalWorkflowExecutionFailedCause `json:"cause,omitempty"`
4753
        DecisionTaskCompletedEventID int64                                       `json:"decisionTaskCompletedEventId,omitempty"`
4754
        Domain                       string                                      `json:"domain,omitempty"`
4755
        WorkflowExecution            *WorkflowExecution                          `json:"workflowExecution,omitempty"`
4756
        InitiatedEventID             int64                                       `json:"initiatedEventId,omitempty"`
4757
        Control                      []byte                                      `json:"control,omitempty"`
4758
}
4759

4760
// GetDecisionTaskCompletedEventID is an internal getter (TBD...)
4761
func (v *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetDecisionTaskCompletedEventID() (o int64) {
×
4762
        if v != nil {
×
4763
                return v.DecisionTaskCompletedEventID
×
4764
        }
×
4765
        return
×
4766
}
4767

4768
// GetDomain is an internal getter (TBD...)
4769
func (v *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetDomain() (o string) {
×
4770
        if v != nil {
×
4771
                return v.Domain
×
4772
        }
×
4773
        return
×
4774
}
4775

4776
// GetInitiatedEventID is an internal getter (TBD...)
4777
func (v *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetInitiatedEventID() (o int64) {
6✔
4778
        if v != nil {
12✔
4779
                return v.InitiatedEventID
6✔
4780
        }
6✔
4781
        return
×
4782
}
4783

4784
// RequestCancelExternalWorkflowExecutionInitiatedEventAttributes is an internal type (TBD...)
4785
type RequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct {
4786
        DecisionTaskCompletedEventID int64              `json:"decisionTaskCompletedEventId,omitempty"`
4787
        Domain                       string             `json:"domain,omitempty"`
4788
        WorkflowExecution            *WorkflowExecution `json:"workflowExecution,omitempty"`
4789
        Control                      []byte             `json:"control,omitempty"`
4790
        ChildWorkflowOnly            bool               `json:"childWorkflowOnly,omitempty"`
4791
}
4792

4793
// GetDomain is an internal getter (TBD...)
4794
func (v *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetDomain() (o string) {
9✔
4795
        if v != nil {
18✔
4796
                return v.Domain
9✔
4797
        }
9✔
4798
        return
×
4799
}
4800

4801
// GetWorkflowExecution is an internal getter (TBD...)
4802
func (v *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowExecution() (o *WorkflowExecution) {
15✔
4803
        if v != nil && v.WorkflowExecution != nil {
30✔
4804
                return v.WorkflowExecution
15✔
4805
        }
15✔
4806
        return
×
4807
}
4808

4809
// GetChildWorkflowOnly is an internal getter (TBD...)
4810
func (v *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetChildWorkflowOnly() (o bool) {
9✔
4811
        if v != nil {
18✔
4812
                return v.ChildWorkflowOnly
9✔
4813
        }
9✔
4814
        return
×
4815
}
4816

4817
// RequestCancelWorkflowExecutionRequest is an internal type (TBD...)
4818
type RequestCancelWorkflowExecutionRequest struct {
4819
        Domain              string             `json:"domain,omitempty"`
4820
        WorkflowExecution   *WorkflowExecution `json:"workflowExecution,omitempty"`
4821
        Identity            string             `json:"identity,omitempty"`
4822
        RequestID           string             `json:"requestId,omitempty"`
4823
        Cause               string             `json:"cause,omitempty"`
4824
        FirstExecutionRunID string             `json:"first_execution_run_id,omitempty"`
4825
}
4826

4827
func (v *RequestCancelWorkflowExecutionRequest) SerializeForLogging() (string, error) {
×
4828
        if v == nil {
×
4829
                return "", nil
×
4830
        }
×
4831
        return SerializeRequest(v)
×
4832
}
4833

4834
// GetDomain is an internal getter (TBD...)
4835
func (v *RequestCancelWorkflowExecutionRequest) GetDomain() (o string) {
66✔
4836
        if v != nil {
132✔
4837
                return v.Domain
66✔
4838
        }
66✔
4839
        return
×
4840
}
4841

4842
// GetWorkflowExecution is an internal getter (TBD...)
4843
func (v *RequestCancelWorkflowExecutionRequest) GetWorkflowExecution() (o *WorkflowExecution) {
6✔
4844
        if v != nil && v.WorkflowExecution != nil {
12✔
4845
                return v.WorkflowExecution
6✔
4846
        }
6✔
4847
        return
×
4848
}
4849

4850
// GetRequestID is an internal getter (TBD...)
4851
func (v *RequestCancelWorkflowExecutionRequest) GetRequestID() (o string) {
6✔
4852
        if v != nil {
12✔
4853
                return v.RequestID
6✔
4854
        }
6✔
4855
        return
×
4856
}
4857

4858
// GetFirstExecutionRunID is an internal getter (TBD...)
4859
func (v *RequestCancelWorkflowExecutionRequest) GetFirstExecutionRunID() (o string) {
21✔
4860
        if v != nil {
42✔
4861
                return v.FirstExecutionRunID
21✔
4862
        }
21✔
4863
        return
×
4864
}
4865

4866
// ResetPointInfo is an internal type (TBD...)
4867
type ResetPointInfo struct {
4868
        BinaryChecksum           string `json:"binaryChecksum,omitempty"`
4869
        RunID                    string `json:"runId,omitempty"`
4870
        FirstDecisionCompletedID int64  `json:"firstDecisionCompletedId,omitempty"`
4871
        CreatedTimeNano          *int64 `json:"createdTimeNano,omitempty"`
4872
        ExpiringTimeNano         *int64 `json:"expiringTimeNano,omitempty"`
4873
        Resettable               bool   `json:"resettable,omitempty"`
4874
}
4875

4876
// GetBinaryChecksum is an internal getter (TBD...)
4877
func (v *ResetPointInfo) GetBinaryChecksum() (o string) {
204✔
4878
        if v != nil {
408✔
4879
                return v.BinaryChecksum
204✔
4880
        }
204✔
4881
        return
×
4882
}
4883

4884
// GetRunID is an internal getter (TBD...)
4885
func (v *ResetPointInfo) GetRunID() (o string) {
9✔
4886
        if v != nil {
18✔
4887
                return v.RunID
9✔
4888
        }
9✔
4889
        return
×
4890
}
4891

4892
// GetFirstDecisionCompletedID is an internal getter (TBD...)
4893
func (v *ResetPointInfo) GetFirstDecisionCompletedID() (o int64) {
×
4894
        if v != nil {
×
4895
                return v.FirstDecisionCompletedID
×
4896
        }
×
4897
        return
×
4898
}
4899

4900
// GetCreatedTimeNano is an internal getter (TBD...)
4901
func (v *ResetPointInfo) GetCreatedTimeNano() (o int64) {
×
4902
        if v != nil && v.CreatedTimeNano != nil {
×
4903
                return *v.CreatedTimeNano
×
4904
        }
×
4905
        return
×
4906
}
4907

4908
// GetExpiringTimeNano is an internal getter (TBD...)
4909
func (v *ResetPointInfo) GetExpiringTimeNano() (o int64) {
×
4910
        if v != nil && v.ExpiringTimeNano != nil {
×
4911
                return *v.ExpiringTimeNano
×
4912
        }
×
4913
        return
×
4914
}
4915

4916
// GetResettable is an internal getter (TBD...)
4917
func (v *ResetPointInfo) GetResettable() (o bool) {
×
4918
        if v != nil {
×
4919
                return v.Resettable
×
4920
        }
×
4921
        return
×
4922
}
4923

4924
// ResetPoints is an internal type (TBD...)
4925
type ResetPoints struct {
4926
        Points []*ResetPointInfo `json:"points,omitempty"`
4927
}
4928

4929
// ResetQueueRequest is an internal type (TBD...)
4930
type ResetQueueRequest struct {
4931
        ShardID     int32  `json:"shardID,omitempty"`
4932
        ClusterName string `json:"clusterName,omitempty"`
4933
        Type        *int32 `json:"type,omitempty"`
4934
}
4935

4936
func (v *ResetQueueRequest) SerializeForLogging() (string, error) {
×
4937
        if v == nil {
×
4938
                return "", nil
×
4939
        }
×
4940
        return SerializeRequest(v)
×
4941
}
4942

4943
// GetShardID is an internal getter (TBD...)
4944
func (v *ResetQueueRequest) GetShardID() (o int32) {
×
4945
        if v != nil {
×
4946
                return v.ShardID
×
4947
        }
×
4948
        return
×
4949
}
4950

4951
// GetClusterName is an internal getter (TBD...)
4952
func (v *ResetQueueRequest) GetClusterName() (o string) {
×
4953
        if v != nil {
×
4954
                return v.ClusterName
×
4955
        }
×
4956
        return
×
4957
}
4958

4959
// GetType is an internal getter (TBD...)
4960
func (v *ResetQueueRequest) GetType() (o int32) {
×
4961
        if v != nil && v.Type != nil {
×
4962
                return *v.Type
×
4963
        }
×
4964
        return
×
4965
}
4966

4967
// ResetStickyTaskListRequest is an internal type (TBD...)
4968
type ResetStickyTaskListRequest struct {
4969
        Domain    string             `json:"domain,omitempty"`
4970
        Execution *WorkflowExecution `json:"execution,omitempty"`
4971
}
4972

4973
func (v *ResetStickyTaskListRequest) SerializeForLogging() (string, error) {
×
4974
        if v == nil {
×
4975
                return "", nil
×
4976
        }
×
4977
        return SerializeRequest(v)
×
4978
}
4979

4980
// GetDomain is an internal getter (TBD...)
4981
func (v *ResetStickyTaskListRequest) GetDomain() (o string) {
21✔
4982
        if v != nil {
42✔
4983
                return v.Domain
21✔
4984
        }
21✔
4985
        return
×
4986
}
4987

4988
// GetExecution is an internal getter (TBD...)
4989
func (v *ResetStickyTaskListRequest) GetExecution() (o *WorkflowExecution) {
3✔
4990
        if v != nil && v.Execution != nil {
6✔
4991
                return v.Execution
3✔
4992
        }
3✔
4993
        return
×
4994
}
4995

4996
// ResetStickyTaskListResponse is an internal type (TBD...)
4997
type ResetStickyTaskListResponse struct {
4998
}
4999

5000
// ResetWorkflowExecutionRequest is an internal type (TBD...)
5001
type ResetWorkflowExecutionRequest struct {
5002
        Domain                string             `json:"domain,omitempty"`
5003
        WorkflowExecution     *WorkflowExecution `json:"workflowExecution,omitempty"`
5004
        Reason                string             `json:"reason,omitempty"`
5005
        DecisionFinishEventID int64              `json:"decisionFinishEventId,omitempty"`
5006
        RequestID             string             `json:"requestId,omitempty"`
5007
        SkipSignalReapply     bool               `json:"skipSignalReapply,omitempty"`
5008
}
5009

5010
func (v *ResetWorkflowExecutionRequest) SerializeForLogging() (string, error) {
×
5011
        if v == nil {
×
5012
                return "", nil
×
5013
        }
×
5014
        return SerializeRequest(v)
×
5015
}
5016

5017
// GetDomain is an internal getter (TBD...)
5018
func (v *ResetWorkflowExecutionRequest) GetDomain() (o string) {
105✔
5019
        if v != nil {
210✔
5020
                return v.Domain
105✔
5021
        }
105✔
5022
        return
×
5023
}
5024

5025
// GetWorkflowExecution is an internal getter (TBD...)
5026
func (v *ResetWorkflowExecutionRequest) GetWorkflowExecution() (o *WorkflowExecution) {
15✔
5027
        if v != nil && v.WorkflowExecution != nil {
30✔
5028
                return v.WorkflowExecution
15✔
5029
        }
15✔
5030
        return
×
5031
}
5032

5033
// GetReason is an internal getter (TBD...)
5034
func (v *ResetWorkflowExecutionRequest) GetReason() (o string) {
15✔
5035
        if v != nil {
30✔
5036
                return v.Reason
15✔
5037
        }
15✔
5038
        return
×
5039
}
5040

5041
// GetDecisionFinishEventID is an internal getter (TBD...)
5042
func (v *ResetWorkflowExecutionRequest) GetDecisionFinishEventID() (o int64) {
45✔
5043
        if v != nil {
90✔
5044
                return v.DecisionFinishEventID
45✔
5045
        }
45✔
5046
        return
×
5047
}
5048

5049
// GetRequestID is an internal getter (TBD...)
5050
func (v *ResetWorkflowExecutionRequest) GetRequestID() (o string) {
30✔
5051
        if v != nil {
60✔
5052
                return v.RequestID
30✔
5053
        }
30✔
5054
        return
×
5055
}
5056

5057
// GetSkipSignalReapply is an internal getter (TBD...)
5058
func (v *ResetWorkflowExecutionRequest) GetSkipSignalReapply() (o bool) {
15✔
5059
        if v != nil {
30✔
5060
                return v.SkipSignalReapply
15✔
5061
        }
15✔
5062
        return
×
5063
}
5064

5065
// ResetWorkflowExecutionResponse is an internal type (TBD...)
5066
type ResetWorkflowExecutionResponse struct {
5067
        RunID string `json:"runId,omitempty"`
5068
}
5069

5070
// GetRunID is an internal getter (TBD...)
5071
func (v *ResetWorkflowExecutionResponse) GetRunID() (o string) {
9✔
5072
        if v != nil {
18✔
5073
                return v.RunID
9✔
5074
        }
9✔
5075
        return
×
5076
}
5077

5078
// RespondActivityTaskCanceledByIDRequest is an internal type (TBD...)
5079
type RespondActivityTaskCanceledByIDRequest struct {
5080
        Domain     string `json:"domain,omitempty"`
5081
        WorkflowID string `json:"workflowID,omitempty"`
5082
        RunID      string `json:"runID,omitempty"`
5083
        ActivityID string `json:"activityID,omitempty"`
5084
        Details    []byte `json:"details,omitempty"`
5085
        Identity   string `json:"identity,omitempty"`
5086
}
5087

5088
// GetDomain is an internal getter (TBD...)
5089
func (v *RespondActivityTaskCanceledByIDRequest) GetDomain() (o string) {
×
5090
        if v != nil {
×
5091
                return v.Domain
×
5092
        }
×
5093
        return
×
5094
}
5095

5096
// GetWorkflowID is an internal getter (TBD...)
5097
func (v *RespondActivityTaskCanceledByIDRequest) GetWorkflowID() (o string) {
×
5098
        if v != nil {
×
5099
                return v.WorkflowID
×
5100
        }
×
5101
        return
×
5102
}
5103

5104
// GetRunID is an internal getter (TBD...)
5105
func (v *RespondActivityTaskCanceledByIDRequest) GetRunID() (o string) {
×
5106
        if v != nil {
×
5107
                return v.RunID
×
5108
        }
×
5109
        return
×
5110
}
5111

5112
// GetActivityID is an internal getter (TBD...)
5113
func (v *RespondActivityTaskCanceledByIDRequest) GetActivityID() (o string) {
×
5114
        if v != nil {
×
5115
                return v.ActivityID
×
5116
        }
×
5117
        return
×
5118
}
5119

5120
// GetIdentity is an internal getter (TBD...)
5121
func (v *RespondActivityTaskCanceledByIDRequest) GetIdentity() (o string) {
×
5122
        if v != nil {
×
5123
                return v.Identity
×
5124
        }
×
5125
        return
×
5126
}
5127

5128
// RespondActivityTaskCanceledRequest is an internal type (TBD...)
5129
type RespondActivityTaskCanceledRequest struct {
5130
        TaskToken []byte `json:"taskToken,omitempty"`
5131
        Details   []byte `json:"details,omitempty"`
5132
        Identity  string `json:"identity,omitempty"`
5133
}
5134

5135
// GetIdentity is an internal getter (TBD...)
5136
func (v *RespondActivityTaskCanceledRequest) GetIdentity() (o string) {
×
5137
        if v != nil {
×
5138
                return v.Identity
×
5139
        }
×
5140
        return
×
5141
}
5142

5143
// RespondActivityTaskCompletedByIDRequest is an internal type (TBD...)
5144
type RespondActivityTaskCompletedByIDRequest struct {
5145
        Domain     string `json:"domain,omitempty"`
5146
        WorkflowID string `json:"workflowID,omitempty"`
5147
        RunID      string `json:"runID,omitempty"`
5148
        ActivityID string `json:"activityID,omitempty"`
5149
        Result     []byte `json:"result,omitempty"`
5150
        Identity   string `json:"identity,omitempty"`
5151
}
5152

5153
// GetDomain is an internal getter (TBD...)
5154
func (v *RespondActivityTaskCompletedByIDRequest) GetDomain() (o string) {
300✔
5155
        if v != nil {
600✔
5156
                return v.Domain
300✔
5157
        }
300✔
5158
        return
×
5159
}
5160

5161
// GetWorkflowID is an internal getter (TBD...)
5162
func (v *RespondActivityTaskCompletedByIDRequest) GetWorkflowID() (o string) {
150✔
5163
        if v != nil {
300✔
5164
                return v.WorkflowID
150✔
5165
        }
150✔
5166
        return
×
5167
}
5168

5169
// GetRunID is an internal getter (TBD...)
5170
func (v *RespondActivityTaskCompletedByIDRequest) GetRunID() (o string) {
150✔
5171
        if v != nil {
300✔
5172
                return v.RunID
150✔
5173
        }
150✔
5174
        return
×
5175
}
5176

5177
// GetActivityID is an internal getter (TBD...)
5178
func (v *RespondActivityTaskCompletedByIDRequest) GetActivityID() (o string) {
75✔
5179
        if v != nil {
150✔
5180
                return v.ActivityID
75✔
5181
        }
75✔
5182
        return
×
5183
}
5184

5185
// GetIdentity is an internal getter (TBD...)
5186
func (v *RespondActivityTaskCompletedByIDRequest) GetIdentity() (o string) {
75✔
5187
        if v != nil {
150✔
5188
                return v.Identity
75✔
5189
        }
75✔
5190
        return
×
5191
}
5192

5193
// RespondActivityTaskCompletedRequest is an internal type (TBD...)
5194
type RespondActivityTaskCompletedRequest struct {
5195
        TaskToken []byte `json:"taskToken,omitempty"`
5196
        Result    []byte `json:"result,omitempty"`
5197
        Identity  string `json:"identity,omitempty"`
5198
}
5199

5200
// GetIdentity is an internal getter (TBD...)
5201
func (v *RespondActivityTaskCompletedRequest) GetIdentity() (o string) {
246✔
5202
        if v != nil {
492✔
5203
                return v.Identity
246✔
5204
        }
246✔
5205
        return
×
5206
}
5207

5208
// RespondActivityTaskFailedByIDRequest is an internal type (TBD...)
5209
type RespondActivityTaskFailedByIDRequest struct {
5210
        Domain     string  `json:"domain,omitempty"`
5211
        WorkflowID string  `json:"workflowID,omitempty"`
5212
        RunID      string  `json:"runID,omitempty"`
5213
        ActivityID string  `json:"activityID,omitempty"`
5214
        Reason     *string `json:"reason,omitempty"`
5215
        Details    []byte  `json:"details,omitempty"`
5216
        Identity   string  `json:"identity,omitempty"`
5217
}
5218

5219
// GetDomain is an internal getter (TBD...)
5220
func (v *RespondActivityTaskFailedByIDRequest) GetDomain() (o string) {
×
5221
        if v != nil {
×
5222
                return v.Domain
×
5223
        }
×
5224
        return
×
5225
}
5226

5227
// GetWorkflowID is an internal getter (TBD...)
5228
func (v *RespondActivityTaskFailedByIDRequest) GetWorkflowID() (o string) {
×
5229
        if v != nil {
×
5230
                return v.WorkflowID
×
5231
        }
×
5232
        return
×
5233
}
5234

5235
// GetRunID is an internal getter (TBD...)
5236
func (v *RespondActivityTaskFailedByIDRequest) GetRunID() (o string) {
×
5237
        if v != nil {
×
5238
                return v.RunID
×
5239
        }
×
5240
        return
×
5241
}
5242

5243
// GetActivityID is an internal getter (TBD...)
5244
func (v *RespondActivityTaskFailedByIDRequest) GetActivityID() (o string) {
×
5245
        if v != nil {
×
5246
                return v.ActivityID
×
5247
        }
×
5248
        return
×
5249
}
5250

5251
// GetIdentity is an internal getter (TBD...)
5252
func (v *RespondActivityTaskFailedByIDRequest) GetIdentity() (o string) {
×
5253
        if v != nil {
×
5254
                return v.Identity
×
5255
        }
×
5256
        return
×
5257
}
5258

5259
// RespondActivityTaskFailedRequest is an internal type (TBD...)
5260
type RespondActivityTaskFailedRequest struct {
5261
        TaskToken []byte  `json:"taskToken,omitempty"`
5262
        Reason    *string `json:"reason,omitempty"`
5263
        Details   []byte  `json:"details,omitempty"`
5264
        Identity  string  `json:"identity,omitempty"`
5265
}
5266

5267
// GetReason is an internal getter (TBD...)
5268
func (v *RespondActivityTaskFailedRequest) GetReason() (o string) {
12✔
5269
        if v != nil && v.Reason != nil {
24✔
5270
                return *v.Reason
12✔
5271
        }
12✔
5272
        return
×
5273
}
5274

5275
// GetDetails is an internal getter (TBD...)
5276
func (v *RespondActivityTaskFailedRequest) GetDetails() (o []byte) {
12✔
5277
        if v != nil && v.Details != nil {
24✔
5278
                return v.Details
12✔
5279
        }
12✔
5280
        return
×
5281
}
5282

5283
// GetIdentity is an internal getter (TBD...)
5284
func (v *RespondActivityTaskFailedRequest) GetIdentity() (o string) {
12✔
5285
        if v != nil {
24✔
5286
                return v.Identity
12✔
5287
        }
12✔
5288
        return
×
5289
}
5290

5291
// RespondDecisionTaskCompletedRequest is an internal type (TBD...)
5292
type RespondDecisionTaskCompletedRequest struct {
5293
        TaskToken                  []byte                          `json:"taskToken,omitempty"`
5294
        Decisions                  []*Decision                     `json:"decisions,omitempty"`
5295
        ExecutionContext           []byte                          `json:"executionContext,omitempty"`
5296
        Identity                   string                          `json:"identity,omitempty"`
5297
        StickyAttributes           *StickyExecutionAttributes      `json:"stickyAttributes,omitempty"`
5298
        ReturnNewDecisionTask      bool                            `json:"returnNewDecisionTask,omitempty"`
5299
        ForceCreateNewDecisionTask bool                            `json:"forceCreateNewDecisionTask,omitempty"`
5300
        BinaryChecksum             string                          `json:"binaryChecksum,omitempty"`
5301
        QueryResults               map[string]*WorkflowQueryResult `json:"queryResults,omitempty"`
5302
}
5303

5304
// GetIdentity is an internal getter (TBD...)
5305
func (v *RespondDecisionTaskCompletedRequest) GetIdentity() (o string) {
1,964✔
5306
        if v != nil {
3,928✔
5307
                return v.Identity
1,964✔
5308
        }
1,964✔
5309
        return
×
5310
}
5311

5312
// GetReturnNewDecisionTask is an internal getter (TBD...)
5313
func (v *RespondDecisionTaskCompletedRequest) GetReturnNewDecisionTask() (o bool) {
1,682✔
5314
        if v != nil {
3,364✔
5315
                return v.ReturnNewDecisionTask
1,682✔
5316
        }
1,682✔
5317
        return
×
5318
}
5319

5320
// GetForceCreateNewDecisionTask is an internal getter (TBD...)
5321
func (v *RespondDecisionTaskCompletedRequest) GetForceCreateNewDecisionTask() (o bool) {
1,508✔
5322
        if v != nil {
3,016✔
5323
                return v.ForceCreateNewDecisionTask
1,508✔
5324
        }
1,508✔
5325
        return
×
5326
}
5327

5328
// GetBinaryChecksum is an internal getter (TBD...)
5329
func (v *RespondDecisionTaskCompletedRequest) GetBinaryChecksum() (o string) {
934✔
5330
        if v != nil {
1,868✔
5331
                return v.BinaryChecksum
934✔
5332
        }
934✔
5333
        return
×
5334
}
5335

5336
// GetQueryResults is an internal getter (TBD...)
5337
func (v *RespondDecisionTaskCompletedRequest) GetQueryResults() (o map[string]*WorkflowQueryResult) {
928✔
5338
        if v != nil && v.QueryResults != nil {
934✔
5339
                return v.QueryResults
6✔
5340
        }
6✔
5341
        return
922✔
5342
}
5343

5344
// RespondDecisionTaskCompletedResponse is an internal type (TBD...)
5345
type RespondDecisionTaskCompletedResponse struct {
5346
        DecisionTask                *PollForDecisionTaskResponse          `json:"decisionTask,omitempty"`
5347
        ActivitiesToDispatchLocally map[string]*ActivityLocalDispatchInfo `json:"activitiesToDispatchLocally,omitempty"`
5348
}
5349

5350
// GetDecisionTask is an internal getter (TBD...)
5351
func (v *RespondDecisionTaskCompletedResponse) GetDecisionTask() (o *PollForDecisionTaskResponse) {
6✔
5352
        if v != nil && v.DecisionTask != nil {
12✔
5353
                return v.DecisionTask
6✔
5354
        }
6✔
5355
        return
×
5356
}
5357

5358
// RespondDecisionTaskFailedRequest is an internal type (TBD...)
5359
type RespondDecisionTaskFailedRequest struct {
5360
        TaskToken      []byte                   `json:"taskToken,omitempty"`
5361
        Cause          *DecisionTaskFailedCause `json:"cause,omitempty"`
5362
        Details        []byte                   `json:"details,omitempty"`
5363
        Identity       string                   `json:"identity,omitempty"`
5364
        BinaryChecksum string                   `json:"binaryChecksum,omitempty"`
5365
}
5366

5367
// GetCause is an internal getter (TBD...)
5368
func (v *RespondDecisionTaskFailedRequest) GetCause() (o DecisionTaskFailedCause) {
318✔
5369
        if v != nil && v.Cause != nil {
636✔
5370
                return *v.Cause
318✔
5371
        }
318✔
5372
        return
×
5373
}
5374

5375
// GetIdentity is an internal getter (TBD...)
5376
func (v *RespondDecisionTaskFailedRequest) GetIdentity() (o string) {
318✔
5377
        if v != nil {
636✔
5378
                return v.Identity
318✔
5379
        }
318✔
5380
        return
×
5381
}
5382

5383
// GetBinaryChecksum is an internal getter (TBD...)
5384
func (v *RespondDecisionTaskFailedRequest) GetBinaryChecksum() (o string) {
159✔
5385
        if v != nil {
318✔
5386
                return v.BinaryChecksum
159✔
5387
        }
159✔
5388
        return
×
5389
}
5390

5391
// RespondQueryTaskCompletedRequest is an internal type (TBD...)
5392
type RespondQueryTaskCompletedRequest struct {
5393
        TaskToken         []byte                  `json:"taskToken,omitempty"`
5394
        CompletedType     *QueryTaskCompletedType `json:"completedType,omitempty"`
5395
        QueryResult       []byte                  `json:"queryResult,omitempty"`
5396
        ErrorMessage      string                  `json:"errorMessage,omitempty"`
5397
        WorkerVersionInfo *WorkerVersionInfo      `json:"workerVersionInfo,omitempty"`
5398
}
5399

5400
// GetCompletedType is an internal getter (TBD...)
5401
func (v *RespondQueryTaskCompletedRequest) GetCompletedType() (o QueryTaskCompletedType) {
30✔
5402
        if v != nil && v.CompletedType != nil {
60✔
5403
                return *v.CompletedType
30✔
5404
        }
30✔
5405
        return
×
5406
}
5407

5408
// GetQueryResult is an internal getter (TBD...)
5409
func (v *RespondQueryTaskCompletedRequest) GetQueryResult() (o []byte) {
54✔
5410
        if v != nil && v.QueryResult != nil {
102✔
5411
                return v.QueryResult
48✔
5412
        }
48✔
5413
        return
6✔
5414
}
5415

5416
// GetErrorMessage is an internal getter (TBD...)
5417
func (v *RespondQueryTaskCompletedRequest) GetErrorMessage() (o string) {
6✔
5418
        if v != nil {
12✔
5419
                return v.ErrorMessage
6✔
5420
        }
6✔
5421
        return
×
5422
}
5423

5424
// GetWorkerVersionInfo is an internal getter (TBD...)
5425
func (v *RespondQueryTaskCompletedRequest) GetWorkerVersionInfo() (o *WorkerVersionInfo) {
6✔
5426
        if v != nil && v.WorkerVersionInfo != nil {
12✔
5427
                return v.WorkerVersionInfo
6✔
5428
        }
6✔
5429
        return
×
5430
}
5431

5432
// RetryPolicy is an internal type (TBD...)
5433
type RetryPolicy struct {
5434
        InitialIntervalInSeconds    int32    `json:"initialIntervalInSeconds,omitempty"`
5435
        BackoffCoefficient          float64  `json:"backoffCoefficient,omitempty"`
5436
        MaximumIntervalInSeconds    int32    `json:"maximumIntervalInSeconds,omitempty"`
5437
        MaximumAttempts             int32    `json:"maximumAttempts,omitempty"`
5438
        NonRetriableErrorReasons    []string `json:"nonRetriableErrorReasons,omitempty"`
5439
        ExpirationIntervalInSeconds int32    `json:"expirationIntervalInSeconds,omitempty"`
5440
}
5441

5442
// GetInitialIntervalInSeconds is an internal getter (TBD...)
5443
func (v *RetryPolicy) GetInitialIntervalInSeconds() (o int32) {
150✔
5444
        if v != nil {
300✔
5445
                return v.InitialIntervalInSeconds
150✔
5446
        }
150✔
5447
        return
×
5448
}
5449

5450
// GetBackoffCoefficient is an internal getter (TBD...)
5451
func (v *RetryPolicy) GetBackoffCoefficient() (o float64) {
102✔
5452
        if v != nil {
204✔
5453
                return v.BackoffCoefficient
102✔
5454
        }
102✔
5455
        return
×
5456
}
5457

5458
// GetMaximumIntervalInSeconds is an internal getter (TBD...)
5459
func (v *RetryPolicy) GetMaximumIntervalInSeconds() (o int32) {
198✔
5460
        if v != nil {
396✔
5461
                return v.MaximumIntervalInSeconds
198✔
5462
        }
198✔
5463
        return
×
5464
}
5465

5466
// GetMaximumAttempts is an internal getter (TBD...)
5467
func (v *RetryPolicy) GetMaximumAttempts() (o int32) {
150✔
5468
        if v != nil {
300✔
5469
                return v.MaximumAttempts
150✔
5470
        }
150✔
5471
        return
×
5472
}
5473

5474
// GetNonRetriableErrorReasons is an internal getter (TBD...)
5475
func (v *RetryPolicy) GetNonRetriableErrorReasons() (o []string) {
12✔
5476
        if v != nil && v.NonRetriableErrorReasons != nil {
18✔
5477
                return v.NonRetriableErrorReasons
6✔
5478
        }
6✔
5479
        return
6✔
5480
}
5481

5482
// GetExpirationIntervalInSeconds is an internal getter (TBD...)
5483
func (v *RetryPolicy) GetExpirationIntervalInSeconds() (o int32) {
234✔
5484
        if v != nil {
468✔
5485
                return v.ExpirationIntervalInSeconds
234✔
5486
        }
234✔
5487
        return
×
5488
}
5489

5490
// RetryTaskV2Error is an internal type (TBD...)
5491
type RetryTaskV2Error struct {
5492
        Message           string `json:"message,required"`
5493
        DomainID          string `json:"domainId,omitempty"`
5494
        WorkflowID        string `json:"workflowId,omitempty"`
5495
        RunID             string `json:"runId,omitempty"`
5496
        StartEventID      *int64 `json:"startEventId,omitempty"`
5497
        StartEventVersion *int64 `json:"startEventVersion,omitempty"`
5498
        EndEventID        *int64 `json:"endEventId,omitempty"`
5499
        EndEventVersion   *int64 `json:"endEventVersion,omitempty"`
5500
}
5501

5502
// GetDomainID is an internal getter (TBD...)
5503
func (v *RetryTaskV2Error) GetDomainID() (o string) {
×
5504
        if v != nil {
×
5505
                return v.DomainID
×
5506
        }
×
5507
        return
×
5508
}
5509

5510
// GetWorkflowID is an internal getter (TBD...)
5511
func (v *RetryTaskV2Error) GetWorkflowID() (o string) {
×
5512
        if v != nil {
×
5513
                return v.WorkflowID
×
5514
        }
×
5515
        return
×
5516
}
5517

5518
// GetRunID is an internal getter (TBD...)
5519
func (v *RetryTaskV2Error) GetRunID() (o string) {
×
5520
        if v != nil {
×
5521
                return v.RunID
×
5522
        }
×
5523
        return
×
5524
}
5525

5526
// ScheduleActivityTaskDecisionAttributes is an internal type (TBD...)
5527
type ScheduleActivityTaskDecisionAttributes struct {
5528
        ActivityID                    string        `json:"activityId,omitempty"`
5529
        ActivityType                  *ActivityType `json:"activityType,omitempty"`
5530
        Domain                        string        `json:"domain,omitempty"`
5531
        TaskList                      *TaskList     `json:"taskList,omitempty"`
5532
        Input                         []byte        `json:"input,omitempty"`
5533
        ScheduleToCloseTimeoutSeconds *int32        `json:"scheduleToCloseTimeoutSeconds,omitempty"`
5534
        ScheduleToStartTimeoutSeconds *int32        `json:"scheduleToStartTimeoutSeconds,omitempty"`
5535
        StartToCloseTimeoutSeconds    *int32        `json:"startToCloseTimeoutSeconds,omitempty"`
5536
        HeartbeatTimeoutSeconds       *int32        `json:"heartbeatTimeoutSeconds,omitempty"`
5537
        RetryPolicy                   *RetryPolicy  `json:"retryPolicy,omitempty"`
5538
        Header                        *Header       `json:"header,omitempty"`
5539
        RequestLocalDispatch          bool          `json:"requestLocalDispatch,omitempty"`
5540
}
5541

5542
// GetActivityID is an internal getter (TBD...)
5543
func (v *ScheduleActivityTaskDecisionAttributes) GetActivityID() (o string) {
1,170✔
5544
        if v != nil {
2,340✔
5545
                return v.ActivityID
1,170✔
5546
        }
1,170✔
5547
        return
×
5548
}
5549

5550
// GetActivityType is an internal getter (TBD...)
5551
func (v *ScheduleActivityTaskDecisionAttributes) GetActivityType() (o *ActivityType) {
390✔
5552
        if v != nil && v.ActivityType != nil {
780✔
5553
                return v.ActivityType
390✔
5554
        }
390✔
5555
        return
×
5556
}
5557

5558
// GetDomain is an internal getter (TBD...)
5559
func (v *ScheduleActivityTaskDecisionAttributes) GetDomain() (o string) {
3,513✔
5560
        if v != nil {
7,026✔
5561
                return v.Domain
3,513✔
5562
        }
3,513✔
5563
        return
×
5564
}
5565

5566
// GetScheduleToCloseTimeoutSeconds is an internal getter (TBD...)
5567
func (v *ScheduleActivityTaskDecisionAttributes) GetScheduleToCloseTimeoutSeconds() (o int32) {
1,182✔
5568
        if v != nil && v.ScheduleToCloseTimeoutSeconds != nil {
2,364✔
5569
                return *v.ScheduleToCloseTimeoutSeconds
1,182✔
5570
        }
1,182✔
5571
        return
×
5572
}
5573

5574
// GetScheduleToStartTimeoutSeconds is an internal getter (TBD...)
5575
func (v *ScheduleActivityTaskDecisionAttributes) GetScheduleToStartTimeoutSeconds() (o int32) {
1,182✔
5576
        if v != nil && v.ScheduleToStartTimeoutSeconds != nil {
2,364✔
5577
                return *v.ScheduleToStartTimeoutSeconds
1,182✔
5578
        }
1,182✔
5579
        return
×
5580
}
5581

5582
// GetStartToCloseTimeoutSeconds is an internal getter (TBD...)
5583
func (v *ScheduleActivityTaskDecisionAttributes) GetStartToCloseTimeoutSeconds() (o int32) {
1,170✔
5584
        if v != nil && v.StartToCloseTimeoutSeconds != nil {
2,340✔
5585
                return *v.StartToCloseTimeoutSeconds
1,170✔
5586
        }
1,170✔
5587
        return
×
5588
}
5589

5590
// GetHeartbeatTimeoutSeconds is an internal getter (TBD...)
5591
func (v *ScheduleActivityTaskDecisionAttributes) GetHeartbeatTimeoutSeconds() (o int32) {
780✔
5592
        if v != nil && v.HeartbeatTimeoutSeconds != nil {
1,560✔
5593
                return *v.HeartbeatTimeoutSeconds
780✔
5594
        }
780✔
5595
        return
×
5596
}
5597

5598
// SearchAttributes is an internal type (TBD...)
5599
type SearchAttributes struct {
5600
        IndexedFields map[string][]byte `json:"indexedFields,omitempty"`
5601
}
5602

5603
// GetIndexedFields is an internal getter (TBD...)
5604
func (v *SearchAttributes) GetIndexedFields() (o map[string][]byte) {
345✔
5605
        if v != nil && v.IndexedFields != nil {
678✔
5606
                return v.IndexedFields
333✔
5607
        }
333✔
5608
        return
12✔
5609
}
5610

5611
// ServiceBusyError is an internal type (TBD...)
5612
type ServiceBusyError struct {
5613
        Message string `json:"message,required"`
5614
}
5615

5616
// SignalExternalWorkflowExecutionDecisionAttributes is an internal type (TBD...)
5617
type SignalExternalWorkflowExecutionDecisionAttributes struct {
5618
        Domain            string             `json:"domain,omitempty"`
5619
        Execution         *WorkflowExecution `json:"execution,omitempty"`
5620
        SignalName        string             `json:"signalName,omitempty"`
5621
        Input             []byte             `json:"input,omitempty"`
5622
        Control           []byte             `json:"control,omitempty"`
5623
        ChildWorkflowOnly bool               `json:"childWorkflowOnly,omitempty"`
5624
}
5625

5626
// GetDomain is an internal getter (TBD...)
5627
func (v *SignalExternalWorkflowExecutionDecisionAttributes) GetDomain() (o string) {
84✔
5628
        if v != nil {
168✔
5629
                return v.Domain
84✔
5630
        }
84✔
5631
        return
×
5632
}
5633

5634
// GetSignalName is an internal getter (TBD...)
5635
func (v *SignalExternalWorkflowExecutionDecisionAttributes) GetSignalName() (o string) {
12✔
5636
        if v != nil {
24✔
5637
                return v.SignalName
12✔
5638
        }
12✔
5639
        return
×
5640
}
5641

5642
// SignalExternalWorkflowExecutionFailedCause is an internal type (TBD...)
5643
type SignalExternalWorkflowExecutionFailedCause int32
5644

5645
// Ptr is a helper function for getting pointer value
5646
func (e SignalExternalWorkflowExecutionFailedCause) Ptr() *SignalExternalWorkflowExecutionFailedCause {
9✔
5647
        return &e
9✔
5648
}
9✔
5649

5650
// String returns a readable string representation of SignalExternalWorkflowExecutionFailedCause.
5651
func (e SignalExternalWorkflowExecutionFailedCause) String() string {
×
5652
        w := int32(e)
×
5653
        switch w {
×
5654
        case 0:
×
5655
                return "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"
×
5656
        }
5657
        return fmt.Sprintf("SignalExternalWorkflowExecutionFailedCause(%d)", w)
×
5658
}
5659

5660
// UnmarshalText parses enum value from string representation
5661
func (e *SignalExternalWorkflowExecutionFailedCause) UnmarshalText(value []byte) error {
×
5662
        switch s := strings.ToUpper(string(value)); s {
×
5663
        case "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION":
×
5664
                *e = SignalExternalWorkflowExecutionFailedCauseUnknownExternalWorkflowExecution
×
5665
                return nil
×
5666
        default:
×
5667
                val, err := strconv.ParseInt(s, 10, 32)
×
5668
                if err != nil {
×
5669
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "SignalExternalWorkflowExecutionFailedCause", err)
×
5670
                }
×
5671
                *e = SignalExternalWorkflowExecutionFailedCause(val)
×
5672
                return nil
×
5673
        }
5674
}
5675

5676
// MarshalText encodes SignalExternalWorkflowExecutionFailedCause to text.
5677
func (e SignalExternalWorkflowExecutionFailedCause) MarshalText() ([]byte, error) {
×
5678
        return []byte(e.String()), nil
×
5679
}
×
5680

5681
const (
5682
        // SignalExternalWorkflowExecutionFailedCauseUnknownExternalWorkflowExecution is an option for SignalExternalWorkflowExecutionFailedCause
5683
        SignalExternalWorkflowExecutionFailedCauseUnknownExternalWorkflowExecution SignalExternalWorkflowExecutionFailedCause = iota
5684
)
5685

5686
// SignalExternalWorkflowExecutionFailedEventAttributes is an internal type (TBD...)
5687
type SignalExternalWorkflowExecutionFailedEventAttributes struct {
5688
        Cause                        *SignalExternalWorkflowExecutionFailedCause `json:"cause,omitempty"`
5689
        DecisionTaskCompletedEventID int64                                       `json:"decisionTaskCompletedEventId,omitempty"`
5690
        Domain                       string                                      `json:"domain,omitempty"`
5691
        WorkflowExecution            *WorkflowExecution                          `json:"workflowExecution,omitempty"`
5692
        InitiatedEventID             int64                                       `json:"initiatedEventId,omitempty"`
5693
        Control                      []byte                                      `json:"control,omitempty"`
5694
}
5695

5696
// GetDomain is an internal getter (TBD...)
5697
func (v *SignalExternalWorkflowExecutionFailedEventAttributes) GetDomain() (o string) {
×
5698
        if v != nil {
×
5699
                return v.Domain
×
5700
        }
×
5701
        return
×
5702
}
5703

5704
// GetInitiatedEventID is an internal getter (TBD...)
5705
func (v *SignalExternalWorkflowExecutionFailedEventAttributes) GetInitiatedEventID() (o int64) {
9✔
5706
        if v != nil {
18✔
5707
                return v.InitiatedEventID
9✔
5708
        }
9✔
5709
        return
×
5710
}
5711

5712
// SignalExternalWorkflowExecutionInitiatedEventAttributes is an internal type (TBD...)
5713
type SignalExternalWorkflowExecutionInitiatedEventAttributes struct {
5714
        DecisionTaskCompletedEventID int64              `json:"decisionTaskCompletedEventId,omitempty"`
5715
        Domain                       string             `json:"domain,omitempty"`
5716
        WorkflowExecution            *WorkflowExecution `json:"workflowExecution,omitempty"`
5717
        SignalName                   string             `json:"signalName,omitempty"`
5718
        Input                        []byte             `json:"input,omitempty"`
5719
        Control                      []byte             `json:"control,omitempty"`
5720
        ChildWorkflowOnly            bool               `json:"childWorkflowOnly,omitempty"`
5721
}
5722

5723
// GetDomain is an internal getter (TBD...)
5724
func (v *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetDomain() (o string) {
15✔
5725
        if v != nil {
30✔
5726
                return v.Domain
15✔
5727
        }
15✔
5728
        return
×
5729
}
5730

5731
// GetWorkflowExecution is an internal getter (TBD...)
5732
func (v *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowExecution() (o *WorkflowExecution) {
27✔
5733
        if v != nil && v.WorkflowExecution != nil {
54✔
5734
                return v.WorkflowExecution
27✔
5735
        }
27✔
5736
        return
×
5737
}
5738

5739
// GetSignalName is an internal getter (TBD...)
5740
func (v *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetSignalName() (o string) {
15✔
5741
        if v != nil {
30✔
5742
                return v.SignalName
15✔
5743
        }
15✔
5744
        return
×
5745
}
5746

5747
// GetChildWorkflowOnly is an internal getter (TBD...)
5748
func (v *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetChildWorkflowOnly() (o bool) {
15✔
5749
        if v != nil {
30✔
5750
                return v.ChildWorkflowOnly
15✔
5751
        }
15✔
5752
        return
×
5753
}
5754

5755
// SignalWithStartWorkflowExecutionRequest is an internal type (TBD...)
5756
type SignalWithStartWorkflowExecutionRequest struct {
5757
        Domain                              string                 `json:"domain,omitempty"`
5758
        WorkflowID                          string                 `json:"workflowId,omitempty"`
5759
        WorkflowType                        *WorkflowType          `json:"workflowType,omitempty"`
5760
        TaskList                            *TaskList              `json:"taskList,omitempty"`
5761
        Input                               []byte                 `json:"-"` // Filtering PII
5762
        ExecutionStartToCloseTimeoutSeconds *int32                 `json:"executionStartToCloseTimeoutSeconds,omitempty"`
5763
        TaskStartToCloseTimeoutSeconds      *int32                 `json:"taskStartToCloseTimeoutSeconds,omitempty"`
5764
        Identity                            string                 `json:"identity,omitempty"`
5765
        RequestID                           string                 `json:"requestId,omitempty"`
5766
        WorkflowIDReusePolicy               *WorkflowIDReusePolicy `json:"workflowIdReusePolicy,omitempty"`
5767
        SignalName                          string                 `json:"signalName,omitempty"`
5768
        SignalInput                         []byte                 `json:"-"` // Filtering PII
5769
        Control                             []byte                 `json:"control,omitempty"`
5770
        RetryPolicy                         *RetryPolicy           `json:"retryPolicy,omitempty"`
5771
        CronSchedule                        string                 `json:"cronSchedule,omitempty"`
5772
        Memo                                *Memo                  `json:"-"` // Filtering PII
5773
        SearchAttributes                    *SearchAttributes      `json:"-"` // Filtering PII
5774
        Header                              *Header                `json:"header,omitempty"`
5775
        DelayStartSeconds                   *int32                 `json:"delayStartSeconds,omitempty"`
5776
        JitterStartSeconds                  *int32                 `json:"jitterStartSeconds,omitempty"`
5777
}
5778

5779
func (v *SignalWithStartWorkflowExecutionRequest) SerializeForLogging() (string, error) {
3✔
5780
        if v == nil {
4✔
5781
                return "", nil
1✔
5782
        }
1✔
5783
        return SerializeRequest(v)
2✔
5784
}
5785

5786
// GetDomain is an internal getter (TBD...)
5787
func (v *SignalWithStartWorkflowExecutionRequest) GetDomain() (o string) {
198✔
5788
        if v != nil {
396✔
5789
                return v.Domain
198✔
5790
        }
198✔
5791
        return
×
5792
}
5793

5794
// GetWorkflowID is an internal getter (TBD...)
5795
func (v *SignalWithStartWorkflowExecutionRequest) GetWorkflowID() (o string) {
198✔
5796
        if v != nil {
396✔
5797
                return v.WorkflowID
198✔
5798
        }
198✔
5799
        return
×
5800
}
5801

5802
// GetWorkflowType is an internal getter (TBD...)
5803
func (v *SignalWithStartWorkflowExecutionRequest) GetWorkflowType() (o *WorkflowType) {
×
5804
        if v != nil && v.WorkflowType != nil {
×
5805
                return v.WorkflowType
×
5806
        }
×
5807
        return
×
5808
}
5809

5810
// GetTaskList is an internal getter (TBD...)
5811
func (v *SignalWithStartWorkflowExecutionRequest) GetTaskList() (o *TaskList) {
×
5812
        if v != nil && v.TaskList != nil {
×
5813
                return v.TaskList
×
5814
        }
×
5815
        return
×
5816
}
5817

5818
// GetExecutionStartToCloseTimeoutSeconds is an internal getter (TBD...)
5819
func (v *SignalWithStartWorkflowExecutionRequest) GetExecutionStartToCloseTimeoutSeconds() (o int32) {
33✔
5820
        if v != nil && v.ExecutionStartToCloseTimeoutSeconds != nil {
66✔
5821
                return *v.ExecutionStartToCloseTimeoutSeconds
33✔
5822
        }
33✔
5823
        return
×
5824
}
5825

5826
// GetTaskStartToCloseTimeoutSeconds is an internal getter (TBD...)
5827
func (v *SignalWithStartWorkflowExecutionRequest) GetTaskStartToCloseTimeoutSeconds() (o int32) {
33✔
5828
        if v != nil && v.TaskStartToCloseTimeoutSeconds != nil {
66✔
5829
                return *v.TaskStartToCloseTimeoutSeconds
33✔
5830
        }
33✔
5831
        return
×
5832
}
5833

5834
// GetIdentity is an internal getter (TBD...)
5835
func (v *SignalWithStartWorkflowExecutionRequest) GetIdentity() (o string) {
27✔
5836
        if v != nil {
54✔
5837
                return v.Identity
27✔
5838
        }
27✔
5839
        return
×
5840
}
5841

5842
// GetRequestID is an internal getter (TBD...)
5843
func (v *SignalWithStartWorkflowExecutionRequest) GetRequestID() (o string) {
105✔
5844
        if v != nil {
210✔
5845
                return v.RequestID
105✔
5846
        }
105✔
5847
        return
×
5848
}
5849

5850
// GetWorkflowIDReusePolicy is an internal getter (TBD...)
5851
func (v *SignalWithStartWorkflowExecutionRequest) GetWorkflowIDReusePolicy() (o WorkflowIDReusePolicy) {
6✔
5852
        if v != nil && v.WorkflowIDReusePolicy != nil {
12✔
5853
                return *v.WorkflowIDReusePolicy
6✔
5854
        }
6✔
5855
        return
×
5856
}
5857

5858
// GetSignalName is an internal getter (TBD...)
5859
func (v *SignalWithStartWorkflowExecutionRequest) GetSignalName() (o string) {
93✔
5860
        if v != nil {
186✔
5861
                return v.SignalName
93✔
5862
        }
93✔
5863
        return
×
5864
}
5865

5866
// GetSignalInput is an internal getter (TBD...)
5867
func (v *SignalWithStartWorkflowExecutionRequest) GetSignalInput() (o []byte) {
27✔
5868
        if v != nil && v.SignalInput != nil {
54✔
5869
                return v.SignalInput
27✔
5870
        }
27✔
5871
        return
×
5872
}
5873

5874
// GetCronSchedule is an internal getter (TBD...)
5875
func (v *SignalWithStartWorkflowExecutionRequest) GetCronSchedule() (o string) {
33✔
5876
        if v != nil {
66✔
5877
                return v.CronSchedule
33✔
5878
        }
33✔
5879
        return
×
5880
}
5881

5882
// SignalWorkflowExecutionRequest is an internal type (TBD...)
5883
type SignalWorkflowExecutionRequest struct {
5884
        Domain            string             `json:"domain,omitempty"`
5885
        WorkflowExecution *WorkflowExecution `json:"workflowExecution,omitempty"`
5886
        SignalName        string             `json:"signalName,omitempty"`
5887
        Input             []byte             `json:"-"` // Filtering PII
5888
        Identity          string             `json:"identity,omitempty"`
5889
        RequestID         string             `json:"requestId,omitempty"`
5890
        Control           []byte             `json:"control,omitempty"`
5891
}
5892

5893
func (v *SignalWorkflowExecutionRequest) SerializeForLogging() (string, error) {
3✔
5894
        if v == nil {
4✔
5895
                return "", nil
1✔
5896
        }
1✔
5897
        return SerializeRequest(v)
2✔
5898
}
5899

5900
// GetDomain is an internal getter (TBD...)
5901
func (v *SignalWorkflowExecutionRequest) GetDomain() (o string) {
5,061✔
5902
        if v != nil {
10,122✔
5903
                return v.Domain
5,061✔
5904
        }
5,061✔
5905
        return
×
5906
}
5907

5908
// GetWorkflowExecution is an internal getter (TBD...)
5909
func (v *SignalWorkflowExecutionRequest) GetWorkflowExecution() (o *WorkflowExecution) {
2,169✔
5910
        if v != nil && v.WorkflowExecution != nil {
4,338✔
5911
                return v.WorkflowExecution
2,169✔
5912
        }
2,169✔
5913
        return
×
5914
}
5915

5916
// GetSignalName is an internal getter (TBD...)
5917
func (v *SignalWorkflowExecutionRequest) GetSignalName() (o string) {
2,886✔
5918
        if v != nil {
5,772✔
5919
                return v.SignalName
2,886✔
5920
        }
2,886✔
5921
        return
×
5922
}
5923

5924
// GetInput is an internal getter (TBD...)
5925
func (v *SignalWorkflowExecutionRequest) GetInput() (o []byte) {
717✔
5926
        if v != nil && v.Input != nil {
1,416✔
5927
                return v.Input
699✔
5928
        }
699✔
5929
        return
18✔
5930
}
5931

5932
// GetIdentity is an internal getter (TBD...)
5933
func (v *SignalWorkflowExecutionRequest) GetIdentity() (o string) {
717✔
5934
        if v != nil {
1,434✔
5935
                return v.Identity
717✔
5936
        }
717✔
5937
        return
×
5938
}
5939

5940
// GetRequestID is an internal getter (TBD...)
5941
func (v *SignalWorkflowExecutionRequest) GetRequestID() (o string) {
2,166✔
5942
        if v != nil {
4,332✔
5943
                return v.RequestID
2,166✔
5944
        }
2,166✔
5945
        return
×
5946
}
5947

5948
// StartChildWorkflowExecutionDecisionAttributes is an internal type (TBD...)
5949
type StartChildWorkflowExecutionDecisionAttributes struct {
5950
        Domain                              string                 `json:"domain,omitempty"`
5951
        WorkflowID                          string                 `json:"workflowId,omitempty"`
5952
        WorkflowType                        *WorkflowType          `json:"workflowType,omitempty"`
5953
        TaskList                            *TaskList              `json:"taskList,omitempty"`
5954
        Input                               []byte                 `json:"input,omitempty"`
5955
        ExecutionStartToCloseTimeoutSeconds *int32                 `json:"executionStartToCloseTimeoutSeconds,omitempty"`
5956
        TaskStartToCloseTimeoutSeconds      *int32                 `json:"taskStartToCloseTimeoutSeconds,omitempty"`
5957
        ParentClosePolicy                   *ParentClosePolicy     `json:"parentClosePolicy,omitempty"`
5958
        Control                             []byte                 `json:"control,omitempty"`
5959
        WorkflowIDReusePolicy               *WorkflowIDReusePolicy `json:"workflowIdReusePolicy,omitempty"`
5960
        RetryPolicy                         *RetryPolicy           `json:"retryPolicy,omitempty"`
5961
        CronSchedule                        string                 `json:"cronSchedule,omitempty"`
5962
        Header                              *Header                `json:"header,omitempty"`
5963
        Memo                                *Memo                  `json:"memo,omitempty"`
5964
        SearchAttributes                    *SearchAttributes      `json:"searchAttributes,omitempty"`
5965
}
5966

5967
// GetDomain is an internal getter (TBD...)
5968
func (v *StartChildWorkflowExecutionDecisionAttributes) GetDomain() (o string) {
171✔
5969
        if v != nil {
342✔
5970
                return v.Domain
171✔
5971
        }
171✔
5972
        return
×
5973
}
5974

5975
// GetWorkflowID is an internal getter (TBD...)
5976
func (v *StartChildWorkflowExecutionDecisionAttributes) GetWorkflowID() (o string) {
36✔
5977
        if v != nil {
72✔
5978
                return v.WorkflowID
36✔
5979
        }
36✔
5980
        return
×
5981
}
5982

5983
// GetExecutionStartToCloseTimeoutSeconds is an internal getter (TBD...)
5984
func (v *StartChildWorkflowExecutionDecisionAttributes) GetExecutionStartToCloseTimeoutSeconds() (o int32) {
18✔
5985
        if v != nil && v.ExecutionStartToCloseTimeoutSeconds != nil {
33✔
5986
                return *v.ExecutionStartToCloseTimeoutSeconds
15✔
5987
        }
15✔
5988
        return
3✔
5989
}
5990

5991
// GetTaskStartToCloseTimeoutSeconds is an internal getter (TBD...)
5992
func (v *StartChildWorkflowExecutionDecisionAttributes) GetTaskStartToCloseTimeoutSeconds() (o int32) {
18✔
5993
        if v != nil && v.TaskStartToCloseTimeoutSeconds != nil {
33✔
5994
                return *v.TaskStartToCloseTimeoutSeconds
15✔
5995
        }
15✔
5996
        return
3✔
5997
}
5998

5999
// GetParentClosePolicy is an internal getter (TBD...)
6000
func (v *StartChildWorkflowExecutionDecisionAttributes) GetParentClosePolicy() (o ParentClosePolicy) {
18✔
6001
        if v != nil && v.ParentClosePolicy != nil {
36✔
6002
                return *v.ParentClosePolicy
18✔
6003
        }
18✔
6004
        return
×
6005
}
6006

6007
// GetCronSchedule is an internal getter (TBD...)
6008
func (v *StartChildWorkflowExecutionDecisionAttributes) GetCronSchedule() (o string) {
21✔
6009
        if v != nil {
42✔
6010
                return v.CronSchedule
21✔
6011
        }
21✔
6012
        return
×
6013
}
6014

6015
// StartChildWorkflowExecutionFailedEventAttributes is an internal type (TBD...)
6016
type StartChildWorkflowExecutionFailedEventAttributes struct {
6017
        Domain                       string                             `json:"domain,omitempty"`
6018
        WorkflowID                   string                             `json:"workflowId,omitempty"`
6019
        WorkflowType                 *WorkflowType                      `json:"workflowType,omitempty"`
6020
        Cause                        *ChildWorkflowExecutionFailedCause `json:"cause,omitempty"`
6021
        Control                      []byte                             `json:"control,omitempty"`
6022
        InitiatedEventID             int64                              `json:"initiatedEventId,omitempty"`
6023
        DecisionTaskCompletedEventID int64                              `json:"decisionTaskCompletedEventId,omitempty"`
6024
}
6025

6026
// GetDomain is an internal getter (TBD...)
6027
func (v *StartChildWorkflowExecutionFailedEventAttributes) GetDomain() (o string) {
×
6028
        if v != nil {
×
6029
                return v.Domain
×
6030
        }
×
6031
        return
×
6032
}
6033

6034
// GetInitiatedEventID is an internal getter (TBD...)
6035
func (v *StartChildWorkflowExecutionFailedEventAttributes) GetInitiatedEventID() (o int64) {
3✔
6036
        if v != nil {
6✔
6037
                return v.InitiatedEventID
3✔
6038
        }
3✔
6039
        return
×
6040
}
6041

6042
// StartChildWorkflowExecutionInitiatedEventAttributes is an internal type (TBD...)
6043
type StartChildWorkflowExecutionInitiatedEventAttributes struct {
6044
        Domain                              string                 `json:"domain,omitempty"`
6045
        WorkflowID                          string                 `json:"workflowId,omitempty"`
6046
        WorkflowType                        *WorkflowType          `json:"workflowType,omitempty"`
6047
        TaskList                            *TaskList              `json:"taskList,omitempty"`
6048
        Input                               []byte                 `json:"input,omitempty"`
6049
        ExecutionStartToCloseTimeoutSeconds *int32                 `json:"executionStartToCloseTimeoutSeconds,omitempty"`
6050
        TaskStartToCloseTimeoutSeconds      *int32                 `json:"taskStartToCloseTimeoutSeconds,omitempty"`
6051
        ParentClosePolicy                   *ParentClosePolicy     `json:"parentClosePolicy,omitempty"`
6052
        Control                             []byte                 `json:"control,omitempty"`
6053
        DecisionTaskCompletedEventID        int64                  `json:"decisionTaskCompletedEventId,omitempty"`
6054
        WorkflowIDReusePolicy               *WorkflowIDReusePolicy `json:"workflowIdReusePolicy,omitempty"`
6055
        RetryPolicy                         *RetryPolicy           `json:"retryPolicy,omitempty"`
6056
        CronSchedule                        string                 `json:"cronSchedule,omitempty"`
6057
        Header                              *Header                `json:"header,omitempty"`
6058
        Memo                                *Memo                  `json:"memo,omitempty"`
6059
        SearchAttributes                    *SearchAttributes      `json:"searchAttributes,omitempty"`
6060
        DelayStartSeconds                   *int32                 `json:"delayStartSeconds,omitempty"`
6061
        JitterStartSeconds                  *int32                 `json:"jitterStartSeconds,omitempty"`
6062
}
6063

6064
// GetDomain is an internal getter (TBD...)
6065
func (v *StartChildWorkflowExecutionInitiatedEventAttributes) GetDomain() (o string) {
39✔
6066
        if v != nil {
78✔
6067
                return v.Domain
39✔
6068
        }
39✔
6069
        return
×
6070
}
6071

6072
// GetWorkflowID is an internal getter (TBD...)
6073
func (v *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowID() (o string) {
21✔
6074
        if v != nil {
42✔
6075
                return v.WorkflowID
21✔
6076
        }
21✔
6077
        return
×
6078
}
6079

6080
// GetWorkflowType is an internal getter (TBD...)
6081
func (v *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowType() (o *WorkflowType) {
21✔
6082
        if v != nil && v.WorkflowType != nil {
42✔
6083
                return v.WorkflowType
21✔
6084
        }
21✔
6085
        return
×
6086
}
6087

6088
// GetParentClosePolicy is an internal getter (TBD...)
6089
func (v *StartChildWorkflowExecutionInitiatedEventAttributes) GetParentClosePolicy() (o ParentClosePolicy) {
21✔
6090
        if v != nil && v.ParentClosePolicy != nil {
39✔
6091
                return *v.ParentClosePolicy
18✔
6092
        }
18✔
6093
        return
3✔
6094
}
6095

6096
// StartTimeFilter is an internal type (TBD...)
6097
type StartTimeFilter struct {
6098
        EarliestTime *int64 `json:"earliestTime,omitempty"`
6099
        LatestTime   *int64 `json:"latestTime,omitempty"`
6100
}
6101

6102
// GetEarliestTime is an internal getter (TBD...)
6103
func (v *StartTimeFilter) GetEarliestTime() (o int64) {
250✔
6104
        if v != nil && v.EarliestTime != nil {
500✔
6105
                return *v.EarliestTime
250✔
6106
        }
250✔
6107
        return
×
6108
}
6109

6110
// GetLatestTime is an internal getter (TBD...)
6111
func (v *StartTimeFilter) GetLatestTime() (o int64) {
250✔
6112
        if v != nil && v.LatestTime != nil {
500✔
6113
                return *v.LatestTime
250✔
6114
        }
250✔
6115
        return
×
6116
}
6117

6118
// StartTimerDecisionAttributes is an internal type (TBD...)
6119
type StartTimerDecisionAttributes struct {
6120
        TimerID                   string `json:"timerId,omitempty"`
6121
        StartToFireTimeoutSeconds *int64 `json:"startToFireTimeoutSeconds,omitempty"`
6122
}
6123

6124
// GetTimerID is an internal getter (TBD...)
6125
func (v *StartTimerDecisionAttributes) GetTimerID() (o string) {
90✔
6126
        if v != nil {
180✔
6127
                return v.TimerID
90✔
6128
        }
90✔
6129
        return
×
6130
}
6131

6132
// GetStartToFireTimeoutSeconds is an internal getter (TBD...)
6133
func (v *StartTimerDecisionAttributes) GetStartToFireTimeoutSeconds() (o int64) {
30✔
6134
        if v != nil && v.StartToFireTimeoutSeconds != nil {
60✔
6135
                return *v.StartToFireTimeoutSeconds
30✔
6136
        }
30✔
6137
        return
×
6138
}
6139

6140
type RestartWorkflowExecutionRequest struct {
6141
        Domain            string             `json:"domain,omitempty"`
6142
        WorkflowExecution *WorkflowExecution `json:"workflowExecution,omitempty"`
6143
        Identity          string             `json:"identity,omitempty"`
6144
}
6145

6146
func (v *RestartWorkflowExecutionRequest) SerializeForLogging() (string, error) {
×
6147
        if v == nil {
×
6148
                return "", nil
×
6149
        }
×
6150
        return SerializeRequest(v)
×
6151
}
6152

6153
// GetDomain is an internal getter (TBD...)
6154
func (v *RestartWorkflowExecutionRequest) GetDomain() (o string) {
×
6155
        if v != nil {
×
6156
                return v.Domain
×
6157
        }
×
6158
        return
×
6159
}
6160

6161
// GetWorkflowExecution is an internal getter (TBD...)
6162
func (v *RestartWorkflowExecutionRequest) GetWorkflowExecution() (o *WorkflowExecution) {
×
6163
        if v != nil && v.WorkflowExecution != nil {
×
6164
                return v.WorkflowExecution
×
6165
        }
×
6166
        return
×
6167
}
6168

6169
// StartWorkflowExecutionRequest is an internal type (TBD...)
6170
type StartWorkflowExecutionRequest struct {
6171
        Domain                              string                 `json:"domain,omitempty"`
6172
        WorkflowID                          string                 `json:"workflowId,omitempty"`
6173
        WorkflowType                        *WorkflowType          `json:"workflowType,omitempty"`
6174
        TaskList                            *TaskList              `json:"taskList,omitempty"`
6175
        Input                               []byte                 `json:"-"`
6176
        ExecutionStartToCloseTimeoutSeconds *int32                 `json:"executionStartToCloseTimeoutSeconds,omitempty"`
6177
        TaskStartToCloseTimeoutSeconds      *int32                 `json:"taskStartToCloseTimeoutSeconds,omitempty"`
6178
        Identity                            string                 `json:"identity,omitempty"`
6179
        RequestID                           string                 `json:"requestId,omitempty"`
6180
        WorkflowIDReusePolicy               *WorkflowIDReusePolicy `json:"workflowIdReusePolicy,omitempty"`
6181
        RetryPolicy                         *RetryPolicy           `json:"retryPolicy,omitempty"`
6182
        CronSchedule                        string                 `json:"cronSchedule,omitempty"`
6183
        Memo                                *Memo                  `json:"-"`
6184
        SearchAttributes                    *SearchAttributes      `json:"-"`
6185
        Header                              *Header                `json:"header,omitempty"`
6186
        DelayStartSeconds                   *int32                 `json:"delayStartSeconds,omitempty"`
6187
        JitterStartSeconds                  *int32                 `json:"jitterStartSeconds,omitempty"`
6188
}
6189

6190
func (v *StartWorkflowExecutionRequest) SerializeForLogging() (string, error) {
3✔
6191
        if v == nil {
4✔
6192
                return "", nil
1✔
6193
        }
1✔
6194
        return SerializeRequest(v)
2✔
6195
}
6196

6197
// GetDomain is an internal getter (TBD...)
6198
func (v *StartWorkflowExecutionRequest) GetDomain() (o string) {
7,065✔
6199
        if v != nil {
14,130✔
6200
                return v.Domain
7,065✔
6201
        }
7,065✔
6202
        return
×
6203
}
6204

6205
// GetWorkflowID is an internal getter (TBD...)
6206
func (v *StartWorkflowExecutionRequest) GetWorkflowID() (o string) {
3,660✔
6207
        if v != nil {
7,320✔
6208
                return v.WorkflowID
3,660✔
6209
        }
3,660✔
6210
        return
×
6211
}
6212

6213
// GetExecutionStartToCloseTimeoutSeconds is an internal getter (TBD...)
6214
func (v *StartWorkflowExecutionRequest) GetExecutionStartToCloseTimeoutSeconds() (o int32) {
1,422✔
6215
        if v != nil && v.ExecutionStartToCloseTimeoutSeconds != nil {
2,844✔
6216
                return *v.ExecutionStartToCloseTimeoutSeconds
1,422✔
6217
        }
1,422✔
6218
        return
×
6219
}
6220

6221
// GetTaskStartToCloseTimeoutSeconds is an internal getter (TBD...)
6222
func (v *StartWorkflowExecutionRequest) GetTaskStartToCloseTimeoutSeconds() (o int32) {
1,911✔
6223
        if v != nil && v.TaskStartToCloseTimeoutSeconds != nil {
3,822✔
6224
                return *v.TaskStartToCloseTimeoutSeconds
1,911✔
6225
        }
1,911✔
6226
        return
×
6227
}
6228

6229
// GetDelayStartSeconds is an internal getter (TBD...)
6230
func (v *StartWorkflowExecutionRequest) GetDelayStartSeconds() (o int32) {
936✔
6231
        if v != nil && v.DelayStartSeconds != nil {
993✔
6232
                return *v.DelayStartSeconds
57✔
6233
        }
57✔
6234
        return
879✔
6235
}
6236

6237
// GetJitterStartSeconds is an internal getter (TBD...)
6238
func (v *StartWorkflowExecutionRequest) GetJitterStartSeconds() (o int32) {
1,380✔
6239
        if v != nil && v.JitterStartSeconds != nil {
1,380✔
6240
                return *v.JitterStartSeconds
×
6241
        }
×
6242
        return
1,380✔
6243
}
6244

6245
// GetRequestID is an internal getter (TBD...)
6246
func (v *StartWorkflowExecutionRequest) GetRequestID() (o string) {
2,064✔
6247
        if v != nil {
4,128✔
6248
                return v.RequestID
2,064✔
6249
        }
2,064✔
6250
        return
×
6251
}
6252

6253
// GetWorkflowIDReusePolicy is an internal getter (TBD...)
6254
func (v *StartWorkflowExecutionRequest) GetWorkflowIDReusePolicy() (o WorkflowIDReusePolicy) {
87✔
6255
        if v != nil && v.WorkflowIDReusePolicy != nil {
156✔
6256
                return *v.WorkflowIDReusePolicy
69✔
6257
        }
69✔
6258
        return
18✔
6259
}
6260

6261
// GetCronSchedule is an internal getter (TBD...)
6262
func (v *StartWorkflowExecutionRequest) GetCronSchedule() (o string) {
1,419✔
6263
        if v != nil {
2,838✔
6264
                return v.CronSchedule
1,419✔
6265
        }
1,419✔
6266
        return
×
6267
}
6268

6269
// StartWorkflowExecutionResponse is an internal type (TBD...)
6270
type StartWorkflowExecutionResponse struct {
6271
        RunID string `json:"runId,omitempty"`
6272
}
6273

6274
// GetRunID is an internal getter (TBD...)
6275
func (v *StartWorkflowExecutionResponse) GetRunID() (o string) {
258✔
6276
        if v != nil {
513✔
6277
                return v.RunID
255✔
6278
        }
255✔
6279
        return
3✔
6280
}
6281

6282
// RestartWorkflowExecutionResponse is an internal type (TBD...)
6283
type RestartWorkflowExecutionResponse struct {
6284
        RunID string `json:"runId,omitempty"`
6285
}
6286

6287
// GetRunID is an internal getter (TBD...)
6288
func (v *RestartWorkflowExecutionResponse) GetRunID() (o string) {
×
6289
        if v != nil {
×
6290
                return v.RunID
×
6291
        }
×
6292
        return
×
6293
}
6294

6295
// StickyExecutionAttributes is an internal type (TBD...)
6296
type StickyExecutionAttributes struct {
6297
        WorkerTaskList                *TaskList `json:"workerTaskList,omitempty"`
6298
        ScheduleToStartTimeoutSeconds *int32    `json:"scheduleToStartTimeoutSeconds,omitempty"`
6299
}
6300

6301
// GetScheduleToStartTimeoutSeconds is an internal getter (TBD...)
6302
func (v *StickyExecutionAttributes) GetScheduleToStartTimeoutSeconds() (o int32) {
162✔
6303
        if v != nil && v.ScheduleToStartTimeoutSeconds != nil {
312✔
6304
                return *v.ScheduleToStartTimeoutSeconds
150✔
6305
        }
150✔
6306
        return
12✔
6307
}
6308

6309
// SupportedClientVersions is an internal type (TBD...)
6310
type SupportedClientVersions struct {
6311
        GoSdk   string `json:"goSdk,omitempty"`
6312
        JavaSdk string `json:"javaSdk,omitempty"`
6313
}
6314

6315
// TaskIDBlock is an internal type (TBD...)
6316
type TaskIDBlock struct {
6317
        StartID int64 `json:"startID,omitempty"`
6318
        EndID   int64 `json:"endID,omitempty"`
6319
}
6320

6321
// GetStartID is an internal getter (TBD...)
6322
func (v *TaskIDBlock) GetStartID() (o int64) {
×
6323
        if v != nil {
×
6324
                return v.StartID
×
6325
        }
×
6326
        return
×
6327
}
6328

6329
// GetEndID is an internal getter (TBD...)
6330
func (v *TaskIDBlock) GetEndID() (o int64) {
×
6331
        if v != nil {
×
6332
                return v.EndID
×
6333
        }
×
6334
        return
×
6335
}
6336

6337
// TaskList is an internal type (TBD...)
6338
type TaskList struct {
6339
        Name string        `json:"name,omitempty"`
6340
        Kind *TaskListKind `json:"kind,omitempty"`
6341
}
6342

6343
// GetName is an internal getter (TBD...)
6344
func (v *TaskList) GetName() (o string) {
131,097✔
6345
        if v != nil {
262,194✔
6346
                return v.Name
131,097✔
6347
        }
131,097✔
6348
        return
×
6349
}
6350

6351
// GetKind is an internal getter (TBD...)
6352
func (v *TaskList) GetKind() (o TaskListKind) {
52,615✔
6353
        if v != nil && v.Kind != nil {
95,392✔
6354
                return *v.Kind
42,777✔
6355
        }
42,777✔
6356
        return
9,838✔
6357
}
6358

6359
// TaskListKind is an internal type (TBD...)
6360
type TaskListKind int32
6361

6362
// Ptr is a helper function for getting pointer value
6363
func (e TaskListKind) Ptr() *TaskListKind {
22,738✔
6364
        return &e
22,738✔
6365
}
22,738✔
6366

6367
// String returns a readable string representation of TaskListKind.
6368
func (e TaskListKind) String() string {
21✔
6369
        w := int32(e)
21✔
6370
        switch w {
21✔
6371
        case 0:
18✔
6372
                return "NORMAL"
18✔
6373
        case 1:
3✔
6374
                return "STICKY"
3✔
6375
        }
6376
        return fmt.Sprintf("TaskListKind(%d)", w)
×
6377
}
6378

6379
// UnmarshalText parses enum value from string representation
6380
func (e *TaskListKind) UnmarshalText(value []byte) error {
×
6381
        switch s := strings.ToUpper(string(value)); s {
×
6382
        case "NORMAL":
×
6383
                *e = TaskListKindNormal
×
6384
                return nil
×
6385
        case "STICKY":
×
6386
                *e = TaskListKindSticky
×
6387
                return nil
×
6388
        default:
×
6389
                val, err := strconv.ParseInt(s, 10, 32)
×
6390
                if err != nil {
×
6391
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "TaskListKind", err)
×
6392
                }
×
6393
                *e = TaskListKind(val)
×
6394
                return nil
×
6395
        }
6396
}
6397

6398
// MarshalText encodes TaskListKind to text.
6399
func (e TaskListKind) MarshalText() ([]byte, error) {
21✔
6400
        return []byte(e.String()), nil
21✔
6401
}
21✔
6402

6403
const (
6404
        // TaskListKindNormal is an option for TaskListKind
6405
        TaskListKindNormal TaskListKind = iota
6406
        // TaskListKindSticky is an option for TaskListKind
6407
        TaskListKindSticky
6408
)
6409

6410
// TaskListMetadata is an internal type (TBD...)
6411
type TaskListMetadata struct {
6412
        MaxTasksPerSecond *float64 `json:"maxTasksPerSecond,omitempty"`
6413
}
6414

6415
// TaskListPartitionMetadata is an internal type (TBD...)
6416
type TaskListPartitionMetadata struct {
6417
        Key           string `json:"key,omitempty"`
6418
        OwnerHostName string `json:"ownerHostName,omitempty"`
6419
}
6420

6421
// GetKey is an internal getter (TBD...)
6422
func (v *TaskListPartitionMetadata) GetKey() (o string) {
×
6423
        if v != nil {
×
6424
                return v.Key
×
6425
        }
×
6426
        return
×
6427
}
6428

6429
// GetOwnerHostName is an internal getter (TBD...)
6430
func (v *TaskListPartitionMetadata) GetOwnerHostName() (o string) {
×
6431
        if v != nil {
×
6432
                return v.OwnerHostName
×
6433
        }
×
6434
        return
×
6435
}
6436

6437
// TaskListStatus is an internal type (TBD...)
6438
type TaskListStatus struct {
6439
        BacklogCountHint int64        `json:"backlogCountHint,omitempty"`
6440
        ReadLevel        int64        `json:"readLevel,omitempty"`
6441
        AckLevel         int64        `json:"ackLevel,omitempty"`
6442
        RatePerSecond    float64      `json:"ratePerSecond,omitempty"`
6443
        TaskIDBlock      *TaskIDBlock `json:"taskIDBlock,omitempty"`
6444
}
6445

6446
// GetBacklogCountHint is an internal getter (TBD...)
6447
func (v *TaskListStatus) GetBacklogCountHint() (o int64) {
×
6448
        if v != nil {
×
6449
                return v.BacklogCountHint
×
6450
        }
×
6451
        return
×
6452
}
6453

6454
// GetReadLevel is an internal getter (TBD...)
6455
func (v *TaskListStatus) GetReadLevel() (o int64) {
×
6456
        if v != nil {
×
6457
                return v.ReadLevel
×
6458
        }
×
6459
        return
×
6460
}
6461

6462
// GetAckLevel is an internal getter (TBD...)
6463
func (v *TaskListStatus) GetAckLevel() (o int64) {
×
6464
        if v != nil {
×
6465
                return v.AckLevel
×
6466
        }
×
6467
        return
×
6468
}
6469

6470
// GetRatePerSecond is an internal getter (TBD...)
6471
func (v *TaskListStatus) GetRatePerSecond() (o float64) {
×
6472
        if v != nil {
×
6473
                return v.RatePerSecond
×
6474
        }
×
6475
        return
×
6476
}
6477

6478
// GetTaskIDBlock is an internal getter (TBD...)
6479
func (v *TaskListStatus) GetTaskIDBlock() (o *TaskIDBlock) {
×
6480
        if v != nil && v.TaskIDBlock != nil {
×
6481
                return v.TaskIDBlock
×
6482
        }
×
6483
        return
×
6484
}
6485

6486
// TaskListType is an internal type (TBD...)
6487
type TaskListType int32
6488

6489
// Ptr is a helper function for getting pointer value
6490
func (e TaskListType) Ptr() *TaskListType {
282✔
6491
        return &e
282✔
6492
}
282✔
6493

6494
// String returns a readable string representation of TaskListType.
6495
func (e TaskListType) String() string {
×
6496
        w := int32(e)
×
6497
        switch w {
×
6498
        case 0:
×
6499
                return "Decision"
×
6500
        case 1:
×
6501
                return "Activity"
×
6502
        }
6503
        return fmt.Sprintf("TaskListType(%d)", w)
×
6504
}
6505

6506
// UnmarshalText parses enum value from string representation
6507
func (e *TaskListType) UnmarshalText(value []byte) error {
×
6508
        switch s := strings.ToUpper(string(value)); s {
×
6509
        case "DECISION":
×
6510
                *e = TaskListTypeDecision
×
6511
                return nil
×
6512
        case "ACTIVITY":
×
6513
                *e = TaskListTypeActivity
×
6514
                return nil
×
6515
        default:
×
6516
                val, err := strconv.ParseInt(s, 10, 32)
×
6517
                if err != nil {
×
6518
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "TaskListType", err)
×
6519
                }
×
6520
                *e = TaskListType(val)
×
6521
                return nil
×
6522
        }
6523
}
6524

6525
// MarshalText encodes TaskListType to text.
6526
func (e TaskListType) MarshalText() ([]byte, error) {
×
6527
        return []byte(e.String()), nil
×
6528
}
×
6529

6530
const (
6531
        // TaskListTypeDecision is an option for TaskListType
6532
        TaskListTypeDecision TaskListType = iota
6533
        // TaskListTypeActivity is an option for TaskListType
6534
        TaskListTypeActivity
6535
)
6536

6537
// TerminateWorkflowExecutionRequest is an internal type (TBD...)
6538
type TerminateWorkflowExecutionRequest struct {
6539
        Domain              string             `json:"domain,omitempty"`
6540
        WorkflowExecution   *WorkflowExecution `json:"workflowExecution,omitempty"`
6541
        Reason              string             `json:"reason,omitempty"`
6542
        Details             []byte             `json:"details,omitempty"`
6543
        Identity            string             `json:"identity,omitempty"`
6544
        FirstExecutionRunID string             `json:"first_execution_run_id,omitempty"`
6545
}
6546

6547
func (v *TerminateWorkflowExecutionRequest) SerializeForLogging() (string, error) {
×
6548
        if v == nil {
×
6549
                return "", nil
×
6550
        }
×
6551
        return SerializeRequest(v)
×
6552
}
6553

6554
// GetDomain is an internal getter (TBD...)
6555
func (v *TerminateWorkflowExecutionRequest) GetDomain() (o string) {
336✔
6556
        if v != nil {
672✔
6557
                return v.Domain
336✔
6558
        }
336✔
6559
        return
×
6560
}
6561

6562
// GetWorkflowExecution is an internal getter (TBD...)
6563
func (v *TerminateWorkflowExecutionRequest) GetWorkflowExecution() (o *WorkflowExecution) {
48✔
6564
        if v != nil && v.WorkflowExecution != nil {
96✔
6565
                return v.WorkflowExecution
48✔
6566
        }
48✔
6567
        return
×
6568
}
6569

6570
// GetReason is an internal getter (TBD...)
6571
func (v *TerminateWorkflowExecutionRequest) GetReason() (o string) {
51✔
6572
        if v != nil {
102✔
6573
                return v.Reason
51✔
6574
        }
51✔
6575
        return
×
6576
}
6577

6578
// GetDetails is an internal getter (TBD...)
6579
func (v *TerminateWorkflowExecutionRequest) GetDetails() (o []byte) {
51✔
6580
        if v != nil && v.Details != nil {
54✔
6581
                return v.Details
3✔
6582
        }
3✔
6583
        return
48✔
6584
}
6585

6586
// GetIdentity is an internal getter (TBD...)
6587
func (v *TerminateWorkflowExecutionRequest) GetIdentity() (o string) {
51✔
6588
        if v != nil {
102✔
6589
                return v.Identity
51✔
6590
        }
51✔
6591
        return
×
6592
}
6593

6594
// GetFirstExecutionRunID is an internal getter (TBD...)
6595
func (v *TerminateWorkflowExecutionRequest) GetFirstExecutionRunID() (o string) {
105✔
6596
        if v != nil {
210✔
6597
                return v.FirstExecutionRunID
105✔
6598
        }
105✔
6599
        return
×
6600
}
6601

6602
// TimeoutType is an internal type (TBD...)
6603
type TimeoutType int32
6604

6605
// Ptr is a helper function for getting pointer value
6606
func (e TimeoutType) Ptr() *TimeoutType {
154✔
6607
        return &e
154✔
6608
}
154✔
6609

6610
// String returns a readable string representation of TimeoutType.
6611
func (e TimeoutType) String() string {
292✔
6612
        w := int32(e)
292✔
6613
        switch w {
292✔
6614
        case 0:
145✔
6615
                return "START_TO_CLOSE"
145✔
6616
        case 1:
105✔
6617
                return "SCHEDULE_TO_START"
105✔
6618
        case 2:
3✔
6619
                return "SCHEDULE_TO_CLOSE"
3✔
6620
        case 3:
39✔
6621
                return "HEARTBEAT"
39✔
6622
        }
6623
        return fmt.Sprintf("TimeoutType(%d)", w)
×
6624
}
6625

6626
// UnmarshalText parses enum value from string representation
6627
func (e *TimeoutType) UnmarshalText(value []byte) error {
×
6628
        switch s := strings.ToUpper(string(value)); s {
×
6629
        case "START_TO_CLOSE":
×
6630
                *e = TimeoutTypeStartToClose
×
6631
                return nil
×
6632
        case "SCHEDULE_TO_START":
×
6633
                *e = TimeoutTypeScheduleToStart
×
6634
                return nil
×
6635
        case "SCHEDULE_TO_CLOSE":
×
6636
                *e = TimeoutTypeScheduleToClose
×
6637
                return nil
×
6638
        case "HEARTBEAT":
×
6639
                *e = TimeoutTypeHeartbeat
×
6640
                return nil
×
6641
        default:
×
6642
                val, err := strconv.ParseInt(s, 10, 32)
×
6643
                if err != nil {
×
6644
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "TimeoutType", err)
×
6645
                }
×
6646
                *e = TimeoutType(val)
×
6647
                return nil
×
6648
        }
6649
}
6650

6651
// MarshalText encodes TimeoutType to text.
6652
func (e TimeoutType) MarshalText() ([]byte, error) {
78✔
6653
        return []byte(e.String()), nil
78✔
6654
}
78✔
6655

6656
const (
6657
        // TimeoutTypeStartToClose is an option for TimeoutType
6658
        TimeoutTypeStartToClose TimeoutType = iota
6659
        // TimeoutTypeScheduleToStart is an option for TimeoutType
6660
        TimeoutTypeScheduleToStart
6661
        // TimeoutTypeScheduleToClose is an option for TimeoutType
6662
        TimeoutTypeScheduleToClose
6663
        // TimeoutTypeHeartbeat is an option for TimeoutType
6664
        TimeoutTypeHeartbeat
6665
)
6666

6667
// TimerCanceledEventAttributes is an internal type (TBD...)
6668
type TimerCanceledEventAttributes struct {
6669
        TimerID                      string `json:"timerId,omitempty"`
6670
        StartedEventID               int64  `json:"startedEventId,omitempty"`
6671
        DecisionTaskCompletedEventID int64  `json:"decisionTaskCompletedEventId,omitempty"`
6672
        Identity                     string `json:"identity,omitempty"`
6673
}
6674

6675
// GetTimerID is an internal getter (TBD...)
6676
func (v *TimerCanceledEventAttributes) GetTimerID() (o string) {
6✔
6677
        if v != nil {
12✔
6678
                return v.TimerID
6✔
6679
        }
6✔
6680
        return
×
6681
}
6682

6683
// TimerFiredEventAttributes is an internal type (TBD...)
6684
type TimerFiredEventAttributes struct {
6685
        TimerID        string `json:"timerId,omitempty"`
6686
        StartedEventID int64  `json:"startedEventId,omitempty"`
6687
}
6688

6689
// GetTimerID is an internal getter (TBD...)
6690
func (v *TimerFiredEventAttributes) GetTimerID() (o string) {
24✔
6691
        if v != nil {
48✔
6692
                return v.TimerID
24✔
6693
        }
24✔
6694
        return
×
6695
}
6696

6697
// GetStartedEventID is an internal getter (TBD...)
6698
func (v *TimerFiredEventAttributes) GetStartedEventID() (o int64) {
3✔
6699
        if v != nil {
6✔
6700
                return v.StartedEventID
3✔
6701
        }
3✔
6702
        return
×
6703
}
6704

6705
// TimerStartedEventAttributes is an internal type (TBD...)
6706
type TimerStartedEventAttributes struct {
6707
        TimerID                      string `json:"timerId,omitempty"`
6708
        StartToFireTimeoutSeconds    *int64 `json:"startToFireTimeoutSeconds,omitempty"`
6709
        DecisionTaskCompletedEventID int64  `json:"decisionTaskCompletedEventId,omitempty"`
6710
}
6711

6712
// GetTimerID is an internal getter (TBD...)
6713
func (v *TimerStartedEventAttributes) GetTimerID() (o string) {
33✔
6714
        if v != nil {
66✔
6715
                return v.TimerID
33✔
6716
        }
33✔
6717
        return
×
6718
}
6719

6720
// GetStartToFireTimeoutSeconds is an internal getter (TBD...)
6721
func (v *TimerStartedEventAttributes) GetStartToFireTimeoutSeconds() (o int64) {
33✔
6722
        if v != nil && v.StartToFireTimeoutSeconds != nil {
66✔
6723
                return *v.StartToFireTimeoutSeconds
33✔
6724
        }
33✔
6725
        return
×
6726
}
6727

6728
// TransientDecisionInfo is an internal type (TBD...)
6729
type TransientDecisionInfo struct {
6730
        ScheduledEvent *HistoryEvent `json:"scheduledEvent,omitempty"`
6731
        StartedEvent   *HistoryEvent `json:"startedEvent,omitempty"`
6732
}
6733

6734
// UpdateDomainRequest is an internal type (TBD...)
6735
type UpdateDomainRequest struct {
6736
        Name                                   string                             `json:"name,omitempty"`
6737
        Description                            *string                            `json:"description,omitempty"`
6738
        OwnerEmail                             *string                            `json:"ownerEmail,omitempty"`
6739
        Data                                   map[string]string                  `json:"data,omitempty"`
6740
        WorkflowExecutionRetentionPeriodInDays *int32                             `json:"workflowExecutionRetentionPeriodInDays,omitempty"`
6741
        EmitMetric                             *bool                              `json:"emitMetric,omitempty"`
6742
        BadBinaries                            *BadBinaries                       `json:"badBinaries,omitempty"`
6743
        HistoryArchivalStatus                  *ArchivalStatus                    `json:"historyArchivalStatus,omitempty"`
6744
        HistoryArchivalURI                     *string                            `json:"historyArchivalURI,omitempty"`
6745
        VisibilityArchivalStatus               *ArchivalStatus                    `json:"visibilityArchivalStatus,omitempty"`
6746
        VisibilityArchivalURI                  *string                            `json:"visibilityArchivalURI,omitempty"`
6747
        ActiveClusterName                      *string                            `json:"activeClusterName,omitempty"`
6748
        Clusters                               []*ClusterReplicationConfiguration `json:"clusters,omitempty"`
6749
        SecurityToken                          string                             `json:"securityToken,omitempty"`
6750
        DeleteBadBinary                        *string                            `json:"deleteBadBinary,omitempty"`
6751
        FailoverTimeoutInSeconds               *int32                             `json:"failoverTimeoutInSeconds,omitempty"`
6752
}
6753

6754
func (v *UpdateDomainRequest) SerializeForLogging() (string, error) {
×
6755
        if v == nil {
×
6756
                return "", nil
×
6757
        }
×
6758
        return SerializeRequest(v)
×
6759
}
6760

6761
// GetName is an internal getter (TBD...)
6762
func (v *UpdateDomainRequest) GetName() (o string) {
×
6763
        if v != nil {
×
6764
                return v.Name
×
6765
        }
×
6766
        return
×
6767
}
6768

6769
// GetFailoverTimeoutInSeconds is an internal getter (TBD...)
6770
func (v *UpdateDomainRequest) GetFailoverTimeoutInSeconds() (o int32) {
×
6771
        if v != nil && v.FailoverTimeoutInSeconds != nil {
×
6772
                return *v.FailoverTimeoutInSeconds
×
6773
        }
×
6774
        return
×
6775
}
6776

6777
// GetHistoryArchivalURI is an internal getter (TBD...)
6778
func (v *UpdateDomainRequest) GetHistoryArchivalURI() (o string) {
×
6779
        if v != nil && v.HistoryArchivalURI != nil {
×
6780
                return *v.HistoryArchivalURI
×
6781
        }
×
6782
        return
×
6783
}
6784

6785
// GetVisibilityArchivalURI is an internal getter (TBD...)
6786
func (v *UpdateDomainRequest) GetVisibilityArchivalURI() (o string) {
×
6787
        if v != nil && v.VisibilityArchivalURI != nil {
×
6788
                return *v.VisibilityArchivalURI
×
6789
        }
×
6790
        return
×
6791
}
6792

6793
// UpdateDomainResponse is an internal type (TBD...)
6794
type UpdateDomainResponse struct {
6795
        DomainInfo               *DomainInfo                     `json:"domainInfo,omitempty"`
6796
        Configuration            *DomainConfiguration            `json:"configuration,omitempty"`
6797
        ReplicationConfiguration *DomainReplicationConfiguration `json:"replicationConfiguration,omitempty"`
6798
        FailoverVersion          int64                           `json:"failoverVersion,omitempty"`
6799
        IsGlobalDomain           bool                            `json:"isGlobalDomain,omitempty"`
6800
}
6801

6802
// GetDomainInfo is an internal getter (TBD...)
6803
func (v *UpdateDomainResponse) GetDomainInfo() (o *DomainInfo) {
×
6804
        if v != nil && v.DomainInfo != nil {
×
6805
                return v.DomainInfo
×
6806
        }
×
6807
        return
×
6808
}
6809

6810
// GetFailoverVersion is an internal getter (TBD...)
6811
func (v *UpdateDomainResponse) GetFailoverVersion() (o int64) {
×
6812
        if v != nil {
×
6813
                return v.FailoverVersion
×
6814
        }
×
6815
        return
×
6816
}
6817

6818
// GetIsGlobalDomain is an internal getter (TBD...)
6819
func (v *UpdateDomainResponse) GetIsGlobalDomain() (o bool) {
×
6820
        if v != nil {
×
6821
                return v.IsGlobalDomain
×
6822
        }
×
6823
        return
×
6824
}
6825

6826
// UpsertWorkflowSearchAttributesDecisionAttributes is an internal type (TBD...)
6827
type UpsertWorkflowSearchAttributesDecisionAttributes struct {
6828
        SearchAttributes *SearchAttributes `json:"searchAttributes,omitempty"`
6829
}
6830

6831
// GetSearchAttributes is an internal getter (TBD...)
6832
func (v *UpsertWorkflowSearchAttributesDecisionAttributes) GetSearchAttributes() (o *SearchAttributes) {
42✔
6833
        if v != nil && v.SearchAttributes != nil {
84✔
6834
                return v.SearchAttributes
42✔
6835
        }
42✔
6836
        return
×
6837
}
6838

6839
// UpsertWorkflowSearchAttributesEventAttributes is an internal type (TBD...)
6840
type UpsertWorkflowSearchAttributesEventAttributes struct {
6841
        DecisionTaskCompletedEventID int64             `json:"decisionTaskCompletedEventId,omitempty"`
6842
        SearchAttributes             *SearchAttributes `json:"searchAttributes,omitempty"`
6843
}
6844

6845
// GetSearchAttributes is an internal getter (TBD...)
6846
func (v *UpsertWorkflowSearchAttributesEventAttributes) GetSearchAttributes() (o *SearchAttributes) {
9✔
6847
        if v != nil && v.SearchAttributes != nil {
18✔
6848
                return v.SearchAttributes
9✔
6849
        }
9✔
6850
        return
×
6851
}
6852

6853
// VersionHistories is an internal type (TBD...)
6854
type VersionHistories struct {
6855
        CurrentVersionHistoryIndex int32             `json:"currentVersionHistoryIndex,omitempty"`
6856
        Histories                  []*VersionHistory `json:"histories,omitempty"`
6857
}
6858

6859
// GetCurrentVersionHistoryIndex is an internal getter (TBD...)
6860
func (v *VersionHistories) GetCurrentVersionHistoryIndex() (o int32) {
741✔
6861
        if v != nil {
1,482✔
6862
                return v.CurrentVersionHistoryIndex
741✔
6863
        }
741✔
6864
        return
×
6865
}
6866

6867
// VersionHistory is an internal type (TBD...)
6868
type VersionHistory struct {
6869
        BranchToken []byte                `json:"branchToken,omitempty"`
6870
        Items       []*VersionHistoryItem `json:"items,omitempty"`
6871
}
6872

6873
// GetItems is an internal getter (TBD...)
6874
func (v *VersionHistory) GetItems() (o []*VersionHistoryItem) {
×
6875
        if v != nil && v.Items != nil {
×
6876
                return v.Items
×
6877
        }
×
6878
        return
×
6879
}
6880

6881
// VersionHistoryItem is an internal type (TBD...)
6882
type VersionHistoryItem struct {
6883
        EventID int64 `json:"eventID,omitempty"`
6884
        Version int64 `json:"version,omitempty"`
6885
}
6886

6887
// GetVersion is an internal getter (TBD...)
6888
func (v *VersionHistoryItem) GetVersion() (o int64) {
×
6889
        if v != nil {
×
6890
                return v.Version
×
6891
        }
×
6892
        return
×
6893
}
6894

6895
// WorkerVersionInfo is an internal type (TBD...)
6896
type WorkerVersionInfo struct {
6897
        Impl           string `json:"impl,omitempty"`
6898
        FeatureVersion string `json:"featureVersion,omitempty"`
6899
}
6900

6901
// GetImpl is an internal getter (TBD...)
6902
func (v *WorkerVersionInfo) GetImpl() (o string) {
3✔
6903
        if v != nil {
6✔
6904
                return v.Impl
3✔
6905
        }
3✔
6906
        return
×
6907
}
6908

6909
// GetFeatureVersion is an internal getter (TBD...)
6910
func (v *WorkerVersionInfo) GetFeatureVersion() (o string) {
3✔
6911
        if v != nil {
6✔
6912
                return v.FeatureVersion
3✔
6913
        }
3✔
6914
        return
×
6915
}
6916

6917
// WorkflowExecution is an internal type (TBD...)
6918
type WorkflowExecution struct {
6919
        WorkflowID string `json:"workflowId,omitempty"`
6920
        RunID      string `json:"runId,omitempty"`
6921
}
6922

6923
// GetWorkflowID is an internal getter (TBD...)
6924
func (v *WorkflowExecution) GetWorkflowID() (o string) {
77,784✔
6925
        if v != nil {
155,510✔
6926
                return v.WorkflowID
77,726✔
6927
        }
77,726✔
6928
        return
58✔
6929
}
6930

6931
// GetRunID is an internal getter (TBD...)
6932
func (v *WorkflowExecution) GetRunID() (o string) {
87,776✔
6933
        if v != nil {
175,494✔
6934
                return v.RunID
87,718✔
6935
        }
87,718✔
6936
        return
58✔
6937
}
6938

6939
// WorkflowExecutionAlreadyStartedError is an internal type (TBD...)
6940
type WorkflowExecutionAlreadyStartedError struct {
6941
        Message        string `json:"message,omitempty"`
6942
        StartRequestID string `json:"startRequestId,omitempty"`
6943
        RunID          string `json:"runId,omitempty"`
6944
}
6945

6946
// GetMessage is an internal getter (TBD...)
6947
func (v *WorkflowExecutionAlreadyStartedError) GetMessage() (o string) {
6✔
6948
        if v != nil {
12✔
6949
                return v.Message
6✔
6950
        }
6✔
6951
        return
×
6952
}
6953

6954
// WorkflowExecutionCancelRequestedEventAttributes is an internal type (TBD...)
6955
type WorkflowExecutionCancelRequestedEventAttributes struct {
6956
        Cause                     string             `json:"cause,omitempty"`
6957
        ExternalInitiatedEventID  *int64             `json:"externalInitiatedEventId,omitempty"`
6958
        ExternalWorkflowExecution *WorkflowExecution `json:"externalWorkflowExecution,omitempty"`
6959
        Identity                  string             `json:"identity,omitempty"`
6960
}
6961

6962
// WorkflowExecutionCanceledEventAttributes is an internal type (TBD...)
6963
type WorkflowExecutionCanceledEventAttributes struct {
6964
        DecisionTaskCompletedEventID int64  `json:"decisionTaskCompletedEventId,omitempty"`
6965
        Details                      []byte `json:"details,omitempty"`
6966
}
6967

6968
// WorkflowExecutionCloseStatus is an internal type (TBD...)
6969
type WorkflowExecutionCloseStatus int32
6970

6971
// Ptr is a helper function for getting pointer value
6972
func (e WorkflowExecutionCloseStatus) Ptr() *WorkflowExecutionCloseStatus {
1,341✔
6973
        return &e
1,341✔
6974
}
1,341✔
6975

6976
// String returns a readable string representation of WorkflowExecutionCloseStatus.
6977
func (e WorkflowExecutionCloseStatus) String() string {
114✔
6978
        w := int32(e)
114✔
6979
        switch w {
114✔
6980
        case 0:
42✔
6981
                return "COMPLETED"
42✔
6982
        case 1:
×
6983
                return "FAILED"
×
6984
        case 2:
×
6985
                return "CANCELED"
×
6986
        case 3:
×
6987
                return "TERMINATED"
×
6988
        case 4:
72✔
6989
                return "CONTINUED_AS_NEW"
72✔
6990
        case 5:
×
6991
                return "TIMED_OUT"
×
6992
        }
6993
        return fmt.Sprintf("WorkflowExecutionCloseStatus(%d)", w)
×
6994
}
6995

6996
// UnmarshalText parses enum value from string representation
6997
func (e *WorkflowExecutionCloseStatus) UnmarshalText(value []byte) error {
36✔
6998
        switch s := strings.ToUpper(string(value)); s {
36✔
6999
        case "COMPLETED":
12✔
7000
                *e = WorkflowExecutionCloseStatusCompleted
12✔
7001
                return nil
12✔
7002
        case "FAILED":
×
7003
                *e = WorkflowExecutionCloseStatusFailed
×
7004
                return nil
×
7005
        case "CANCELED":
×
7006
                *e = WorkflowExecutionCloseStatusCanceled
×
7007
                return nil
×
7008
        case "TERMINATED":
×
7009
                *e = WorkflowExecutionCloseStatusTerminated
×
7010
                return nil
×
7011
        case "CONTINUED_AS_NEW":
24✔
7012
                *e = WorkflowExecutionCloseStatusContinuedAsNew
24✔
7013
                return nil
24✔
7014
        case "TIMED_OUT":
×
7015
                *e = WorkflowExecutionCloseStatusTimedOut
×
7016
                return nil
×
7017
        default:
×
7018
                val, err := strconv.ParseInt(s, 10, 32)
×
7019
                if err != nil {
×
7020
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "WorkflowExecutionCloseStatus", err)
×
7021
                }
×
7022
                *e = WorkflowExecutionCloseStatus(val)
×
7023
                return nil
×
7024
        }
7025
}
7026

7027
// MarshalText encodes WorkflowExecutionCloseStatus to text.
7028
func (e WorkflowExecutionCloseStatus) MarshalText() ([]byte, error) {
63✔
7029
        return []byte(e.String()), nil
63✔
7030
}
63✔
7031

7032
const (
7033
        // WorkflowExecutionCloseStatusCompleted is an option for WorkflowExecutionCloseStatus
7034
        WorkflowExecutionCloseStatusCompleted WorkflowExecutionCloseStatus = iota
7035
        // WorkflowExecutionCloseStatusFailed is an option for WorkflowExecutionCloseStatus
7036
        WorkflowExecutionCloseStatusFailed
7037
        // WorkflowExecutionCloseStatusCanceled is an option for WorkflowExecutionCloseStatus
7038
        WorkflowExecutionCloseStatusCanceled
7039
        // WorkflowExecutionCloseStatusTerminated is an option for WorkflowExecutionCloseStatus
7040
        WorkflowExecutionCloseStatusTerminated
7041
        // WorkflowExecutionCloseStatusContinuedAsNew is an option for WorkflowExecutionCloseStatus
7042
        WorkflowExecutionCloseStatusContinuedAsNew
7043
        // WorkflowExecutionCloseStatusTimedOut is an option for WorkflowExecutionCloseStatus
7044
        WorkflowExecutionCloseStatusTimedOut
7045
)
7046

7047
// WorkflowExecutionCompletedEventAttributes is an internal type (TBD...)
7048
type WorkflowExecutionCompletedEventAttributes struct {
7049
        Result                       []byte `json:"result,omitempty"`
7050
        DecisionTaskCompletedEventID int64  `json:"decisionTaskCompletedEventId,omitempty"`
7051
}
7052

7053
// WorkflowExecutionConfiguration is an internal type (TBD...)
7054
type WorkflowExecutionConfiguration struct {
7055
        TaskList                            *TaskList `json:"taskList,omitempty"`
7056
        ExecutionStartToCloseTimeoutSeconds *int32    `json:"executionStartToCloseTimeoutSeconds,omitempty"`
7057
        TaskStartToCloseTimeoutSeconds      *int32    `json:"taskStartToCloseTimeoutSeconds,omitempty"`
7058
}
7059

7060
// WorkflowExecutionContinuedAsNewEventAttributes is an internal type (TBD...)
7061
type WorkflowExecutionContinuedAsNewEventAttributes struct {
7062
        NewExecutionRunID                   string                  `json:"newExecutionRunId,omitempty"`
7063
        WorkflowType                        *WorkflowType           `json:"workflowType,omitempty"`
7064
        TaskList                            *TaskList               `json:"taskList,omitempty"`
7065
        Input                               []byte                  `json:"input,omitempty"`
7066
        ExecutionStartToCloseTimeoutSeconds *int32                  `json:"executionStartToCloseTimeoutSeconds,omitempty"`
7067
        TaskStartToCloseTimeoutSeconds      *int32                  `json:"taskStartToCloseTimeoutSeconds,omitempty"`
7068
        DecisionTaskCompletedEventID        int64                   `json:"decisionTaskCompletedEventId,omitempty"`
7069
        BackoffStartIntervalInSeconds       *int32                  `json:"backoffStartIntervalInSeconds,omitempty"`
7070
        Initiator                           *ContinueAsNewInitiator `json:"initiator,omitempty"`
7071
        FailureReason                       *string                 `json:"failureReason,omitempty"`
7072
        FailureDetails                      []byte                  `json:"failureDetails,omitempty"`
7073
        LastCompletionResult                []byte                  `json:"lastCompletionResult,omitempty"`
7074
        Header                              *Header                 `json:"header,omitempty"`
7075
        Memo                                *Memo                   `json:"memo,omitempty"`
7076
        SearchAttributes                    *SearchAttributes       `json:"searchAttributes,omitempty"`
7077
        JitterStartSeconds                  *int32                  `json:"jitterStartSeconds,omitempty"`
7078
}
7079

7080
// GetNewExecutionRunID is an internal getter (TBD...)
7081
func (v *WorkflowExecutionContinuedAsNewEventAttributes) GetNewExecutionRunID() (o string) {
3✔
7082
        if v != nil {
6✔
7083
                return v.NewExecutionRunID
3✔
7084
        }
3✔
7085
        return
×
7086
}
7087

7088
// GetInitiator is an internal getter (TBD...)
7089
func (v *WorkflowExecutionContinuedAsNewEventAttributes) GetInitiator() (o ContinueAsNewInitiator) {
12✔
7090
        if v != nil && v.Initiator != nil {
24✔
7091
                return *v.Initiator
12✔
7092
        }
12✔
7093
        return
×
7094
}
7095

7096
// GetFailureReason is an internal getter (TBD...)
7097
func (v *WorkflowExecutionContinuedAsNewEventAttributes) GetFailureReason() (o string) {
12✔
7098
        if v != nil && v.FailureReason != nil {
21✔
7099
                return *v.FailureReason
9✔
7100
        }
9✔
7101
        return
3✔
7102
}
7103

7104
// GetLastCompletionResult is an internal getter (TBD...)
7105
func (v *WorkflowExecutionContinuedAsNewEventAttributes) GetLastCompletionResult() (o []byte) {
9✔
7106
        if v != nil && v.LastCompletionResult != nil {
15✔
7107
                return v.LastCompletionResult
6✔
7108
        }
6✔
7109
        return
3✔
7110
}
7111

7112
// WorkflowExecutionFailedEventAttributes is an internal type (TBD...)
7113
type WorkflowExecutionFailedEventAttributes struct {
7114
        Reason                       *string `json:"reason,omitempty"`
7115
        Details                      []byte  `json:"details,omitempty"`
7116
        DecisionTaskCompletedEventID int64   `json:"decisionTaskCompletedEventId,omitempty"`
7117
}
7118

7119
// GetReason is an internal getter (TBD...)
7120
func (v *WorkflowExecutionFailedEventAttributes) GetReason() (o string) {
3✔
7121
        if v != nil && v.Reason != nil {
6✔
7122
                return *v.Reason
3✔
7123
        }
3✔
7124
        return
×
7125
}
7126

7127
// WorkflowExecutionFilter is an internal type (TBD...)
7128
type WorkflowExecutionFilter struct {
7129
        WorkflowID string `json:"workflowId,omitempty"`
7130
        RunID      string `json:"runId,omitempty"`
7131
}
7132

7133
// GetWorkflowID is an internal getter (TBD...)
7134
func (v *WorkflowExecutionFilter) GetWorkflowID() (o string) {
111✔
7135
        if v != nil {
222✔
7136
                return v.WorkflowID
111✔
7137
        }
111✔
7138
        return
×
7139
}
7140

7141
// WorkflowExecutionInfo is an internal type (TBD...)
7142
type WorkflowExecutionInfo struct {
7143
        Execution         *WorkflowExecution            `json:"execution,omitempty"`
7144
        Type              *WorkflowType                 `json:"type,omitempty"`
7145
        StartTime         *int64                        `json:"startTime,omitempty"`
7146
        CloseTime         *int64                        `json:"closeTime,omitempty"`
7147
        CloseStatus       *WorkflowExecutionCloseStatus `json:"closeStatus,omitempty"`
7148
        HistoryLength     int64                         `json:"historyLength,omitempty"`
7149
        ParentDomainID    *string                       `json:"parentDomainId,omitempty"`
7150
        ParentDomain      *string                       `json:"parentDomain,omitempty"`
7151
        ParentExecution   *WorkflowExecution            `json:"parentExecution,omitempty"`
7152
        ParentInitiatedID *int64                        `json:"parentInitiatedId,omitempty"`
7153
        ExecutionTime     *int64                        `json:"executionTime,omitempty"`
7154
        Memo              *Memo                         `json:"memo,omitempty"`
7155
        SearchAttributes  *SearchAttributes             `json:"searchAttributes,omitempty"`
7156
        AutoResetPoints   *ResetPoints                  `json:"autoResetPoints,omitempty"`
7157
        TaskList          string                        `json:"taskList,omitempty"`
7158
        IsCron            bool                          `json:"isCron,omitempty"`
7159
        UpdateTime        *int64                        `json:"updateTime,omitempty"`
7160
        PartitionConfig   map[string]string
7161
}
7162

7163
// GetExecution is an internal getter (TBD...)
7164
func (v *WorkflowExecutionInfo) GetExecution() (o *WorkflowExecution) {
72✔
7165
        if v != nil && v.Execution != nil {
144✔
7166
                return v.Execution
72✔
7167
        }
72✔
7168
        return
×
7169
}
7170

7171
// GetType is an internal getter (TBD...)
7172
func (v *WorkflowExecutionInfo) GetType() (o *WorkflowType) {
15✔
7173
        if v != nil && v.Type != nil {
30✔
7174
                return v.Type
15✔
7175
        }
15✔
7176
        return
×
7177
}
7178

7179
// GetStartTime is an internal getter (TBD...)
7180
func (v *WorkflowExecutionInfo) GetStartTime() (o int64) {
306✔
7181
        if v != nil && v.StartTime != nil {
612✔
7182
                return *v.StartTime
306✔
7183
        }
306✔
7184
        return
×
7185
}
7186

7187
// GetCloseTime is an internal getter (TBD...)
7188
func (v *WorkflowExecutionInfo) GetCloseTime() (o int64) {
48✔
7189
        if v != nil && v.CloseTime != nil {
72✔
7190
                return *v.CloseTime
24✔
7191
        }
24✔
7192
        return
24✔
7193
}
7194

7195
// GetCloseStatus is an internal getter (TBD...)
7196
func (v *WorkflowExecutionInfo) GetCloseStatus() (o WorkflowExecutionCloseStatus) {
×
7197
        if v != nil && v.CloseStatus != nil {
×
7198
                return *v.CloseStatus
×
7199
        }
×
7200
        return
×
7201
}
7202

7203
// GetExecutionTime is an internal getter (TBD...)
7204
func (v *WorkflowExecutionInfo) GetExecutionTime() (o int64) {
126✔
7205
        if v != nil && v.ExecutionTime != nil {
252✔
7206
                return *v.ExecutionTime
126✔
7207
        }
126✔
7208
        return
×
7209
}
7210

7211
// GetUpdateTime is an internal getter (TBD...)
7212
func (v *WorkflowExecutionInfo) GetUpdateTime() (o int64) {
×
7213
        if v != nil && v.UpdateTime != nil {
×
7214
                return *v.UpdateTime
×
7215
        }
×
7216
        return
×
7217
}
7218

7219
// GetSearchAttributes is an internal getter (TBD...)
7220
func (v *WorkflowExecutionInfo) GetSearchAttributes() (o *SearchAttributes) {
63✔
7221
        if v != nil && v.SearchAttributes != nil {
126✔
7222
                return v.SearchAttributes
63✔
7223
        }
63✔
7224
        return
×
7225
}
7226

7227
// GetPartitionConfig is an internal getter (TBD...)
7228
func (v *WorkflowExecutionInfo) GetPartitionConfig() (o map[string]string) {
×
7229
        if v != nil && v.PartitionConfig != nil {
×
7230
                return v.PartitionConfig
×
7231
        }
×
7232
        return
×
7233
}
7234

7235
// WorkflowExecutionSignaledEventAttributes is an internal type (TBD...)
7236
type WorkflowExecutionSignaledEventAttributes struct {
7237
        SignalName string `json:"signalName,omitempty"`
7238
        Input      []byte `json:"input,omitempty"`
7239
        Identity   string `json:"identity,omitempty"`
7240
}
7241

7242
// GetSignalName is an internal getter (TBD...)
7243
func (v *WorkflowExecutionSignaledEventAttributes) GetSignalName() (o string) {
×
7244
        if v != nil {
×
7245
                return v.SignalName
×
7246
        }
×
7247
        return
×
7248
}
7249

7250
// GetInput is an internal getter (TBD...)
7251
func (v *WorkflowExecutionSignaledEventAttributes) GetInput() (o []byte) {
×
7252
        if v != nil && v.Input != nil {
×
7253
                return v.Input
×
7254
        }
×
7255
        return
×
7256
}
7257

7258
// GetIdentity is an internal getter (TBD...)
7259
func (v *WorkflowExecutionSignaledEventAttributes) GetIdentity() (o string) {
×
7260
        if v != nil {
×
7261
                return v.Identity
×
7262
        }
×
7263
        return
×
7264
}
7265

7266
// WorkflowExecutionStartedEventAttributes is an internal type (TBD...)
7267
type WorkflowExecutionStartedEventAttributes struct {
7268
        WorkflowType                        *WorkflowType           `json:"workflowType,omitempty"`
7269
        ParentWorkflowDomainID              *string                 `json:"parentWorkflowDomainID,omitempty"`
7270
        ParentWorkflowDomain                *string                 `json:"parentWorkflowDomain,omitempty"`
7271
        ParentWorkflowExecution             *WorkflowExecution      `json:"parentWorkflowExecution,omitempty"`
7272
        ParentInitiatedEventID              *int64                  `json:"parentInitiatedEventId,omitempty"`
7273
        TaskList                            *TaskList               `json:"taskList,omitempty"`
7274
        Input                               []byte                  `json:"input,omitempty"`
7275
        ExecutionStartToCloseTimeoutSeconds *int32                  `json:"executionStartToCloseTimeoutSeconds,omitempty"`
7276
        TaskStartToCloseTimeoutSeconds      *int32                  `json:"taskStartToCloseTimeoutSeconds,omitempty"`
7277
        ContinuedExecutionRunID             string                  `json:"continuedExecutionRunId,omitempty"`
7278
        Initiator                           *ContinueAsNewInitiator `json:"initiator,omitempty"`
7279
        ContinuedFailureReason              *string                 `json:"continuedFailureReason,omitempty"`
7280
        ContinuedFailureDetails             []byte                  `json:"continuedFailureDetails,omitempty"`
7281
        LastCompletionResult                []byte                  `json:"lastCompletionResult,omitempty"`
7282
        OriginalExecutionRunID              string                  `json:"originalExecutionRunId,omitempty"`
7283
        Identity                            string                  `json:"identity,omitempty"`
7284
        FirstExecutionRunID                 string                  `json:"firstExecutionRunId,omitempty"`
7285
        FirstScheduleTime                   *time.Time              `json:"firstScheduleTimeNano,omitempty"`
7286
        RetryPolicy                         *RetryPolicy            `json:"retryPolicy,omitempty"`
7287
        Attempt                             int32                   `json:"attempt,omitempty"`
7288
        ExpirationTimestamp                 *int64                  `json:"expirationTimestamp,omitempty"`
7289
        CronSchedule                        string                  `json:"cronSchedule,omitempty"`
7290
        FirstDecisionTaskBackoffSeconds     *int32                  `json:"firstDecisionTaskBackoffSeconds,omitempty"`
7291
        Memo                                *Memo                   `json:"memo,omitempty"`
7292
        SearchAttributes                    *SearchAttributes       `json:"searchAttributes,omitempty"`
7293
        PrevAutoResetPoints                 *ResetPoints            `json:"prevAutoResetPoints,omitempty"`
7294
        Header                              *Header                 `json:"header,omitempty"`
7295
        JitterStartSeconds                  *int32                  `json:"jitterStartSeconds,omitempty"`
7296
        PartitionConfig                     map[string]string
7297
}
7298

7299
// GetParentWorkflowDomain is an internal getter (TBD...)
7300
func (v *WorkflowExecutionStartedEventAttributes) GetParentWorkflowDomain() (o string) {
66✔
7301
        if v != nil && v.ParentWorkflowDomain != nil {
78✔
7302
                return *v.ParentWorkflowDomain
12✔
7303
        }
12✔
7304
        return
57✔
7305
}
7306

7307
// GetParentInitiatedEventID is an internal getter (TBD...)
7308
func (v *WorkflowExecutionStartedEventAttributes) GetParentInitiatedEventID() (o int64) {
69✔
7309
        if v != nil && v.ParentInitiatedEventID != nil {
138✔
7310
                return *v.ParentInitiatedEventID
69✔
7311
        }
69✔
7312
        return
×
7313
}
7314

7315
// GetExecutionStartToCloseTimeoutSeconds is an internal getter (TBD...)
7316
func (v *WorkflowExecutionStartedEventAttributes) GetExecutionStartToCloseTimeoutSeconds() (o int32) {
663✔
7317
        if v != nil && v.ExecutionStartToCloseTimeoutSeconds != nil {
1,326✔
7318
                return *v.ExecutionStartToCloseTimeoutSeconds
663✔
7319
        }
663✔
7320
        return
×
7321
}
7322

7323
// GetTaskStartToCloseTimeoutSeconds is an internal getter (TBD...)
7324
func (v *WorkflowExecutionStartedEventAttributes) GetTaskStartToCloseTimeoutSeconds() (o int32) {
663✔
7325
        if v != nil && v.TaskStartToCloseTimeoutSeconds != nil {
1,326✔
7326
                return *v.TaskStartToCloseTimeoutSeconds
663✔
7327
        }
663✔
7328
        return
×
7329
}
7330

7331
// GetContinuedExecutionRunID is an internal getter (TBD...)
7332
func (v *WorkflowExecutionStartedEventAttributes) GetContinuedExecutionRunID() (o string) {
666✔
7333
        if v != nil {
1,332✔
7334
                return v.ContinuedExecutionRunID
666✔
7335
        }
666✔
7336
        return
×
7337
}
7338

7339
// GetInitiator is an internal getter (TBD...)
7340
func (v *WorkflowExecutionStartedEventAttributes) GetInitiator() (o ContinueAsNewInitiator) {
45✔
7341
        if v != nil && v.Initiator != nil {
90✔
7342
                return *v.Initiator
45✔
7343
        }
45✔
7344
        return
×
7345
}
7346

7347
// GetFirstExecutionRunID is an internal getter (TBD...)
7348
func (v *WorkflowExecutionStartedEventAttributes) GetFirstExecutionRunID() (o string) {
663✔
7349
        if v != nil {
1,326✔
7350
                return v.FirstExecutionRunID
663✔
7351
        }
663✔
7352
        return
×
7353
}
7354

7355
// Get
7356
func (v *WorkflowExecutionStartedEventAttributes) GetFirstScheduledTime() (o time.Time) {
156✔
7357
        if v != nil && v.FirstScheduleTime != nil {
180✔
7358
                return *v.FirstScheduleTime
24✔
7359
        }
24✔
7360
        return
132✔
7361
}
7362

7363
// GetAttempt is an internal getter (TBD...)
7364
func (v *WorkflowExecutionStartedEventAttributes) GetAttempt() (o int32) {
690✔
7365
        if v != nil {
1,380✔
7366
                return v.Attempt
690✔
7367
        }
690✔
7368
        return
×
7369
}
7370

7371
// GetExpirationTimestamp is an internal getter (TBD...)
7372
func (v *WorkflowExecutionStartedEventAttributes) GetExpirationTimestamp() (o int64) {
705✔
7373
        if v != nil && v.ExpirationTimestamp != nil {
792✔
7374
                return *v.ExpirationTimestamp
87✔
7375
        }
87✔
7376
        return
621✔
7377
}
7378

7379
// GetCronSchedule is an internal getter (TBD...)
7380
func (v *WorkflowExecutionStartedEventAttributes) GetCronSchedule() (o string) {
663✔
7381
        if v != nil {
1,326✔
7382
                return v.CronSchedule
663✔
7383
        }
663✔
7384
        return
×
7385
}
7386

7387
// GetFirstDecisionTaskBackoffSeconds is an internal getter (TBD...)
7388
func (v *WorkflowExecutionStartedEventAttributes) GetFirstDecisionTaskBackoffSeconds() (o int32) {
2,773✔
7389
        if v != nil && v.FirstDecisionTaskBackoffSeconds != nil {
5,075✔
7390
                return *v.FirstDecisionTaskBackoffSeconds
2,302✔
7391
        }
2,302✔
7392
        return
474✔
7393
}
7394

7395
func (v *WorkflowExecutionStartedEventAttributes) GetJitterStartSeconds() (o int32) {
24✔
7396
        if v != nil && v.JitterStartSeconds != nil {
24✔
7397
                return *v.JitterStartSeconds
×
7398
        }
×
7399
        return
24✔
7400
}
7401

7402
// GetMemo is an internal getter (TBD...)
7403
func (v *WorkflowExecutionStartedEventAttributes) GetMemo() (o *Memo) {
3✔
7404
        if v != nil && v.Memo != nil {
6✔
7405
                return v.Memo
3✔
7406
        }
3✔
7407
        return
×
7408
}
7409

7410
// GetSearchAttributes is an internal getter (TBD...)
7411
func (v *WorkflowExecutionStartedEventAttributes) GetSearchAttributes() (o *SearchAttributes) {
3✔
7412
        if v != nil && v.SearchAttributes != nil {
6✔
7413
                return v.SearchAttributes
3✔
7414
        }
3✔
7415
        return
×
7416
}
7417

7418
// GetPrevAutoResetPoints is an internal getter (TBD...)
7419
func (v *WorkflowExecutionStartedEventAttributes) GetPrevAutoResetPoints() (o *ResetPoints) {
663✔
7420
        if v != nil && v.PrevAutoResetPoints != nil {
819✔
7421
                return v.PrevAutoResetPoints
156✔
7422
        }
156✔
7423
        return
507✔
7424
}
7425

7426
// GetPartitionConfig is an internal getter (TBD...)
7427
func (v *WorkflowExecutionStartedEventAttributes) GetPartitionConfig() (o map[string]string) {
×
7428
        if v != nil && v.PartitionConfig != nil {
×
7429
                return v.PartitionConfig
×
7430
        }
×
7431
        return
×
7432
}
7433

7434
// WorkflowExecutionTerminatedEventAttributes is an internal type (TBD...)
7435
type WorkflowExecutionTerminatedEventAttributes struct {
7436
        Reason   string `json:"reason,omitempty"`
7437
        Details  []byte `json:"details,omitempty"`
7438
        Identity string `json:"identity,omitempty"`
7439
}
7440

7441
// GetReason is an internal getter (TBD...)
7442
func (v *WorkflowExecutionTerminatedEventAttributes) GetReason() (o string) {
6✔
7443
        if v != nil {
12✔
7444
                return v.Reason
6✔
7445
        }
6✔
7446
        return
×
7447
}
7448

7449
// GetIdentity is an internal getter (TBD...)
7450
func (v *WorkflowExecutionTerminatedEventAttributes) GetIdentity() (o string) {
6✔
7451
        if v != nil {
12✔
7452
                return v.Identity
6✔
7453
        }
6✔
7454
        return
×
7455
}
7456

7457
// WorkflowExecutionTimedOutEventAttributes is an internal type (TBD...)
7458
type WorkflowExecutionTimedOutEventAttributes struct {
7459
        TimeoutType *TimeoutType `json:"timeoutType,omitempty"`
7460
}
7461

7462
// GetTimeoutType is an internal getter (TBD...)
7463
func (v *WorkflowExecutionTimedOutEventAttributes) GetTimeoutType() (o TimeoutType) {
×
7464
        if v != nil && v.TimeoutType != nil {
×
7465
                return *v.TimeoutType
×
7466
        }
×
7467
        return
×
7468
}
7469

7470
// WorkflowIDReusePolicy is an internal type (TBD...)
7471
type WorkflowIDReusePolicy int32
7472

7473
// Ptr is a helper function for getting pointer value
7474
func (e WorkflowIDReusePolicy) Ptr() *WorkflowIDReusePolicy {
129✔
7475
        return &e
129✔
7476
}
129✔
7477

7478
// String returns a readable string representation of WorkflowIDReusePolicy.
7479
func (e WorkflowIDReusePolicy) String() string {
3✔
7480
        w := int32(e)
3✔
7481
        switch w {
3✔
7482
        case 0:
×
7483
                return "AllowDuplicateFailedOnly"
×
7484
        case 1:
3✔
7485
                return "AllowDuplicate"
3✔
7486
        case 2:
×
7487
                return "RejectDuplicate"
×
7488
        case 3:
×
7489
                return "TerminateIfRunning"
×
7490
        }
7491
        return fmt.Sprintf("WorkflowIDReusePolicy(%d)", w)
×
7492
}
7493

7494
// UnmarshalText parses enum value from string representation
7495
func (e *WorkflowIDReusePolicy) UnmarshalText(value []byte) error {
×
7496
        switch s := strings.ToUpper(string(value)); s {
×
7497
        case "ALLOWDUPLICATEFAILEDONLY":
×
7498
                *e = WorkflowIDReusePolicyAllowDuplicateFailedOnly
×
7499
                return nil
×
7500
        case "ALLOWDUPLICATE":
×
7501
                *e = WorkflowIDReusePolicyAllowDuplicate
×
7502
                return nil
×
7503
        case "REJECTDUPLICATE":
×
7504
                *e = WorkflowIDReusePolicyRejectDuplicate
×
7505
                return nil
×
7506
        case "TERMINATEIFRUNNING":
×
7507
                *e = WorkflowIDReusePolicyTerminateIfRunning
×
7508
                return nil
×
7509
        default:
×
7510
                val, err := strconv.ParseInt(s, 10, 32)
×
7511
                if err != nil {
×
7512
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "WorkflowIDReusePolicy", err)
×
7513
                }
×
7514
                *e = WorkflowIDReusePolicy(val)
×
7515
                return nil
×
7516
        }
7517
}
7518

7519
// MarshalText encodes WorkflowIDReusePolicy to text.
7520
func (e WorkflowIDReusePolicy) MarshalText() ([]byte, error) {
3✔
7521
        return []byte(e.String()), nil
3✔
7522
}
3✔
7523

7524
const (
7525
        // WorkflowIDReusePolicyAllowDuplicateFailedOnly is an option for WorkflowIDReusePolicy
7526
        WorkflowIDReusePolicyAllowDuplicateFailedOnly WorkflowIDReusePolicy = iota
7527
        // WorkflowIDReusePolicyAllowDuplicate is an option for WorkflowIDReusePolicy
7528
        WorkflowIDReusePolicyAllowDuplicate
7529
        // WorkflowIDReusePolicyRejectDuplicate is an option for WorkflowIDReusePolicy
7530
        WorkflowIDReusePolicyRejectDuplicate
7531
        // WorkflowIDReusePolicyTerminateIfRunning is an option for WorkflowIDReusePolicy
7532
        WorkflowIDReusePolicyTerminateIfRunning
7533
)
7534

7535
// WorkflowQuery is an internal type (TBD...)
7536
type WorkflowQuery struct {
7537
        QueryType string `json:"queryType,omitempty"`
7538
        QueryArgs []byte `json:"queryArgs,omitempty"`
7539
}
7540

7541
// GetQueryType is an internal getter (TBD...)
7542
func (v *WorkflowQuery) GetQueryType() (o string) {
84✔
7543
        if v != nil {
168✔
7544
                return v.QueryType
84✔
7545
        }
84✔
7546
        return
×
7547
}
7548

7549
// GetQueryArgs is an internal getter (TBD...)
7550
func (v *WorkflowQuery) GetQueryArgs() (o []byte) {
45✔
7551
        if v != nil && v.QueryArgs != nil {
51✔
7552
                return v.QueryArgs
6✔
7553
        }
6✔
7554
        return
39✔
7555
}
7556

7557
// WorkflowQueryResult is an internal type (TBD...)
7558
type WorkflowQueryResult struct {
7559
        ResultType   *QueryResultType `json:"resultType,omitempty"`
7560
        Answer       []byte           `json:"answer,omitempty"`
7561
        ErrorMessage string           `json:"errorMessage,omitempty"`
7562
}
7563

7564
// GetResultType is an internal getter (TBD...)
7565
func (v *WorkflowQueryResult) GetResultType() (o QueryResultType) {
18✔
7566
        if v != nil && v.ResultType != nil {
36✔
7567
                return *v.ResultType
18✔
7568
        }
18✔
7569
        return
×
7570
}
7571

7572
// GetAnswer is an internal getter (TBD...)
7573
func (v *WorkflowQueryResult) GetAnswer() (o []byte) {
12✔
7574
        if v != nil && v.Answer != nil {
24✔
7575
                return v.Answer
12✔
7576
        }
12✔
7577
        return
×
7578
}
7579

7580
// GetErrorMessage is an internal getter (TBD...)
7581
func (v *WorkflowQueryResult) GetErrorMessage() (o string) {
×
7582
        if v != nil {
×
7583
                return v.ErrorMessage
×
7584
        }
×
7585
        return
×
7586
}
7587

7588
// WorkflowType is an internal type (TBD...)
7589
type WorkflowType struct {
7590
        Name string `json:"name,omitempty"`
7591
}
7592

7593
// GetName is an internal getter (TBD...)
7594
func (v *WorkflowType) GetName() (o string) {
3,336✔
7595
        if v != nil {
6,672✔
7596
                return v.Name
3,336✔
7597
        }
3,336✔
7598
        return
×
7599
}
7600

7601
// WorkflowTypeFilter is an internal type (TBD...)
7602
type WorkflowTypeFilter struct {
7603
        Name string `json:"name,omitempty"`
7604
}
7605

7606
// GetName is an internal getter (TBD...)
7607
func (v *WorkflowTypeFilter) GetName() (o string) {
×
7608
        if v != nil {
×
7609
                return v.Name
×
7610
        }
×
7611
        return
×
7612
}
7613

7614
// CrossClusterTaskType is an internal type (TBD...)
7615
type CrossClusterTaskType int32
7616

7617
// Ptr is a helper function for getting pointer value
7618
func (e CrossClusterTaskType) Ptr() *CrossClusterTaskType {
×
7619
        return &e
×
7620
}
×
7621

7622
// String returns a readable string representation of CrossClusterTaskType.
7623
func (e CrossClusterTaskType) String() string {
×
7624
        w := int32(e)
×
7625
        switch w {
×
7626
        case 0:
×
7627
                return "StartChildExecution"
×
7628
        case 1:
×
7629
                return "CancelExecution"
×
7630
        case 2:
×
7631
                return "SignalExecution"
×
7632
        case 3:
×
7633
                return "RecordChildWorkflowExecutionComplete"
×
7634
        case 4:
×
7635
                return "ApplyParentClosePolicy"
×
7636
        }
7637
        return fmt.Sprintf("CrossClusterTaskType(%d)", w)
×
7638
}
7639

7640
// UnmarshalText parses enum value from string representation
7641
func (e *CrossClusterTaskType) UnmarshalText(value []byte) error {
×
7642
        switch s := strings.ToUpper(string(value)); s {
×
7643
        case "STARTCHILDEXECUTION":
×
7644
                *e = CrossClusterTaskTypeStartChildExecution
×
7645
                return nil
×
7646
        case "CANCELEXECUTION":
×
7647
                *e = CrossClusterTaskTypeCancelExecution
×
7648
                return nil
×
7649
        case "SIGNALEXECUTION":
×
7650
                *e = CrossClusterTaskTypeSignalExecution
×
7651
                return nil
×
7652
        case "RECORDCHILDWORKLOWEXECUTIONCOMPLETE":
×
7653
                *e = CrossClusterTaskTypeRecordChildWorkflowExeuctionComplete
×
7654
                return nil
×
7655
        case "APPLYPARENTCLOSEPOLICY":
×
7656
                *e = CrossClusterTaskTypeApplyParentPolicy
×
7657
                return nil
×
7658
        default:
×
7659
                val, err := strconv.ParseInt(s, 10, 32)
×
7660
                if err != nil {
×
7661
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "CrossClusterTaskType", err)
×
7662
                }
×
7663
                *e = CrossClusterTaskType(val)
×
7664
                return nil
×
7665
        }
7666
}
7667

7668
// MarshalText encodes CrossClusterTaskType to text.
7669
func (e CrossClusterTaskType) MarshalText() ([]byte, error) {
×
7670
        return []byte(e.String()), nil
×
7671
}
×
7672

7673
const (
7674
        // CrossClusterTaskTypeStartChildExecution is an option for CrossClusterTaskType
7675
        CrossClusterTaskTypeStartChildExecution CrossClusterTaskType = iota
7676
        // CrossClusterTaskTypeCancelExecution is an option for CrossClusterTaskType
7677
        CrossClusterTaskTypeCancelExecution
7678
        // CrossClusterTaskTypeSignalExecution is an option for CrossClusterTaskType
7679
        CrossClusterTaskTypeSignalExecution
7680
        // CrossClusterTaskTypeRecordChildWorkflowExeuctionComplete is an option for CrossClusterTaskType
7681
        CrossClusterTaskTypeRecordChildWorkflowExeuctionComplete
7682
        // CrossClusterTaskTypeApplyParentPolicy is an option for CrossClusterTaskType
7683
        CrossClusterTaskTypeApplyParentPolicy
7684
)
7685

7686
// CrossClusterTaskFailedCause is an internal type (TBD...)
7687
type CrossClusterTaskFailedCause int32
7688

7689
// Ptr is a helper function for getting pointer value
7690
func (e CrossClusterTaskFailedCause) Ptr() *CrossClusterTaskFailedCause {
×
7691
        return &e
×
7692
}
×
7693

7694
// String returns a readable string representation of CrossClusterTaskFailedCause.
7695
func (e CrossClusterTaskFailedCause) String() string {
×
7696
        w := int32(e)
×
7697
        switch w {
×
7698
        case 0:
×
7699
                return "DOMAIN_NOT_ACTIVE"
×
7700
        case 1:
×
7701
                return "DOMAIN_NOT_EXISTS"
×
7702
        case 2:
×
7703
                return "WORKFLOW_ALREADY_RUNNING"
×
7704
        case 3:
×
7705
                return "WORKFLOW_NOT_EXISTS"
×
7706
        case 4:
×
7707
                return "WORKFLOW_ALREADY_COMPLETED"
×
7708
        case 5:
×
7709
                return "UNCATEGORIZED"
×
7710
        }
7711
        return fmt.Sprintf("CrossClusterTaskFailedCause(%d)", w)
×
7712
}
7713

7714
// UnmarshalText parses enum value from string representation
7715
func (e *CrossClusterTaskFailedCause) UnmarshalText(value []byte) error {
×
7716
        switch s := strings.ToUpper(string(value)); s {
×
7717
        case "DOMAIN_NOT_ACTIVE":
×
7718
                *e = CrossClusterTaskFailedCauseDomainNotActive
×
7719
                return nil
×
7720
        case "DOMAIN_NOT_EXISTS":
×
7721
                *e = CrossClusterTaskFailedCauseDomainNotExists
×
7722
                return nil
×
7723
        case "WORKFLOW_ALREADY_RUNNING":
×
7724
                *e = CrossClusterTaskFailedCauseWorkflowAlreadyRunning
×
7725
                return nil
×
7726
        case "WORKFLOW_NOT_EXISTS":
×
7727
                *e = CrossClusterTaskFailedCauseWorkflowNotExists
×
7728
                return nil
×
7729
        case "WORKFLOW_ALREADY_COMPLETED":
×
7730
                *e = CrossClusterTaskFailedCauseWorkflowAlreadyCompleted
×
7731
                return nil
×
7732
        case "UNCATEGORIZED":
×
7733
                *e = CrossClusterTaskFailedCauseUncategorized
×
7734
                return nil
×
7735
        default:
×
7736
                val, err := strconv.ParseInt(s, 10, 32)
×
7737
                if err != nil {
×
7738
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "CrossClusterTaskFailedCause", err)
×
7739
                }
×
7740
                *e = CrossClusterTaskFailedCause(val)
×
7741
                return nil
×
7742
        }
7743
}
7744

7745
// MarshalText encodes CrossClusterTaskFailedCause to text.
7746
func (e CrossClusterTaskFailedCause) MarshalText() ([]byte, error) {
×
7747
        return []byte(e.String()), nil
×
7748
}
×
7749

7750
const (
7751
        // CrossClusterTaskFailedCauseDomainNotActive is an option for CrossClusterTaskFailedCause
7752
        CrossClusterTaskFailedCauseDomainNotActive CrossClusterTaskFailedCause = iota
7753
        // CrossClusterTaskFailedCauseDomainNotExists is an option for CrossClusterTaskFailedCause
7754
        CrossClusterTaskFailedCauseDomainNotExists
7755
        // CrossClusterTaskFailedCauseWorkflowAlreadyRunning is an option for CrossClusterTaskFailedCause
7756
        CrossClusterTaskFailedCauseWorkflowAlreadyRunning
7757
        // CrossClusterTaskFailedCauseWorkflowNotExists is an option for CrossClusterTaskFailedCause
7758
        CrossClusterTaskFailedCauseWorkflowNotExists
7759
        //CrossClusterTaskFailedCauseWorkflowAlreadyCompleted is an option for CrossClusterTaskFailedCause
7760
        CrossClusterTaskFailedCauseWorkflowAlreadyCompleted
7761
        // CrossClusterTaskFailedCauseUncategorized is an option for CrossClusterTaskFailedCause
7762
        CrossClusterTaskFailedCauseUncategorized
7763
)
7764

7765
// GetTaskFailedCause is an internal type (TBD...)
7766
type GetTaskFailedCause int32
7767

7768
// Ptr is a helper function for getting pointer value
7769
func (e GetTaskFailedCause) Ptr() *GetTaskFailedCause {
×
7770
        return &e
×
7771
}
×
7772

7773
// String returns a readable string representation of GetCrossClusterTaskFailedCause.
7774
func (e GetTaskFailedCause) String() string {
×
7775
        w := int32(e)
×
7776
        switch w {
×
7777
        case 0:
×
7778
                return "SERVICE_BUSY"
×
7779
        case 1:
×
7780
                return "TIMEOUT"
×
7781
        case 2:
×
7782
                return "SHARD_OWNERSHIP_LOST"
×
7783
        case 3:
×
7784
                return "UNCATEGORIZED"
×
7785
        }
7786
        return fmt.Sprintf("GetCrossClusterTaskFailedCause(%d)", w)
×
7787
}
7788

7789
// UnmarshalText parses enum value from string representation
7790
func (e *GetTaskFailedCause) UnmarshalText(value []byte) error {
×
7791
        switch s := strings.ToUpper(string(value)); s {
×
7792
        case "SERVICE_BUSY":
×
7793
                *e = GetTaskFailedCauseServiceBusy
×
7794
                return nil
×
7795
        case "TIMEOUT":
×
7796
                *e = GetTaskFailedCauseTimeout
×
7797
                return nil
×
7798
        case "SHARD_OWNERSHIP_LOST":
×
7799
                *e = GetTaskFailedCauseShardOwnershipLost
×
7800
                return nil
×
7801
        case "UNCATEGORIZED":
×
7802
                *e = GetTaskFailedCauseUncategorized
×
7803
                return nil
×
7804
        default:
×
7805
                val, err := strconv.ParseInt(s, 10, 32)
×
7806
                if err != nil {
×
7807
                        return fmt.Errorf("unknown enum value %q for %q: %v", s, "GetCrossClusterTaskFailedCause", err)
×
7808
                }
×
7809
                *e = GetTaskFailedCause(val)
×
7810
                return nil
×
7811
        }
7812
}
7813

7814
// MarshalText encodes GetCrossClusterTaskFailedCause to text.
7815
func (e GetTaskFailedCause) MarshalText() ([]byte, error) {
×
7816
        return []byte(e.String()), nil
×
7817
}
×
7818

7819
const (
7820
        // GetTaskFailedCauseServiceBusy is an option for GetCrossClusterTaskFailedCause
7821
        GetTaskFailedCauseServiceBusy GetTaskFailedCause = iota
7822
        // GetTaskFailedCauseTimeout is an option for GetCrossClusterTaskFailedCause
7823
        GetTaskFailedCauseTimeout
7824
        // GetTaskFailedCauseShardOwnershipLost is an option for GetCrossClusterTaskFailedCause
7825
        GetTaskFailedCauseShardOwnershipLost
7826
        // GetTaskFailedCauseUncategorized is an option for GetCrossClusterTaskFailedCause
7827
        GetTaskFailedCauseUncategorized
7828
)
7829

7830
// CrossClusterTaskInfo is an internal type (TBD...)
7831
type CrossClusterTaskInfo struct {
7832
        DomainID            string                `json:"domainID,omitempty"`
7833
        WorkflowID          string                `json:"workflowID,omitempty"`
7834
        RunID               string                `json:"runID,omitempty"`
7835
        TaskType            *CrossClusterTaskType `json:"taskType,omitempty"`
7836
        TaskState           int16                 `json:"taskState,omitempty"`
7837
        TaskID              int64                 `json:"taskID,omitempty"`
7838
        VisibilityTimestamp *int64                `json:"visibilityTimestamp,omitempty"`
7839
}
7840

7841
// GetTaskType is an internal getter (TBD...)
7842
func (v *CrossClusterTaskInfo) GetTaskType() (o CrossClusterTaskType) {
×
7843
        if v != nil && v.TaskType != nil {
×
7844
                return *v.TaskType
×
7845
        }
×
7846
        return
×
7847
}
7848

7849
// GetTaskID is an internal getter (TBD...)
7850
func (v *CrossClusterTaskInfo) GetTaskID() (o int64) {
×
7851
        if v != nil {
×
7852
                return v.TaskID
×
7853
        }
×
7854
        return
×
7855
}
7856

7857
// GetVisibilityTimestamp is an internal getter (TBD...)
7858
func (v *CrossClusterTaskInfo) GetVisibilityTimestamp() (o int64) {
×
7859
        if v != nil && v.VisibilityTimestamp != nil {
×
7860
                return *v.VisibilityTimestamp
×
7861
        }
×
7862
        return
×
7863
}
7864

7865
// CrossClusterStartChildExecutionRequestAttributes is an internal type (TBD...)
7866
type CrossClusterStartChildExecutionRequestAttributes struct {
7867
        TargetDomainID           string                                               `json:"targetDomainID,omitempty"`
7868
        RequestID                string                                               `json:"requestID,omitempty"`
7869
        InitiatedEventID         int64                                                `json:"initiatedEventID,omitempty"`
7870
        InitiatedEventAttributes *StartChildWorkflowExecutionInitiatedEventAttributes `json:"initiatedEventAttributes,omitempty"`
7871
        TargetRunID              *string                                              `json:"targetRunID,omitempty"`
7872
        PartitionConfig          map[string]string
7873
}
7874

7875
// GetRequestID is an internal getter (TBD...)
7876
func (v *CrossClusterStartChildExecutionRequestAttributes) GetRequestID() (o string) {
×
7877
        if v != nil {
×
7878
                return v.RequestID
×
7879
        }
×
7880
        return
×
7881
}
7882

7883
// GetInitiatedEventAttributes is an internal getter (TBD...)
7884
func (v *CrossClusterStartChildExecutionRequestAttributes) GetInitiatedEventAttributes() (o *StartChildWorkflowExecutionInitiatedEventAttributes) {
×
7885
        if v != nil && v.InitiatedEventAttributes != nil {
×
7886
                return v.InitiatedEventAttributes
×
7887
        }
×
7888
        return
×
7889
}
7890

7891
// GetTargetRunID is an internal getter (TBD...)
7892
func (v *CrossClusterStartChildExecutionRequestAttributes) GetTargetRunID() (o string) {
×
7893
        if v != nil && v.TargetRunID != nil {
×
7894
                return *v.TargetRunID
×
7895
        }
×
7896
        return
×
7897
}
7898

7899
// GetTargetRunID is an internal getter (TBD...)
7900
func (v *CrossClusterStartChildExecutionRequestAttributes) GetPartitionConfig() (o map[string]string) {
×
7901
        if v != nil && v.PartitionConfig != nil {
×
7902
                return v.PartitionConfig
×
7903
        }
×
7904
        return
×
7905
}
7906

7907
// CrossClusterStartChildExecutionResponseAttributes is an internal type (TBD...)
7908
type CrossClusterStartChildExecutionResponseAttributes struct {
7909
        RunID string `json:"runID,omitempty"`
7910
}
7911

7912
// GetRunID is an internal getter (TBD...)
7913
func (v *CrossClusterStartChildExecutionResponseAttributes) GetRunID() (o string) {
×
7914
        if v != nil {
×
7915
                return v.RunID
×
7916
        }
×
7917
        return
×
7918
}
7919

7920
// CrossClusterCancelExecutionRequestAttributes is an internal type (TBD...)
7921
type CrossClusterCancelExecutionRequestAttributes struct {
7922
        TargetDomainID    string `json:"targetDomainID,omitempty"`
7923
        TargetWorkflowID  string `json:"targetWorkflowID,omitempty"`
7924
        TargetRunID       string `json:"targetRunID,omitempty"`
7925
        RequestID         string `json:"requestID,omitempty"`
7926
        InitiatedEventID  int64  `json:"initiatedEventID,omitempty"`
7927
        ChildWorkflowOnly bool   `json:"childWorkflowOnly,omitempty"`
7928
}
7929

7930
// CrossClusterCancelExecutionResponseAttributes is an internal type (TBD...)
7931
type CrossClusterCancelExecutionResponseAttributes struct {
7932
}
7933

7934
// CrossClusterSignalExecutionRequestAttributes is an internal type (TBD...)
7935
type CrossClusterSignalExecutionRequestAttributes struct {
7936
        TargetDomainID    string `json:"targetDomainID,omitempty"`
7937
        TargetWorkflowID  string `json:"targetWorkflowID,omitempty"`
7938
        TargetRunID       string `json:"targetRunID,omitempty"`
7939
        RequestID         string `json:"requestID,omitempty"`
7940
        InitiatedEventID  int64  `json:"initiatedEventID,omitempty"`
7941
        ChildWorkflowOnly bool   `json:"childWorkflowOnly,omitempty"`
7942
        SignalName        string `json:"signalName,omitempty"`
7943
        SignalInput       []byte `json:"signalInput,omitempty"`
7944
        Control           []byte `json:"control,omitempty"`
7945
}
7946

7947
// CrossClusterSignalExecutionResponseAttributes is an internal type (TBD...)
7948
type CrossClusterSignalExecutionResponseAttributes struct {
7949
}
7950

7951
type CrossClusterRecordChildWorkflowExecutionCompleteRequestAttributes struct {
7952
        TargetDomainID   string        `json:"targetDomainID,omitempty"`
7953
        TargetWorkflowID string        `json:"targetWorkflowID,omitempty"`
7954
        TargetRunID      string        `json:"targetRunID,omitempty"`
7955
        InitiatedEventID int64         `json:"initiatedEventID,omitempty"`
7956
        CompletionEvent  *HistoryEvent `json:"completionEvent,omitempty"`
7957
}
7958

7959
// CrossClusterRecordChildWorkflowExecutionCompleteResponseAttributes is an internal type (TBD...)
7960
type CrossClusterRecordChildWorkflowExecutionCompleteResponseAttributes struct {
7961
}
7962

7963
type ApplyParentClosePolicyStatus struct {
7964
        Completed   bool                         `json:"completed,omitempty"`
7965
        FailedCause *CrossClusterTaskFailedCause `json:"failedCause,omitempty"`
7966
}
7967

7968
type ApplyParentClosePolicyAttributes struct {
7969
        ChildDomainID     string             `json:"ChildDomainID,omitempty"`
7970
        ChildWorkflowID   string             `json:"ChildWorkflowID,omitempty"`
7971
        ChildRunID        string             `json:"ChildRunID,omitempty"`
7972
        ParentClosePolicy *ParentClosePolicy `json:"parentClosePolicy,omitempty"`
7973
}
7974

7975
// GetParentClosePolicy is an internal getter (TBD...)
7976
func (v *ApplyParentClosePolicyAttributes) GetParentClosePolicy() (o *ParentClosePolicy) {
×
7977
        if v != nil {
×
7978
                return v.ParentClosePolicy
×
7979
        }
×
7980
        return
×
7981
}
7982

7983
type ApplyParentClosePolicyRequest struct {
7984
        Child  *ApplyParentClosePolicyAttributes `json:"child,omitempty"`
7985
        Status *ApplyParentClosePolicyStatus     `json:"status,omitempty"`
7986
}
7987

7988
type CrossClusterApplyParentClosePolicyRequestAttributes struct {
7989
        Children []*ApplyParentClosePolicyRequest `json:"children,omitempty"`
7990
}
7991

7992
type ApplyParentClosePolicyResult struct {
7993
        Child       *ApplyParentClosePolicyAttributes `json:"child,omitempty"`
7994
        FailedCause *CrossClusterTaskFailedCause      `json:"failedCause,omitempty"`
7995
}
7996

7997
// CrossClusterApplyParentClosePolicyResponseAttributes is an internal type (TBD...)
7998
type CrossClusterApplyParentClosePolicyResponseAttributes struct {
7999
        ChildrenStatus []*ApplyParentClosePolicyResult `json:"childrenStatus,omitempty"`
8000
}
8001

8002
// CrossClusterTaskRequest is an internal type (TBD...)
8003
type CrossClusterTaskRequest struct {
8004
        TaskInfo                                       *CrossClusterTaskInfo                                              `json:"taskInfo,omitempty"`
8005
        StartChildExecutionAttributes                  *CrossClusterStartChildExecutionRequestAttributes                  `json:"startChildExecutionAttributes,omitempty"`
8006
        CancelExecutionAttributes                      *CrossClusterCancelExecutionRequestAttributes                      `json:"cancelExecutionAttributes,omitempty"`
8007
        SignalExecutionAttributes                      *CrossClusterSignalExecutionRequestAttributes                      `json:"signalExecutionAttributes,omitempty"`
8008
        RecordChildWorkflowExecutionCompleteAttributes *CrossClusterRecordChildWorkflowExecutionCompleteRequestAttributes `json:"RecordChildWorkflowExecutionCompleteAttributes,omitempty"`
8009
        ApplyParentClosePolicyAttributes               *CrossClusterApplyParentClosePolicyRequestAttributes               `json:"ApplyParentClosePolicyAttributes,omitempty"`
8010
}
8011

8012
// CrossClusterTaskResponse is an internal type (TBD...)
8013
type CrossClusterTaskResponse struct {
8014
        TaskID                                         int64                                                               `json:"taskID,omitempty"`
8015
        TaskType                                       *CrossClusterTaskType                                               `json:"taskType,omitempty"`
8016
        TaskState                                      int16                                                               `json:"taskState,omitempty"`
8017
        FailedCause                                    *CrossClusterTaskFailedCause                                        `json:"failedCause,omitempty"`
8018
        StartChildExecutionAttributes                  *CrossClusterStartChildExecutionResponseAttributes                  `json:"startChildExecutionAttributes,omitempty"`
8019
        CancelExecutionAttributes                      *CrossClusterCancelExecutionResponseAttributes                      `json:"cancelExecutionAttributes,omitempty"`
8020
        SignalExecutionAttributes                      *CrossClusterSignalExecutionResponseAttributes                      `json:"signalExecutionAttributes,omitempty"`
8021
        RecordChildWorkflowExecutionCompleteAttributes *CrossClusterRecordChildWorkflowExecutionCompleteResponseAttributes `json:"RecordChildWorkflowExecutionCompleteAttributes,omitempty"`
8022
        ApplyParentClosePolicyAttributes               *CrossClusterApplyParentClosePolicyResponseAttributes               `json:"ApplyParentClosePolicyAttributes,omitempty"`
8023
}
8024

8025
// GetTaskID is an internal getter (TBD...)
8026
func (v *CrossClusterTaskResponse) GetTaskID() (o int64) {
×
8027
        if v != nil {
×
8028
                return v.TaskID
×
8029
        }
×
8030
        return
×
8031
}
8032

8033
// GetTaskType is an internal getter (TBD...)
8034
func (v *CrossClusterTaskResponse) GetTaskType() (o CrossClusterTaskType) {
×
8035
        if v != nil && v.TaskType != nil {
×
8036
                return *v.TaskType
×
8037
        }
×
8038
        return
×
8039
}
8040

8041
// GetFailedCause is an internal getter (TBD...)
8042
func (v *CrossClusterTaskResponse) GetFailedCause() (o CrossClusterTaskFailedCause) {
×
8043
        if v != nil && v.FailedCause != nil {
×
8044
                return *v.FailedCause
×
8045
        }
×
8046
        return
×
8047
}
8048

8049
// GetCrossClusterTasksRequest is an internal type (TBD...)
8050
type GetCrossClusterTasksRequest struct {
8051
        ShardIDs      []int32 `json:"shardIDs,omitempty"`
8052
        TargetCluster string  `json:"targetCluster,omitempty"`
8053
}
8054

8055
func (v *GetCrossClusterTasksRequest) SerializeForLogging() (string, error) {
×
8056
        if v == nil {
×
8057
                return "", nil
×
8058
        }
×
8059
        return SerializeRequest(v)
×
8060
}
8061

8062
// GetShardIDs is an internal getter (TBD...)
8063
func (v *GetCrossClusterTasksRequest) GetShardIDs() (o []int32) {
×
8064
        if v != nil && v.ShardIDs != nil {
×
8065
                return v.ShardIDs
×
8066
        }
×
8067
        return
×
8068
}
8069

8070
// GetTargetCluster is an internal getter (TBD...)
8071
func (v *GetCrossClusterTasksRequest) GetTargetCluster() (o string) {
×
8072
        if v != nil {
×
8073
                return v.TargetCluster
×
8074
        }
×
8075
        return
×
8076
}
8077

8078
// GetCrossClusterTasksResponse is an internal type (TBD...)
8079
type GetCrossClusterTasksResponse struct {
8080
        TasksByShard       map[int32][]*CrossClusterTaskRequest `json:"tasksByShard,omitempty"`
8081
        FailedCauseByShard map[int32]GetTaskFailedCause         `json:"failedCauseByShard,omitempty"`
8082
}
8083

8084
// GetTasksByShard is an internal getter (TBD...)
8085
func (v *GetCrossClusterTasksResponse) GetTasksByShard() (o map[int32][]*CrossClusterTaskRequest) {
×
8086
        if v != nil && v.TasksByShard != nil {
×
8087
                return v.TasksByShard
×
8088
        }
×
8089
        return
×
8090
}
8091

8092
// RespondCrossClusterTasksCompletedRequest is an internal type (TBD...)
8093
type RespondCrossClusterTasksCompletedRequest struct {
8094
        ShardID       int32                       `json:"shardID,omitempty"`
8095
        TargetCluster string                      `json:"targetCluster,omitempty"`
8096
        TaskResponses []*CrossClusterTaskResponse `json:"taskResponses,omitempty"`
8097
        FetchNewTasks bool                        `json:"fetchNewTasks,omitempty"`
8098
}
8099

8100
// GetShardID is an internal getter (TBD...)
8101
func (v *RespondCrossClusterTasksCompletedRequest) GetShardID() (o int32) {
×
8102
        if v != nil {
×
8103
                return v.ShardID
×
8104
        }
×
8105
        return
×
8106
}
8107

8108
// GetFetchNewTasks is an internal getter (TBD...)
8109
func (v *RespondCrossClusterTasksCompletedRequest) GetFetchNewTasks() (o bool) {
×
8110
        if v != nil {
×
8111
                return v.FetchNewTasks
×
8112
        }
×
8113
        return
×
8114
}
8115

8116
// RespondCrossClusterTasksCompletedResponse is an internal type (TBD...)
8117
type RespondCrossClusterTasksCompletedResponse struct {
8118
        Tasks []*CrossClusterTaskRequest `json:"tasks,omitempty"`
8119
}
8120

8121
// StickyWorkerUnavailableError is an internal type (TBD...)
8122
type StickyWorkerUnavailableError struct {
8123
        Message string `json:"message,required"`
8124
}
8125

8126
// SerializeRequest Serialize an arbitrary request for logging
8127
// pass in a pointer as a parameter to save space
8128
func SerializeRequest(request interface{}) (string, error) {
8✔
8129
        res, err := json.Marshal(request)
8✔
8130
        if err != nil {
8✔
8131
                return "", err
×
8132
        }
×
8133

8134
        return string(res), nil
8✔
8135
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc