Debian Codegraph @

envoy/extensions/wasm/v3/wasm.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/wasm/v3/wasm.proto
6
7 package wasmv3
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 _ "github.com/envoyproxy/go-control-plane/envoy/annotations"
12 v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
13 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
14 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
15 anypb "google.golang.org/protobuf/types/known/anypb"
16 reflect "reflect"
17 sync "sync"
18 )
19
20 const (
21 // Verify that this generated code is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23 // Verify that runtime/protoimpl is sufficiently up-to-date.
24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
25 )
26
27 // If there is a fatal error on the VM (e.g. exception, abort()), then the policy will be applied.
28 type FailurePolicy int32
29
30 const (
31 // No policy is specified. The default policy will be used. The default policy is “FAIL_CLOSED“.
32 FailurePolicy_UNSPECIFIED FailurePolicy = 0
33 // New plugin instance will be created for the new request if the VM is failed. Note this only
34 // be applied to the following failures:
35 //
36 // * “proxy_wasm::FailState::RuntimeError“
37 //
38 // This will fallback to the “FAIL_CLOSED“ for all other failures.
39 FailurePolicy_FAIL_RELOAD FailurePolicy = 1
40 // All plugins associated with the VM will return an HTTP 503 error.
41 FailurePolicy_FAIL_CLOSED FailurePolicy = 2
42 // All plugins associated with the VM will be ignored and the filter chain will continue. This
43 // makes sense when the plugin is optional.
44 FailurePolicy_FAIL_OPEN FailurePolicy = 3
45 )
46
47 // Enum value maps for FailurePolicy.
48 var (
49 FailurePolicy_name = map[int32]string{
50 0: "UNSPECIFIED",
51 1: "FAIL_RELOAD",
52 2: "FAIL_CLOSED",
53 3: "FAIL_OPEN",
54 }
55 FailurePolicy_value = map[string]int32{
56 "UNSPECIFIED": 0,
57 "FAIL_RELOAD": 1,
58 "FAIL_CLOSED": 2,
59 "FAIL_OPEN": 3,
60 }
61 )
62
63 func (x FailurePolicy) Enum() *FailurePolicy {
64 p := new(FailurePolicy)
65 *p = x
66 return p
67 }
68
69 func (x FailurePolicy) String() string {
70 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
71 }
72
73 func (FailurePolicy) Descriptor() protoreflect.EnumDescriptor {
74 return file_envoy_extensions_wasm_v3_wasm_proto_enumTypes[0].Descriptor()
75 }
76
77 func (FailurePolicy) Type() protoreflect.EnumType {
78 return &file_envoy_extensions_wasm_v3_wasm_proto_enumTypes[0]
79 }
80
81 func (x FailurePolicy) Number() protoreflect.EnumNumber {
82 return protoreflect.EnumNumber(x)
83 }
84
85 // Deprecated: Use FailurePolicy.Descriptor instead.
86 func (FailurePolicy) EnumDescriptor() ([]byte, []int) {
87 return file_envoy_extensions_wasm_v3_wasm_proto_rawDescGZIP(), []int{0}
88 }
89
90 type ReloadConfig struct {
91 state protoimpl.MessageState
92 sizeCache protoimpl.SizeCache
93 unknownFields protoimpl.UnknownFields
94
95 // Backoff strategy for the VM failure reload. If not specified, the default 1s base interval
96 // will be applied.
97 Backoff *v3.BackoffStrategy `protobuf:"bytes,1,opt,name=backoff,proto3" json:"backoff,omitempty"`
98 }
99
100 func (x *ReloadConfig) Reset() {
101 *x = ReloadConfig{}
102 if protoimpl.UnsafeEnabled {
103 mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[0]
104 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
105 ms.StoreMessageInfo(mi)
106 }
107 }
108
109 func (x *ReloadConfig) String() string {
110 return protoimpl.X.MessageStringOf(x)
111 }
112
113 func (*ReloadConfig) ProtoMessage() {}
114
115 func (x *ReloadConfig) ProtoReflect() protoreflect.Message {
116 mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[0]
117 if protoimpl.UnsafeEnabled && x != nil {
118 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
119 if ms.LoadMessageInfo() == nil {
120 ms.StoreMessageInfo(mi)
121 }
122 return ms
123 }
124 return mi.MessageOf(x)
125 }
126
127 // Deprecated: Use ReloadConfig.ProtoReflect.Descriptor instead.
128 func (*ReloadConfig) Descriptor() ([]byte, []int) {
129 return file_envoy_extensions_wasm_v3_wasm_proto_rawDescGZIP(), []int{0}
130 }
131
132 func (x *ReloadConfig) GetBackoff() *v3.BackoffStrategy {
133 if x != nil {
134 return x.Backoff
135 }
136 return nil
137 }
138
139 // Configuration for restricting Proxy-Wasm capabilities available to modules.
140 type CapabilityRestrictionConfig struct {
141 state protoimpl.MessageState
142 sizeCache protoimpl.SizeCache
143 unknownFields protoimpl.UnknownFields
144
145 // The Proxy-Wasm capabilities which will be allowed. Capabilities are mapped by
146 // name. The “SanitizationConfig“ which each capability maps to is currently unimplemented and ignored,
147 // and so should be left empty.
148 //
149 // The capability names are given in the
150 // `Proxy-Wasm ABI <https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT>`_.
151 // Additionally, the following WASI capabilities from
152 // `this list <https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#modules>`_
153 // are implemented and can be allowed:
154 // “fd_write“, “fd_read“, “fd_seek“, “fd_close“, “fd_fdstat_get“, “environ_get“, “environ_sizes_get“,
155 // “args_get“, “args_sizes_get“, “proc_exit“, “clock_time_get“, “random_get“.
156 AllowedCapabilities map[string]*SanitizationConfig `protobuf:"bytes,1,rep,name=allowed_capabilities,json=allowedCapabilities,proto3" json:"allowed_capabilities,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
157 }
158
159 func (x *CapabilityRestrictionConfig) Reset() {
160 *x = CapabilityRestrictionConfig{}
161 if protoimpl.UnsafeEnabled {
162 mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[1]
163 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
164 ms.StoreMessageInfo(mi)
165 }
166 }
167
168 func (x *CapabilityRestrictionConfig) String() string {
169 return protoimpl.X.MessageStringOf(x)
170 }
171
172 func (*CapabilityRestrictionConfig) ProtoMessage() {}
173
174 func (x *CapabilityRestrictionConfig) ProtoReflect() protoreflect.Message {
175 mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[1]
176 if protoimpl.UnsafeEnabled && x != nil {
177 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
178 if ms.LoadMessageInfo() == nil {
179 ms.StoreMessageInfo(mi)
180 }
181 return ms
182 }
183 return mi.MessageOf(x)
184 }
185
186 // Deprecated: Use CapabilityRestrictionConfig.ProtoReflect.Descriptor instead.
187 func (*CapabilityRestrictionConfig) Descriptor() ([]byte, []int) {
188 return file_envoy_extensions_wasm_v3_wasm_proto_rawDescGZIP(), []int{1}
189 }
190
191 func (x *CapabilityRestrictionConfig) GetAllowedCapabilities() map[string]*SanitizationConfig {
192 if x != nil {
193 return x.AllowedCapabilities
194 }
195 return nil
196 }
197
198 // Configuration for sanitization of inputs to an allowed capability.
199 //
200 // NOTE: This is currently unimplemented.
201 type SanitizationConfig struct {
202 state protoimpl.MessageState
203 sizeCache protoimpl.SizeCache
204 unknownFields protoimpl.UnknownFields
205 }
206
207 func (x *SanitizationConfig) Reset() {
208 *x = SanitizationConfig{}
209 if protoimpl.UnsafeEnabled {
210 mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[2]
211 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
212 ms.StoreMessageInfo(mi)
213 }
214 }
215
216 func (x *SanitizationConfig) String() string {
217 return protoimpl.X.MessageStringOf(x)
218 }
219
220 func (*SanitizationConfig) ProtoMessage() {}
221
222 func (x *SanitizationConfig) ProtoReflect() protoreflect.Message {
223 mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[2]
224 if protoimpl.UnsafeEnabled && x != nil {
225 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
226 if ms.LoadMessageInfo() == nil {
227 ms.StoreMessageInfo(mi)
228 }
229 return ms
230 }
231 return mi.MessageOf(x)
232 }
233
234 // Deprecated: Use SanitizationConfig.ProtoReflect.Descriptor instead.
235 func (*SanitizationConfig) Descriptor() ([]byte, []int) {
236 return file_envoy_extensions_wasm_v3_wasm_proto_rawDescGZIP(), []int{2}
237 }
238
239 // Configuration for a Wasm VM.
240 // [#next-free-field: 8]
241 type VmConfig struct {
242 state protoimpl.MessageState
243 sizeCache protoimpl.SizeCache
244 unknownFields protoimpl.UnknownFields
245
246 // An ID which will be used along with a hash of the wasm code (or the name of the registered Null
247 // VM plugin) to determine which VM will be used for the plugin. All plugins which use the same
248 // “vm_id“ and code will use the same VM. May be left blank. Sharing a VM between plugins can
249 // reduce memory utilization and make sharing of data easier which may have security implications.
250 // [#comment: TODO: add ref for details.]
251 VmId string `protobuf:"bytes,1,opt,name=vm_id,json=vmId,proto3" json:"vm_id,omitempty"`
252 // The Wasm runtime type, defaults to the first available Wasm engine used at Envoy build-time.
253 // The priority to search for the available engine is: v8 -> wasmtime -> wamr.
254 // Available Wasm runtime types are registered as extensions. The following runtimes are included
255 // in Envoy code base:
256 //
257 // .. _extension_envoy.wasm.runtime.null:
258 //
259 // **envoy.wasm.runtime.null**: Null sandbox, the Wasm module must be compiled and linked into the
260 // Envoy binary. The registered name is given in the “code“ field as “inline_string“.
261 //
262 // .. _extension_envoy.wasm.runtime.v8:
263 //
264 // **envoy.wasm.runtime.v8**: `V8 <https://v8.dev/>`_-based WebAssembly runtime.
265 //
266 // .. _extension_envoy.wasm.runtime.wamr:
267 //
268 // **envoy.wasm.runtime.wamr**: `WAMR <https://github.com/bytecodealliance/wasm-micro-runtime/>`_-based WebAssembly runtime.
269 // This runtime is not enabled in the official build.
270 //
271 // .. _extension_envoy.wasm.runtime.wasmtime:
272 //
273 // **envoy.wasm.runtime.wasmtime**: `Wasmtime <https://wasmtime.dev/>`_-based WebAssembly runtime.
274 // This runtime is not enabled in the official build.
275 //
276 // [#extension-category: envoy.wasm.runtime]
277 Runtime string `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"`
278 // The Wasm code that Envoy will execute.
279 Code *v3.AsyncDataSource `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
280 // The Wasm configuration used in initialization of a new VM
281 // (proxy_on_start). “google.protobuf.Struct“ is serialized as JSON before
282 // passing it to the plugin. “google.protobuf.BytesValue“ and
283 // “google.protobuf.StringValue“ are passed directly without the wrapper.
284 Configuration *anypb.Any `protobuf:"bytes,4,opt,name=configuration,proto3" json:"configuration,omitempty"`
285 // Allow the wasm file to include pre-compiled code on VMs which support it.
286 // Warning: this should only be enable for trusted sources as the precompiled code is not
287 // verified.
288 AllowPrecompiled bool `protobuf:"varint,5,opt,name=allow_precompiled,json=allowPrecompiled,proto3" json:"allow_precompiled,omitempty"`
289 // If true and the code needs to be remotely fetched and it is not in the cache then NACK the configuration
290 // update and do a background fetch to fill the cache, otherwise fetch the code asynchronously and enter
291 // warming state.
292 NackOnCodeCacheMiss bool `protobuf:"varint,6,opt,name=nack_on_code_cache_miss,json=nackOnCodeCacheMiss,proto3" json:"nack_on_code_cache_miss,omitempty"`
293 // Specifies environment variables to be injected to this VM which will be available through
294 // WASI's “environ_get“ and “environ_get_sizes“ system calls. Note that these functions
295 // are generally called implicitly by your language's standard library. Therefore, you do not
296 // need to call them directly. You can access environment variables in the same way you would
297 // on native platforms.
298 // Warning: Envoy rejects the configuration if there's conflict of key space.
299 EnvironmentVariables *EnvironmentVariables `protobuf:"bytes,7,opt,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty"`
300 }
301
302 func (x *VmConfig) Reset() {
303 *x = VmConfig{}
304 if protoimpl.UnsafeEnabled {
305 mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[3]
306 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
307 ms.StoreMessageInfo(mi)
308 }
309 }
310
311 func (x *VmConfig) String() string {
312 return protoimpl.X.MessageStringOf(x)
313 }
314
315 func (*VmConfig) ProtoMessage() {}
316
317 func (x *VmConfig) ProtoReflect() protoreflect.Message {
318 mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[3]
319 if protoimpl.UnsafeEnabled && x != nil {
320 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
321 if ms.LoadMessageInfo() == nil {
322 ms.StoreMessageInfo(mi)
323 }
324 return ms
325 }
326 return mi.MessageOf(x)
327 }
328
329 // Deprecated: Use VmConfig.ProtoReflect.Descriptor instead.
330 func (*VmConfig) Descriptor() ([]byte, []int) {
331 return file_envoy_extensions_wasm_v3_wasm_proto_rawDescGZIP(), []int{3}
332 }
333
334 func (x *VmConfig) GetVmId() string {
335 if x != nil {
336 return x.VmId
337 }
338 return ""
339 }
340
341 func (x *VmConfig) GetRuntime() string {
342 if x != nil {
343 return x.Runtime
344 }
345 return ""
346 }
347
348 func (x *VmConfig) GetCode() *v3.AsyncDataSource {
349 if x != nil {
350 return x.Code
351 }
352 return nil
353 }
354
355 func (x *VmConfig) GetConfiguration() *anypb.Any {
356 if x != nil {
357 return x.Configuration
358 }
359 return nil
360 }
361
362 func (x *VmConfig) GetAllowPrecompiled() bool {
363 if x != nil {
364 return x.AllowPrecompiled
365 }
366 return false
367 }
368
369 func (x *VmConfig) GetNackOnCodeCacheMiss() bool {
370 if x != nil {
371 return x.NackOnCodeCacheMiss
372 }
373 return false
374 }
375
376 func (x *VmConfig) GetEnvironmentVariables() *EnvironmentVariables {
377 if x != nil {
378 return x.EnvironmentVariables
379 }
380 return nil
381 }
382
383 type EnvironmentVariables struct {
384 state protoimpl.MessageState
385 sizeCache protoimpl.SizeCache
386 unknownFields protoimpl.UnknownFields
387
388 // The keys of *Envoy's* environment variables exposed to this VM. In other words, if a key exists in Envoy's environment
389 // variables, then that key-value pair will be injected. Note that if a key does not exist, it will be ignored.
390 HostEnvKeys []string `protobuf:"bytes,1,rep,name=host_env_keys,json=hostEnvKeys,proto3" json:"host_env_keys,omitempty"`
391 // Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
392 KeyValues map[string]string `protobuf:"bytes,2,rep,name=key_values,json=keyValues,proto3" json:"key_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
393 }
394
395 func (x *EnvironmentVariables) Reset() {
396 *x = EnvironmentVariables{}
397 if protoimpl.UnsafeEnabled {
398 mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[4]
399 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
400 ms.StoreMessageInfo(mi)
401 }
402 }
403
404 func (x *EnvironmentVariables) String() string {
405 return protoimpl.X.MessageStringOf(x)
406 }
407
408 func (*EnvironmentVariables) ProtoMessage() {}
409
410 func (x *EnvironmentVariables) ProtoReflect() protoreflect.Message {
411 mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[4]
412 if protoimpl.UnsafeEnabled && x != nil {
413 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
414 if ms.LoadMessageInfo() == nil {
415 ms.StoreMessageInfo(mi)
416 }
417 return ms
418 }
419 return mi.MessageOf(x)
420 }
421
422 // Deprecated: Use EnvironmentVariables.ProtoReflect.Descriptor instead.
423 func (*EnvironmentVariables) Descriptor() ([]byte, []int) {
424 return file_envoy_extensions_wasm_v3_wasm_proto_rawDescGZIP(), []int{4}
425 }
426
427 func (x *EnvironmentVariables) GetHostEnvKeys() []string {
428 if x != nil {
429 return x.HostEnvKeys
430 }
431 return nil
432 }
433
434 func (x *EnvironmentVariables) GetKeyValues() map[string]string {
435 if x != nil {
436 return x.KeyValues
437 }
438 return nil
439 }
440
441 // Base Configuration for Wasm Plugins e.g. filters and services.
442 // [#next-free-field: 9]
443 type PluginConfig struct {
444 state protoimpl.MessageState
445 sizeCache protoimpl.SizeCache
446 unknownFields protoimpl.UnknownFields
447
448 // A unique name for a filters/services in a VM for use in identifying the filter/service if
449 // multiple filters/services are handled by the same “vm_id“ and “root_id“ and for
450 // logging/debugging.
451 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
452 // A unique ID for a set of filters/services in a VM which will share a RootContext and Contexts
453 // if applicable (e.g. an Wasm HttpFilter and an Wasm AccessLog). If left blank, all
454 // filters/services with a blank root_id with the same “vm_id“ will share Context(s).
455 RootId string `protobuf:"bytes,2,opt,name=root_id,json=rootId,proto3" json:"root_id,omitempty"`
456 // Configuration for finding or starting VM.
457 //
458 // Types that are assignable to Vm:
459 //
460 // *PluginConfig_VmConfig
461 Vm isPluginConfig_Vm `protobuf_oneof:"vm"`
462 // Filter/service configuration used to configure or reconfigure a plugin
463 // (“proxy_on_configure“).
464 // “google.protobuf.Struct“ is serialized as JSON before
465 // passing it to the plugin. “google.protobuf.BytesValue“ and
466 // “google.protobuf.StringValue“ are passed directly without the wrapper.
467 Configuration *anypb.Any `protobuf:"bytes,4,opt,name=configuration,proto3" json:"configuration,omitempty"`
468 // If there is a fatal error on the VM (e.g. exception, abort(), on_start or on_configure return false),
469 // then all plugins associated with the VM will either fail closed (by default), e.g. by returning an HTTP 503 error,
470 // or fail open (if 'fail_open' is set to true) by bypassing the filter. Note: when on_start or on_configure return false
471 // during xDS updates the xDS configuration will be rejected and when on_start or on_configuration return false on initial
472 // startup the proxy will not start.
473 // This field is deprecated in favor of the “failure_policy“ field.
474 //
475 // Deprecated: Marked as deprecated in envoy/extensions/wasm/v3/wasm.proto.
476 FailOpen bool `protobuf:"varint,5,opt,name=fail_open,json=failOpen,proto3" json:"fail_open,omitempty"`
477 // The failure policy for the plugin.
478 FailurePolicy FailurePolicy `protobuf:"varint,7,opt,name=failure_policy,json=failurePolicy,proto3,enum=envoy.extensions.wasm.v3.FailurePolicy" json:"failure_policy,omitempty"`
479 // Reload configuration. This is only applied when “failure_policy“ is set to “FAIL_RELOAD“.
480 ReloadConfig *ReloadConfig `protobuf:"bytes,8,opt,name=reload_config,json=reloadConfig,proto3" json:"reload_config,omitempty"`
481 // Configuration for restricting Proxy-Wasm capabilities available to modules.
482 CapabilityRestrictionConfig *CapabilityRestrictionConfig `protobuf:"bytes,6,opt,name=capability_restriction_config,json=capabilityRestrictionConfig,proto3" json:"capability_restriction_config,omitempty"`
483 }
484
485 func (x *PluginConfig) Reset() {
486 *x = PluginConfig{}
487 if protoimpl.UnsafeEnabled {
488 mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[5]
489 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
490 ms.StoreMessageInfo(mi)
491 }
492 }
493
494 func (x *PluginConfig) String() string {
495 return protoimpl.X.MessageStringOf(x)
496 }
497
498 func (*PluginConfig) ProtoMessage() {}
499
500 func (x *PluginConfig) ProtoReflect() protoreflect.Message {
501 mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[5]
502 if protoimpl.UnsafeEnabled && x != nil {
503 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
504 if ms.LoadMessageInfo() == nil {
505 ms.StoreMessageInfo(mi)
506 }
507 return ms
508 }
509 return mi.MessageOf(x)
510 }
511
512 // Deprecated: Use PluginConfig.ProtoReflect.Descriptor instead.
513 func (*PluginConfig) Descriptor() ([]byte, []int) {
514 return file_envoy_extensions_wasm_v3_wasm_proto_rawDescGZIP(), []int{5}
515 }
516
517 func (x *PluginConfig) GetName() string {
518 if x != nil {
519 return x.Name
520 }
521 return ""
522 }
523
524 func (x *PluginConfig) GetRootId() string {
525 if x != nil {
526 return x.RootId
527 }
528 return ""
529 }
530
531 func (m *PluginConfig) GetVm() isPluginConfig_Vm {
532 if m != nil {
533 return m.Vm
534 }
535 return nil
536 }
537
538 func (x *PluginConfig) GetVmConfig() *VmConfig {
539 if x, ok := x.GetVm().(*PluginConfig_VmConfig); ok {
540 return x.VmConfig
541 }
542 return nil
543 }
544
545 func (x *PluginConfig) GetConfiguration() *anypb.Any {
546 if x != nil {
547 return x.Configuration
548 }
549 return nil
550 }
551
552 // Deprecated: Marked as deprecated in envoy/extensions/wasm/v3/wasm.proto.
553 func (x *PluginConfig) GetFailOpen() bool {
554 if x != nil {
555 return x.FailOpen
556 }
557 return false
558 }
559
560 func (x *PluginConfig) GetFailurePolicy() FailurePolicy {
561 if x != nil {
562 return x.FailurePolicy
563 }
564 return FailurePolicy_UNSPECIFIED
565 }
566
567 func (x *PluginConfig) GetReloadConfig() *ReloadConfig {
568 if x != nil {
569 return x.ReloadConfig
570 }
571 return nil
572 }
573
574 func (x *PluginConfig) GetCapabilityRestrictionConfig() *CapabilityRestrictionConfig {
575 if x != nil {
576 return x.CapabilityRestrictionConfig
577 }
578 return nil
579 }
580
581 type isPluginConfig_Vm interface {
582 isPluginConfig_Vm()
583 }
584
585 type PluginConfig_VmConfig struct {
586 VmConfig *VmConfig `protobuf:"bytes,3,opt,name=vm_config,json=vmConfig,proto3,oneof"` // TODO: add referential VM configurations.
587 }
588
589 func (*PluginConfig_VmConfig) isPluginConfig_Vm() {}
590
591 // WasmService is configured as a built-in “envoy.wasm_service“ :ref:`WasmService
592 // <config_wasm_service>` This opaque configuration will be used to create a Wasm Service.
593 type WasmService struct {
594 state protoimpl.MessageState
595 sizeCache protoimpl.SizeCache
596 unknownFields protoimpl.UnknownFields
597
598 // General plugin configuration.
599 Config *PluginConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
600 // If true, create a single VM rather than creating one VM per worker. Such a singleton can
601 // not be used with filters.
602 Singleton bool `protobuf:"varint,2,opt,name=singleton,proto3" json:"singleton,omitempty"`
603 }
604
605 func (x *WasmService) Reset() {
606 *x = WasmService{}
607 if protoimpl.UnsafeEnabled {
608 mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[6]
609 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
610 ms.StoreMessageInfo(mi)
611 }
612 }
613
614 func (x *WasmService) String() string {
615 return protoimpl.X.MessageStringOf(x)
616 }
617
618 func (*WasmService) ProtoMessage() {}
619
620 func (x *WasmService) ProtoReflect() protoreflect.Message {
621 mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[6]
622 if protoimpl.UnsafeEnabled && x != nil {
623 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
624 if ms.LoadMessageInfo() == nil {
625 ms.StoreMessageInfo(mi)
626 }
627 return ms
628 }
629 return mi.MessageOf(x)
630 }
631
632 // Deprecated: Use WasmService.ProtoReflect.Descriptor instead.
633 func (*WasmService) Descriptor() ([]byte, []int) {
634 return file_envoy_extensions_wasm_v3_wasm_proto_rawDescGZIP(), []int{6}
635 }
636
637 func (x *WasmService) GetConfig() *PluginConfig {
638 if x != nil {
639 return x.Config
640 }
641 return nil
642 }
643
644 func (x *WasmService) GetSingleton() bool {
645 if x != nil {
646 return x.Singleton
647 }
648 return false
649 }
650
651 var File_envoy_extensions_wasm_v3_wasm_proto protoreflect.FileDescriptor
652
653 var file_envoy_extensions_wasm_v3_wasm_proto_rawDesc = []byte{
654 0x0a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
655 0x6e, 0x73, 0x2f, 0x77, 0x61, 0x73, 0x6d, 0x2f, 0x76, 0x33, 0x2f, 0x77, 0x61, 0x73, 0x6d, 0x2e,
656 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74,
657 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x77, 0x61, 0x73, 0x6d, 0x2e, 0x76, 0x33, 0x1a,
658 0x22, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f,
659 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x2e, 0x70, 0x72,
660 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69,
661 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70,
662 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
663 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
664 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
665 0x6e, 0x73, 0x2f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70,
666 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
667 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72,
668 0x6f, 0x74, 0x6f, 0x22, 0x4f, 0x0a, 0x0c, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e,
669 0x66, 0x69, 0x67, 0x12, 0x3f, 0x0a, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x18, 0x01,
670 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e,
671 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x42, 0x61, 0x63, 0x6b,
672 0x6f, 0x66, 0x66, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x07, 0x62, 0x61, 0x63,
673 0x6b, 0x6f, 0x66, 0x66, 0x22, 0x97, 0x02, 0x0a, 0x1b, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c,
674 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
675 0x6e, 0x66, 0x69, 0x67, 0x12, 0x81, 0x01, 0x0a, 0x14, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64,
676 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20,
677 0x03, 0x28, 0x0b, 0x32, 0x4e, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65,
678 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x77, 0x61, 0x73, 0x6d, 0x2e, 0x76, 0x33, 0x2e, 0x43,
679 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63,
680 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x77,
681 0x65, 0x64, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e,
682 0x74, 0x72, 0x79, 0x52, 0x13, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x43, 0x61, 0x70, 0x61,
683 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x74, 0x0a, 0x18, 0x41, 0x6c, 0x6c, 0x6f,
684 0x77, 0x65, 0x64, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x45,
685 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
686 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x42, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
687 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78,
688 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x77, 0x61, 0x73, 0x6d, 0x2e, 0x76, 0x33,
689 0x2e, 0x53, 0x61, 0x6e, 0x69, 0x74, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e,
690 0x66, 0x69, 0x67, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x14,
691 0x0a, 0x12, 0x53, 0x61, 0x6e, 0x69, 0x74, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
692 0x6e, 0x66, 0x69, 0x67, 0x22, 0xf8, 0x02, 0x0a, 0x08, 0x56, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69,
693 0x67, 0x12, 0x13, 0x0a, 0x05, 0x76, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
694 0x52, 0x04, 0x76, 0x6d, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d,
695 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65,
696 0x12, 0x39, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25,
697 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f,
698 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x53,
699 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x3a, 0x0a, 0x0d, 0x63,
700 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01,
701 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
702 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
703 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x77,
704 0x5f, 0x70, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01,
705 0x28, 0x08, 0x52, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70,
706 0x69, 0x6c, 0x65, 0x64, 0x12, 0x34, 0x0a, 0x17, 0x6e, 0x61, 0x63, 0x6b, 0x5f, 0x6f, 0x6e, 0x5f,
707 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x18,
708 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x6e, 0x61, 0x63, 0x6b, 0x4f, 0x6e, 0x43, 0x6f, 0x64,
709 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x4d, 0x69, 0x73, 0x73, 0x12, 0x63, 0x0a, 0x15, 0x65, 0x6e,
710 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62,
711 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
712 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x77, 0x61, 0x73,
713 0x6d, 0x2e, 0x76, 0x33, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,
714 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, 0x14, 0x65, 0x6e, 0x76, 0x69, 0x72,
715 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x22,
716 0xd6, 0x01, 0x0a, 0x14, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56,
717 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x68, 0x6f, 0x73, 0x74,
718 0x5f, 0x65, 0x6e, 0x76, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52,
719 0x0b, 0x68, 0x6f, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x5c, 0x0a, 0x0a,
720 0x6b, 0x65, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
721 0x32, 0x3d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
722 0x6f, 0x6e, 0x73, 0x2e, 0x77, 0x61, 0x73, 0x6d, 0x2e, 0x76, 0x33, 0x2e, 0x45, 0x6e, 0x76, 0x69,
723 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73,
724 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
725 0x09, 0x6b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x3c, 0x0a, 0x0e, 0x4b, 0x65,
726 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
727 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
728 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
729 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x82, 0x04, 0x0a, 0x0c, 0x50, 0x6c, 0x75,
730 0x67, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
731 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a,
732 0x07, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
733 0x72, 0x6f, 0x6f, 0x74, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x09, 0x76, 0x6d, 0x5f, 0x63, 0x6f, 0x6e,
734 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
735 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x77, 0x61, 0x73,
736 0x6d, 0x2e, 0x76, 0x33, 0x2e, 0x56, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52,
737 0x08, 0x76, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3a, 0x0a, 0x0d, 0x63, 0x6f, 0x6e,
738 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
739 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
740 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72,
741 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x09, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6f, 0x70,
742 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x42, 0x0b, 0x92, 0xc7, 0x86, 0xd8, 0x04, 0x03,
743 0x33, 0x2e, 0x30, 0x18, 0x01, 0x52, 0x08, 0x66, 0x61, 0x69, 0x6c, 0x4f, 0x70, 0x65, 0x6e, 0x12,
744 0x4e, 0x0a, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63,
745 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
746 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x77, 0x61, 0x73, 0x6d, 0x2e,
747 0x76, 0x33, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
748 0x52, 0x0d, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,
749 0x4b, 0x0a, 0x0d, 0x72, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
750 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65,
751 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x77, 0x61, 0x73, 0x6d, 0x2e, 0x76,
752 0x33, 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c,
753 0x72, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x79, 0x0a, 0x1d,
754 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72,
755 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x06, 0x20,
756 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65,
757 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x77, 0x61, 0x73, 0x6d, 0x2e, 0x76, 0x33, 0x2e, 0x43,
758 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63,
759 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x1b, 0x63, 0x61, 0x70, 0x61,
760 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f,
761 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x04, 0x0a, 0x02, 0x76, 0x6d, 0x22, 0x6b, 0x0a,
762 0x0b, 0x57, 0x61, 0x73, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3e, 0x0a, 0x06,
763 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x65,
764 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
765 0x77, 0x61, 0x73, 0x6d, 0x2e, 0x76, 0x33, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x6f,
766 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1c, 0x0a, 0x09,
767 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,
768 0x09, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, 0x6e, 0x2a, 0x51, 0x0a, 0x0d, 0x46, 0x61,
769 0x69, 0x6c, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x0f, 0x0a, 0x0b, 0x55,
770 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b,
771 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x52, 0x45, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a,
772 0x0b, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0d,
773 0x0a, 0x09, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x4f, 0x50, 0x45, 0x4e, 0x10, 0x03, 0x42, 0x85, 0x01,
774 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x0a, 0x26, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76,
775 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78,
776 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x77, 0x61, 0x73, 0x6d, 0x2e, 0x76, 0x33,
777 0x42, 0x09, 0x57, 0x61, 0x73, 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67,
778 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70,
779 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d,
780 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65,
781 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x77, 0x61, 0x73, 0x6d, 0x2f, 0x76, 0x33, 0x3b, 0x77,
782 0x61, 0x73, 0x6d, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
783 }
784
785 var (
786 file_envoy_extensions_wasm_v3_wasm_proto_rawDescOnce sync.Once
787 file_envoy_extensions_wasm_v3_wasm_proto_rawDescData = file_envoy_extensions_wasm_v3_wasm_proto_rawDesc
788 )
789
790 func file_envoy_extensions_wasm_v3_wasm_proto_rawDescGZIP() []byte {
791 file_envoy_extensions_wasm_v3_wasm_proto_rawDescOnce.Do(func() {
792 file_envoy_extensions_wasm_v3_wasm_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_wasm_v3_wasm_proto_rawDescData)
793 })
794 return file_envoy_extensions_wasm_v3_wasm_proto_rawDescData
795 }
796
797 var file_envoy_extensions_wasm_v3_wasm_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
798 var file_envoy_extensions_wasm_v3_wasm_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
799 var file_envoy_extensions_wasm_v3_wasm_proto_goTypes = []interface{}{
800 (FailurePolicy)(0), // 0: envoy.extensions.wasm.v3.FailurePolicy
801 (*ReloadConfig)(nil), // 1: envoy.extensions.wasm.v3.ReloadConfig
802 (*CapabilityRestrictionConfig)(nil), // 2: envoy.extensions.wasm.v3.CapabilityRestrictionConfig
803 (*SanitizationConfig)(nil), // 3: envoy.extensions.wasm.v3.SanitizationConfig
804 (*VmConfig)(nil), // 4: envoy.extensions.wasm.v3.VmConfig
805 (*EnvironmentVariables)(nil), // 5: envoy.extensions.wasm.v3.EnvironmentVariables
806 (*PluginConfig)(nil), // 6: envoy.extensions.wasm.v3.PluginConfig
807 (*WasmService)(nil), // 7: envoy.extensions.wasm.v3.WasmService
808 nil, // 8: envoy.extensions.wasm.v3.CapabilityRestrictionConfig.AllowedCapabilitiesEntry
809 nil, // 9: envoy.extensions.wasm.v3.EnvironmentVariables.KeyValuesEntry
810 (*v3.BackoffStrategy)(nil), // 10: envoy.config.core.v3.BackoffStrategy
811 (*v3.AsyncDataSource)(nil), // 11: envoy.config.core.v3.AsyncDataSource
812 (*anypb.Any)(nil), // 12: google.protobuf.Any
813 }
814 var file_envoy_extensions_wasm_v3_wasm_proto_depIdxs = []int32{
815 10, // 0: envoy.extensions.wasm.v3.ReloadConfig.backoff:type_name -> envoy.config.core.v3.BackoffStrategy
816 8, // 1: envoy.extensions.wasm.v3.CapabilityRestrictionConfig.allowed_capabilities:type_name -> envoy.extensions.wasm.v3.CapabilityRestrictionConfig.AllowedCapabilitiesEntry
817 11, // 2: envoy.extensions.wasm.v3.VmConfig.code:type_name -> envoy.config.core.v3.AsyncDataSource
818 12, // 3: envoy.extensions.wasm.v3.VmConfig.configuration:type_name -> google.protobuf.Any
819 5, // 4: envoy.extensions.wasm.v3.VmConfig.environment_variables:type_name -> envoy.extensions.wasm.v3.EnvironmentVariables
820 9, // 5: envoy.extensions.wasm.v3.EnvironmentVariables.key_values:type_name -> envoy.extensions.wasm.v3.EnvironmentVariables.KeyValuesEntry
821 4, // 6: envoy.extensions.wasm.v3.PluginConfig.vm_config:type_name -> envoy.extensions.wasm.v3.VmConfig
822 12, // 7: envoy.extensions.wasm.v3.PluginConfig.configuration:type_name -> google.protobuf.Any
823 0, // 8: envoy.extensions.wasm.v3.PluginConfig.failure_policy:type_name -> envoy.extensions.wasm.v3.FailurePolicy
824 1, // 9: envoy.extensions.wasm.v3.PluginConfig.reload_config:type_name -> envoy.extensions.wasm.v3.ReloadConfig
825 2, // 10: envoy.extensions.wasm.v3.PluginConfig.capability_restriction_config:type_name -> envoy.extensions.wasm.v3.CapabilityRestrictionConfig
826 6, // 11: envoy.extensions.wasm.v3.WasmService.config:type_name -> envoy.extensions.wasm.v3.PluginConfig
827 3, // 12: envoy.extensions.wasm.v3.CapabilityRestrictionConfig.AllowedCapabilitiesEntry.value:type_name -> envoy.extensions.wasm.v3.SanitizationConfig
828 13, // [13:13] is the sub-list for method output_type
829 13, // [13:13] is the sub-list for method input_type
830 13, // [13:13] is the sub-list for extension type_name
831 13, // [13:13] is the sub-list for extension extendee
832 0, // [0:13] is the sub-list for field type_name
833 }
834
835 func init() { file_envoy_extensions_wasm_v3_wasm_proto_init() }
836 func file_envoy_extensions_wasm_v3_wasm_proto_init() {
837 if File_envoy_extensions_wasm_v3_wasm_proto != nil {
838 return
839 }
840 if !protoimpl.UnsafeEnabled {
841 file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
842 switch v := v.(*ReloadConfig); i {
843 case 0:
844 return &v.state
845 case 1:
846 return &v.sizeCache
847 case 2:
848 return &v.unknownFields
849 default:
850 return nil
851 }
852 }
853 file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
854 switch v := v.(*CapabilityRestrictionConfig); i {
855 case 0:
856 return &v.state
857 case 1:
858 return &v.sizeCache
859 case 2:
860 return &v.unknownFields
861 default:
862 return nil
863 }
864 }
865 file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
866 switch v := v.(*SanitizationConfig); i {
867 case 0:
868 return &v.state
869 case 1:
870 return &v.sizeCache
871 case 2:
872 return &v.unknownFields
873 default:
874 return nil
875 }
876 }
877 file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
878 switch v := v.(*VmConfig); i {
879 case 0:
880 return &v.state
881 case 1:
882 return &v.sizeCache
883 case 2:
884 return &v.unknownFields
885 default:
886 return nil
887 }
888 }
889 file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
890 switch v := v.(*EnvironmentVariables); i {
891 case 0:
892 return &v.state
893 case 1:
894 return &v.sizeCache
895 case 2:
896 return &v.unknownFields
897 default:
898 return nil
899 }
900 }
901 file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
902 switch v := v.(*PluginConfig); i {
903 case 0:
904 return &v.state
905 case 1:
906 return &v.sizeCache
907 case 2:
908 return &v.unknownFields
909 default:
910 return nil
911 }
912 }
913 file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
914 switch v := v.(*WasmService); i {
915 case 0:
916 return &v.state
917 case 1:
918 return &v.sizeCache
919 case 2:
920 return &v.unknownFields
921 default:
922 return nil
923 }
924 }
925 }
926 file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[5].OneofWrappers = []interface{}{
927 (*PluginConfig_VmConfig)(nil),
928 }
929 type x struct{}
930 out := protoimpl.TypeBuilder{
931 File: protoimpl.DescBuilder{
932 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
933 RawDescriptor: file_envoy_extensions_wasm_v3_wasm_proto_rawDesc,
934 NumEnums: 1,
935 NumMessages: 9,
936 NumExtensions: 0,
937 NumServices: 0,
938 },
939 GoTypes: file_envoy_extensions_wasm_v3_wasm_proto_goTypes,
940 DependencyIndexes: file_envoy_extensions_wasm_v3_wasm_proto_depIdxs,
941 EnumInfos: file_envoy_extensions_wasm_v3_wasm_proto_enumTypes,
942 MessageInfos: file_envoy_extensions_wasm_v3_wasm_proto_msgTypes,
943 }.Build()
944 File_envoy_extensions_wasm_v3_wasm_proto = out.File
945 file_envoy_extensions_wasm_v3_wasm_proto_rawDesc = nil
946 file_envoy_extensions_wasm_v3_wasm_proto_goTypes = nil
947 file_envoy_extensions_wasm_v3_wasm_proto_depIdxs = nil
948 }