-
Notifications
You must be signed in to change notification settings - Fork 219
/
runtime.pb.go
4992 lines (4414 loc) · 169 KB
/
runtime.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
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
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.21.12
// source: runtime/protos/runtime.proto
package protos
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
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)
)
// HealthStatus specifies the health of a weavelet.
type HealthStatus int32
const (
HealthStatus_UNKNOWN HealthStatus = 0
HealthStatus_HEALTHY HealthStatus = 1
HealthStatus_UNHEALTHY HealthStatus = 2
HealthStatus_TERMINATED HealthStatus = 3
)
// Enum value maps for HealthStatus.
var (
HealthStatus_name = map[int32]string{
0: "UNKNOWN",
1: "HEALTHY",
2: "UNHEALTHY",
3: "TERMINATED",
}
HealthStatus_value = map[string]int32{
"UNKNOWN": 0,
"HEALTHY": 1,
"UNHEALTHY": 2,
"TERMINATED": 3,
}
)
func (x HealthStatus) Enum() *HealthStatus {
p := new(HealthStatus)
*p = x
return p
}
func (x HealthStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (HealthStatus) Descriptor() protoreflect.EnumDescriptor {
return file_runtime_protos_runtime_proto_enumTypes[0].Descriptor()
}
func (HealthStatus) Type() protoreflect.EnumType {
return &file_runtime_protos_runtime_proto_enumTypes[0]
}
func (x HealthStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use HealthStatus.Descriptor instead.
func (HealthStatus) EnumDescriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{0}
}
// MetricType specifies a particular kind of metric.
type MetricType int32
const (
MetricType_INVALID MetricType = 0
MetricType_COUNTER MetricType = 1
MetricType_GAUGE MetricType = 2
MetricType_HISTOGRAM MetricType = 3
)
// Enum value maps for MetricType.
var (
MetricType_name = map[int32]string{
0: "INVALID",
1: "COUNTER",
2: "GAUGE",
3: "HISTOGRAM",
}
MetricType_value = map[string]int32{
"INVALID": 0,
"COUNTER": 1,
"GAUGE": 2,
"HISTOGRAM": 3,
}
)
func (x MetricType) Enum() *MetricType {
p := new(MetricType)
*p = x
return p
}
func (x MetricType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MetricType) Descriptor() protoreflect.EnumDescriptor {
return file_runtime_protos_runtime_proto_enumTypes[1].Descriptor()
}
func (MetricType) Type() protoreflect.EnumType {
return &file_runtime_protos_runtime_proto_enumTypes[1]
}
func (x MetricType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MetricType.Descriptor instead.
func (MetricType) EnumDescriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{1}
}
// ProfileType specifies a type of profile.
type ProfileType int32
const (
ProfileType_Unspecified ProfileType = 0
ProfileType_Heap ProfileType = 1
ProfileType_CPU ProfileType = 2
)
// Enum value maps for ProfileType.
var (
ProfileType_name = map[int32]string{
0: "Unspecified",
1: "Heap",
2: "CPU",
}
ProfileType_value = map[string]int32{
"Unspecified": 0,
"Heap": 1,
"CPU": 2,
}
)
func (x ProfileType) Enum() *ProfileType {
p := new(ProfileType)
*p = x
return p
}
func (x ProfileType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ProfileType) Descriptor() protoreflect.EnumDescriptor {
return file_runtime_protos_runtime_proto_enumTypes[2].Descriptor()
}
func (ProfileType) Type() protoreflect.EnumType {
return &file_runtime_protos_runtime_proto_enumTypes[2]
}
func (x ProfileType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ProfileType.Descriptor instead.
func (ProfileType) EnumDescriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{2}
}
// Span's role in the trace.
type Span_Kind int32
const (
Span_UNSPECIFIED Span_Kind = 0
Span_INTERNAL Span_Kind = 1
Span_SERVER Span_Kind = 2
Span_CLIENT Span_Kind = 3
Span_PRODUCER Span_Kind = 4
Span_CONSUMER Span_Kind = 5
)
// Enum value maps for Span_Kind.
var (
Span_Kind_name = map[int32]string{
0: "UNSPECIFIED",
1: "INTERNAL",
2: "SERVER",
3: "CLIENT",
4: "PRODUCER",
5: "CONSUMER",
}
Span_Kind_value = map[string]int32{
"UNSPECIFIED": 0,
"INTERNAL": 1,
"SERVER": 2,
"CLIENT": 3,
"PRODUCER": 4,
"CONSUMER": 5,
}
)
func (x Span_Kind) Enum() *Span_Kind {
p := new(Span_Kind)
*p = x
return p
}
func (x Span_Kind) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Span_Kind) Descriptor() protoreflect.EnumDescriptor {
return file_runtime_protos_runtime_proto_enumTypes[3].Descriptor()
}
func (Span_Kind) Type() protoreflect.EnumType {
return &file_runtime_protos_runtime_proto_enumTypes[3]
}
func (x Span_Kind) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Span_Kind.Descriptor instead.
func (Span_Kind) EnumDescriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{38, 0}
}
// Type describes the type of the value.
type Span_Attribute_Value_Type int32
const (
Span_Attribute_Value_INVALID Span_Attribute_Value_Type = 0 // Used when no value is set
Span_Attribute_Value_BOOL Span_Attribute_Value_Type = 1
Span_Attribute_Value_INT64 Span_Attribute_Value_Type = 2
Span_Attribute_Value_FLOAT64 Span_Attribute_Value_Type = 3
Span_Attribute_Value_STRING Span_Attribute_Value_Type = 4
Span_Attribute_Value_BOOLLIST Span_Attribute_Value_Type = 5
Span_Attribute_Value_INT64LIST Span_Attribute_Value_Type = 6
Span_Attribute_Value_FLOAT64LIST Span_Attribute_Value_Type = 7
Span_Attribute_Value_STRINGLIST Span_Attribute_Value_Type = 8
)
// Enum value maps for Span_Attribute_Value_Type.
var (
Span_Attribute_Value_Type_name = map[int32]string{
0: "INVALID",
1: "BOOL",
2: "INT64",
3: "FLOAT64",
4: "STRING",
5: "BOOLLIST",
6: "INT64LIST",
7: "FLOAT64LIST",
8: "STRINGLIST",
}
Span_Attribute_Value_Type_value = map[string]int32{
"INVALID": 0,
"BOOL": 1,
"INT64": 2,
"FLOAT64": 3,
"STRING": 4,
"BOOLLIST": 5,
"INT64LIST": 6,
"FLOAT64LIST": 7,
"STRINGLIST": 8,
}
)
func (x Span_Attribute_Value_Type) Enum() *Span_Attribute_Value_Type {
p := new(Span_Attribute_Value_Type)
*p = x
return p
}
func (x Span_Attribute_Value_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Span_Attribute_Value_Type) Descriptor() protoreflect.EnumDescriptor {
return file_runtime_protos_runtime_proto_enumTypes[4].Descriptor()
}
func (Span_Attribute_Value_Type) Type() protoreflect.EnumType {
return &file_runtime_protos_runtime_proto_enumTypes[4]
}
func (x Span_Attribute_Value_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Span_Attribute_Value_Type.Descriptor instead.
func (Span_Attribute_Value_Type) EnumDescriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{38, 0, 0, 0}
}
type Span_Status_Code int32
const (
Span_Status_UNSET Span_Status_Code = 0
Span_Status_ERROR Span_Status_Code = 1
Span_Status_OK Span_Status_Code = 2
)
// Enum value maps for Span_Status_Code.
var (
Span_Status_Code_name = map[int32]string{
0: "UNSET",
1: "ERROR",
2: "OK",
}
Span_Status_Code_value = map[string]int32{
"UNSET": 0,
"ERROR": 1,
"OK": 2,
}
)
func (x Span_Status_Code) Enum() *Span_Status_Code {
p := new(Span_Status_Code)
*p = x
return p
}
func (x Span_Status_Code) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Span_Status_Code) Descriptor() protoreflect.EnumDescriptor {
return file_runtime_protos_runtime_proto_enumTypes[5].Descriptor()
}
func (Span_Status_Code) Type() protoreflect.EnumType {
return &file_runtime_protos_runtime_proto_enumTypes[5]
}
func (x Span_Status_Code) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Span_Status_Code.Descriptor instead.
func (Span_Status_Code) EnumDescriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{38, 3, 0}
}
// WeaveletArgs is the information provided by an envelope to a weavelet when
// the weavelet is created.
type WeaveletArgs struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
App string `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"` // app name
DeploymentId string `protobuf:"bytes,2,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"` // globally unique deployment id
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` // globally unique weavelet id
RunMain bool `protobuf:"varint,7,opt,name=run_main,json=runMain,proto3" json:"run_main,omitempty"` // run the main function?
// Should weavelets establish mTLS connections with each other?
Mtls bool `protobuf:"varint,8,opt,name=mtls,proto3" json:"mtls,omitempty"`
// Address on which the weavelet's internal network listener should listen on
// (e.g., "localhost:12345", ":0"). If the address is empty, it defaults to
// ":0", like net.Listen.
//
// Note that for some deployers, the internal network listener can listen on
// an arbitrary port (don't set the port number). However, for deployers where
// listeners are prestarted (e.g., Kubernetes deployers), the port number
// should be propagated from the deployer.
InternalAddress string `protobuf:"bytes,10,opt,name=internal_address,json=internalAddress,proto3" json:"internal_address,omitempty"`
// Unix domain socket path where weavelet should serve Control component
// method calls.
ControlSocket string `protobuf:"bytes,13,opt,name=control_socket,json=controlSocket,proto3" json:"control_socket,omitempty"`
Redirects []*WeaveletArgs_Redirect `protobuf:"bytes,12,rep,name=redirects,proto3" json:"redirects,omitempty"`
}
func (x *WeaveletArgs) Reset() {
*x = WeaveletArgs{}
if protoimpl.UnsafeEnabled {
mi := &file_runtime_protos_runtime_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WeaveletArgs) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WeaveletArgs) ProtoMessage() {}
func (x *WeaveletArgs) ProtoReflect() protoreflect.Message {
mi := &file_runtime_protos_runtime_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WeaveletArgs.ProtoReflect.Descriptor instead.
func (*WeaveletArgs) Descriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{0}
}
func (x *WeaveletArgs) GetApp() string {
if x != nil {
return x.App
}
return ""
}
func (x *WeaveletArgs) GetDeploymentId() string {
if x != nil {
return x.DeploymentId
}
return ""
}
func (x *WeaveletArgs) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *WeaveletArgs) GetRunMain() bool {
if x != nil {
return x.RunMain
}
return false
}
func (x *WeaveletArgs) GetMtls() bool {
if x != nil {
return x.Mtls
}
return false
}
func (x *WeaveletArgs) GetInternalAddress() string {
if x != nil {
return x.InternalAddress
}
return ""
}
func (x *WeaveletArgs) GetControlSocket() string {
if x != nil {
return x.ControlSocket
}
return ""
}
func (x *WeaveletArgs) GetRedirects() []*WeaveletArgs_Redirect {
if x != nil {
return x.Redirects
}
return nil
}
// InitWeaveletRequest holds the initialization info passed to the weavelet by the envelope.
type InitWeaveletRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Sections map[string]string `protobuf:"bytes,1,rep,name=sections,proto3" json:"sections,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // See AppConfig.Sections.
}
func (x *InitWeaveletRequest) Reset() {
*x = InitWeaveletRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_runtime_protos_runtime_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InitWeaveletRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InitWeaveletRequest) ProtoMessage() {}
func (x *InitWeaveletRequest) ProtoReflect() protoreflect.Message {
mi := &file_runtime_protos_runtime_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use InitWeaveletRequest.ProtoReflect.Descriptor instead.
func (*InitWeaveletRequest) Descriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{1}
}
func (x *InitWeaveletRequest) GetSections() map[string]string {
if x != nil {
return x.Sections
}
return nil
}
// InitWeaveletReply is the information provided by a weavelet to an envelope during
// the initial envelope-weavelet handshake.
type InitWeaveletReply struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Internal TCP address of the weavelet. This address will be passed to other
// weavelets as part of their RoutingInfo.
DialAddr string `protobuf:"bytes,1,opt,name=dial_addr,json=dialAddr,proto3" json:"dial_addr,omitempty"`
// The deployer API version of the weavelet.
Version *SemVer `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
}
func (x *InitWeaveletReply) Reset() {
*x = InitWeaveletReply{}
if protoimpl.UnsafeEnabled {
mi := &file_runtime_protos_runtime_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InitWeaveletReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InitWeaveletReply) ProtoMessage() {}
func (x *InitWeaveletReply) ProtoReflect() protoreflect.Message {
mi := &file_runtime_protos_runtime_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use InitWeaveletReply.ProtoReflect.Descriptor instead.
func (*InitWeaveletReply) Descriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{2}
}
func (x *InitWeaveletReply) GetDialAddr() string {
if x != nil {
return x.DialAddr
}
return ""
}
func (x *InitWeaveletReply) GetVersion() *SemVer {
if x != nil {
return x.Version
}
return nil
}
// SemVer represents a [semantic version][1] of the form
// "<major>.<minor>.<patch>". For example, the semver "0.12.3" has major=0,
// minor=12, and patch=3.
//
// [1]: https://semver.org/
type SemVer struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Major int64 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
Minor int64 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
Patch int64 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"`
}
func (x *SemVer) Reset() {
*x = SemVer{}
if protoimpl.UnsafeEnabled {
mi := &file_runtime_protos_runtime_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SemVer) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SemVer) ProtoMessage() {}
func (x *SemVer) ProtoReflect() protoreflect.Message {
mi := &file_runtime_protos_runtime_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SemVer.ProtoReflect.Descriptor instead.
func (*SemVer) Descriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{3}
}
func (x *SemVer) GetMajor() int64 {
if x != nil {
return x.Major
}
return 0
}
func (x *SemVer) GetMinor() int64 {
if x != nil {
return x.Minor
}
return 0
}
func (x *SemVer) GetPatch() int64 {
if x != nil {
return x.Patch
}
return 0
}
// GetHealthRequest is a request from an envelope for a weavelet's health.
type GetHealthRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *GetHealthRequest) Reset() {
*x = GetHealthRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_runtime_protos_runtime_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetHealthRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetHealthRequest) ProtoMessage() {}
func (x *GetHealthRequest) ProtoReflect() protoreflect.Message {
mi := &file_runtime_protos_runtime_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetHealthRequest.ProtoReflect.Descriptor instead.
func (*GetHealthRequest) Descriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{4}
}
// GetHealthReply is a reply to a GetHealthRequest.
type GetHealthReply struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Status HealthStatus `protobuf:"varint,1,opt,name=status,proto3,enum=runtime.HealthStatus" json:"status,omitempty"`
HealthyComponents []string `protobuf:"bytes,2,rep,name=healthy_components,json=healthyComponents,proto3" json:"healthy_components,omitempty"`
}
func (x *GetHealthReply) Reset() {
*x = GetHealthReply{}
if protoimpl.UnsafeEnabled {
mi := &file_runtime_protos_runtime_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetHealthReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetHealthReply) ProtoMessage() {}
func (x *GetHealthReply) ProtoReflect() protoreflect.Message {
mi := &file_runtime_protos_runtime_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetHealthReply.ProtoReflect.Descriptor instead.
func (*GetHealthReply) Descriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{5}
}
func (x *GetHealthReply) GetStatus() HealthStatus {
if x != nil {
return x.Status
}
return HealthStatus_UNKNOWN
}
func (x *GetHealthReply) GetHealthyComponents() []string {
if x != nil {
return x.HealthyComponents
}
return nil
}
// GetMetricsRequest is a request from an envelope for a weavelet's metrics.
// There can only be one outstanding GetMetricsRequest at a time.
type GetMetricsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *GetMetricsRequest) Reset() {
*x = GetMetricsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_runtime_protos_runtime_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetMetricsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMetricsRequest) ProtoMessage() {}
func (x *GetMetricsRequest) ProtoReflect() protoreflect.Message {
mi := &file_runtime_protos_runtime_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetMetricsRequest.ProtoReflect.Descriptor instead.
func (*GetMetricsRequest) Descriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{6}
}
// GetMetricsReply is a reply to a GetMetricsRequest. It only contains
// information about the metrics that have changed since the prior
// GetMetricsRequest.
type GetMetricsReply struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Update *MetricUpdate `protobuf:"bytes,1,opt,name=update,proto3" json:"update,omitempty"`
}
func (x *GetMetricsReply) Reset() {
*x = GetMetricsReply{}
if protoimpl.UnsafeEnabled {
mi := &file_runtime_protos_runtime_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetMetricsReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMetricsReply) ProtoMessage() {}
func (x *GetMetricsReply) ProtoReflect() protoreflect.Message {
mi := &file_runtime_protos_runtime_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetMetricsReply.ProtoReflect.Descriptor instead.
func (*GetMetricsReply) Descriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{7}
}
func (x *GetMetricsReply) GetUpdate() *MetricUpdate {
if x != nil {
return x.Update
}
return nil
}
// MetricUpdate contains metric updates.
type MetricUpdate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Metric definitions and updated values.
//
// All metrics are identified by their globally unique id. Two endpoints
// exchanging metric updates must ensure that a received metric value has been
// preceded by a metric definition with the same id, either in the current
// update or an earlier one.
Defs []*MetricDef `protobuf:"bytes,1,rep,name=defs,proto3" json:"defs,omitempty"` // metric definitions
Values []*MetricValue `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` // metric values
}
func (x *MetricUpdate) Reset() {
*x = MetricUpdate{}
if protoimpl.UnsafeEnabled {
mi := &file_runtime_protos_runtime_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MetricUpdate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MetricUpdate) ProtoMessage() {}
func (x *MetricUpdate) ProtoReflect() protoreflect.Message {
mi := &file_runtime_protos_runtime_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MetricUpdate.ProtoReflect.Descriptor instead.
func (*MetricUpdate) Descriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{8}
}
func (x *MetricUpdate) GetDefs() []*MetricDef {
if x != nil {
return x.Defs
}
return nil
}
func (x *MetricUpdate) GetValues() []*MetricValue {
if x != nil {
return x.Values
}
return nil
}
// MetricDef is the definition of a new metric.
type MetricDef struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // metric's unique id
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // name of the metric
Typ MetricType `protobuf:"varint,3,opt,name=typ,proto3,enum=runtime.MetricType" json:"typ,omitempty"` // type of metric
Help string `protobuf:"bytes,4,opt,name=help,proto3" json:"help,omitempty"` // metric's help message
Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // metric labels
Bounds []float64 `protobuf:"fixed64,6,rep,packed,name=bounds,proto3" json:"bounds,omitempty"` // histogram bucket bounds
}
func (x *MetricDef) Reset() {
*x = MetricDef{}
if protoimpl.UnsafeEnabled {
mi := &file_runtime_protos_runtime_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MetricDef) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MetricDef) ProtoMessage() {}
func (x *MetricDef) ProtoReflect() protoreflect.Message {
mi := &file_runtime_protos_runtime_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MetricDef.ProtoReflect.Descriptor instead.
func (*MetricDef) Descriptor() ([]byte, []int) {
return file_runtime_protos_runtime_proto_rawDescGZIP(), []int{9}
}
func (x *MetricDef) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *MetricDef) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *MetricDef) GetTyp() MetricType {
if x != nil {
return x.Typ
}
return MetricType_INVALID
}
func (x *MetricDef) GetHelp() string {
if x != nil {
return x.Help
}
return ""
}
func (x *MetricDef) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *MetricDef) GetBounds() []float64 {
if x != nil {
return x.Bounds
}
return nil
}
// MetricValue is the value associated with a metric.
type MetricValue struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields