Debian Codegraph @

envoy/extensions/matching/input_matchers/runtime_fraction/v3/runtime_fraction.pb.go

raw
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.30.0
4 // protoc v5.29.1
5 // source: envoy/extensions/matching/input_matchers/runtime_fraction/v3/runtime_fraction.proto
6
7 package runtime_fractionv3
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
12 _ "github.com/envoyproxy/protoc-gen-validate/validate"
13 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
14 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
15 reflect "reflect"
16 sync "sync"
17 )
18
19 const (
20 // Verify that this generated code is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22 // Verify that runtime/protoimpl is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24 )
25
26 // The runtime fraction matchers computes a hash from the input and matches if runtime feature is enabled
27 // for the the resulting hash. Every time the input is considered for a match, its hash must fall within
28 // the percentage of matches indicated by this field. For a fraction N/D, a number is computed as a hash
29 // of the input on a field in the range [0,D). If the number is less than or equal to the value of the
30 // numerator N, the matcher evaluates to true. A runtime_fraction input matcher can be used to gradually
31 // roll out matcher changes without requiring full code or configuration deployments.
32 // Note that distribution of matching results is only as good as one of the input.
33 type RuntimeFraction struct {
34 state protoimpl.MessageState
35 sizeCache protoimpl.SizeCache
36 unknownFields protoimpl.UnknownFields
37
38 // Match the input against the given runtime key. The specified default value is used if key is not
39 // present in the runtime configuration.
40 RuntimeFraction *v3.RuntimeFractionalPercent `protobuf:"bytes,1,opt,name=runtime_fraction,json=runtimeFraction,proto3" json:"runtime_fraction,omitempty"`
41 // Optional seed passed through the hash function. This allows using additional information when computing
42 // the hash value: by changing the seed value, a potentially different outcome can be achieved for the same input.
43 Seed uint64 `protobuf:"varint,2,opt,name=seed,proto3" json:"seed,omitempty"`
44 }
45
46 func (x *RuntimeFraction) Reset() {
47 *x = RuntimeFraction{}
48 if protoimpl.UnsafeEnabled {
49 mi := &file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_msgTypes[0]
50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
51 ms.StoreMessageInfo(mi)
52 }
53 }
54
55 func (x *RuntimeFraction) String() string {
56 return protoimpl.X.MessageStringOf(x)
57 }
58
59 func (*RuntimeFraction) ProtoMessage() {}
60
61 func (x *RuntimeFraction) ProtoReflect() protoreflect.Message {
62 mi := &file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_msgTypes[0]
63 if protoimpl.UnsafeEnabled && x != nil {
64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
65 if ms.LoadMessageInfo() == nil {
66 ms.StoreMessageInfo(mi)
67 }
68 return ms
69 }
70 return mi.MessageOf(x)
71 }
72
73 // Deprecated: Use RuntimeFraction.ProtoReflect.Descriptor instead.
74 func (*RuntimeFraction) Descriptor() ([]byte, []int) {
75 return file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_rawDescGZIP(), []int{0}
76 }
77
78 func (x *RuntimeFraction) GetRuntimeFraction() *v3.RuntimeFractionalPercent {
79 if x != nil {
80 return x.RuntimeFraction
81 }
82 return nil
83 }
84
85 func (x *RuntimeFraction) GetSeed() uint64 {
86 if x != nil {
87 return x.Seed
88 }
89 return 0
90 }
91
92 var File_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto protoreflect.FileDescriptor
93
94 var file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_rawDesc = []byte{
95 0x0a, 0x53, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
96 0x6e, 0x73, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x69, 0x6e, 0x70, 0x75,
97 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x72, 0x75, 0x6e, 0x74, 0x69,
98 0x6d, 0x65, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x33, 0x2f, 0x72,
99 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
100 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x3c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74,
101 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67,
102 0x2e, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x2e,
103 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
104 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69,
105 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70,
106 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
107 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72,
108 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61,
109 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x01, 0x0a,
110 0x0f, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
111 0x12, 0x63, 0x0a, 0x10, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x66, 0x72, 0x61, 0x63,
112 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x65, 0x6e, 0x76,
113 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76,
114 0x33, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f,
115 0x6e, 0x61, 0x6c, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a,
116 0x01, 0x02, 0x10, 0x01, 0x52, 0x0f, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x46, 0x72, 0x61,
117 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x02, 0x20,
118 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x42, 0xe4, 0x01, 0xba, 0x80, 0xc8, 0xd1,
119 0x06, 0x02, 0x10, 0x02, 0x0a, 0x4a, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72,
120 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
121 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x69, 0x6e,
122 0x70, 0x75, 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x2e, 0x72, 0x75, 0x6e,
123 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33,
124 0x42, 0x14, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f,
125 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x76, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
126 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f,
127 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65,
128 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
129 0x73, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x69, 0x6e, 0x70, 0x75, 0x74,
130 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d,
131 0x65, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x33, 0x3b, 0x72, 0x75,
132 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x33,
133 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
134 }
135
136 var (
137 file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_rawDescOnce sync.Once
138 file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_rawDescData = file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_rawDesc
139 )
140
141 func file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_rawDescGZIP() []byte {
142 file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_rawDescOnce.Do(func() {
143 file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_rawDescData)
144 })
145 return file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_rawDescData
146 }
147
148 var file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
149 var file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_goTypes = []interface{}{
150 (*RuntimeFraction)(nil), // 0: envoy.extensions.matching.input_matchers.runtime_fraction.v3.RuntimeFraction
151 (*v3.RuntimeFractionalPercent)(nil), // 1: envoy.config.core.v3.RuntimeFractionalPercent
152 }
153 var file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_depIdxs = []int32{
154 1, // 0: envoy.extensions.matching.input_matchers.runtime_fraction.v3.RuntimeFraction.runtime_fraction:type_name -> envoy.config.core.v3.RuntimeFractionalPercent
155 1, // [1:1] is the sub-list for method output_type
156 1, // [1:1] is the sub-list for method input_type
157 1, // [1:1] is the sub-list for extension type_name
158 1, // [1:1] is the sub-list for extension extendee
159 0, // [0:1] is the sub-list for field type_name
160 }
161
162 func init() {
163 file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_init()
164 }
165 func file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_init() {
166 if File_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto != nil {
167 return
168 }
169 if !protoimpl.UnsafeEnabled {
170 file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
171 switch v := v.(*RuntimeFraction); i {
172 case 0:
173 return &v.state
174 case 1:
175 return &v.sizeCache
176 case 2:
177 return &v.unknownFields
178 default:
179 return nil
180 }
181 }
182 }
183 type x struct{}
184 out := protoimpl.TypeBuilder{
185 File: protoimpl.DescBuilder{
186 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
187 RawDescriptor: file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_rawDesc,
188 NumEnums: 0,
189 NumMessages: 1,
190 NumExtensions: 0,
191 NumServices: 0,
192 },
193 GoTypes: file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_goTypes,
194 DependencyIndexes: file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_depIdxs,
195 MessageInfos: file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_msgTypes,
196 }.Build()
197 File_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto = out.File
198 file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_rawDesc = nil
199 file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_goTypes = nil
200 file_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto_depIdxs = nil
201 }