feature

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_feature_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BytesList

type BytesList struct {
	Value [][]byte `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*BytesList) Descriptor deprecated

func (*BytesList) Descriptor() ([]byte, []int)

Deprecated: Use BytesList.ProtoReflect.Descriptor instead.

func (*BytesList) GetValue

func (x *BytesList) GetValue() [][]byte

func (*BytesList) ProtoMessage

func (*BytesList) ProtoMessage()

func (*BytesList) ProtoReflect

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

func (*BytesList) Reset

func (x *BytesList) Reset()

func (*BytesList) String

func (x *BytesList) String() string

func (*BytesList) Validate

func (m *BytesList) Validate() error

Validate checks the field values on BytesList 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 (*BytesList) ValidateAll

func (m *BytesList) ValidateAll() error

ValidateAll checks the field values on BytesList 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 BytesListMultiError, or nil if none found.

type BytesListMultiError

type BytesListMultiError []error

BytesListMultiError is an error wrapping multiple validation errors returned by BytesList.ValidateAll() if the designated constraints aren't met.

func (BytesListMultiError) AllErrors

func (m BytesListMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BytesListMultiError) Error

func (m BytesListMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type BytesListValidationError

type BytesListValidationError struct {
	// contains filtered or unexported fields
}

BytesListValidationError is the validation error returned by BytesList.Validate if the designated constraints aren't met.

func (BytesListValidationError) Cause

func (e BytesListValidationError) Cause() error

Cause function returns cause value.

func (BytesListValidationError) Error

func (e BytesListValidationError) Error() string

Error satisfies the builtin error interface

func (BytesListValidationError) ErrorName

func (e BytesListValidationError) ErrorName() string

ErrorName returns error name.

func (BytesListValidationError) Field

func (e BytesListValidationError) Field() string

Field function returns field value.

func (BytesListValidationError) Key

Key function returns key value.

func (BytesListValidationError) Reason

func (e BytesListValidationError) Reason() string

Reason function returns reason value.

type DoubleList

type DoubleList struct {
	Value []float64 `protobuf:"fixed64,1,rep,packed,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*DoubleList) Descriptor deprecated

func (*DoubleList) Descriptor() ([]byte, []int)

Deprecated: Use DoubleList.ProtoReflect.Descriptor instead.

func (*DoubleList) GetValue

func (x *DoubleList) GetValue() []float64

func (*DoubleList) ProtoMessage

func (*DoubleList) ProtoMessage()

func (*DoubleList) ProtoReflect

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

func (*DoubleList) Reset

func (x *DoubleList) Reset()

func (*DoubleList) String

func (x *DoubleList) String() string

func (*DoubleList) Validate

func (m *DoubleList) Validate() error

Validate checks the field values on DoubleList 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 (*DoubleList) ValidateAll

func (m *DoubleList) ValidateAll() error

ValidateAll checks the field values on DoubleList 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 DoubleListMultiError, or nil if none found.

type DoubleListMultiError

type DoubleListMultiError []error

DoubleListMultiError is an error wrapping multiple validation errors returned by DoubleList.ValidateAll() if the designated constraints aren't met.

func (DoubleListMultiError) AllErrors

func (m DoubleListMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DoubleListMultiError) Error

func (m DoubleListMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DoubleListValidationError

type DoubleListValidationError struct {
	// contains filtered or unexported fields
}

DoubleListValidationError is the validation error returned by DoubleList.Validate if the designated constraints aren't met.

func (DoubleListValidationError) Cause

func (e DoubleListValidationError) Cause() error

Cause function returns cause value.

func (DoubleListValidationError) Error

Error satisfies the builtin error interface

func (DoubleListValidationError) ErrorName

func (e DoubleListValidationError) ErrorName() string

ErrorName returns error name.

func (DoubleListValidationError) Field

Field function returns field value.

func (DoubleListValidationError) Key

Key function returns key value.

func (DoubleListValidationError) Reason

func (e DoubleListValidationError) Reason() string

Reason function returns reason value.

type DoubleMap

type DoubleMap struct {
	Value map[string]float64 `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DoubleMap) Descriptor deprecated

func (*DoubleMap) Descriptor() ([]byte, []int)

Deprecated: Use DoubleMap.ProtoReflect.Descriptor instead.

func (*DoubleMap) GetValue

func (x *DoubleMap) GetValue() map[string]float64

func (*DoubleMap) ProtoMessage

func (*DoubleMap) ProtoMessage()

func (*DoubleMap) ProtoReflect

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

func (*DoubleMap) Reset

func (x *DoubleMap) Reset()

func (*DoubleMap) String

func (x *DoubleMap) String() string

func (*DoubleMap) Validate

func (m *DoubleMap) Validate() error

Validate checks the field values on DoubleMap 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 (*DoubleMap) ValidateAll

func (m *DoubleMap) ValidateAll() error

ValidateAll checks the field values on DoubleMap 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 DoubleMapMultiError, or nil if none found.

type DoubleMapMultiError

type DoubleMapMultiError []error

DoubleMapMultiError is an error wrapping multiple validation errors returned by DoubleMap.ValidateAll() if the designated constraints aren't met.

func (DoubleMapMultiError) AllErrors

func (m DoubleMapMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DoubleMapMultiError) Error

func (m DoubleMapMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DoubleMapValidationError

type DoubleMapValidationError struct {
	// contains filtered or unexported fields
}

DoubleMapValidationError is the validation error returned by DoubleMap.Validate if the designated constraints aren't met.

func (DoubleMapValidationError) Cause

func (e DoubleMapValidationError) Cause() error

Cause function returns cause value.

func (DoubleMapValidationError) Error

func (e DoubleMapValidationError) Error() string

Error satisfies the builtin error interface

func (DoubleMapValidationError) ErrorName

func (e DoubleMapValidationError) ErrorName() string

ErrorName returns error name.

func (DoubleMapValidationError) Field

func (e DoubleMapValidationError) Field() string

Field function returns field value.

func (DoubleMapValidationError) Key

Key function returns key value.

func (DoubleMapValidationError) Reason

func (e DoubleMapValidationError) Reason() string

Reason function returns reason value.

type Feature

type Feature struct {

	// Types that are assignable to Kind:
	//	*Feature_BytesList
	//	*Feature_DoubleList
	//	*Feature_Int64List
	//	*Feature_StringList
	//	*Feature_DoubleMap
	Kind isFeature_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

func (*Feature) Descriptor deprecated

func (*Feature) Descriptor() ([]byte, []int)

Deprecated: Use Feature.ProtoReflect.Descriptor instead.

func (*Feature) GetBytesList

func (x *Feature) GetBytesList() *BytesList

func (*Feature) GetDoubleList

func (x *Feature) GetDoubleList() *DoubleList

func (*Feature) GetDoubleMap

func (x *Feature) GetDoubleMap() *DoubleMap

func (*Feature) GetInt64List

func (x *Feature) GetInt64List() *Int64List

func (*Feature) GetKind

func (m *Feature) GetKind() isFeature_Kind

func (*Feature) GetStringList

func (x *Feature) GetStringList() *StringList

func (*Feature) ProtoMessage

func (*Feature) ProtoMessage()

func (*Feature) ProtoReflect

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

func (*Feature) Reset

func (x *Feature) Reset()

func (*Feature) String

func (x *Feature) String() string

func (*Feature) Validate

func (m *Feature) Validate() error

Validate checks the field values on Feature 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 (*Feature) ValidateAll

func (m *Feature) ValidateAll() error

ValidateAll checks the field values on Feature 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 FeatureMultiError, or nil if none found.

type FeatureMultiError

type FeatureMultiError []error

FeatureMultiError is an error wrapping multiple validation errors returned by Feature.ValidateAll() if the designated constraints aren't met.

func (FeatureMultiError) AllErrors

func (m FeatureMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FeatureMultiError) Error

func (m FeatureMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FeatureValidationError

type FeatureValidationError struct {
	// contains filtered or unexported fields
}

FeatureValidationError is the validation error returned by Feature.Validate if the designated constraints aren't met.

func (FeatureValidationError) Cause

func (e FeatureValidationError) Cause() error

Cause function returns cause value.

func (FeatureValidationError) Error

func (e FeatureValidationError) Error() string

Error satisfies the builtin error interface

func (FeatureValidationError) ErrorName

func (e FeatureValidationError) ErrorName() string

ErrorName returns error name.

func (FeatureValidationError) Field

func (e FeatureValidationError) Field() string

Field function returns field value.

func (FeatureValidationError) Key

func (e FeatureValidationError) Key() bool

Key function returns key value.

func (FeatureValidationError) Reason

func (e FeatureValidationError) Reason() string

Reason function returns reason value.

type Feature_BytesList

type Feature_BytesList struct {
	BytesList *BytesList `protobuf:"bytes,1,opt,name=bytes_list,json=bytesList,proto3,oneof"`
}

type Feature_DoubleList

type Feature_DoubleList struct {
	DoubleList *DoubleList `protobuf:"bytes,2,opt,name=double_list,json=doubleList,proto3,oneof"`
}

type Feature_DoubleMap

type Feature_DoubleMap struct {
	DoubleMap *DoubleMap `protobuf:"bytes,5,opt,name=double_map,json=doubleMap,proto3,oneof"`
}

type Feature_Int64List

type Feature_Int64List struct {
	Int64List *Int64List `protobuf:"bytes,3,opt,name=int64_list,json=int64List,proto3,oneof"`
}

type Feature_StringList

type Feature_StringList struct {
	StringList *StringList `protobuf:"bytes,4,opt,name=string_list,json=stringList,proto3,oneof"`
}

type Int64List

type Int64List struct {
	Value []int64 `protobuf:"varint,1,rep,packed,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Int64List) Descriptor deprecated

func (*Int64List) Descriptor() ([]byte, []int)

Deprecated: Use Int64List.ProtoReflect.Descriptor instead.

func (*Int64List) GetValue

func (x *Int64List) GetValue() []int64

func (*Int64List) ProtoMessage

func (*Int64List) ProtoMessage()

func (*Int64List) ProtoReflect

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

func (*Int64List) Reset

func (x *Int64List) Reset()

func (*Int64List) String

func (x *Int64List) String() string

func (*Int64List) Validate

func (m *Int64List) Validate() error

Validate checks the field values on Int64List 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 (*Int64List) ValidateAll

func (m *Int64List) ValidateAll() error

ValidateAll checks the field values on Int64List 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 Int64ListMultiError, or nil if none found.

type Int64ListMultiError

type Int64ListMultiError []error

Int64ListMultiError is an error wrapping multiple validation errors returned by Int64List.ValidateAll() if the designated constraints aren't met.

func (Int64ListMultiError) AllErrors

func (m Int64ListMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Int64ListMultiError) Error

func (m Int64ListMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Int64ListValidationError

type Int64ListValidationError struct {
	// contains filtered or unexported fields
}

Int64ListValidationError is the validation error returned by Int64List.Validate if the designated constraints aren't met.

func (Int64ListValidationError) Cause

func (e Int64ListValidationError) Cause() error

Cause function returns cause value.

func (Int64ListValidationError) Error

func (e Int64ListValidationError) Error() string

Error satisfies the builtin error interface

func (Int64ListValidationError) ErrorName

func (e Int64ListValidationError) ErrorName() string

ErrorName returns error name.

func (Int64ListValidationError) Field

func (e Int64ListValidationError) Field() string

Field function returns field value.

func (Int64ListValidationError) Key

Key function returns key value.

func (Int64ListValidationError) Reason

func (e Int64ListValidationError) Reason() string

Reason function returns reason value.

type StringList

type StringList struct {
	Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*StringList) Descriptor deprecated

func (*StringList) Descriptor() ([]byte, []int)

Deprecated: Use StringList.ProtoReflect.Descriptor instead.

func (*StringList) GetValue

func (x *StringList) GetValue() []string

func (*StringList) ProtoMessage

func (*StringList) ProtoMessage()

func (*StringList) ProtoReflect

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

func (*StringList) Reset

func (x *StringList) Reset()

func (*StringList) String

func (x *StringList) String() string

func (*StringList) Validate

func (m *StringList) Validate() error

Validate checks the field values on StringList 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 (*StringList) ValidateAll

func (m *StringList) ValidateAll() error

ValidateAll checks the field values on StringList 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 StringListMultiError, or nil if none found.

type StringListMultiError

type StringListMultiError []error

StringListMultiError is an error wrapping multiple validation errors returned by StringList.ValidateAll() if the designated constraints aren't met.

func (StringListMultiError) AllErrors

func (m StringListMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StringListMultiError) Error

func (m StringListMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StringListValidationError

type StringListValidationError struct {
	// contains filtered or unexported fields
}

StringListValidationError is the validation error returned by StringList.Validate if the designated constraints aren't met.

func (StringListValidationError) Cause

func (e StringListValidationError) Cause() error

Cause function returns cause value.

func (StringListValidationError) Error

Error satisfies the builtin error interface

func (StringListValidationError) ErrorName

func (e StringListValidationError) ErrorName() string

ErrorName returns error name.

func (StringListValidationError) Field

Field function returns field value.

func (StringListValidationError) Key

Key function returns key value.

func (StringListValidationError) Reason

func (e StringListValidationError) 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