/
std_components.pb.go
6211 lines (5548 loc) · 236 KB
/
std_components.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc (unknown)
// source: aperture/policy/language/v1/std_components.proto
package languagev1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
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)
)
// Gradient controller is a type of controller which tries to adjust the
// control variable proportionally to the relative difference between setpoint
// and actual value of the signal
//
// The `gradient` describes a corrective factor that should be applied to the
// control variable to get the signal closer to the setpoint. It's computed as follows:
//
// $$
// \text{gradient} = \left(\frac{\text{signal}}{\text{setpoint}}\right)^{\text{slope}}
// $$
//
// `gradient` is then clamped to `[min_gradient, max_gradient]` range.
//
// The output of gradient controller is computed as follows:
// $$
// \text{output} = \text{gradient}_{\text{clamped}} \cdot \text{control\_variable} + \text{optimize}.
// $$
//
// Note the additional `optimize` signal, that can be used to "nudge" the
// controller into desired idle state.
//
// The output can be _optionally_ clamped to desired range using `max` and
// `min` input.
type GradientController struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Input ports of the Gradient Controller.
InPorts *GradientController_Ins `protobuf:"bytes,1,opt,name=in_ports,json=inPorts,proto3" json:"in_ports,omitempty"`
// Output ports of the Gradient Controller.
OutPorts *GradientController_Outs `protobuf:"bytes,2,opt,name=out_ports,json=outPorts,proto3" json:"out_ports,omitempty"`
// Gradient Parameters.
Parameters *GradientController_Parameters `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty" validate:"required"` // @gotags: validate:"required"
// Configuration key for DynamicConfig
DynamicConfigKey string `protobuf:"bytes,4,opt,name=dynamic_config_key,json=dynamicConfigKey,proto3" json:"dynamic_config_key,omitempty"`
// Default configuration.
DefaultConfig *GradientController_DynamicConfig `protobuf:"bytes,5,opt,name=default_config,json=defaultConfig,proto3" json:"default_config,omitempty"`
}
func (x *GradientController) Reset() {
*x = GradientController{}
if protoimpl.UnsafeEnabled {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GradientController) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GradientController) ProtoMessage() {}
func (x *GradientController) ProtoReflect() protoreflect.Message {
mi := &file_aperture_policy_language_v1_std_components_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 GradientController.ProtoReflect.Descriptor instead.
func (*GradientController) Descriptor() ([]byte, []int) {
return file_aperture_policy_language_v1_std_components_proto_rawDescGZIP(), []int{0}
}
func (x *GradientController) GetInPorts() *GradientController_Ins {
if x != nil {
return x.InPorts
}
return nil
}
func (x *GradientController) GetOutPorts() *GradientController_Outs {
if x != nil {
return x.OutPorts
}
return nil
}
func (x *GradientController) GetParameters() *GradientController_Parameters {
if x != nil {
return x.Parameters
}
return nil
}
func (x *GradientController) GetDynamicConfigKey() string {
if x != nil {
return x.DynamicConfigKey
}
return ""
}
func (x *GradientController) GetDefaultConfig() *GradientController_DynamicConfig {
if x != nil {
return x.DefaultConfig
}
return nil
}
// Exponential Moving Average (EMA) is a type of moving average that applies exponentially more weight to recent signal readings
//
// At any time EMA component operates in one of the following states:
// 1. Warm up state: The first `warmup_window` samples are used to compute the initial EMA.
// If an invalid reading is received during the `warmup_window`, the last good average is emitted and the state gets reset back to beginning of warm up state.
// 2. Normal state: The EMA is computed using following formula.
//
// The EMA for a series $Y$ is calculated recursively as:
// <!-- vale off -->
// $$
// \text{EMA} _t =
// \begin{cases}
//
// Y_0, &\text{for } t = 0 \\
// \alpha Y_t + (1 - \alpha) \text{EMA}_{t-1}, &\text{for }t > 0
//
// \end{cases}
// $$
//
// The coefficient $\alpha$ represents the degree of weighting decrease, a constant smoothing factor between 0 and 1.
// A higher $\alpha$ discounts older observations faster.
// The $\alpha$ is computed using ema\_window:
//
// $$
// \alpha = \frac{2}{N + 1} \quad\text{where } N = \frac{\text{ema\_window}}{\text{evaluation\_period}}
// $$
// <!-- vale on -->
type EMA struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Input ports for the EMA component.
InPorts *EMA_Ins `protobuf:"bytes,1,opt,name=in_ports,json=inPorts,proto3" json:"in_ports,omitempty"`
// Output ports for the EMA component.
OutPorts *EMA_Outs `protobuf:"bytes,2,opt,name=out_ports,json=outPorts,proto3" json:"out_ports,omitempty"`
// Parameters for the EMA component.
Parameters *EMA_Parameters `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty" validate:"required"` // @gotags: validate:"required"
}
func (x *EMA) Reset() {
*x = EMA{}
if protoimpl.UnsafeEnabled {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EMA) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EMA) ProtoMessage() {}
func (x *EMA) ProtoReflect() protoreflect.Message {
mi := &file_aperture_policy_language_v1_std_components_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 EMA.ProtoReflect.Descriptor instead.
func (*EMA) Descriptor() ([]byte, []int) {
return file_aperture_policy_language_v1_std_components_proto_rawDescGZIP(), []int{1}
}
func (x *EMA) GetInPorts() *EMA_Ins {
if x != nil {
return x.InPorts
}
return nil
}
func (x *EMA) GetOutPorts() *EMA_Outs {
if x != nil {
return x.OutPorts
}
return nil
}
func (x *EMA) GetParameters() *EMA_Parameters {
if x != nil {
return x.Parameters
}
return nil
}
// Simple Moving Average (SMA) is a type of moving average that computes the average of a fixed number of signal readings.
type SMA struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Input ports for the SMA component.
InPorts *SMA_Ins `protobuf:"bytes,1,opt,name=in_ports,json=inPorts,proto3" json:"in_ports,omitempty"`
// Output ports for the SMA component.
OutPorts *SMA_Outs `protobuf:"bytes,2,opt,name=out_ports,json=outPorts,proto3" json:"out_ports,omitempty"`
// Parameters for the SMA component.
Parameters *SMA_Parameters `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty" validate:"required"` // @gotags: validate:"required"
}
func (x *SMA) Reset() {
*x = SMA{}
if protoimpl.UnsafeEnabled {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SMA) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SMA) ProtoMessage() {}
func (x *SMA) ProtoReflect() protoreflect.Message {
mi := &file_aperture_policy_language_v1_std_components_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 SMA.ProtoReflect.Descriptor instead.
func (*SMA) Descriptor() ([]byte, []int) {
return file_aperture_policy_language_v1_std_components_proto_rawDescGZIP(), []int{2}
}
func (x *SMA) GetInPorts() *SMA_Ins {
if x != nil {
return x.InPorts
}
return nil
}
func (x *SMA) GetOutPorts() *SMA_Outs {
if x != nil {
return x.OutPorts
}
return nil
}
func (x *SMA) GetParameters() *SMA_Parameters {
if x != nil {
return x.Parameters
}
return nil
}
// Type of Combinator that computes the arithmetic operation on the operand signals
type ArithmeticCombinator struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Input ports for the Arithmetic Combinator component.
InPorts *ArithmeticCombinator_Ins `protobuf:"bytes,1,opt,name=in_ports,json=inPorts,proto3" json:"in_ports,omitempty"`
// Output ports for the Arithmetic Combinator component.
OutPorts *ArithmeticCombinator_Outs `protobuf:"bytes,2,opt,name=out_ports,json=outPorts,proto3" json:"out_ports,omitempty"`
// Operator of the arithmetic operation.
//
// The arithmetic operation can be addition, subtraction, multiplication, division, XOR, right bit shift or left bit shift.
// In case of XOR and bit shifts, value of signals is cast to integers before performing the operation.
Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty" validate:"oneof=add sub mul div xor lshift rshift"` // @gotags: validate:"oneof=add sub mul div xor lshift rshift"
}
func (x *ArithmeticCombinator) Reset() {
*x = ArithmeticCombinator{}
if protoimpl.UnsafeEnabled {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ArithmeticCombinator) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ArithmeticCombinator) ProtoMessage() {}
func (x *ArithmeticCombinator) ProtoReflect() protoreflect.Message {
mi := &file_aperture_policy_language_v1_std_components_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 ArithmeticCombinator.ProtoReflect.Descriptor instead.
func (*ArithmeticCombinator) Descriptor() ([]byte, []int) {
return file_aperture_policy_language_v1_std_components_proto_rawDescGZIP(), []int{3}
}
func (x *ArithmeticCombinator) GetInPorts() *ArithmeticCombinator_Ins {
if x != nil {
return x.InPorts
}
return nil
}
func (x *ArithmeticCombinator) GetOutPorts() *ArithmeticCombinator_Outs {
if x != nil {
return x.OutPorts
}
return nil
}
func (x *ArithmeticCombinator) GetOperator() string {
if x != nil {
return x.Operator
}
return ""
}
// Type of Combinator that computes the comparison operation on LHS and RHS signals
//
// The comparison operator can be greater-than, less-than, greater-than-or-equal, less-than-or-equal, equal, or not-equal.
//
// This component also supports time-based response (the output)
// transitions between 1.0 or 0.0 signal if the decider condition is
// true or false for at least `true_for` or `false_for` duration. If
// `true_for` and `false_for` durations are zero then the transitions are
// instantaneous.
type Decider struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Input ports for the Decider component.
InPorts *Decider_Ins `protobuf:"bytes,1,opt,name=in_ports,json=inPorts,proto3" json:"in_ports,omitempty"`
// Output ports for the Decider component.
OutPorts *Decider_Outs `protobuf:"bytes,2,opt,name=out_ports,json=outPorts,proto3" json:"out_ports,omitempty"`
// Comparison operator that computes operation on LHS and RHS input signals.
Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty" validate:"oneof=gt lt gte lte eq neq"` // @gotags: validate:"oneof=gt lt gte lte eq neq"
// Duration of time to wait before changing to true state.
// If the duration is zero, the change will happen instantaneously.```
TrueFor *durationpb.Duration `protobuf:"bytes,4,opt,name=true_for,json=trueFor,proto3" json:"true_for,omitempty" default:"0s"` // @gotags: default:"0s"
// Duration of time to wait before changing to false state.
// If the duration is zero, the change will happen instantaneously.
FalseFor *durationpb.Duration `protobuf:"bytes,5,opt,name=false_for,json=falseFor,proto3" json:"false_for,omitempty" default:"0s"` // @gotags: default:"0s"
}
func (x *Decider) Reset() {
*x = Decider{}
if protoimpl.UnsafeEnabled {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Decider) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Decider) ProtoMessage() {}
func (x *Decider) ProtoReflect() protoreflect.Message {
mi := &file_aperture_policy_language_v1_std_components_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 Decider.ProtoReflect.Descriptor instead.
func (*Decider) Descriptor() ([]byte, []int) {
return file_aperture_policy_language_v1_std_components_proto_rawDescGZIP(), []int{4}
}
func (x *Decider) GetInPorts() *Decider_Ins {
if x != nil {
return x.InPorts
}
return nil
}
func (x *Decider) GetOutPorts() *Decider_Outs {
if x != nil {
return x.OutPorts
}
return nil
}
func (x *Decider) GetOperator() string {
if x != nil {
return x.Operator
}
return ""
}
func (x *Decider) GetTrueFor() *durationpb.Duration {
if x != nil {
return x.TrueFor
}
return nil
}
func (x *Decider) GetFalseFor() *durationpb.Duration {
if x != nil {
return x.FalseFor
}
return nil
}
// Type of Combinator that switches between `on_signal` and `off_signal` signals based on switch input
//
// `on_signal` will be returned if switch input is valid and not equal to 0.0 ,
//
// otherwise `off_signal` will be returned.
type Switcher struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Input ports for the Switcher component.
InPorts *Switcher_Ins `protobuf:"bytes,1,opt,name=in_ports,json=inPorts,proto3" json:"in_ports,omitempty"`
// Output ports for the Switcher component.
OutPorts *Switcher_Outs `protobuf:"bytes,2,opt,name=out_ports,json=outPorts,proto3" json:"out_ports,omitempty"`
}
func (x *Switcher) Reset() {
*x = Switcher{}
if protoimpl.UnsafeEnabled {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Switcher) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Switcher) ProtoMessage() {}
func (x *Switcher) ProtoReflect() protoreflect.Message {
mi := &file_aperture_policy_language_v1_std_components_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 Switcher.ProtoReflect.Descriptor instead.
func (*Switcher) Descriptor() ([]byte, []int) {
return file_aperture_policy_language_v1_std_components_proto_rawDescGZIP(), []int{5}
}
func (x *Switcher) GetInPorts() *Switcher_Ins {
if x != nil {
return x.InPorts
}
return nil
}
func (x *Switcher) GetOutPorts() *Switcher_Outs {
if x != nil {
return x.OutPorts
}
return nil
}
// Component that emits a variable value as an output signal, can be defined in dynamic configuration.
type Variable struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output ports for the Variable component.
OutPorts *Variable_Outs `protobuf:"bytes,1,opt,name=out_ports,json=outPorts,proto3" json:"out_ports,omitempty"`
// Configuration key for DynamicConfig.
DynamicConfigKey string `protobuf:"bytes,2,opt,name=dynamic_config_key,json=dynamicConfigKey,proto3" json:"dynamic_config_key,omitempty"`
// Default configuration.
DefaultConfig *Variable_DynamicConfig `protobuf:"bytes,3,opt,name=default_config,json=defaultConfig,proto3" json:"default_config,omitempty" validate:"required"` // @gotags: validate:"required"
}
func (x *Variable) Reset() {
*x = Variable{}
if protoimpl.UnsafeEnabled {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Variable) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Variable) ProtoMessage() {}
func (x *Variable) ProtoReflect() protoreflect.Message {
mi := &file_aperture_policy_language_v1_std_components_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 Variable.ProtoReflect.Descriptor instead.
func (*Variable) Descriptor() ([]byte, []int) {
return file_aperture_policy_language_v1_std_components_proto_rawDescGZIP(), []int{6}
}
func (x *Variable) GetOutPorts() *Variable_Outs {
if x != nil {
return x.OutPorts
}
return nil
}
func (x *Variable) GetDynamicConfigKey() string {
if x != nil {
return x.DynamicConfigKey
}
return ""
}
func (x *Variable) GetDefaultConfig() *Variable_DynamicConfig {
if x != nil {
return x.DefaultConfig
}
return nil
}
// Takes an input signal and emits the output after applying the specified unary operator
//
// $$
// \text{output} = \unary_operator{\text{input}}
// $$
type UnaryOperator struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Input ports for the UnaryOperator component.
InPorts *UnaryOperator_Ins `protobuf:"bytes,1,opt,name=in_ports,json=inPorts,proto3" json:"in_ports,omitempty"`
// Output ports for the UnaryOperator component.
OutPorts *UnaryOperator_Outs `protobuf:"bytes,2,opt,name=out_ports,json=outPorts,proto3" json:"out_ports,omitempty"`
// Unary Operator to apply.
//
// The unary operator can be one of the following:
// * `abs`: Absolute value with the sign removed.
// * `acos`: `arccosine`, in radians.
// * `acosh`: Inverse hyperbolic cosine.
// * `asin`: `arcsine`, in radians.
// * `asinh`: Inverse hyperbolic sine.
// * `atan`: `arctangent`, in radians.
// * `atanh`: Inverse hyperbolic tangent.
// * `cbrt`: Cube root.
// * `ceil`: Least integer value greater than or equal to input signal.
// * `cos`: `cosine`, in radians.
// * `cosh`: Hyperbolic cosine.
// * `erf`: Error function.
// * `erfc`: Complementary error function.
// * `erfcinv`: Inverse complementary error function.
// * `erfinv`: Inverse error function.
// * `exp`: The base-e exponential of input signal.
// * `exp2`: The base-2 exponential of input signal.
// * `expm1`: The base-e exponential of input signal minus 1.
// * `floor`: Greatest integer value less than or equal to input signal.
// * `gamma`: Gamma function.
// * `j0`: Bessel function of the first kind of order 0.
// * `j1`: Bessel function of the first kind of order 1.
// * `lgamma`: Natural logarithm of the absolute value of the gamma function.
// * `log`: Natural logarithm of input signal.
// * `log10`: Base-10 logarithm of input signal.
// * `log1p`: Natural logarithm of input signal plus 1.
// * `log2`: Base-2 logarithm of input signal.
// * `round`: Round to nearest integer.
// * `roundtoeven`: Round to nearest integer, with ties going to the nearest even integer.
// * `sin`: `sine`, in radians.
// * `sinh`: Hyperbolic sine.
// * `sqrt`: Square root.
// * `tan`: `tangent`, in radians.
// * `tanh`: Hyperbolic tangent.
// * `trunc`: Truncate to integer.
// * `y0`: Bessel function of the second kind of order 0.
// * `y1`: Bessel function of the second kind of order 1.
Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty" validate:"oneof=abs acos acosh asin asinh atan atanh cbrt ceil cos cosh erf erfc erfcinv erfinv exp exp2 expm1 floor gamma j0 j1 lgamma log log10 log1p log2 round roundtoeven sin sinh sqrt tan tanh trunc y0 y1"` // @gotags: validate:"oneof=abs acos acosh asin asinh atan atanh cbrt ceil cos cosh erf erfc erfcinv erfinv exp exp2 expm1 floor gamma j0 j1 lgamma log log10 log1p log2 round roundtoeven sin sinh sqrt tan tanh trunc y0 y1"
}
func (x *UnaryOperator) Reset() {
*x = UnaryOperator{}
if protoimpl.UnsafeEnabled {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UnaryOperator) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnaryOperator) ProtoMessage() {}
func (x *UnaryOperator) ProtoReflect() protoreflect.Message {
mi := &file_aperture_policy_language_v1_std_components_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 UnaryOperator.ProtoReflect.Descriptor instead.
func (*UnaryOperator) Descriptor() ([]byte, []int) {
return file_aperture_policy_language_v1_std_components_proto_rawDescGZIP(), []int{7}
}
func (x *UnaryOperator) GetInPorts() *UnaryOperator_Ins {
if x != nil {
return x.InPorts
}
return nil
}
func (x *UnaryOperator) GetOutPorts() *UnaryOperator_Outs {
if x != nil {
return x.OutPorts
}
return nil
}
func (x *UnaryOperator) GetOperator() string {
if x != nil {
return x.Operator
}
return ""
}
// Extrapolates the input signal by repeating the last valid value during the period in which it is invalid
//
// It does so until `maximum_extrapolation_interval` is reached, beyond which it emits invalid signal unless input signal becomes valid again.
type Extrapolator struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Input ports for the Extrapolator component.
InPorts *Extrapolator_Ins `protobuf:"bytes,1,opt,name=in_ports,json=inPorts,proto3" json:"in_ports,omitempty"`
// Output ports for the Extrapolator component.
OutPorts *Extrapolator_Outs `protobuf:"bytes,2,opt,name=out_ports,json=outPorts,proto3" json:"out_ports,omitempty"`
// Parameters for the Extrapolator component.
Parameters *Extrapolator_Parameters `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty" validate:"required"` // @gotags: validate:"required"
}
func (x *Extrapolator) Reset() {
*x = Extrapolator{}
if protoimpl.UnsafeEnabled {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Extrapolator) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Extrapolator) ProtoMessage() {}
func (x *Extrapolator) ProtoReflect() protoreflect.Message {
mi := &file_aperture_policy_language_v1_std_components_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 Extrapolator.ProtoReflect.Descriptor instead.
func (*Extrapolator) Descriptor() ([]byte, []int) {
return file_aperture_policy_language_v1_std_components_proto_rawDescGZIP(), []int{8}
}
func (x *Extrapolator) GetInPorts() *Extrapolator_Ins {
if x != nil {
return x.InPorts
}
return nil
}
func (x *Extrapolator) GetOutPorts() *Extrapolator_Outs {
if x != nil {
return x.OutPorts
}
return nil
}
func (x *Extrapolator) GetParameters() *Extrapolator_Parameters {
if x != nil {
return x.Parameters
}
return nil
}
// Takes a list of input signals and emits the signal with the maximum value
//
// Max: output = max([]inputs).
type Max struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Input ports for the Max component.
InPorts *Max_Ins `protobuf:"bytes,1,opt,name=in_ports,json=inPorts,proto3" json:"in_ports,omitempty"`
// Output ports for the Max component.
OutPorts *Max_Outs `protobuf:"bytes,2,opt,name=out_ports,json=outPorts,proto3" json:"out_ports,omitempty"`
}
func (x *Max) Reset() {
*x = Max{}
if protoimpl.UnsafeEnabled {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Max) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Max) ProtoMessage() {}
func (x *Max) ProtoReflect() protoreflect.Message {
mi := &file_aperture_policy_language_v1_std_components_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 Max.ProtoReflect.Descriptor instead.
func (*Max) Descriptor() ([]byte, []int) {
return file_aperture_policy_language_v1_std_components_proto_rawDescGZIP(), []int{9}
}
func (x *Max) GetInPorts() *Max_Ins {
if x != nil {
return x.InPorts
}
return nil
}
func (x *Max) GetOutPorts() *Max_Outs {
if x != nil {
return x.OutPorts
}
return nil
}
// Takes an array of input signals and emits the signal with the minimum value
// Min: output = min([]inputs).
type Min struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Input ports for the Min component.
InPorts *Min_Ins `protobuf:"bytes,1,opt,name=in_ports,json=inPorts,proto3" json:"in_ports,omitempty"`
// Output ports for the Min component.
OutPorts *Min_Outs `protobuf:"bytes,2,opt,name=out_ports,json=outPorts,proto3" json:"out_ports,omitempty"`
}
func (x *Min) Reset() {
*x = Min{}
if protoimpl.UnsafeEnabled {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Min) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Min) ProtoMessage() {}
func (x *Min) ProtoReflect() protoreflect.Message {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[10]
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 Min.ProtoReflect.Descriptor instead.
func (*Min) Descriptor() ([]byte, []int) {
return file_aperture_policy_language_v1_std_components_proto_rawDescGZIP(), []int{10}
}
func (x *Min) GetInPorts() *Min_Ins {
if x != nil {
return x.InPorts
}
return nil
}
func (x *Min) GetOutPorts() *Min_Outs {
if x != nil {
return x.OutPorts
}
return nil
}
// Logical AND.
//
// Signals are mapped to Boolean values as follows:
// * Zero is treated as false.
// * Any non-zero is treated as true.
// * Invalid inputs are considered unknown.
//
// :::note
//
// Treating invalid inputs as "unknowns" has a consequence that the result
// might end up being valid even when some inputs are invalid. For example, `unknown && false == false`,
// because the result would end up false no matter if
// first signal was true or false. Conversely, `unknown && true == unknown`.
//
// :::
type And struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Input ports for the And component.
InPorts *And_Ins `protobuf:"bytes,1,opt,name=in_ports,json=inPorts,proto3" json:"in_ports,omitempty"`
// Output ports for the And component.
OutPorts *And_Outs `protobuf:"bytes,2,opt,name=out_ports,json=outPorts,proto3" json:"out_ports,omitempty"`
}
func (x *And) Reset() {
*x = And{}
if protoimpl.UnsafeEnabled {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *And) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*And) ProtoMessage() {}
func (x *And) ProtoReflect() protoreflect.Message {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[11]
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 And.ProtoReflect.Descriptor instead.
func (*And) Descriptor() ([]byte, []int) {
return file_aperture_policy_language_v1_std_components_proto_rawDescGZIP(), []int{11}
}
func (x *And) GetInPorts() *And_Ins {
if x != nil {
return x.InPorts
}
return nil
}
func (x *And) GetOutPorts() *And_Outs {
if x != nil {
return x.OutPorts
}
return nil
}
// Logical OR.
//
// See [And component](#and) on how signals are mapped onto Boolean values.
type Or struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Input ports for the Or component.
InPorts *Or_Ins `protobuf:"bytes,1,opt,name=in_ports,json=inPorts,proto3" json:"in_ports,omitempty"`
// Output ports for the Or component.
OutPorts *Or_Outs `protobuf:"bytes,2,opt,name=out_ports,json=outPorts,proto3" json:"out_ports,omitempty"`
}
func (x *Or) Reset() {
*x = Or{}
if protoimpl.UnsafeEnabled {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Or) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Or) ProtoMessage() {}
func (x *Or) ProtoReflect() protoreflect.Message {
mi := &file_aperture_policy_language_v1_std_components_proto_msgTypes[12]
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 Or.ProtoReflect.Descriptor instead.
func (*Or) Descriptor() ([]byte, []int) {
return file_aperture_policy_language_v1_std_components_proto_rawDescGZIP(), []int{12}
}