-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathmessage.pb.go
More file actions
1466 lines (1305 loc) · 64.4 KB
/
message.pb.go
File metadata and controls
1466 lines (1305 loc) · 64.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// plugins:
// protoc-gen-go
// protoc
// source: temporal/api/deployment/v1/message.proto
package deployment
import (
reflect "reflect"
sync "sync"
unsafe "unsafe"
v11 "go.temporal.io/api/common/v1"
v1 "go.temporal.io/api/enums/v1"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Worker Deployment options set in SDK that need to be sent to server in every poll.
// Experimental. Worker Deployments are experimental and might significantly change in the future.
type WorkerDeploymentOptions struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Required. Worker Deployment name.
DeploymentName string `protobuf:"bytes,1,opt,name=deployment_name,json=deploymentName,proto3" json:"deployment_name,omitempty"`
// The Build ID of the worker. Required when `worker_versioning_mode==VERSIONED`, in which case,
// the worker will be part of a Deployment Version.
BuildId string `protobuf:"bytes,2,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
// Required. Versioning Mode for this worker. Must be the same for all workers with the
// same `deployment_name` and `build_id` combination, across all Task Queues.
// When `worker_versioning_mode==VERSIONED`, the worker will be part of a Deployment Version.
WorkerVersioningMode v1.WorkerVersioningMode `protobuf:"varint,3,opt,name=worker_versioning_mode,json=workerVersioningMode,proto3,enum=temporal.api.enums.v1.WorkerVersioningMode" json:"worker_versioning_mode,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WorkerDeploymentOptions) Reset() {
*x = WorkerDeploymentOptions{}
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WorkerDeploymentOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkerDeploymentOptions) ProtoMessage() {}
func (x *WorkerDeploymentOptions) ProtoReflect() protoreflect.Message {
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WorkerDeploymentOptions.ProtoReflect.Descriptor instead.
func (*WorkerDeploymentOptions) Descriptor() ([]byte, []int) {
return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{0}
}
func (x *WorkerDeploymentOptions) GetDeploymentName() string {
if x != nil {
return x.DeploymentName
}
return ""
}
func (x *WorkerDeploymentOptions) GetBuildId() string {
if x != nil {
return x.BuildId
}
return ""
}
func (x *WorkerDeploymentOptions) GetWorkerVersioningMode() v1.WorkerVersioningMode {
if x != nil {
return x.WorkerVersioningMode
}
return v1.WorkerVersioningMode(0)
}
// `Deployment` identifies a deployment of Temporal workers. The combination of deployment series
// name + build ID serves as the identifier. User can use `WorkerDeploymentOptions` in their worker
// programs to specify these values.
// Deprecated.
type Deployment struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Different versions of the same worker service/application are related together by having a
// shared series name.
// Out of all deployments of a series, one can be designated as the current deployment, which
// receives new workflow executions and new tasks of workflows with
// `VERSIONING_BEHAVIOR_AUTO_UPGRADE` versioning behavior.
SeriesName string `protobuf:"bytes,1,opt,name=series_name,json=seriesName,proto3" json:"series_name,omitempty"`
// Build ID changes with each version of the worker when the worker program code and/or config
// changes.
BuildId string `protobuf:"bytes,2,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Deployment) Reset() {
*x = Deployment{}
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Deployment) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Deployment) ProtoMessage() {}
func (x *Deployment) ProtoReflect() protoreflect.Message {
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Deployment.ProtoReflect.Descriptor instead.
func (*Deployment) Descriptor() ([]byte, []int) {
return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{1}
}
func (x *Deployment) GetSeriesName() string {
if x != nil {
return x.SeriesName
}
return ""
}
func (x *Deployment) GetBuildId() string {
if x != nil {
return x.BuildId
}
return ""
}
// `DeploymentInfo` holds information about a deployment. Deployment information is tracked
// automatically by server as soon as the first poll from that deployment reaches the server. There
// can be multiple task queue workers in a single deployment which are listed in this message.
// Deprecated.
type DeploymentInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
TaskQueueInfos []*DeploymentInfo_TaskQueueInfo `protobuf:"bytes,3,rep,name=task_queue_infos,json=taskQueueInfos,proto3" json:"task_queue_infos,omitempty"`
// A user-defined set of key-values. Can be updated as part of write operations to the
// deployment, such as `SetCurrentDeployment`.
Metadata map[string]*v11.Payload `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// If this deployment is the current deployment of its deployment series.
IsCurrent bool `protobuf:"varint,5,opt,name=is_current,json=isCurrent,proto3" json:"is_current,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeploymentInfo) Reset() {
*x = DeploymentInfo{}
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeploymentInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeploymentInfo) ProtoMessage() {}
func (x *DeploymentInfo) ProtoReflect() protoreflect.Message {
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeploymentInfo.ProtoReflect.Descriptor instead.
func (*DeploymentInfo) Descriptor() ([]byte, []int) {
return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{2}
}
func (x *DeploymentInfo) GetDeployment() *Deployment {
if x != nil {
return x.Deployment
}
return nil
}
func (x *DeploymentInfo) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *DeploymentInfo) GetTaskQueueInfos() []*DeploymentInfo_TaskQueueInfo {
if x != nil {
return x.TaskQueueInfos
}
return nil
}
func (x *DeploymentInfo) GetMetadata() map[string]*v11.Payload {
if x != nil {
return x.Metadata
}
return nil
}
func (x *DeploymentInfo) GetIsCurrent() bool {
if x != nil {
return x.IsCurrent
}
return false
}
// Used as part of Deployment write APIs to update metadata attached to a deployment.
// Deprecated.
type UpdateDeploymentMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
UpsertEntries map[string]*v11.Payload `protobuf:"bytes,1,rep,name=upsert_entries,json=upsertEntries,proto3" json:"upsert_entries,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// List of keys to remove from the metadata.
RemoveEntries []string `protobuf:"bytes,2,rep,name=remove_entries,json=removeEntries,proto3" json:"remove_entries,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateDeploymentMetadata) Reset() {
*x = UpdateDeploymentMetadata{}
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateDeploymentMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateDeploymentMetadata) ProtoMessage() {}
func (x *UpdateDeploymentMetadata) ProtoReflect() protoreflect.Message {
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateDeploymentMetadata.ProtoReflect.Descriptor instead.
func (*UpdateDeploymentMetadata) Descriptor() ([]byte, []int) {
return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{3}
}
func (x *UpdateDeploymentMetadata) GetUpsertEntries() map[string]*v11.Payload {
if x != nil {
return x.UpsertEntries
}
return nil
}
func (x *UpdateDeploymentMetadata) GetRemoveEntries() []string {
if x != nil {
return x.RemoveEntries
}
return nil
}
// DeploymentListInfo is an abbreviated set of fields from DeploymentInfo that's returned in
// ListDeployments.
// Deprecated.
type DeploymentListInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// If this deployment is the current deployment of its deployment series.
IsCurrent bool `protobuf:"varint,3,opt,name=is_current,json=isCurrent,proto3" json:"is_current,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeploymentListInfo) Reset() {
*x = DeploymentListInfo{}
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeploymentListInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeploymentListInfo) ProtoMessage() {}
func (x *DeploymentListInfo) ProtoReflect() protoreflect.Message {
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeploymentListInfo.ProtoReflect.Descriptor instead.
func (*DeploymentListInfo) Descriptor() ([]byte, []int) {
return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{4}
}
func (x *DeploymentListInfo) GetDeployment() *Deployment {
if x != nil {
return x.Deployment
}
return nil
}
func (x *DeploymentListInfo) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *DeploymentListInfo) GetIsCurrent() bool {
if x != nil {
return x.IsCurrent
}
return false
}
// A Worker Deployment Version (Version, for short) represents all workers of the same
// code and config within a Deployment. Workers of the same Version are expected to
// behave exactly the same so when executions move between them there are no
// non-determinism issues.
// Worker Deployment Versions are created in Temporal server automatically when
// their first poller arrives to the server.
// Experimental. Worker Deployments are experimental and might significantly change in the future.
type WorkerDeploymentVersionInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Deprecated. Use `deployment_version`.
//
// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto.
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// The status of the Worker Deployment Version.
Status v1.WorkerDeploymentVersionStatus `protobuf:"varint,14,opt,name=status,proto3,enum=temporal.api.enums.v1.WorkerDeploymentVersionStatus" json:"status,omitempty"`
// Required.
DeploymentVersion *WorkerDeploymentVersion `protobuf:"bytes,11,opt,name=deployment_version,json=deploymentVersion,proto3" json:"deployment_version,omitempty"`
DeploymentName string `protobuf:"bytes,2,opt,name=deployment_name,json=deploymentName,proto3" json:"deployment_name,omitempty"`
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed.
RoutingChangedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=routing_changed_time,json=routingChangedTime,proto3" json:"routing_changed_time,omitempty"`
// (-- api-linter: core::0140::prepositions=disabled
//
// aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
//
// Unset if not current.
CurrentSinceTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=current_since_time,json=currentSinceTime,proto3" json:"current_since_time,omitempty"`
// (-- api-linter: core::0140::prepositions=disabled
//
// aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
//
// Unset if not ramping. Updated when the version first starts ramping, not on each ramp change.
RampingSinceTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=ramping_since_time,json=rampingSinceTime,proto3" json:"ramping_since_time,omitempty"`
// Timestamp when this version first became current or ramping.
FirstActivationTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=first_activation_time,json=firstActivationTime,proto3" json:"first_activation_time,omitempty"`
// Timestamp when this version last stopped being current or ramping.
LastDeactivationTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=last_deactivation_time,json=lastDeactivationTime,proto3" json:"last_deactivation_time,omitempty"`
// Range: [0, 100]. Must be zero if the version is not ramping (i.e. `ramping_since_time` is nil).
// Can be in the range [0, 100] if the version is ramping.
RampPercentage float32 `protobuf:"fixed32,7,opt,name=ramp_percentage,json=rampPercentage,proto3" json:"ramp_percentage,omitempty"`
// All the Task Queues that have ever polled from this Deployment version.
// Deprecated. Use `version_task_queues` in DescribeWorkerDeploymentVersionResponse instead.
TaskQueueInfos []*WorkerDeploymentVersionInfo_VersionTaskQueueInfo `protobuf:"bytes,8,rep,name=task_queue_infos,json=taskQueueInfos,proto3" json:"task_queue_infos,omitempty"`
// Helps user determine when it is safe to decommission the workers of this
// Version. Not present when version is current or ramping.
// Current limitations:
// - Not supported for Unversioned mode.
// - Periodically refreshed, may have delays up to few minutes (consult the
// last_checked_time value).
// - Refreshed only when version is not current or ramping AND the status is not
// "drained" yet.
// - Once the status is changed to "drained", it is not changed until the Version
// becomes Current or Ramping again, at which time the drainage info is cleared.
// This means if the Version is "drained" but new workflows are sent to it via
// Pinned Versioning Override, the status does not account for those Pinned-override
// executions and remains "drained".
DrainageInfo *VersionDrainageInfo `protobuf:"bytes,9,opt,name=drainage_info,json=drainageInfo,proto3" json:"drainage_info,omitempty"`
// Arbitrary user-provided metadata attached to this version.
Metadata *VersionMetadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WorkerDeploymentVersionInfo) Reset() {
*x = WorkerDeploymentVersionInfo{}
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WorkerDeploymentVersionInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkerDeploymentVersionInfo) ProtoMessage() {}
func (x *WorkerDeploymentVersionInfo) ProtoReflect() protoreflect.Message {
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WorkerDeploymentVersionInfo.ProtoReflect.Descriptor instead.
func (*WorkerDeploymentVersionInfo) Descriptor() ([]byte, []int) {
return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{5}
}
// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto.
func (x *WorkerDeploymentVersionInfo) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *WorkerDeploymentVersionInfo) GetStatus() v1.WorkerDeploymentVersionStatus {
if x != nil {
return x.Status
}
return v1.WorkerDeploymentVersionStatus(0)
}
func (x *WorkerDeploymentVersionInfo) GetDeploymentVersion() *WorkerDeploymentVersion {
if x != nil {
return x.DeploymentVersion
}
return nil
}
func (x *WorkerDeploymentVersionInfo) GetDeploymentName() string {
if x != nil {
return x.DeploymentName
}
return ""
}
func (x *WorkerDeploymentVersionInfo) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *WorkerDeploymentVersionInfo) GetRoutingChangedTime() *timestamppb.Timestamp {
if x != nil {
return x.RoutingChangedTime
}
return nil
}
func (x *WorkerDeploymentVersionInfo) GetCurrentSinceTime() *timestamppb.Timestamp {
if x != nil {
return x.CurrentSinceTime
}
return nil
}
func (x *WorkerDeploymentVersionInfo) GetRampingSinceTime() *timestamppb.Timestamp {
if x != nil {
return x.RampingSinceTime
}
return nil
}
func (x *WorkerDeploymentVersionInfo) GetFirstActivationTime() *timestamppb.Timestamp {
if x != nil {
return x.FirstActivationTime
}
return nil
}
func (x *WorkerDeploymentVersionInfo) GetLastDeactivationTime() *timestamppb.Timestamp {
if x != nil {
return x.LastDeactivationTime
}
return nil
}
func (x *WorkerDeploymentVersionInfo) GetRampPercentage() float32 {
if x != nil {
return x.RampPercentage
}
return 0
}
func (x *WorkerDeploymentVersionInfo) GetTaskQueueInfos() []*WorkerDeploymentVersionInfo_VersionTaskQueueInfo {
if x != nil {
return x.TaskQueueInfos
}
return nil
}
func (x *WorkerDeploymentVersionInfo) GetDrainageInfo() *VersionDrainageInfo {
if x != nil {
return x.DrainageInfo
}
return nil
}
func (x *WorkerDeploymentVersionInfo) GetMetadata() *VersionMetadata {
if x != nil {
return x.Metadata
}
return nil
}
// Information about workflow drainage to help the user determine when it is safe
// to decommission a Version. Not present while version is current or ramping.
// Experimental. Worker Deployments are experimental and might significantly change in the future.
type VersionDrainageInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Set to DRAINING when the version first stops accepting new executions (is no longer current or ramping).
// Set to DRAINED when no more open pinned workflows exist on this version.
Status v1.VersionDrainageStatus `protobuf:"varint,1,opt,name=status,proto3,enum=temporal.api.enums.v1.VersionDrainageStatus" json:"status,omitempty"`
// Last time the drainage status changed.
LastChangedTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_changed_time,json=lastChangedTime,proto3" json:"last_changed_time,omitempty"`
// Last time the system checked for drainage of this version.
LastCheckedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_checked_time,json=lastCheckedTime,proto3" json:"last_checked_time,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *VersionDrainageInfo) Reset() {
*x = VersionDrainageInfo{}
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *VersionDrainageInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VersionDrainageInfo) ProtoMessage() {}
func (x *VersionDrainageInfo) ProtoReflect() protoreflect.Message {
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VersionDrainageInfo.ProtoReflect.Descriptor instead.
func (*VersionDrainageInfo) Descriptor() ([]byte, []int) {
return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{6}
}
func (x *VersionDrainageInfo) GetStatus() v1.VersionDrainageStatus {
if x != nil {
return x.Status
}
return v1.VersionDrainageStatus(0)
}
func (x *VersionDrainageInfo) GetLastChangedTime() *timestamppb.Timestamp {
if x != nil {
return x.LastChangedTime
}
return nil
}
func (x *VersionDrainageInfo) GetLastCheckedTime() *timestamppb.Timestamp {
if x != nil {
return x.LastCheckedTime
}
return nil
}
// A Worker Deployment (Deployment, for short) represents all workers serving
// a shared set of Task Queues. Typically, a Deployment represents one service or
// application.
// A Deployment contains multiple Deployment Versions, each representing a different
// version of workers. (see documentation of WorkerDeploymentVersionInfo)
// Deployment records are created in Temporal server automatically when their
// first poller arrives to the server.
// Experimental. Worker Deployments are experimental and might significantly change in the future.
type WorkerDeploymentInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Identifies a Worker Deployment. Must be unique within the namespace.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
// cleaned up automatically if all the following conditions meet:
// - It does not receive new executions (is not current or ramping)
// - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status)
// - It is drained (see WorkerDeploymentVersionInfo.drainage_status)
VersionSummaries []*WorkerDeploymentInfo_WorkerDeploymentVersionSummary `protobuf:"bytes,2,rep,name=version_summaries,json=versionSummaries,proto3" json:"version_summaries,omitempty"`
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
RoutingConfig *RoutingConfig `protobuf:"bytes,4,opt,name=routing_config,json=routingConfig,proto3" json:"routing_config,omitempty"`
// Identity of the last client who modified the configuration of this Deployment. Set to the
// `identity` value sent by APIs such as `SetWorkerDeploymentCurrentVersion` and
// `SetWorkerDeploymentRampingVersion`.
LastModifierIdentity string `protobuf:"bytes,5,opt,name=last_modifier_identity,json=lastModifierIdentity,proto3" json:"last_modifier_identity,omitempty"`
// Identity of the client that has the exclusive right to make changes to this Worker Deployment.
// Empty by default.
// If this is set, clients whose identity does not match `manager_identity` will not be able to make changes
// to this Worker Deployment. They can either set their own identity as the manager or unset the field to proceed.
ManagerIdentity string `protobuf:"bytes,6,opt,name=manager_identity,json=managerIdentity,proto3" json:"manager_identity,omitempty"`
// Indicates whether the routing_config has been fully propagated to all
// relevant task queues and their partitions.
RoutingConfigUpdateState v1.RoutingConfigUpdateState `protobuf:"varint,7,opt,name=routing_config_update_state,json=routingConfigUpdateState,proto3,enum=temporal.api.enums.v1.RoutingConfigUpdateState" json:"routing_config_update_state,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WorkerDeploymentInfo) Reset() {
*x = WorkerDeploymentInfo{}
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WorkerDeploymentInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkerDeploymentInfo) ProtoMessage() {}
func (x *WorkerDeploymentInfo) ProtoReflect() protoreflect.Message {
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WorkerDeploymentInfo.ProtoReflect.Descriptor instead.
func (*WorkerDeploymentInfo) Descriptor() ([]byte, []int) {
return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{7}
}
func (x *WorkerDeploymentInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *WorkerDeploymentInfo) GetVersionSummaries() []*WorkerDeploymentInfo_WorkerDeploymentVersionSummary {
if x != nil {
return x.VersionSummaries
}
return nil
}
func (x *WorkerDeploymentInfo) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *WorkerDeploymentInfo) GetRoutingConfig() *RoutingConfig {
if x != nil {
return x.RoutingConfig
}
return nil
}
func (x *WorkerDeploymentInfo) GetLastModifierIdentity() string {
if x != nil {
return x.LastModifierIdentity
}
return ""
}
func (x *WorkerDeploymentInfo) GetManagerIdentity() string {
if x != nil {
return x.ManagerIdentity
}
return ""
}
func (x *WorkerDeploymentInfo) GetRoutingConfigUpdateState() v1.RoutingConfigUpdateState {
if x != nil {
return x.RoutingConfigUpdateState
}
return v1.RoutingConfigUpdateState(0)
}
// A Worker Deployment Version (Version, for short) represents a
// version of workers within a Worker Deployment. (see documentation of WorkerDeploymentVersionInfo)
// Version records are created in Temporal server automatically when their
// first poller arrives to the server.
// Experimental. Worker Deployment Versions are experimental and might significantly change in the future.
type WorkerDeploymentVersion struct {
state protoimpl.MessageState `protogen:"open.v1"`
// A unique identifier for this Version within the Deployment it is a part of.
// Not necessarily unique within the namespace.
// The combination of `deployment_name` and `build_id` uniquely identifies this
// Version within the namespace, because Deployment names are unique within a namespace.
BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
// Identifies the Worker Deployment this Version is part of.
DeploymentName string `protobuf:"bytes,2,opt,name=deployment_name,json=deploymentName,proto3" json:"deployment_name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WorkerDeploymentVersion) Reset() {
*x = WorkerDeploymentVersion{}
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WorkerDeploymentVersion) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkerDeploymentVersion) ProtoMessage() {}
func (x *WorkerDeploymentVersion) ProtoReflect() protoreflect.Message {
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WorkerDeploymentVersion.ProtoReflect.Descriptor instead.
func (*WorkerDeploymentVersion) Descriptor() ([]byte, []int) {
return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{8}
}
func (x *WorkerDeploymentVersion) GetBuildId() string {
if x != nil {
return x.BuildId
}
return ""
}
func (x *WorkerDeploymentVersion) GetDeploymentName() string {
if x != nil {
return x.DeploymentName
}
return ""
}
type VersionMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Arbitrary key-values.
Entries map[string]*v11.Payload `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *VersionMetadata) Reset() {
*x = VersionMetadata{}
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *VersionMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VersionMetadata) ProtoMessage() {}
func (x *VersionMetadata) ProtoReflect() protoreflect.Message {
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VersionMetadata.ProtoReflect.Descriptor instead.
func (*VersionMetadata) Descriptor() ([]byte, []int) {
return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{9}
}
func (x *VersionMetadata) GetEntries() map[string]*v11.Payload {
if x != nil {
return x.Entries
}
return nil
}
type RoutingConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Specifies which Deployment Version should receive new workflow executions and tasks of
// existing unversioned or AutoUpgrade workflows.
// Nil value means no Version in this Deployment (except Ramping Version, if present) receives traffic other than tasks of previously Pinned workflows. In absence of a Current Version, remaining traffic after any ramp (if set) goes to unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.).
// Note: Current Version is overridden by the Ramping Version for a portion of traffic when ramp percentage
// is non-zero (see `ramping_deployment_version` and `ramping_version_percentage`).
CurrentDeploymentVersion *WorkerDeploymentVersion `protobuf:"bytes,7,opt,name=current_deployment_version,json=currentDeploymentVersion,proto3" json:"current_deployment_version,omitempty"`
// Deprecated. Use `current_deployment_version`.
//
// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto.
CurrentVersion string `protobuf:"bytes,1,opt,name=current_version,json=currentVersion,proto3" json:"current_version,omitempty"`
// When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version.
// Must always be different from `current_deployment_version` unless both are nil.
// Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
// Note that it is possible to ramp from one Version to another Version, or from unversioned
// workers to a particular Version, or from a particular Version to unversioned workers.
RampingDeploymentVersion *WorkerDeploymentVersion `protobuf:"bytes,9,opt,name=ramping_deployment_version,json=rampingDeploymentVersion,proto3" json:"ramping_deployment_version,omitempty"`
// Deprecated. Use `ramping_deployment_version`.
//
// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto.
RampingVersion string `protobuf:"bytes,2,opt,name=ramping_version,json=rampingVersion,proto3" json:"ramping_version,omitempty"`
// Percentage of tasks that are routed to the Ramping Version instead of the Current Version.
// Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but
// not yet "promoted" to be the Current Version, likely due to pending validations.
// A 0% value means the Ramping Version is receiving no traffic.
RampingVersionPercentage float32 `protobuf:"fixed32,3,opt,name=ramping_version_percentage,json=rampingVersionPercentage,proto3" json:"ramping_version_percentage,omitempty"`
// Last time current version was changed.
CurrentVersionChangedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=current_version_changed_time,json=currentVersionChangedTime,proto3" json:"current_version_changed_time,omitempty"`
// Last time ramping version was changed. Not updated if only the ramp percentage changes.
RampingVersionChangedTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=ramping_version_changed_time,json=rampingVersionChangedTime,proto3" json:"ramping_version_changed_time,omitempty"`
// Last time ramping version percentage was changed.
// If ramping version is changed, this is also updated, even if the percentage stays the same.
RampingVersionPercentageChangedTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=ramping_version_percentage_changed_time,json=rampingVersionPercentageChangedTime,proto3" json:"ramping_version_percentage_changed_time,omitempty"`
// Monotonically increasing value which is incremented on every mutation
// to any field of this message to achieve eventual consistency between task queues and their partitions.
RevisionNumber int64 `protobuf:"varint,10,opt,name=revision_number,json=revisionNumber,proto3" json:"revision_number,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RoutingConfig) Reset() {
*x = RoutingConfig{}
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RoutingConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RoutingConfig) ProtoMessage() {}
func (x *RoutingConfig) ProtoReflect() protoreflect.Message {
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RoutingConfig.ProtoReflect.Descriptor instead.
func (*RoutingConfig) Descriptor() ([]byte, []int) {
return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{10}
}
func (x *RoutingConfig) GetCurrentDeploymentVersion() *WorkerDeploymentVersion {
if x != nil {
return x.CurrentDeploymentVersion
}
return nil
}
// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto.
func (x *RoutingConfig) GetCurrentVersion() string {
if x != nil {
return x.CurrentVersion
}
return ""
}
func (x *RoutingConfig) GetRampingDeploymentVersion() *WorkerDeploymentVersion {
if x != nil {
return x.RampingDeploymentVersion
}
return nil
}
// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto.
func (x *RoutingConfig) GetRampingVersion() string {
if x != nil {
return x.RampingVersion
}
return ""
}
func (x *RoutingConfig) GetRampingVersionPercentage() float32 {
if x != nil {
return x.RampingVersionPercentage
}
return 0
}
func (x *RoutingConfig) GetCurrentVersionChangedTime() *timestamppb.Timestamp {
if x != nil {
return x.CurrentVersionChangedTime
}
return nil
}
func (x *RoutingConfig) GetRampingVersionChangedTime() *timestamppb.Timestamp {
if x != nil {
return x.RampingVersionChangedTime
}
return nil
}
func (x *RoutingConfig) GetRampingVersionPercentageChangedTime() *timestamppb.Timestamp {
if x != nil {
return x.RampingVersionPercentageChangedTime
}
return nil
}
func (x *RoutingConfig) GetRevisionNumber() int64 {
if x != nil {
return x.RevisionNumber
}
return 0
}
type DeploymentInfo_TaskQueueInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type v1.TaskQueueType `protobuf:"varint,2,opt,name=type,proto3,enum=temporal.api.enums.v1.TaskQueueType" json:"type,omitempty"`
// When server saw the first poller for this task queue in this deployment.
FirstPollerTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=first_poller_time,json=firstPollerTime,proto3" json:"first_poller_time,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeploymentInfo_TaskQueueInfo) Reset() {
*x = DeploymentInfo_TaskQueueInfo{}
mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeploymentInfo_TaskQueueInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeploymentInfo_TaskQueueInfo) ProtoMessage() {}