...

Source file src/github.com/datawire/ambassador/v2/pkg/api/envoy/extensions/wasm/v3/wasm.pb.go

Documentation: github.com/datawire/ambassador/v2/pkg/api/envoy/extensions/wasm/v3

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.14.0
     5  // source: envoy/extensions/wasm/v3/wasm.proto
     6  
     7  package envoy_extensions_wasm_v3
     8  
     9  import (
    10  	_ "github.com/cncf/udpa/go/udpa/annotations"
    11  	v3 "github.com/datawire/ambassador/v2/pkg/api/envoy/config/core/v3"
    12  	_ "github.com/envoyproxy/protoc-gen-validate/validate"
    13  	proto "github.com/golang/protobuf/proto"
    14  	any "github.com/golang/protobuf/ptypes/any"
    15  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    16  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    17  	reflect "reflect"
    18  	sync "sync"
    19  )
    20  
    21  const (
    22  	// Verify that this generated code is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    24  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    25  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    26  )
    27  
    28  // This is a compile-time assertion that a sufficiently up-to-date version
    29  // of the legacy proto package is being used.
    30  const _ = proto.ProtoPackageIsVersion4
    31  
    32  // Configuration for a Wasm VM.
    33  // [#next-free-field: 7]
    34  type VmConfig struct {
    35  	state         protoimpl.MessageState
    36  	sizeCache     protoimpl.SizeCache
    37  	unknownFields protoimpl.UnknownFields
    38  
    39  	// An ID which will be used along with a hash of the wasm code (or the name of the registered Null
    40  	// VM plugin) to determine which VM will be used for the plugin. All plugins which use the same
    41  	// *vm_id* and code will use the same VM. May be left blank. Sharing a VM between plugins can
    42  	// reduce memory utilization and make sharing of data easier which may have security implications.
    43  	// See ref: "TODO: add ref" for details.
    44  	VmId string `protobuf:"bytes,1,opt,name=vm_id,json=vmId,proto3" json:"vm_id,omitempty"`
    45  	// The Wasm runtime type.
    46  	// Available Wasm runtime types are registered as extensions. The following runtimes are included
    47  	// in Envoy code base:
    48  	//
    49  	// .. _extension_envoy.wasm.runtime.null:
    50  	//
    51  	// **envoy.wasm.runtime.null**: Null sandbox, the Wasm module must be compiled and linked into the
    52  	// Envoy binary. The registered name is given in the *code* field as *inline_string*.
    53  	//
    54  	// .. _extension_envoy.wasm.runtime.v8:
    55  	//
    56  	// **envoy.wasm.runtime.v8**: `V8 <https://v8.dev/>`_-based WebAssembly runtime.
    57  	//
    58  	// .. _extension_envoy.wasm.runtime.wavm:
    59  	//
    60  	// **envoy.wasm.runtime.wavm**: `WAVM <https://wavm.github.io/>`_-based WebAssembly runtime.
    61  	// This runtime is not enabled in the official build.
    62  	//
    63  	// .. _extension_envoy.wasm.runtime.wasmtime:
    64  	//
    65  	// **envoy.wasm.runtime.wasmtime**: `Wasmtime <https://wasmtime.dev/>`_-based WebAssembly runtime.
    66  	// This runtime is not enabled in the official build.
    67  	//
    68  	Runtime string `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"`
    69  	// The Wasm code that Envoy will execute.
    70  	Code *v3.AsyncDataSource `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
    71  	// The Wasm configuration used in initialization of a new VM
    72  	// (proxy_on_start). `google.protobuf.Struct` is serialized as JSON before
    73  	// passing it to the plugin. `google.protobuf.BytesValue` and
    74  	// `google.protobuf.StringValue` are passed directly without the wrapper.
    75  	Configuration *any.Any `protobuf:"bytes,4,opt,name=configuration,proto3" json:"configuration,omitempty"`
    76  	// Allow the wasm file to include pre-compiled code on VMs which support it.
    77  	// Warning: this should only be enable for trusted sources as the precompiled code is not
    78  	// verified.
    79  	AllowPrecompiled bool `protobuf:"varint,5,opt,name=allow_precompiled,json=allowPrecompiled,proto3" json:"allow_precompiled,omitempty"`
    80  	// If true and the code needs to be remotely fetched and it is not in the cache then NACK the configuration
    81  	// update and do a background fetch to fill the cache, otherwise fetch the code asynchronously and enter
    82  	// warming state.
    83  	NackOnCodeCacheMiss bool `protobuf:"varint,6,opt,name=nack_on_code_cache_miss,json=nackOnCodeCacheMiss,proto3" json:"nack_on_code_cache_miss,omitempty"`
    84  }
    85  
    86  func (x *VmConfig) Reset() {
    87  	*x = VmConfig{}
    88  	if protoimpl.UnsafeEnabled {
    89  		mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[0]
    90  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    91  		ms.StoreMessageInfo(mi)
    92  	}
    93  }
    94  
    95  func (x *VmConfig) String() string {
    96  	return protoimpl.X.MessageStringOf(x)
    97  }
    98  
    99  func (*VmConfig) ProtoMessage() {}
   100  
   101  func (x *VmConfig) ProtoReflect() protoreflect.Message {
   102  	mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[0]
   103  	if protoimpl.UnsafeEnabled && x != nil {
   104  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   105  		if ms.LoadMessageInfo() == nil {
   106  			ms.StoreMessageInfo(mi)
   107  		}
   108  		return ms
   109  	}
   110  	return mi.MessageOf(x)
   111  }
   112  
   113  // Deprecated: Use VmConfig.ProtoReflect.Descriptor instead.
   114  func (*VmConfig) Descriptor() ([]byte, []int) {
   115  	return file_envoy_extensions_wasm_v3_wasm_proto_rawDescGZIP(), []int{0}
   116  }
   117  
   118  func (x *VmConfig) GetVmId() string {
   119  	if x != nil {
   120  		return x.VmId
   121  	}
   122  	return ""
   123  }
   124  
   125  func (x *VmConfig) GetRuntime() string {
   126  	if x != nil {
   127  		return x.Runtime
   128  	}
   129  	return ""
   130  }
   131  
   132  func (x *VmConfig) GetCode() *v3.AsyncDataSource {
   133  	if x != nil {
   134  		return x.Code
   135  	}
   136  	return nil
   137  }
   138  
   139  func (x *VmConfig) GetConfiguration() *any.Any {
   140  	if x != nil {
   141  		return x.Configuration
   142  	}
   143  	return nil
   144  }
   145  
   146  func (x *VmConfig) GetAllowPrecompiled() bool {
   147  	if x != nil {
   148  		return x.AllowPrecompiled
   149  	}
   150  	return false
   151  }
   152  
   153  func (x *VmConfig) GetNackOnCodeCacheMiss() bool {
   154  	if x != nil {
   155  		return x.NackOnCodeCacheMiss
   156  	}
   157  	return false
   158  }
   159  
   160  // Base Configuration for Wasm Plugins e.g. filters and services.
   161  // [#next-free-field: 6]
   162  type PluginConfig struct {
   163  	state         protoimpl.MessageState
   164  	sizeCache     protoimpl.SizeCache
   165  	unknownFields protoimpl.UnknownFields
   166  
   167  	// A unique name for a filters/services in a VM for use in identifying the filter/service if
   168  	// multiple filters/services are handled by the same *vm_id* and *root_id* and for
   169  	// logging/debugging.
   170  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   171  	// A unique ID for a set of filters/services in a VM which will share a RootContext and Contexts
   172  	// if applicable (e.g. an Wasm HttpFilter and an Wasm AccessLog). If left blank, all
   173  	// filters/services with a blank root_id with the same *vm_id* will share Context(s).
   174  	RootId string `protobuf:"bytes,2,opt,name=root_id,json=rootId,proto3" json:"root_id,omitempty"`
   175  	// Configuration for finding or starting VM.
   176  	//
   177  	// Types that are assignable to Vm:
   178  	//	*PluginConfig_VmConfig
   179  	Vm isPluginConfig_Vm `protobuf_oneof:"vm"`
   180  	// Filter/service configuration used to configure or reconfigure a plugin
   181  	// (proxy_on_configuration).
   182  	// `google.protobuf.Struct` is serialized as JSON before
   183  	// passing it to the plugin. `google.protobuf.BytesValue` and
   184  	// `google.protobuf.StringValue` are passed directly without the wrapper.
   185  	Configuration *any.Any `protobuf:"bytes,4,opt,name=configuration,proto3" json:"configuration,omitempty"`
   186  	// If there is a fatal error on the VM (e.g. exception, abort(), on_start or on_configure return false),
   187  	// then all plugins associated with the VM will either fail closed (by default), e.g. by returning an HTTP 503 error,
   188  	// or fail open (if 'fail_open' is set to true) by bypassing the filter. Note: when on_start or on_configure return false
   189  	// during xDS updates the xDS configuration will be rejected and when on_start or on_configuration return false on initial
   190  	// startup the proxy will not start.
   191  	FailOpen bool `protobuf:"varint,5,opt,name=fail_open,json=failOpen,proto3" json:"fail_open,omitempty"`
   192  }
   193  
   194  func (x *PluginConfig) Reset() {
   195  	*x = PluginConfig{}
   196  	if protoimpl.UnsafeEnabled {
   197  		mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[1]
   198  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   199  		ms.StoreMessageInfo(mi)
   200  	}
   201  }
   202  
   203  func (x *PluginConfig) String() string {
   204  	return protoimpl.X.MessageStringOf(x)
   205  }
   206  
   207  func (*PluginConfig) ProtoMessage() {}
   208  
   209  func (x *PluginConfig) ProtoReflect() protoreflect.Message {
   210  	mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[1]
   211  	if protoimpl.UnsafeEnabled && x != nil {
   212  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   213  		if ms.LoadMessageInfo() == nil {
   214  			ms.StoreMessageInfo(mi)
   215  		}
   216  		return ms
   217  	}
   218  	return mi.MessageOf(x)
   219  }
   220  
   221  // Deprecated: Use PluginConfig.ProtoReflect.Descriptor instead.
   222  func (*PluginConfig) Descriptor() ([]byte, []int) {
   223  	return file_envoy_extensions_wasm_v3_wasm_proto_rawDescGZIP(), []int{1}
   224  }
   225  
   226  func (x *PluginConfig) GetName() string {
   227  	if x != nil {
   228  		return x.Name
   229  	}
   230  	return ""
   231  }
   232  
   233  func (x *PluginConfig) GetRootId() string {
   234  	if x != nil {
   235  		return x.RootId
   236  	}
   237  	return ""
   238  }
   239  
   240  func (m *PluginConfig) GetVm() isPluginConfig_Vm {
   241  	if m != nil {
   242  		return m.Vm
   243  	}
   244  	return nil
   245  }
   246  
   247  func (x *PluginConfig) GetVmConfig() *VmConfig {
   248  	if x, ok := x.GetVm().(*PluginConfig_VmConfig); ok {
   249  		return x.VmConfig
   250  	}
   251  	return nil
   252  }
   253  
   254  func (x *PluginConfig) GetConfiguration() *any.Any {
   255  	if x != nil {
   256  		return x.Configuration
   257  	}
   258  	return nil
   259  }
   260  
   261  func (x *PluginConfig) GetFailOpen() bool {
   262  	if x != nil {
   263  		return x.FailOpen
   264  	}
   265  	return false
   266  }
   267  
   268  type isPluginConfig_Vm interface {
   269  	isPluginConfig_Vm()
   270  }
   271  
   272  type PluginConfig_VmConfig struct {
   273  	VmConfig *VmConfig `protobuf:"bytes,3,opt,name=vm_config,json=vmConfig,proto3,oneof"` // TODO: add referential VM configurations.
   274  }
   275  
   276  func (*PluginConfig_VmConfig) isPluginConfig_Vm() {}
   277  
   278  // WasmService is configured as a built-in *envoy.wasm_service* :ref:`WasmService
   279  // <config_wasm_service>` This opaque configuration will be used to create a Wasm Service.
   280  type WasmService struct {
   281  	state         protoimpl.MessageState
   282  	sizeCache     protoimpl.SizeCache
   283  	unknownFields protoimpl.UnknownFields
   284  
   285  	// General plugin configuration.
   286  	Config *PluginConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
   287  	// If true, create a single VM rather than creating one VM per worker. Such a singleton can
   288  	// not be used with filters.
   289  	Singleton bool `protobuf:"varint,2,opt,name=singleton,proto3" json:"singleton,omitempty"`
   290  }
   291  
   292  func (x *WasmService) Reset() {
   293  	*x = WasmService{}
   294  	if protoimpl.UnsafeEnabled {
   295  		mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[2]
   296  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   297  		ms.StoreMessageInfo(mi)
   298  	}
   299  }
   300  
   301  func (x *WasmService) String() string {
   302  	return protoimpl.X.MessageStringOf(x)
   303  }
   304  
   305  func (*WasmService) ProtoMessage() {}
   306  
   307  func (x *WasmService) ProtoReflect() protoreflect.Message {
   308  	mi := &file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[2]
   309  	if protoimpl.UnsafeEnabled && x != nil {
   310  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   311  		if ms.LoadMessageInfo() == nil {
   312  			ms.StoreMessageInfo(mi)
   313  		}
   314  		return ms
   315  	}
   316  	return mi.MessageOf(x)
   317  }
   318  
   319  // Deprecated: Use WasmService.ProtoReflect.Descriptor instead.
   320  func (*WasmService) Descriptor() ([]byte, []int) {
   321  	return file_envoy_extensions_wasm_v3_wasm_proto_rawDescGZIP(), []int{2}
   322  }
   323  
   324  func (x *WasmService) GetConfig() *PluginConfig {
   325  	if x != nil {
   326  		return x.Config
   327  	}
   328  	return nil
   329  }
   330  
   331  func (x *WasmService) GetSingleton() bool {
   332  	if x != nil {
   333  		return x.Singleton
   334  	}
   335  	return false
   336  }
   337  
   338  var File_envoy_extensions_wasm_v3_wasm_proto protoreflect.FileDescriptor
   339  
   340  var file_envoy_extensions_wasm_v3_wasm_proto_rawDesc = []byte{
   341  	0x0a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
   342  	0x6e, 0x73, 0x2f, 0x77, 0x61, 0x73, 0x6d, 0x2f, 0x76, 0x33, 0x2f, 0x77, 0x61, 0x73, 0x6d, 0x2e,
   343  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74,
   344  	0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x77, 0x61, 0x73, 0x6d, 0x2e, 0x76, 0x33, 0x1a,
   345  	0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f,
   346  	0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   347  	0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
   348  	0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70,
   349  	0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74,
   350  	0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61,
   351  	0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72,
   352  	0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76,
   353  	0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65,
   354  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x02, 0x0a, 0x08, 0x56, 0x6d, 0x43, 0x6f, 0x6e,
   355  	0x66, 0x69, 0x67, 0x12, 0x13, 0x0a, 0x05, 0x76, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
   356  	0x28, 0x09, 0x52, 0x04, 0x76, 0x6d, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x07, 0x72, 0x75, 0x6e, 0x74,
   357  	0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02,
   358  	0x10, 0x01, 0x52, 0x07, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x63,
   359  	0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
   360  	0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33,
   361  	0x2e, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,
   362  	0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x3a, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   363  	0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
   364  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
   365  	0x41, 0x6e, 0x79, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69,
   366  	0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x72, 0x65, 0x63,
   367  	0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x61,
   368  	0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x12,
   369  	0x34, 0x0a, 0x17, 0x6e, 0x61, 0x63, 0x6b, 0x5f, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x5f,
   370  	0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08,
   371  	0x52, 0x13, 0x6e, 0x61, 0x63, 0x6b, 0x4f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x43, 0x61, 0x63, 0x68,
   372  	0x65, 0x4d, 0x69, 0x73, 0x73, 0x22, 0xdd, 0x01, 0x0a, 0x0c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e,
   373  	0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
   374  	0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f,
   375  	0x6f, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x6f, 0x6f,
   376  	0x74, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x09, 0x76, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   377  	0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65,
   378  	0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x77, 0x61, 0x73, 0x6d, 0x2e, 0x76,
   379  	0x33, 0x2e, 0x56, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, 0x76, 0x6d,
   380  	0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3a, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   381  	0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
   382  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
   383  	0x41, 0x6e, 0x79, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69,
   384  	0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6f, 0x70, 0x65, 0x6e, 0x18,
   385  	0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x66, 0x61, 0x69, 0x6c, 0x4f, 0x70, 0x65, 0x6e, 0x42,
   386  	0x04, 0x0a, 0x02, 0x76, 0x6d, 0x22, 0x6b, 0x0a, 0x0b, 0x57, 0x61, 0x73, 0x6d, 0x53, 0x65, 0x72,
   387  	0x76, 0x69, 0x63, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01,
   388  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74,
   389  	0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x77, 0x61, 0x73, 0x6d, 0x2e, 0x76, 0x33, 0x2e,
   390  	0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f,
   391  	0x6e, 0x66, 0x69, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f,
   392  	0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74,
   393  	0x6f, 0x6e, 0x42, 0x3d, 0x0a, 0x26, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72,
   394  	0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
   395  	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x77, 0x61, 0x73, 0x6d, 0x2e, 0x76, 0x33, 0x42, 0x09, 0x57, 0x61,
   396  	0x73, 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10,
   397  	0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   398  }
   399  
   400  var (
   401  	file_envoy_extensions_wasm_v3_wasm_proto_rawDescOnce sync.Once
   402  	file_envoy_extensions_wasm_v3_wasm_proto_rawDescData = file_envoy_extensions_wasm_v3_wasm_proto_rawDesc
   403  )
   404  
   405  func file_envoy_extensions_wasm_v3_wasm_proto_rawDescGZIP() []byte {
   406  	file_envoy_extensions_wasm_v3_wasm_proto_rawDescOnce.Do(func() {
   407  		file_envoy_extensions_wasm_v3_wasm_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_wasm_v3_wasm_proto_rawDescData)
   408  	})
   409  	return file_envoy_extensions_wasm_v3_wasm_proto_rawDescData
   410  }
   411  
   412  var file_envoy_extensions_wasm_v3_wasm_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   413  var file_envoy_extensions_wasm_v3_wasm_proto_goTypes = []interface{}{
   414  	(*VmConfig)(nil),           // 0: envoy.extensions.wasm.v3.VmConfig
   415  	(*PluginConfig)(nil),       // 1: envoy.extensions.wasm.v3.PluginConfig
   416  	(*WasmService)(nil),        // 2: envoy.extensions.wasm.v3.WasmService
   417  	(*v3.AsyncDataSource)(nil), // 3: envoy.config.core.v3.AsyncDataSource
   418  	(*any.Any)(nil),            // 4: google.protobuf.Any
   419  }
   420  var file_envoy_extensions_wasm_v3_wasm_proto_depIdxs = []int32{
   421  	3, // 0: envoy.extensions.wasm.v3.VmConfig.code:type_name -> envoy.config.core.v3.AsyncDataSource
   422  	4, // 1: envoy.extensions.wasm.v3.VmConfig.configuration:type_name -> google.protobuf.Any
   423  	0, // 2: envoy.extensions.wasm.v3.PluginConfig.vm_config:type_name -> envoy.extensions.wasm.v3.VmConfig
   424  	4, // 3: envoy.extensions.wasm.v3.PluginConfig.configuration:type_name -> google.protobuf.Any
   425  	1, // 4: envoy.extensions.wasm.v3.WasmService.config:type_name -> envoy.extensions.wasm.v3.PluginConfig
   426  	5, // [5:5] is the sub-list for method output_type
   427  	5, // [5:5] is the sub-list for method input_type
   428  	5, // [5:5] is the sub-list for extension type_name
   429  	5, // [5:5] is the sub-list for extension extendee
   430  	0, // [0:5] is the sub-list for field type_name
   431  }
   432  
   433  func init() { file_envoy_extensions_wasm_v3_wasm_proto_init() }
   434  func file_envoy_extensions_wasm_v3_wasm_proto_init() {
   435  	if File_envoy_extensions_wasm_v3_wasm_proto != nil {
   436  		return
   437  	}
   438  	if !protoimpl.UnsafeEnabled {
   439  		file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   440  			switch v := v.(*VmConfig); i {
   441  			case 0:
   442  				return &v.state
   443  			case 1:
   444  				return &v.sizeCache
   445  			case 2:
   446  				return &v.unknownFields
   447  			default:
   448  				return nil
   449  			}
   450  		}
   451  		file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   452  			switch v := v.(*PluginConfig); i {
   453  			case 0:
   454  				return &v.state
   455  			case 1:
   456  				return &v.sizeCache
   457  			case 2:
   458  				return &v.unknownFields
   459  			default:
   460  				return nil
   461  			}
   462  		}
   463  		file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   464  			switch v := v.(*WasmService); i {
   465  			case 0:
   466  				return &v.state
   467  			case 1:
   468  				return &v.sizeCache
   469  			case 2:
   470  				return &v.unknownFields
   471  			default:
   472  				return nil
   473  			}
   474  		}
   475  	}
   476  	file_envoy_extensions_wasm_v3_wasm_proto_msgTypes[1].OneofWrappers = []interface{}{
   477  		(*PluginConfig_VmConfig)(nil),
   478  	}
   479  	type x struct{}
   480  	out := protoimpl.TypeBuilder{
   481  		File: protoimpl.DescBuilder{
   482  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   483  			RawDescriptor: file_envoy_extensions_wasm_v3_wasm_proto_rawDesc,
   484  			NumEnums:      0,
   485  			NumMessages:   3,
   486  			NumExtensions: 0,
   487  			NumServices:   0,
   488  		},
   489  		GoTypes:           file_envoy_extensions_wasm_v3_wasm_proto_goTypes,
   490  		DependencyIndexes: file_envoy_extensions_wasm_v3_wasm_proto_depIdxs,
   491  		MessageInfos:      file_envoy_extensions_wasm_v3_wasm_proto_msgTypes,
   492  	}.Build()
   493  	File_envoy_extensions_wasm_v3_wasm_proto = out.File
   494  	file_envoy_extensions_wasm_v3_wasm_proto_rawDesc = nil
   495  	file_envoy_extensions_wasm_v3_wasm_proto_goTypes = nil
   496  	file_envoy_extensions_wasm_v3_wasm_proto_depIdxs = nil
   497  }
   498  

View as plain text