gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/go-control-plane/envoy/config/core/v3/extension.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.16.0 5 // source: envoy/config/core/v3/extension.proto 6 7 package envoy_config_core_v3 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 _ "github.com/envoyproxy/protoc-gen-validate/validate" 12 proto "github.com/golang/protobuf/proto" 13 any "github.com/golang/protobuf/ptypes/any" 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 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 // This is a compile-time assertion that a sufficiently up-to-date version 28 // of the legacy proto package is being used. 29 const _ = proto.ProtoPackageIsVersion4 30 31 // Message type for extension configuration. 32 // [#next-major-version: revisit all existing typed_config that doesn't use this wrapper.]. 33 type TypedExtensionConfig struct { 34 state protoimpl.MessageState 35 sizeCache protoimpl.SizeCache 36 unknownFields protoimpl.UnknownFields 37 38 // The name of an extension. This is not used to select the extension, instead 39 // it serves the role of an opaque identifier. 40 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 41 // The typed config for the extension. The type URL will be used to identify 42 // the extension. In the case that the type URL is *udpa.type.v1.TypedStruct*, 43 // the inner type URL of *TypedStruct* will be utilized. See the 44 // :ref:`extension configuration overview 45 // <config_overview_extension_configuration>` for further details. 46 TypedConfig *any.Any `protobuf:"bytes,2,opt,name=typed_config,json=typedConfig,proto3" json:"typed_config,omitempty"` 47 } 48 49 func (x *TypedExtensionConfig) Reset() { 50 *x = TypedExtensionConfig{} 51 if protoimpl.UnsafeEnabled { 52 mi := &file_envoy_config_core_v3_extension_proto_msgTypes[0] 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 ms.StoreMessageInfo(mi) 55 } 56 } 57 58 func (x *TypedExtensionConfig) String() string { 59 return protoimpl.X.MessageStringOf(x) 60 } 61 62 func (*TypedExtensionConfig) ProtoMessage() {} 63 64 func (x *TypedExtensionConfig) ProtoReflect() protoreflect.Message { 65 mi := &file_envoy_config_core_v3_extension_proto_msgTypes[0] 66 if protoimpl.UnsafeEnabled && x != nil { 67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 68 if ms.LoadMessageInfo() == nil { 69 ms.StoreMessageInfo(mi) 70 } 71 return ms 72 } 73 return mi.MessageOf(x) 74 } 75 76 // Deprecated: Use TypedExtensionConfig.ProtoReflect.Descriptor instead. 77 func (*TypedExtensionConfig) Descriptor() ([]byte, []int) { 78 return file_envoy_config_core_v3_extension_proto_rawDescGZIP(), []int{0} 79 } 80 81 func (x *TypedExtensionConfig) GetName() string { 82 if x != nil { 83 return x.Name 84 } 85 return "" 86 } 87 88 func (x *TypedExtensionConfig) GetTypedConfig() *any.Any { 89 if x != nil { 90 return x.TypedConfig 91 } 92 return nil 93 } 94 95 // Configuration source specifier for a late-bound extension configuration. The 96 // parent resource is warmed until all the initial extension configurations are 97 // received, unless the flag to apply the default configuration is set. 98 // Subsequent extension updates are atomic on a per-worker basis. Once an 99 // extension configuration is applied to a request or a connection, it remains 100 // constant for the duration of processing. If the initial delivery of the 101 // extension configuration fails, due to a timeout for example, the optional 102 // default configuration is applied. Without a default configuration, the 103 // extension is disabled, until an extension configuration is received. The 104 // behavior of a disabled extension depends on the context. For example, a 105 // filter chain with a disabled extension filter rejects all incoming streams. 106 type ExtensionConfigSource struct { 107 state protoimpl.MessageState 108 sizeCache protoimpl.SizeCache 109 unknownFields protoimpl.UnknownFields 110 111 ConfigSource *ConfigSource `protobuf:"bytes,1,opt,name=config_source,json=configSource,proto3" json:"config_source,omitempty"` 112 // Optional default configuration to use as the initial configuration if 113 // there is a failure to receive the initial extension configuration or if 114 // `apply_default_config_without_warming` flag is set. 115 DefaultConfig *any.Any `protobuf:"bytes,2,opt,name=default_config,json=defaultConfig,proto3" json:"default_config,omitempty"` 116 // Use the default config as the initial configuration without warming and 117 // waiting for the first discovery response. Requires the default configuration 118 // to be supplied. 119 ApplyDefaultConfigWithoutWarming bool `protobuf:"varint,3,opt,name=apply_default_config_without_warming,json=applyDefaultConfigWithoutWarming,proto3" json:"apply_default_config_without_warming,omitempty"` 120 // A set of permitted extension type URLs. Extension configuration updates are rejected 121 // if they do not match any type URL in the set. 122 TypeUrls []string `protobuf:"bytes,4,rep,name=type_urls,json=typeUrls,proto3" json:"type_urls,omitempty"` 123 } 124 125 func (x *ExtensionConfigSource) Reset() { 126 *x = ExtensionConfigSource{} 127 if protoimpl.UnsafeEnabled { 128 mi := &file_envoy_config_core_v3_extension_proto_msgTypes[1] 129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 130 ms.StoreMessageInfo(mi) 131 } 132 } 133 134 func (x *ExtensionConfigSource) String() string { 135 return protoimpl.X.MessageStringOf(x) 136 } 137 138 func (*ExtensionConfigSource) ProtoMessage() {} 139 140 func (x *ExtensionConfigSource) ProtoReflect() protoreflect.Message { 141 mi := &file_envoy_config_core_v3_extension_proto_msgTypes[1] 142 if protoimpl.UnsafeEnabled && x != nil { 143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 144 if ms.LoadMessageInfo() == nil { 145 ms.StoreMessageInfo(mi) 146 } 147 return ms 148 } 149 return mi.MessageOf(x) 150 } 151 152 // Deprecated: Use ExtensionConfigSource.ProtoReflect.Descriptor instead. 153 func (*ExtensionConfigSource) Descriptor() ([]byte, []int) { 154 return file_envoy_config_core_v3_extension_proto_rawDescGZIP(), []int{1} 155 } 156 157 func (x *ExtensionConfigSource) GetConfigSource() *ConfigSource { 158 if x != nil { 159 return x.ConfigSource 160 } 161 return nil 162 } 163 164 func (x *ExtensionConfigSource) GetDefaultConfig() *any.Any { 165 if x != nil { 166 return x.DefaultConfig 167 } 168 return nil 169 } 170 171 func (x *ExtensionConfigSource) GetApplyDefaultConfigWithoutWarming() bool { 172 if x != nil { 173 return x.ApplyDefaultConfigWithoutWarming 174 } 175 return false 176 } 177 178 func (x *ExtensionConfigSource) GetTypeUrls() []string { 179 if x != nil { 180 return x.TypeUrls 181 } 182 return nil 183 } 184 185 var File_envoy_config_core_v3_extension_proto protoreflect.FileDescriptor 186 187 var file_envoy_config_core_v3_extension_proto_rawDesc = []byte{ 188 0x0a, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 189 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 190 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 191 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x1a, 0x28, 0x65, 0x6e, 192 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 193 0x76, 0x33, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 194 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 195 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 196 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 197 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 198 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 199 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x76, 0x0a, 0x14, 0x54, 0x79, 0x70, 200 0x65, 0x64, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 201 0x67, 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 202 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x41, 203 0x0a, 0x0c, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 204 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 205 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0xa2, 206 0x01, 0x02, 0x08, 0x01, 0x52, 0x0b, 0x74, 0x79, 0x70, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 207 0x67, 0x22, 0x9e, 0x02, 0x0a, 0x15, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x43, 208 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x51, 0x0a, 0x0d, 0x63, 209 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 210 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 211 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 212 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, 0xa2, 0x01, 0x02, 0x08, 0x01, 213 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x3b, 214 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 215 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 216 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0d, 0x64, 0x65, 217 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4e, 0x0a, 0x24, 0x61, 218 0x70, 0x70, 0x6c, 0x79, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 219 0x66, 0x69, 0x67, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x6f, 0x75, 0x74, 0x5f, 0x77, 0x61, 0x72, 0x6d, 220 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x20, 0x61, 0x70, 0x70, 0x6c, 0x79, 221 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x57, 0x69, 0x74, 222 0x68, 0x6f, 0x75, 0x74, 0x57, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x0a, 0x09, 0x74, 223 0x79, 0x70, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x42, 0x08, 224 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, 0x01, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x55, 0x72, 225 0x6c, 0x73, 0x42, 0x3e, 0x0a, 0x22, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 226 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 227 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x42, 0x0e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 228 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 229 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 230 } 231 232 var ( 233 file_envoy_config_core_v3_extension_proto_rawDescOnce sync.Once 234 file_envoy_config_core_v3_extension_proto_rawDescData = file_envoy_config_core_v3_extension_proto_rawDesc 235 ) 236 237 func file_envoy_config_core_v3_extension_proto_rawDescGZIP() []byte { 238 file_envoy_config_core_v3_extension_proto_rawDescOnce.Do(func() { 239 file_envoy_config_core_v3_extension_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_core_v3_extension_proto_rawDescData) 240 }) 241 return file_envoy_config_core_v3_extension_proto_rawDescData 242 } 243 244 var file_envoy_config_core_v3_extension_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 245 var file_envoy_config_core_v3_extension_proto_goTypes = []interface{}{ 246 (*TypedExtensionConfig)(nil), // 0: envoy.config.core.v3.TypedExtensionConfig 247 (*ExtensionConfigSource)(nil), // 1: envoy.config.core.v3.ExtensionConfigSource 248 (*any.Any)(nil), // 2: google.protobuf.Any 249 (*ConfigSource)(nil), // 3: envoy.config.core.v3.ConfigSource 250 } 251 var file_envoy_config_core_v3_extension_proto_depIdxs = []int32{ 252 2, // 0: envoy.config.core.v3.TypedExtensionConfig.typed_config:type_name -> google.protobuf.Any 253 3, // 1: envoy.config.core.v3.ExtensionConfigSource.config_source:type_name -> envoy.config.core.v3.ConfigSource 254 2, // 2: envoy.config.core.v3.ExtensionConfigSource.default_config:type_name -> google.protobuf.Any 255 3, // [3:3] is the sub-list for method output_type 256 3, // [3:3] is the sub-list for method input_type 257 3, // [3:3] is the sub-list for extension type_name 258 3, // [3:3] is the sub-list for extension extendee 259 0, // [0:3] is the sub-list for field type_name 260 } 261 262 func init() { file_envoy_config_core_v3_extension_proto_init() } 263 func file_envoy_config_core_v3_extension_proto_init() { 264 if File_envoy_config_core_v3_extension_proto != nil { 265 return 266 } 267 file_envoy_config_core_v3_config_source_proto_init() 268 if !protoimpl.UnsafeEnabled { 269 file_envoy_config_core_v3_extension_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 270 switch v := v.(*TypedExtensionConfig); i { 271 case 0: 272 return &v.state 273 case 1: 274 return &v.sizeCache 275 case 2: 276 return &v.unknownFields 277 default: 278 return nil 279 } 280 } 281 file_envoy_config_core_v3_extension_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 282 switch v := v.(*ExtensionConfigSource); i { 283 case 0: 284 return &v.state 285 case 1: 286 return &v.sizeCache 287 case 2: 288 return &v.unknownFields 289 default: 290 return nil 291 } 292 } 293 } 294 type x struct{} 295 out := protoimpl.TypeBuilder{ 296 File: protoimpl.DescBuilder{ 297 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 298 RawDescriptor: file_envoy_config_core_v3_extension_proto_rawDesc, 299 NumEnums: 0, 300 NumMessages: 2, 301 NumExtensions: 0, 302 NumServices: 0, 303 }, 304 GoTypes: file_envoy_config_core_v3_extension_proto_goTypes, 305 DependencyIndexes: file_envoy_config_core_v3_extension_proto_depIdxs, 306 MessageInfos: file_envoy_config_core_v3_extension_proto_msgTypes, 307 }.Build() 308 File_envoy_config_core_v3_extension_proto = out.File 309 file_envoy_config_core_v3_extension_proto_rawDesc = nil 310 file_envoy_config_core_v3_extension_proto_goTypes = nil 311 file_envoy_config_core_v3_extension_proto_depIdxs = nil 312 }