Documentation ¶
Index ¶
- Variables
- type Language
- func (*Language) Descriptor() ([]byte, []int)deprecated
- func (x *Language) GetDefaultLanguage() string
- func (x *Language) GetSupportedLanguages() []string
- func (*Language) ProtoMessage()
- func (x *Language) ProtoReflect() protoreflect.Message
- func (x *Language) Reset()
- func (x *Language) String() string
- func (m *Language) Validate() error
- func (m *Language) ValidateAll() error
- type LanguageMultiError
- type LanguageValidationError
Constants ¶
This section is empty.
Variables ¶
var File_contrib_envoy_extensions_filters_http_language_v3alpha_language_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Language ¶
type Language struct { // 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/ DefaultLanguage string `protobuf:"bytes,1,opt,name=default_language,json=defaultLanguage,proto3" json:"default_language,omitempty"` // 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/ SupportedLanguages []string `protobuf:"bytes,2,rep,name=supported_languages,json=supportedLanguages,proto3" json:"supported_languages,omitempty"` // contains filtered or unexported fields }
Language detection filter config.
func (*Language) Descriptor
deprecated
func (*Language) GetDefaultLanguage ¶
func (*Language) GetSupportedLanguages ¶
func (*Language) ProtoMessage ¶
func (*Language) ProtoMessage()
func (*Language) ProtoReflect ¶
func (x *Language) ProtoReflect() protoreflect.Message
func (*Language) Validate ¶
Validate checks the field values on Language with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Language) ValidateAll ¶
ValidateAll checks the field values on Language with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LanguageMultiError, or nil if none found.
type LanguageMultiError ¶
type LanguageMultiError []error
LanguageMultiError is an error wrapping multiple validation errors returned by Language.ValidateAll() if the designated constraints aren't met.
func (LanguageMultiError) AllErrors ¶
func (m LanguageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LanguageMultiError) Error ¶
func (m LanguageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LanguageValidationError ¶
type LanguageValidationError struct {
// contains filtered or unexported fields
}
LanguageValidationError is the validation error returned by Language.Validate if the designated constraints aren't met.
func (LanguageValidationError) Cause ¶
func (e LanguageValidationError) Cause() error
Cause function returns cause value.
func (LanguageValidationError) Error ¶
func (e LanguageValidationError) Error() string
Error satisfies the builtin error interface
func (LanguageValidationError) ErrorName ¶
func (e LanguageValidationError) ErrorName() string
ErrorName returns error name.
func (LanguageValidationError) Field ¶
func (e LanguageValidationError) Field() string
Field function returns field value.
func (LanguageValidationError) Key ¶
func (e LanguageValidationError) Key() bool
Key function returns key value.
func (LanguageValidationError) Reason ¶
func (e LanguageValidationError) Reason() string
Reason function returns reason value.