xref: /aosp_15_r20/external/grpc-grpc-java/xds/third_party/envoy/src/main/proto/envoy/config/core/v3/extension.proto (revision e07d83d3ffcef9ecfc9f7f475418ec639ff0e5fe)
1syntax = "proto3";
2
3package envoy.config.core.v3;
4
5import "google/protobuf/any.proto";
6
7import "udpa/annotations/status.proto";
8import "validate/validate.proto";
9
10option java_package = "io.envoyproxy.envoy.config.core.v3";
11option java_outer_classname = "ExtensionProto";
12option java_multiple_files = true;
13option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
14option (udpa.annotations.file_status).package_version_status = ACTIVE;
15
16// [#protodoc-title: Extension configuration]
17
18// Message type for extension configuration.
19// [#next-major-version: revisit all existing typed_config that doesn't use this wrapper.].
20message TypedExtensionConfig {
21  // The name of an extension. This is not used to select the extension, instead
22  // it serves the role of an opaque identifier.
23  string name = 1 [(validate.rules).string = {min_len: 1}];
24
25  // The typed config for the extension. The type URL will be used to identify
26  // the extension. In the case that the type URL is ``xds.type.v3.TypedStruct``
27  // (or, for historical reasons, ``udpa.type.v1.TypedStruct``), the inner type
28  // URL of ``TypedStruct`` will be utilized. See the
29  // :ref:`extension configuration overview
30  // <config_overview_extension_configuration>` for further details.
31  google.protobuf.Any typed_config = 2 [(validate.rules).any = {required: true}];
32}
33