v3alpha

package
v0.0.0-...-5360bea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Language.ProtoReflect.Descriptor instead.

func (*Language) GetDefaultLanguage

func (x *Language) GetDefaultLanguage() string

func (*Language) GetSupportedLanguages

func (x *Language) GetSupportedLanguages() []string

func (*Language) ProtoMessage

func (*Language) ProtoMessage()

func (*Language) ProtoReflect

func (x *Language) ProtoReflect() protoreflect.Message

func (*Language) Reset

func (x *Language) Reset()

func (*Language) String

func (x *Language) String() string

func (*Language) Validate

func (m *Language) Validate() error

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

func (m *Language) ValidateAll() error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL