-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
language.proto
36 lines (30 loc) · 1.32 KB
/
language.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
syntax = "proto3";
package envoy.extensions.filters.http.language.v3alpha;
import "udpa/annotations/status.proto";
import "validate/validate.proto";
option java_package = "io.envoyproxy.envoy.extensions.filters.http.language.v3alpha";
option java_outer_classname = "LanguageProto";
option java_multiple_files = true;
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/language/v3alpha";
option (udpa.annotations.file_status).package_version_status = ACTIVE;
// [#protodoc-title: Language]
// Language :ref:`configuration overview <config_http_filters_language>`.
// [#extension: envoy.filters.http.language]
// Language detection filter config.
message Language {
// The default language to be used as a fallback.
// The value will be included in the list of the supported languages.
//
// See https://unicode-org.github.io/icu/userguide/locale/
string default_language = 1 [(validate.rules).string = {min_len: 2}];
// The set of supported languages. There is no order priority.
// The order will be determined by the Accept-Language header priority list
// of the client.
//
// See https://unicode-org.github.io/icu/userguide/locale/
repeated string supported_languages = 2 [(validate.rules).repeated = {
min_items: 1
unique: true
items {string {min_len: 2}}
}];
}