validate

package
v0.0.0-...-49c8f32 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 24 Imported by: 1

Documentation

Overview

Code generated by protoc-gen-auth. DO NOT EDIT! source: validate.proto

Index

Constants

View Source
const Default_StringRules_Strict bool = true

Variables

View Source
var E_Disabled = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.MessageOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         1071,
	Name:          "appootb.validate.disabled",
	Tag:           "varint,1071,opt,name=disabled",
	Filename:      "validate.proto",
}
View Source
var E_Ignored = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.MessageOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         1072,
	Name:          "appootb.validate.ignored",
	Tag:           "varint,1072,opt,name=ignored",
	Filename:      "validate.proto",
}
View Source
var E_Required = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.OneofOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         1071,
	Name:          "appootb.validate.required",
	Tag:           "varint,1071,opt,name=required",
	Filename:      "validate.proto",
}
View Source
var E_Rules = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.FieldOptions)(nil),
	ExtensionType: (*FieldRules)(nil),
	Field:         1071,
	Name:          "appootb.validate.rules",
	Tag:           "bytes,1071,opt,name=rules",
	Filename:      "validate.proto",
}
View Source
var KnownRegex_name = map[int32]string{
	0: "UNKNOWN",
	1: "HTTP_HEADER_NAME",
	2: "HTTP_HEADER_VALUE",
}
View Source
var KnownRegex_value = map[string]int32{
	"UNKNOWN":           0,
	"HTTP_HEADER_NAME":  1,
	"HTTP_HEADER_VALUE": 2,
}

Functions

This section is empty.

Types

type AnyRules

type AnyRules struct {
	// Required specifies that this field must be set
	Required *bool `protobuf:"varint,1,opt,name=required" json:"required,omitempty"`
	// In specifies that this field's `type_url` must be equal to one of the
	// specified values.
	In []string `protobuf:"bytes,2,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field's `type_url` must not be equal to any of
	// the specified values.
	NotIn                []string `protobuf:"bytes,3,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

AnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known type

func (*AnyRules) Descriptor

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

func (*AnyRules) GetIn

func (m *AnyRules) GetIn() []string

func (*AnyRules) GetNotIn

func (m *AnyRules) GetNotIn() []string

func (*AnyRules) GetRequired

func (m *AnyRules) GetRequired() bool

func (*AnyRules) ProtoMessage

func (*AnyRules) ProtoMessage()

func (*AnyRules) Reset

func (m *AnyRules) Reset()

func (*AnyRules) String

func (m *AnyRules) String() string

func (*AnyRules) Validate

func (m *AnyRules) Validate() error

Validate checks the field values on AnyRules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*AnyRules) XXX_DiscardUnknown

func (m *AnyRules) XXX_DiscardUnknown()

func (*AnyRules) XXX_Marshal

func (m *AnyRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnyRules) XXX_Merge

func (m *AnyRules) XXX_Merge(src proto.Message)

func (*AnyRules) XXX_Size

func (m *AnyRules) XXX_Size() int

func (*AnyRules) XXX_Unmarshal

func (m *AnyRules) XXX_Unmarshal(b []byte) error

type AnyRulesValidationError

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

AnyRulesValidationError is the validation error returned by AnyRules.Validate if the designated constraints aren't met.

func (AnyRulesValidationError) Cause

func (e AnyRulesValidationError) Cause() error

Cause function returns cause value.

func (AnyRulesValidationError) Error

func (e AnyRulesValidationError) Error() string

Error satisfies the builtin error interface

func (AnyRulesValidationError) ErrorName

func (e AnyRulesValidationError) ErrorName() string

ErrorName returns error name.

func (AnyRulesValidationError) Field

func (e AnyRulesValidationError) Field() string

Field function returns field value.

func (AnyRulesValidationError) Key

func (e AnyRulesValidationError) Key() bool

Key function returns key value.

func (AnyRulesValidationError) Reason

func (e AnyRulesValidationError) Reason() string

Reason function returns reason value.

type BoolRules

type BoolRules struct {
	// Const specifies that this field must be exactly the specified value
	Const                *bool    `protobuf:"varint,1,opt,name=const" json:"const,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

BoolRules describes the constraints applied to `bool` values

func (*BoolRules) Descriptor

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

func (*BoolRules) GetConst

func (m *BoolRules) GetConst() bool

func (*BoolRules) ProtoMessage

func (*BoolRules) ProtoMessage()

func (*BoolRules) Reset

func (m *BoolRules) Reset()

func (*BoolRules) String

func (m *BoolRules) String() string

func (*BoolRules) Validate

func (m *BoolRules) Validate() error

Validate checks the field values on BoolRules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*BoolRules) XXX_DiscardUnknown

func (m *BoolRules) XXX_DiscardUnknown()

func (*BoolRules) XXX_Marshal

func (m *BoolRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BoolRules) XXX_Merge

func (m *BoolRules) XXX_Merge(src proto.Message)

func (*BoolRules) XXX_Size

func (m *BoolRules) XXX_Size() int

func (*BoolRules) XXX_Unmarshal

func (m *BoolRules) XXX_Unmarshal(b []byte) error

type BoolRulesValidationError

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

BoolRulesValidationError is the validation error returned by BoolRules.Validate if the designated constraints aren't met.

func (BoolRulesValidationError) Cause

func (e BoolRulesValidationError) Cause() error

Cause function returns cause value.

func (BoolRulesValidationError) Error

func (e BoolRulesValidationError) Error() string

Error satisfies the builtin error interface

func (BoolRulesValidationError) ErrorName

func (e BoolRulesValidationError) ErrorName() string

ErrorName returns error name.

func (BoolRulesValidationError) Field

func (e BoolRulesValidationError) Field() string

Field function returns field value.

func (BoolRulesValidationError) Key

Key function returns key value.

func (BoolRulesValidationError) Reason

func (e BoolRulesValidationError) Reason() string

Reason function returns reason value.

type BytesRules

type BytesRules struct {
	// Const specifies that this field must be exactly the specified value
	Const []byte `protobuf:"bytes,1,opt,name=const" json:"const,omitempty"`
	// Len specifies that this field must be the specified number of bytes
	Len *uint64 `protobuf:"varint,13,opt,name=len" json:"len,omitempty"`
	// MinLen specifies that this field must be the specified number of bytes
	// at a minimum
	MinLen *uint64 `protobuf:"varint,2,opt,name=min_len,json=minLen" json:"min_len,omitempty"`
	// MaxLen specifies that this field must be the specified number of bytes
	// at a maximum
	MaxLen *uint64 `protobuf:"varint,3,opt,name=max_len,json=maxLen" json:"max_len,omitempty"`
	// Pattern specifies that this field must match against the specified
	// regular expression (RE2 syntax). The included expression should elide
	// any delimiters.
	Pattern *string `protobuf:"bytes,4,opt,name=pattern" json:"pattern,omitempty"`
	// Prefix specifies that this field must have the specified bytes at the
	// beginning of the string.
	Prefix []byte `protobuf:"bytes,5,opt,name=prefix" json:"prefix,omitempty"`
	// Suffix specifies that this field must have the specified bytes at the
	// end of the string.
	Suffix []byte `protobuf:"bytes,6,opt,name=suffix" json:"suffix,omitempty"`
	// Contains specifies that this field must have the specified bytes
	// anywhere in the string.
	Contains []byte `protobuf:"bytes,7,opt,name=contains" json:"contains,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In [][]byte `protobuf:"bytes,8,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn [][]byte `protobuf:"bytes,9,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	// WellKnown rules provide advanced constraints against common byte
	// patterns
	//
	// Types that are valid to be assigned to WellKnown:
	//	*BytesRules_Ip
	//	*BytesRules_Ipv4
	//	*BytesRules_Ipv6
	WellKnown            isBytesRules_WellKnown `protobuf_oneof:"well_known"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

BytesRules describe the constraints applied to `bytes` values

func (*BytesRules) Descriptor

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

func (*BytesRules) GetConst

func (m *BytesRules) GetConst() []byte

func (*BytesRules) GetContains

func (m *BytesRules) GetContains() []byte

func (*BytesRules) GetIn

func (m *BytesRules) GetIn() [][]byte

func (*BytesRules) GetIp

func (m *BytesRules) GetIp() bool

func (*BytesRules) GetIpv4

func (m *BytesRules) GetIpv4() bool

func (*BytesRules) GetIpv6

func (m *BytesRules) GetIpv6() bool

func (*BytesRules) GetLen

func (m *BytesRules) GetLen() uint64

func (*BytesRules) GetMaxLen

func (m *BytesRules) GetMaxLen() uint64

func (*BytesRules) GetMinLen

func (m *BytesRules) GetMinLen() uint64

func (*BytesRules) GetNotIn

func (m *BytesRules) GetNotIn() [][]byte

func (*BytesRules) GetPattern

func (m *BytesRules) GetPattern() string

func (*BytesRules) GetPrefix

func (m *BytesRules) GetPrefix() []byte

func (*BytesRules) GetSuffix

func (m *BytesRules) GetSuffix() []byte

func (*BytesRules) GetWellKnown

func (m *BytesRules) GetWellKnown() isBytesRules_WellKnown

func (*BytesRules) ProtoMessage

func (*BytesRules) ProtoMessage()

func (*BytesRules) Reset

func (m *BytesRules) Reset()

func (*BytesRules) String

func (m *BytesRules) String() string

func (*BytesRules) Validate

func (m *BytesRules) Validate() error

Validate checks the field values on BytesRules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*BytesRules) XXX_DiscardUnknown

func (m *BytesRules) XXX_DiscardUnknown()

func (*BytesRules) XXX_Marshal

func (m *BytesRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BytesRules) XXX_Merge

func (m *BytesRules) XXX_Merge(src proto.Message)

func (*BytesRules) XXX_OneofWrappers

func (*BytesRules) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*BytesRules) XXX_Size

func (m *BytesRules) XXX_Size() int

func (*BytesRules) XXX_Unmarshal

func (m *BytesRules) XXX_Unmarshal(b []byte) error

type BytesRulesValidationError

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

BytesRulesValidationError is the validation error returned by BytesRules.Validate if the designated constraints aren't met.

func (BytesRulesValidationError) Cause

func (e BytesRulesValidationError) Cause() error

Cause function returns cause value.

func (BytesRulesValidationError) Error

Error satisfies the builtin error interface

func (BytesRulesValidationError) ErrorName

func (e BytesRulesValidationError) ErrorName() string

ErrorName returns error name.

func (BytesRulesValidationError) Field

Field function returns field value.

func (BytesRulesValidationError) Key

Key function returns key value.

func (BytesRulesValidationError) Reason

func (e BytesRulesValidationError) Reason() string

Reason function returns reason value.

type BytesRules_Ip

type BytesRules_Ip struct {
	Ip bool `protobuf:"varint,10,opt,name=ip,oneof"`
}

type BytesRules_Ipv4

type BytesRules_Ipv4 struct {
	Ipv4 bool `protobuf:"varint,11,opt,name=ipv4,oneof"`
}

type BytesRules_Ipv6

type BytesRules_Ipv6 struct {
	Ipv6 bool `protobuf:"varint,12,opt,name=ipv6,oneof"`
}

type DoubleRules

type DoubleRules struct {
	// Const specifies that this field must be exactly the specified value
	Const *float64 `protobuf:"fixed64,1,opt,name=const" json:"const,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// exclusive
	Lt *float64 `protobuf:"fixed64,2,opt,name=lt" json:"lt,omitempty"`
	// Lte specifies that this field must be less than or equal to the
	// specified value, inclusive
	Lte *float64 `protobuf:"fixed64,3,opt,name=lte" json:"lte,omitempty"`
	// Gt specifies that this field must be greater than the specified value,
	// exclusive. If the value of Gt is larger than a specified Lt or Lte, the
	// range is reversed.
	Gt *float64 `protobuf:"fixed64,4,opt,name=gt" json:"gt,omitempty"`
	// Gte specifies that this field must be greater than or equal to the
	// specified value, inclusive. If the value of Gte is larger than a
	// specified Lt or Lte, the range is reversed.
	Gte *float64 `protobuf:"fixed64,5,opt,name=gte" json:"gte,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []float64 `protobuf:"fixed64,6,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn                []float64 `protobuf:"fixed64,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

DoubleRules describes the constraints applied to `double` values

func (*DoubleRules) Descriptor

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

func (*DoubleRules) GetConst

func (m *DoubleRules) GetConst() float64

func (*DoubleRules) GetGt

func (m *DoubleRules) GetGt() float64

func (*DoubleRules) GetGte

func (m *DoubleRules) GetGte() float64

func (*DoubleRules) GetIn

func (m *DoubleRules) GetIn() []float64

func (*DoubleRules) GetLt

func (m *DoubleRules) GetLt() float64

func (*DoubleRules) GetLte

func (m *DoubleRules) GetLte() float64

func (*DoubleRules) GetNotIn

func (m *DoubleRules) GetNotIn() []float64

func (*DoubleRules) ProtoMessage

func (*DoubleRules) ProtoMessage()

func (*DoubleRules) Reset

func (m *DoubleRules) Reset()

func (*DoubleRules) String

func (m *DoubleRules) String() string

func (*DoubleRules) Validate

func (m *DoubleRules) Validate() error

Validate checks the field values on DoubleRules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*DoubleRules) XXX_DiscardUnknown

func (m *DoubleRules) XXX_DiscardUnknown()

func (*DoubleRules) XXX_Marshal

func (m *DoubleRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleRules) XXX_Merge

func (m *DoubleRules) XXX_Merge(src proto.Message)

func (*DoubleRules) XXX_Size

func (m *DoubleRules) XXX_Size() int

func (*DoubleRules) XXX_Unmarshal

func (m *DoubleRules) XXX_Unmarshal(b []byte) error

type DoubleRulesValidationError

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

DoubleRulesValidationError is the validation error returned by DoubleRules.Validate if the designated constraints aren't met.

func (DoubleRulesValidationError) Cause

Cause function returns cause value.

func (DoubleRulesValidationError) Error

Error satisfies the builtin error interface

func (DoubleRulesValidationError) ErrorName

func (e DoubleRulesValidationError) ErrorName() string

ErrorName returns error name.

func (DoubleRulesValidationError) Field

Field function returns field value.

func (DoubleRulesValidationError) Key

Key function returns key value.

func (DoubleRulesValidationError) Reason

Reason function returns reason value.

type DurationRules

type DurationRules struct {
	// Required specifies that this field must be set
	Required *bool `protobuf:"varint,1,opt,name=required" json:"required,omitempty"`
	// Const specifies that this field must be exactly the specified value
	Const *duration.Duration `protobuf:"bytes,2,opt,name=const" json:"const,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// exclusive
	Lt *duration.Duration `protobuf:"bytes,3,opt,name=lt" json:"lt,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// inclusive
	Lte *duration.Duration `protobuf:"bytes,4,opt,name=lte" json:"lte,omitempty"`
	// Gt specifies that this field must be greater than the specified value,
	// exclusive
	Gt *duration.Duration `protobuf:"bytes,5,opt,name=gt" json:"gt,omitempty"`
	// Gte specifies that this field must be greater than the specified value,
	// inclusive
	Gte *duration.Duration `protobuf:"bytes,6,opt,name=gte" json:"gte,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []*duration.Duration `protobuf:"bytes,7,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn                []*duration.Duration `protobuf:"bytes,8,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

DurationRules describe the constraints applied exclusively to the `google.protobuf.Duration` well-known type

func (*DurationRules) Descriptor

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

func (*DurationRules) GetConst

func (m *DurationRules) GetConst() *duration.Duration

func (*DurationRules) GetGt

func (m *DurationRules) GetGt() *duration.Duration

func (*DurationRules) GetGte

func (m *DurationRules) GetGte() *duration.Duration

func (*DurationRules) GetIn

func (m *DurationRules) GetIn() []*duration.Duration

func (*DurationRules) GetLt

func (m *DurationRules) GetLt() *duration.Duration

func (*DurationRules) GetLte

func (m *DurationRules) GetLte() *duration.Duration

func (*DurationRules) GetNotIn

func (m *DurationRules) GetNotIn() []*duration.Duration

func (*DurationRules) GetRequired

func (m *DurationRules) GetRequired() bool

func (*DurationRules) ProtoMessage

func (*DurationRules) ProtoMessage()

func (*DurationRules) Reset

func (m *DurationRules) Reset()

func (*DurationRules) String

func (m *DurationRules) String() string

func (*DurationRules) Validate

func (m *DurationRules) Validate() error

Validate checks the field values on DurationRules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*DurationRules) XXX_DiscardUnknown

func (m *DurationRules) XXX_DiscardUnknown()

func (*DurationRules) XXX_Marshal

func (m *DurationRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DurationRules) XXX_Merge

func (m *DurationRules) XXX_Merge(src proto.Message)

func (*DurationRules) XXX_Size

func (m *DurationRules) XXX_Size() int

func (*DurationRules) XXX_Unmarshal

func (m *DurationRules) XXX_Unmarshal(b []byte) error

type DurationRulesValidationError

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

DurationRulesValidationError is the validation error returned by DurationRules.Validate if the designated constraints aren't met.

func (DurationRulesValidationError) Cause

Cause function returns cause value.

func (DurationRulesValidationError) Error

Error satisfies the builtin error interface

func (DurationRulesValidationError) ErrorName

func (e DurationRulesValidationError) ErrorName() string

ErrorName returns error name.

func (DurationRulesValidationError) Field

Field function returns field value.

func (DurationRulesValidationError) Key

Key function returns key value.

func (DurationRulesValidationError) Reason

Reason function returns reason value.

type EnumRules

type EnumRules struct {
	// Const specifies that this field must be exactly the specified value
	Const *int32 `protobuf:"varint,1,opt,name=const" json:"const,omitempty"`
	// DefinedOnly specifies that this field must be only one of the defined
	// values for this enum, failing on any undefined value.
	DefinedOnly *bool `protobuf:"varint,2,opt,name=defined_only,json=definedOnly" json:"defined_only,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []int32 `protobuf:"varint,3,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn                []int32  `protobuf:"varint,4,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

EnumRules describe the constraints applied to enum values

func (*EnumRules) Descriptor

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

func (*EnumRules) GetConst

func (m *EnumRules) GetConst() int32

func (*EnumRules) GetDefinedOnly

func (m *EnumRules) GetDefinedOnly() bool

func (*EnumRules) GetIn

func (m *EnumRules) GetIn() []int32

func (*EnumRules) GetNotIn

func (m *EnumRules) GetNotIn() []int32

func (*EnumRules) ProtoMessage

func (*EnumRules) ProtoMessage()

func (*EnumRules) Reset

func (m *EnumRules) Reset()

func (*EnumRules) String

func (m *EnumRules) String() string

func (*EnumRules) Validate

func (m *EnumRules) Validate() error

Validate checks the field values on EnumRules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*EnumRules) XXX_DiscardUnknown

func (m *EnumRules) XXX_DiscardUnknown()

func (*EnumRules) XXX_Marshal

func (m *EnumRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnumRules) XXX_Merge

func (m *EnumRules) XXX_Merge(src proto.Message)

func (*EnumRules) XXX_Size

func (m *EnumRules) XXX_Size() int

func (*EnumRules) XXX_Unmarshal

func (m *EnumRules) XXX_Unmarshal(b []byte) error

type EnumRulesValidationError

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

EnumRulesValidationError is the validation error returned by EnumRules.Validate if the designated constraints aren't met.

func (EnumRulesValidationError) Cause

func (e EnumRulesValidationError) Cause() error

Cause function returns cause value.

func (EnumRulesValidationError) Error

func (e EnumRulesValidationError) Error() string

Error satisfies the builtin error interface

func (EnumRulesValidationError) ErrorName

func (e EnumRulesValidationError) ErrorName() string

ErrorName returns error name.

func (EnumRulesValidationError) Field

func (e EnumRulesValidationError) Field() string

Field function returns field value.

func (EnumRulesValidationError) Key

Key function returns key value.

func (EnumRulesValidationError) Reason

func (e EnumRulesValidationError) Reason() string

Reason function returns reason value.

type FieldRules

type FieldRules struct {
	Message *MessageRules `protobuf:"bytes,17,opt,name=message" json:"message,omitempty"`
	// Types that are valid to be assigned to Type:
	//	*FieldRules_Float
	//	*FieldRules_Double
	//	*FieldRules_Int32
	//	*FieldRules_Int64
	//	*FieldRules_Uint32
	//	*FieldRules_Uint64
	//	*FieldRules_Sint32
	//	*FieldRules_Sint64
	//	*FieldRules_Fixed32
	//	*FieldRules_Fixed64
	//	*FieldRules_Sfixed32
	//	*FieldRules_Sfixed64
	//	*FieldRules_Bool
	//	*FieldRules_String_
	//	*FieldRules_Bytes
	//	*FieldRules_Enum
	//	*FieldRules_Repeated
	//	*FieldRules_Map
	//	*FieldRules_Any
	//	*FieldRules_Duration
	//	*FieldRules_Timestamp
	Type                 isFieldRules_Type `protobuf_oneof:"type"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

FieldRules encapsulates the rules for each type of field. Depending on the field, the correct set should be used to ensure proper validations.

func (*FieldRules) Descriptor

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

func (*FieldRules) GetAny

func (m *FieldRules) GetAny() *AnyRules

func (*FieldRules) GetBool

func (m *FieldRules) GetBool() *BoolRules

func (*FieldRules) GetBytes

func (m *FieldRules) GetBytes() *BytesRules

func (*FieldRules) GetDouble

func (m *FieldRules) GetDouble() *DoubleRules

func (*FieldRules) GetDuration

func (m *FieldRules) GetDuration() *DurationRules

func (*FieldRules) GetEnum

func (m *FieldRules) GetEnum() *EnumRules

func (*FieldRules) GetFixed32

func (m *FieldRules) GetFixed32() *Fixed32Rules

func (*FieldRules) GetFixed64

func (m *FieldRules) GetFixed64() *Fixed64Rules

func (*FieldRules) GetFloat

func (m *FieldRules) GetFloat() *FloatRules

func (*FieldRules) GetInt32

func (m *FieldRules) GetInt32() *Int32Rules

func (*FieldRules) GetInt64

func (m *FieldRules) GetInt64() *Int64Rules

func (*FieldRules) GetMap

func (m *FieldRules) GetMap() *MapRules

func (*FieldRules) GetMessage

func (m *FieldRules) GetMessage() *MessageRules

func (*FieldRules) GetRepeated

func (m *FieldRules) GetRepeated() *RepeatedRules

func (*FieldRules) GetSfixed32

func (m *FieldRules) GetSfixed32() *SFixed32Rules

func (*FieldRules) GetSfixed64

func (m *FieldRules) GetSfixed64() *SFixed64Rules

func (*FieldRules) GetSint32

func (m *FieldRules) GetSint32() *SInt32Rules

func (*FieldRules) GetSint64

func (m *FieldRules) GetSint64() *SInt64Rules

func (*FieldRules) GetString_

func (m *FieldRules) GetString_() *StringRules

func (*FieldRules) GetTimestamp

func (m *FieldRules) GetTimestamp() *TimestampRules

func (*FieldRules) GetType

func (m *FieldRules) GetType() isFieldRules_Type

func (*FieldRules) GetUint32

func (m *FieldRules) GetUint32() *UInt32Rules

func (*FieldRules) GetUint64

func (m *FieldRules) GetUint64() *UInt64Rules

func (*FieldRules) ProtoMessage

func (*FieldRules) ProtoMessage()

func (*FieldRules) Reset

func (m *FieldRules) Reset()

func (*FieldRules) String

func (m *FieldRules) String() string

func (*FieldRules) Validate

func (m *FieldRules) Validate() error

Validate checks the field values on FieldRules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*FieldRules) XXX_DiscardUnknown

func (m *FieldRules) XXX_DiscardUnknown()

func (*FieldRules) XXX_Marshal

func (m *FieldRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FieldRules) XXX_Merge

func (m *FieldRules) XXX_Merge(src proto.Message)

func (*FieldRules) XXX_OneofWrappers

func (*FieldRules) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*FieldRules) XXX_Size

func (m *FieldRules) XXX_Size() int

func (*FieldRules) XXX_Unmarshal

func (m *FieldRules) XXX_Unmarshal(b []byte) error

type FieldRulesValidationError

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

FieldRulesValidationError is the validation error returned by FieldRules.Validate if the designated constraints aren't met.

func (FieldRulesValidationError) Cause

func (e FieldRulesValidationError) Cause() error

Cause function returns cause value.

func (FieldRulesValidationError) Error

Error satisfies the builtin error interface

func (FieldRulesValidationError) ErrorName

func (e FieldRulesValidationError) ErrorName() string

ErrorName returns error name.

func (FieldRulesValidationError) Field

Field function returns field value.

func (FieldRulesValidationError) Key

Key function returns key value.

func (FieldRulesValidationError) Reason

func (e FieldRulesValidationError) Reason() string

Reason function returns reason value.

type FieldRules_Any

type FieldRules_Any struct {
	Any *AnyRules `protobuf:"bytes,20,opt,name=any,oneof"`
}

type FieldRules_Bool

type FieldRules_Bool struct {
	Bool *BoolRules `protobuf:"bytes,13,opt,name=bool,oneof"`
}

type FieldRules_Bytes

type FieldRules_Bytes struct {
	Bytes *BytesRules `protobuf:"bytes,15,opt,name=bytes,oneof"`
}

type FieldRules_Double

type FieldRules_Double struct {
	Double *DoubleRules `protobuf:"bytes,2,opt,name=double,oneof"`
}

type FieldRules_Duration

type FieldRules_Duration struct {
	Duration *DurationRules `protobuf:"bytes,21,opt,name=duration,oneof"`
}

type FieldRules_Enum

type FieldRules_Enum struct {
	Enum *EnumRules `protobuf:"bytes,16,opt,name=enum,oneof"`
}

type FieldRules_Fixed32

type FieldRules_Fixed32 struct {
	Fixed32 *Fixed32Rules `protobuf:"bytes,9,opt,name=fixed32,oneof"`
}

type FieldRules_Fixed64

type FieldRules_Fixed64 struct {
	Fixed64 *Fixed64Rules `protobuf:"bytes,10,opt,name=fixed64,oneof"`
}

type FieldRules_Float

type FieldRules_Float struct {
	Float *FloatRules `protobuf:"bytes,1,opt,name=float,oneof"`
}

type FieldRules_Int32

type FieldRules_Int32 struct {
	Int32 *Int32Rules `protobuf:"bytes,3,opt,name=int32,oneof"`
}

type FieldRules_Int64

type FieldRules_Int64 struct {
	Int64 *Int64Rules `protobuf:"bytes,4,opt,name=int64,oneof"`
}

type FieldRules_Map

type FieldRules_Map struct {
	Map *MapRules `protobuf:"bytes,19,opt,name=map,oneof"`
}

type FieldRules_Repeated

type FieldRules_Repeated struct {
	Repeated *RepeatedRules `protobuf:"bytes,18,opt,name=repeated,oneof"`
}

type FieldRules_Sfixed32

type FieldRules_Sfixed32 struct {
	Sfixed32 *SFixed32Rules `protobuf:"bytes,11,opt,name=sfixed32,oneof"`
}

type FieldRules_Sfixed64

type FieldRules_Sfixed64 struct {
	Sfixed64 *SFixed64Rules `protobuf:"bytes,12,opt,name=sfixed64,oneof"`
}

type FieldRules_Sint32

type FieldRules_Sint32 struct {
	Sint32 *SInt32Rules `protobuf:"bytes,7,opt,name=sint32,oneof"`
}

type FieldRules_Sint64

type FieldRules_Sint64 struct {
	Sint64 *SInt64Rules `protobuf:"bytes,8,opt,name=sint64,oneof"`
}

type FieldRules_String_

type FieldRules_String_ struct {
	String_ *StringRules `protobuf:"bytes,14,opt,name=string,oneof"`
}

type FieldRules_Timestamp

type FieldRules_Timestamp struct {
	Timestamp *TimestampRules `protobuf:"bytes,22,opt,name=timestamp,oneof"`
}

type FieldRules_Uint32

type FieldRules_Uint32 struct {
	Uint32 *UInt32Rules `protobuf:"bytes,5,opt,name=uint32,oneof"`
}

type FieldRules_Uint64

type FieldRules_Uint64 struct {
	Uint64 *UInt64Rules `protobuf:"bytes,6,opt,name=uint64,oneof"`
}

type Fixed32Rules

type Fixed32Rules struct {
	// Const specifies that this field must be exactly the specified value
	Const *uint32 `protobuf:"fixed32,1,opt,name=const" json:"const,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// exclusive
	Lt *uint32 `protobuf:"fixed32,2,opt,name=lt" json:"lt,omitempty"`
	// Lte specifies that this field must be less than or equal to the
	// specified value, inclusive
	Lte *uint32 `protobuf:"fixed32,3,opt,name=lte" json:"lte,omitempty"`
	// Gt specifies that this field must be greater than the specified value,
	// exclusive. If the value of Gt is larger than a specified Lt or Lte, the
	// range is reversed.
	Gt *uint32 `protobuf:"fixed32,4,opt,name=gt" json:"gt,omitempty"`
	// Gte specifies that this field must be greater than or equal to the
	// specified value, inclusive. If the value of Gte is larger than a
	// specified Lt or Lte, the range is reversed.
	Gte *uint32 `protobuf:"fixed32,5,opt,name=gte" json:"gte,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []uint32 `protobuf:"fixed32,6,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn                []uint32 `protobuf:"fixed32,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Fixed32Rules describes the constraints applied to `fixed32` values

func (*Fixed32Rules) Descriptor

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

func (*Fixed32Rules) GetConst

func (m *Fixed32Rules) GetConst() uint32

func (*Fixed32Rules) GetGt

func (m *Fixed32Rules) GetGt() uint32

func (*Fixed32Rules) GetGte

func (m *Fixed32Rules) GetGte() uint32

func (*Fixed32Rules) GetIn

func (m *Fixed32Rules) GetIn() []uint32

func (*Fixed32Rules) GetLt

func (m *Fixed32Rules) GetLt() uint32

func (*Fixed32Rules) GetLte

func (m *Fixed32Rules) GetLte() uint32

func (*Fixed32Rules) GetNotIn

func (m *Fixed32Rules) GetNotIn() []uint32

func (*Fixed32Rules) ProtoMessage

func (*Fixed32Rules) ProtoMessage()

func (*Fixed32Rules) Reset

func (m *Fixed32Rules) Reset()

func (*Fixed32Rules) String

func (m *Fixed32Rules) String() string

func (*Fixed32Rules) Validate

func (m *Fixed32Rules) Validate() error

Validate checks the field values on Fixed32Rules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Fixed32Rules) XXX_DiscardUnknown

func (m *Fixed32Rules) XXX_DiscardUnknown()

func (*Fixed32Rules) XXX_Marshal

func (m *Fixed32Rules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Fixed32Rules) XXX_Merge

func (m *Fixed32Rules) XXX_Merge(src proto.Message)

func (*Fixed32Rules) XXX_Size

func (m *Fixed32Rules) XXX_Size() int

func (*Fixed32Rules) XXX_Unmarshal

func (m *Fixed32Rules) XXX_Unmarshal(b []byte) error

type Fixed32RulesValidationError

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

Fixed32RulesValidationError is the validation error returned by Fixed32Rules.Validate if the designated constraints aren't met.

func (Fixed32RulesValidationError) Cause

Cause function returns cause value.

func (Fixed32RulesValidationError) Error

Error satisfies the builtin error interface

func (Fixed32RulesValidationError) ErrorName

func (e Fixed32RulesValidationError) ErrorName() string

ErrorName returns error name.

func (Fixed32RulesValidationError) Field

Field function returns field value.

func (Fixed32RulesValidationError) Key

Key function returns key value.

func (Fixed32RulesValidationError) Reason

Reason function returns reason value.

type Fixed64Rules

type Fixed64Rules struct {
	// Const specifies that this field must be exactly the specified value
	Const *uint64 `protobuf:"fixed64,1,opt,name=const" json:"const,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// exclusive
	Lt *uint64 `protobuf:"fixed64,2,opt,name=lt" json:"lt,omitempty"`
	// Lte specifies that this field must be less than or equal to the
	// specified value, inclusive
	Lte *uint64 `protobuf:"fixed64,3,opt,name=lte" json:"lte,omitempty"`
	// Gt specifies that this field must be greater than the specified value,
	// exclusive. If the value of Gt is larger than a specified Lt or Lte, the
	// range is reversed.
	Gt *uint64 `protobuf:"fixed64,4,opt,name=gt" json:"gt,omitempty"`
	// Gte specifies that this field must be greater than or equal to the
	// specified value, inclusive. If the value of Gte is larger than a
	// specified Lt or Lte, the range is reversed.
	Gte *uint64 `protobuf:"fixed64,5,opt,name=gte" json:"gte,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []uint64 `protobuf:"fixed64,6,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn                []uint64 `protobuf:"fixed64,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Fixed64Rules describes the constraints applied to `fixed64` values

func (*Fixed64Rules) Descriptor

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

func (*Fixed64Rules) GetConst

func (m *Fixed64Rules) GetConst() uint64

func (*Fixed64Rules) GetGt

func (m *Fixed64Rules) GetGt() uint64

func (*Fixed64Rules) GetGte

func (m *Fixed64Rules) GetGte() uint64

func (*Fixed64Rules) GetIn

func (m *Fixed64Rules) GetIn() []uint64

func (*Fixed64Rules) GetLt

func (m *Fixed64Rules) GetLt() uint64

func (*Fixed64Rules) GetLte

func (m *Fixed64Rules) GetLte() uint64

func (*Fixed64Rules) GetNotIn

func (m *Fixed64Rules) GetNotIn() []uint64

func (*Fixed64Rules) ProtoMessage

func (*Fixed64Rules) ProtoMessage()

func (*Fixed64Rules) Reset

func (m *Fixed64Rules) Reset()

func (*Fixed64Rules) String

func (m *Fixed64Rules) String() string

func (*Fixed64Rules) Validate

func (m *Fixed64Rules) Validate() error

Validate checks the field values on Fixed64Rules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Fixed64Rules) XXX_DiscardUnknown

func (m *Fixed64Rules) XXX_DiscardUnknown()

func (*Fixed64Rules) XXX_Marshal

func (m *Fixed64Rules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Fixed64Rules) XXX_Merge

func (m *Fixed64Rules) XXX_Merge(src proto.Message)

func (*Fixed64Rules) XXX_Size

func (m *Fixed64Rules) XXX_Size() int

func (*Fixed64Rules) XXX_Unmarshal

func (m *Fixed64Rules) XXX_Unmarshal(b []byte) error

type Fixed64RulesValidationError

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

Fixed64RulesValidationError is the validation error returned by Fixed64Rules.Validate if the designated constraints aren't met.

func (Fixed64RulesValidationError) Cause

Cause function returns cause value.

func (Fixed64RulesValidationError) Error

Error satisfies the builtin error interface

func (Fixed64RulesValidationError) ErrorName

func (e Fixed64RulesValidationError) ErrorName() string

ErrorName returns error name.

func (Fixed64RulesValidationError) Field

Field function returns field value.

func (Fixed64RulesValidationError) Key

Key function returns key value.

func (Fixed64RulesValidationError) Reason

Reason function returns reason value.

type FloatRules

type FloatRules struct {
	// Const specifies that this field must be exactly the specified value
	Const *float32 `protobuf:"fixed32,1,opt,name=const" json:"const,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// exclusive
	Lt *float32 `protobuf:"fixed32,2,opt,name=lt" json:"lt,omitempty"`
	// Lte specifies that this field must be less than or equal to the
	// specified value, inclusive
	Lte *float32 `protobuf:"fixed32,3,opt,name=lte" json:"lte,omitempty"`
	// Gt specifies that this field must be greater than the specified value,
	// exclusive. If the value of Gt is larger than a specified Lt or Lte, the
	// range is reversed.
	Gt *float32 `protobuf:"fixed32,4,opt,name=gt" json:"gt,omitempty"`
	// Gte specifies that this field must be greater than or equal to the
	// specified value, inclusive. If the value of Gte is larger than a
	// specified Lt or Lte, the range is reversed.
	Gte *float32 `protobuf:"fixed32,5,opt,name=gte" json:"gte,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []float32 `protobuf:"fixed32,6,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn                []float32 `protobuf:"fixed32,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

FloatRules describes the constraints applied to `float` values

func (*FloatRules) Descriptor

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

func (*FloatRules) GetConst

func (m *FloatRules) GetConst() float32

func (*FloatRules) GetGt

func (m *FloatRules) GetGt() float32

func (*FloatRules) GetGte

func (m *FloatRules) GetGte() float32

func (*FloatRules) GetIn

func (m *FloatRules) GetIn() []float32

func (*FloatRules) GetLt

func (m *FloatRules) GetLt() float32

func (*FloatRules) GetLte

func (m *FloatRules) GetLte() float32

func (*FloatRules) GetNotIn

func (m *FloatRules) GetNotIn() []float32

func (*FloatRules) ProtoMessage

func (*FloatRules) ProtoMessage()

func (*FloatRules) Reset

func (m *FloatRules) Reset()

func (*FloatRules) String

func (m *FloatRules) String() string

func (*FloatRules) Validate

func (m *FloatRules) Validate() error

Validate checks the field values on FloatRules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*FloatRules) XXX_DiscardUnknown

func (m *FloatRules) XXX_DiscardUnknown()

func (*FloatRules) XXX_Marshal

func (m *FloatRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FloatRules) XXX_Merge

func (m *FloatRules) XXX_Merge(src proto.Message)

func (*FloatRules) XXX_Size

func (m *FloatRules) XXX_Size() int

func (*FloatRules) XXX_Unmarshal

func (m *FloatRules) XXX_Unmarshal(b []byte) error

type FloatRulesValidationError

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

FloatRulesValidationError is the validation error returned by FloatRules.Validate if the designated constraints aren't met.

func (FloatRulesValidationError) Cause

func (e FloatRulesValidationError) Cause() error

Cause function returns cause value.

func (FloatRulesValidationError) Error

Error satisfies the builtin error interface

func (FloatRulesValidationError) ErrorName

func (e FloatRulesValidationError) ErrorName() string

ErrorName returns error name.

func (FloatRulesValidationError) Field

Field function returns field value.

func (FloatRulesValidationError) Key

Key function returns key value.

func (FloatRulesValidationError) Reason

func (e FloatRulesValidationError) Reason() string

Reason function returns reason value.

type Int32Rules

type Int32Rules struct {
	// Const specifies that this field must be exactly the specified value
	Const *int32 `protobuf:"varint,1,opt,name=const" json:"const,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// exclusive
	Lt *int32 `protobuf:"varint,2,opt,name=lt" json:"lt,omitempty"`
	// Lte specifies that this field must be less than or equal to the
	// specified value, inclusive
	Lte *int32 `protobuf:"varint,3,opt,name=lte" json:"lte,omitempty"`
	// Gt specifies that this field must be greater than the specified value,
	// exclusive. If the value of Gt is larger than a specified Lt or Lte, the
	// range is reversed.
	Gt *int32 `protobuf:"varint,4,opt,name=gt" json:"gt,omitempty"`
	// Gte specifies that this field must be greater than or equal to the
	// specified value, inclusive. If the value of Gte is larger than a
	// specified Lt or Lte, the range is reversed.
	Gte *int32 `protobuf:"varint,5,opt,name=gte" json:"gte,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []int32 `protobuf:"varint,6,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn                []int32  `protobuf:"varint,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Int32Rules describes the constraints applied to `int32` values

func (*Int32Rules) Descriptor

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

func (*Int32Rules) GetConst

func (m *Int32Rules) GetConst() int32

func (*Int32Rules) GetGt

func (m *Int32Rules) GetGt() int32

func (*Int32Rules) GetGte

func (m *Int32Rules) GetGte() int32

func (*Int32Rules) GetIn

func (m *Int32Rules) GetIn() []int32

func (*Int32Rules) GetLt

func (m *Int32Rules) GetLt() int32

func (*Int32Rules) GetLte

func (m *Int32Rules) GetLte() int32

func (*Int32Rules) GetNotIn

func (m *Int32Rules) GetNotIn() []int32

func (*Int32Rules) ProtoMessage

func (*Int32Rules) ProtoMessage()

func (*Int32Rules) Reset

func (m *Int32Rules) Reset()

func (*Int32Rules) String

func (m *Int32Rules) String() string

func (*Int32Rules) Validate

func (m *Int32Rules) Validate() error

Validate checks the field values on Int32Rules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Int32Rules) XXX_DiscardUnknown

func (m *Int32Rules) XXX_DiscardUnknown()

func (*Int32Rules) XXX_Marshal

func (m *Int32Rules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Int32Rules) XXX_Merge

func (m *Int32Rules) XXX_Merge(src proto.Message)

func (*Int32Rules) XXX_Size

func (m *Int32Rules) XXX_Size() int

func (*Int32Rules) XXX_Unmarshal

func (m *Int32Rules) XXX_Unmarshal(b []byte) error

type Int32RulesValidationError

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

Int32RulesValidationError is the validation error returned by Int32Rules.Validate if the designated constraints aren't met.

func (Int32RulesValidationError) Cause

func (e Int32RulesValidationError) Cause() error

Cause function returns cause value.

func (Int32RulesValidationError) Error

Error satisfies the builtin error interface

func (Int32RulesValidationError) ErrorName

func (e Int32RulesValidationError) ErrorName() string

ErrorName returns error name.

func (Int32RulesValidationError) Field

Field function returns field value.

func (Int32RulesValidationError) Key

Key function returns key value.

func (Int32RulesValidationError) Reason

func (e Int32RulesValidationError) Reason() string

Reason function returns reason value.

type Int64Rules

type Int64Rules struct {
	// Const specifies that this field must be exactly the specified value
	Const *int64 `protobuf:"varint,1,opt,name=const" json:"const,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// exclusive
	Lt *int64 `protobuf:"varint,2,opt,name=lt" json:"lt,omitempty"`
	// Lte specifies that this field must be less than or equal to the
	// specified value, inclusive
	Lte *int64 `protobuf:"varint,3,opt,name=lte" json:"lte,omitempty"`
	// Gt specifies that this field must be greater than the specified value,
	// exclusive. If the value of Gt is larger than a specified Lt or Lte, the
	// range is reversed.
	Gt *int64 `protobuf:"varint,4,opt,name=gt" json:"gt,omitempty"`
	// Gte specifies that this field must be greater than or equal to the
	// specified value, inclusive. If the value of Gte is larger than a
	// specified Lt or Lte, the range is reversed.
	Gte *int64 `protobuf:"varint,5,opt,name=gte" json:"gte,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []int64 `protobuf:"varint,6,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn                []int64  `protobuf:"varint,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Int64Rules describes the constraints applied to `int64` values

func (*Int64Rules) Descriptor

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

func (*Int64Rules) GetConst

func (m *Int64Rules) GetConst() int64

func (*Int64Rules) GetGt

func (m *Int64Rules) GetGt() int64

func (*Int64Rules) GetGte

func (m *Int64Rules) GetGte() int64

func (*Int64Rules) GetIn

func (m *Int64Rules) GetIn() []int64

func (*Int64Rules) GetLt

func (m *Int64Rules) GetLt() int64

func (*Int64Rules) GetLte

func (m *Int64Rules) GetLte() int64

func (*Int64Rules) GetNotIn

func (m *Int64Rules) GetNotIn() []int64

func (*Int64Rules) ProtoMessage

func (*Int64Rules) ProtoMessage()

func (*Int64Rules) Reset

func (m *Int64Rules) Reset()

func (*Int64Rules) String

func (m *Int64Rules) String() string

func (*Int64Rules) Validate

func (m *Int64Rules) Validate() error

Validate checks the field values on Int64Rules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Int64Rules) XXX_DiscardUnknown

func (m *Int64Rules) XXX_DiscardUnknown()

func (*Int64Rules) XXX_Marshal

func (m *Int64Rules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Int64Rules) XXX_Merge

func (m *Int64Rules) XXX_Merge(src proto.Message)

func (*Int64Rules) XXX_Size

func (m *Int64Rules) XXX_Size() int

func (*Int64Rules) XXX_Unmarshal

func (m *Int64Rules) XXX_Unmarshal(b []byte) error

type Int64RulesValidationError

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

Int64RulesValidationError is the validation error returned by Int64Rules.Validate if the designated constraints aren't met.

func (Int64RulesValidationError) Cause

func (e Int64RulesValidationError) Cause() error

Cause function returns cause value.

func (Int64RulesValidationError) Error

Error satisfies the builtin error interface

func (Int64RulesValidationError) ErrorName

func (e Int64RulesValidationError) ErrorName() string

ErrorName returns error name.

func (Int64RulesValidationError) Field

Field function returns field value.

func (Int64RulesValidationError) Key

Key function returns key value.

func (Int64RulesValidationError) Reason

func (e Int64RulesValidationError) Reason() string

Reason function returns reason value.

type KnownRegex

type KnownRegex int32

WellKnownRegex contain some well-known patterns.

const (
	KnownRegex_UNKNOWN KnownRegex = 0
	// HTTP header name as defined by RFC 7230.
	KnownRegex_HTTP_HEADER_NAME KnownRegex = 1
	// HTTP header value as defined by RFC 7230.
	KnownRegex_HTTP_HEADER_VALUE KnownRegex = 2
)

func (KnownRegex) Enum

func (x KnownRegex) Enum() *KnownRegex

func (KnownRegex) EnumDescriptor

func (KnownRegex) EnumDescriptor() ([]byte, []int)

func (KnownRegex) String

func (x KnownRegex) String() string

func (*KnownRegex) UnmarshalJSON

func (x *KnownRegex) UnmarshalJSON(data []byte) error

type MapRules

type MapRules struct {
	// MinPairs specifies that this field must have the specified number of
	// KVs at a minimum
	MinPairs *uint64 `protobuf:"varint,1,opt,name=min_pairs,json=minPairs" json:"min_pairs,omitempty"`
	// MaxPairs specifies that this field must have the specified number of
	// KVs at a maximum
	MaxPairs *uint64 `protobuf:"varint,2,opt,name=max_pairs,json=maxPairs" json:"max_pairs,omitempty"`
	// NoSparse specifies values in this field cannot be unset. This only
	// applies to map's with message value types.
	NoSparse *bool `protobuf:"varint,3,opt,name=no_sparse,json=noSparse" json:"no_sparse,omitempty"`
	// Keys specifies the constraints to be applied to each key in the field.
	Keys *FieldRules `protobuf:"bytes,4,opt,name=keys" json:"keys,omitempty"`
	// Values specifies the constraints to be applied to the value of each key
	// in the field. Message values will still have their validations evaluated
	// unless skip is specified here.
	Values               *FieldRules `protobuf:"bytes,5,opt,name=values" json:"values,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

MapRules describe the constraints applied to `map` values

func (*MapRules) Descriptor

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

func (*MapRules) GetKeys

func (m *MapRules) GetKeys() *FieldRules

func (*MapRules) GetMaxPairs

func (m *MapRules) GetMaxPairs() uint64

func (*MapRules) GetMinPairs

func (m *MapRules) GetMinPairs() uint64

func (*MapRules) GetNoSparse

func (m *MapRules) GetNoSparse() bool

func (*MapRules) GetValues

func (m *MapRules) GetValues() *FieldRules

func (*MapRules) ProtoMessage

func (*MapRules) ProtoMessage()

func (*MapRules) Reset

func (m *MapRules) Reset()

func (*MapRules) String

func (m *MapRules) String() string

func (*MapRules) Validate

func (m *MapRules) Validate() error

Validate checks the field values on MapRules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*MapRules) XXX_DiscardUnknown

func (m *MapRules) XXX_DiscardUnknown()

func (*MapRules) XXX_Marshal

func (m *MapRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MapRules) XXX_Merge

func (m *MapRules) XXX_Merge(src proto.Message)

func (*MapRules) XXX_Size

func (m *MapRules) XXX_Size() int

func (*MapRules) XXX_Unmarshal

func (m *MapRules) XXX_Unmarshal(b []byte) error

type MapRulesValidationError

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

MapRulesValidationError is the validation error returned by MapRules.Validate if the designated constraints aren't met.

func (MapRulesValidationError) Cause

func (e MapRulesValidationError) Cause() error

Cause function returns cause value.

func (MapRulesValidationError) Error

func (e MapRulesValidationError) Error() string

Error satisfies the builtin error interface

func (MapRulesValidationError) ErrorName

func (e MapRulesValidationError) ErrorName() string

ErrorName returns error name.

func (MapRulesValidationError) Field

func (e MapRulesValidationError) Field() string

Field function returns field value.

func (MapRulesValidationError) Key

func (e MapRulesValidationError) Key() bool

Key function returns key value.

func (MapRulesValidationError) Reason

func (e MapRulesValidationError) Reason() string

Reason function returns reason value.

type MessageRules

type MessageRules struct {
	// Skip specifies that the validation rules of this field should not be
	// evaluated
	Skip *bool `protobuf:"varint,1,opt,name=skip" json:"skip,omitempty"`
	// Required specifies that this field must be set
	Required             *bool    `protobuf:"varint,2,opt,name=required" json:"required,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

MessageRules describe the constraints applied to embedded message values. For message-type fields, validation is performed recursively.

func (*MessageRules) Descriptor

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

func (*MessageRules) GetRequired

func (m *MessageRules) GetRequired() bool

func (*MessageRules) GetSkip

func (m *MessageRules) GetSkip() bool

func (*MessageRules) ProtoMessage

func (*MessageRules) ProtoMessage()

func (*MessageRules) Reset

func (m *MessageRules) Reset()

func (*MessageRules) String

func (m *MessageRules) String() string

func (*MessageRules) Validate

func (m *MessageRules) Validate() error

Validate checks the field values on MessageRules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*MessageRules) XXX_DiscardUnknown

func (m *MessageRules) XXX_DiscardUnknown()

func (*MessageRules) XXX_Marshal

func (m *MessageRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageRules) XXX_Merge

func (m *MessageRules) XXX_Merge(src proto.Message)

func (*MessageRules) XXX_Size

func (m *MessageRules) XXX_Size() int

func (*MessageRules) XXX_Unmarshal

func (m *MessageRules) XXX_Unmarshal(b []byte) error

type MessageRulesValidationError

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

MessageRulesValidationError is the validation error returned by MessageRules.Validate if the designated constraints aren't met.

func (MessageRulesValidationError) Cause

Cause function returns cause value.

func (MessageRulesValidationError) Error

Error satisfies the builtin error interface

func (MessageRulesValidationError) ErrorName

func (e MessageRulesValidationError) ErrorName() string

ErrorName returns error name.

func (MessageRulesValidationError) Field

Field function returns field value.

func (MessageRulesValidationError) Key

Key function returns key value.

func (MessageRulesValidationError) Reason

Reason function returns reason value.

type RepeatedRules

type RepeatedRules struct {
	// MinItems specifies that this field must have the specified number of
	// items at a minimum
	MinItems *uint64 `protobuf:"varint,1,opt,name=min_items,json=minItems" json:"min_items,omitempty"`
	// MaxItems specifies that this field must have the specified number of
	// items at a maximum
	MaxItems *uint64 `protobuf:"varint,2,opt,name=max_items,json=maxItems" json:"max_items,omitempty"`
	// Unique specifies that all elements in this field must be unique. This
	// contraint is only applicable to scalar and enum types (messages are not
	// supported).
	Unique *bool `protobuf:"varint,3,opt,name=unique" json:"unique,omitempty"`
	// Items specifies the contraints to be applied to each item in the field.
	// Repeated message fields will still execute validation against each item
	// unless skip is specified here.
	Items                *FieldRules `protobuf:"bytes,4,opt,name=items" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

RepeatedRules describe the constraints applied to `repeated` values

func (*RepeatedRules) Descriptor

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

func (*RepeatedRules) GetItems

func (m *RepeatedRules) GetItems() *FieldRules

func (*RepeatedRules) GetMaxItems

func (m *RepeatedRules) GetMaxItems() uint64

func (*RepeatedRules) GetMinItems

func (m *RepeatedRules) GetMinItems() uint64

func (*RepeatedRules) GetUnique

func (m *RepeatedRules) GetUnique() bool

func (*RepeatedRules) ProtoMessage

func (*RepeatedRules) ProtoMessage()

func (*RepeatedRules) Reset

func (m *RepeatedRules) Reset()

func (*RepeatedRules) String

func (m *RepeatedRules) String() string

func (*RepeatedRules) Validate

func (m *RepeatedRules) Validate() error

Validate checks the field values on RepeatedRules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*RepeatedRules) XXX_DiscardUnknown

func (m *RepeatedRules) XXX_DiscardUnknown()

func (*RepeatedRules) XXX_Marshal

func (m *RepeatedRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RepeatedRules) XXX_Merge

func (m *RepeatedRules) XXX_Merge(src proto.Message)

func (*RepeatedRules) XXX_Size

func (m *RepeatedRules) XXX_Size() int

func (*RepeatedRules) XXX_Unmarshal

func (m *RepeatedRules) XXX_Unmarshal(b []byte) error

type RepeatedRulesValidationError

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

RepeatedRulesValidationError is the validation error returned by RepeatedRules.Validate if the designated constraints aren't met.

func (RepeatedRulesValidationError) Cause

Cause function returns cause value.

func (RepeatedRulesValidationError) Error

Error satisfies the builtin error interface

func (RepeatedRulesValidationError) ErrorName

func (e RepeatedRulesValidationError) ErrorName() string

ErrorName returns error name.

func (RepeatedRulesValidationError) Field

Field function returns field value.

func (RepeatedRulesValidationError) Key

Key function returns key value.

func (RepeatedRulesValidationError) Reason

Reason function returns reason value.

type SFixed32Rules

type SFixed32Rules struct {
	// Const specifies that this field must be exactly the specified value
	Const *int32 `protobuf:"fixed32,1,opt,name=const" json:"const,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// exclusive
	Lt *int32 `protobuf:"fixed32,2,opt,name=lt" json:"lt,omitempty"`
	// Lte specifies that this field must be less than or equal to the
	// specified value, inclusive
	Lte *int32 `protobuf:"fixed32,3,opt,name=lte" json:"lte,omitempty"`
	// Gt specifies that this field must be greater than the specified value,
	// exclusive. If the value of Gt is larger than a specified Lt or Lte, the
	// range is reversed.
	Gt *int32 `protobuf:"fixed32,4,opt,name=gt" json:"gt,omitempty"`
	// Gte specifies that this field must be greater than or equal to the
	// specified value, inclusive. If the value of Gte is larger than a
	// specified Lt or Lte, the range is reversed.
	Gte *int32 `protobuf:"fixed32,5,opt,name=gte" json:"gte,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []int32 `protobuf:"fixed32,6,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn                []int32  `protobuf:"fixed32,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

SFixed32Rules describes the constraints applied to `sfixed32` values

func (*SFixed32Rules) Descriptor

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

func (*SFixed32Rules) GetConst

func (m *SFixed32Rules) GetConst() int32

func (*SFixed32Rules) GetGt

func (m *SFixed32Rules) GetGt() int32

func (*SFixed32Rules) GetGte

func (m *SFixed32Rules) GetGte() int32

func (*SFixed32Rules) GetIn

func (m *SFixed32Rules) GetIn() []int32

func (*SFixed32Rules) GetLt

func (m *SFixed32Rules) GetLt() int32

func (*SFixed32Rules) GetLte

func (m *SFixed32Rules) GetLte() int32

func (*SFixed32Rules) GetNotIn

func (m *SFixed32Rules) GetNotIn() []int32

func (*SFixed32Rules) ProtoMessage

func (*SFixed32Rules) ProtoMessage()

func (*SFixed32Rules) Reset

func (m *SFixed32Rules) Reset()

func (*SFixed32Rules) String

func (m *SFixed32Rules) String() string

func (*SFixed32Rules) Validate

func (m *SFixed32Rules) Validate() error

Validate checks the field values on SFixed32Rules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*SFixed32Rules) XXX_DiscardUnknown

func (m *SFixed32Rules) XXX_DiscardUnknown()

func (*SFixed32Rules) XXX_Marshal

func (m *SFixed32Rules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SFixed32Rules) XXX_Merge

func (m *SFixed32Rules) XXX_Merge(src proto.Message)

func (*SFixed32Rules) XXX_Size

func (m *SFixed32Rules) XXX_Size() int

func (*SFixed32Rules) XXX_Unmarshal

func (m *SFixed32Rules) XXX_Unmarshal(b []byte) error

type SFixed32RulesValidationError

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

SFixed32RulesValidationError is the validation error returned by SFixed32Rules.Validate if the designated constraints aren't met.

func (SFixed32RulesValidationError) Cause

Cause function returns cause value.

func (SFixed32RulesValidationError) Error

Error satisfies the builtin error interface

func (SFixed32RulesValidationError) ErrorName

func (e SFixed32RulesValidationError) ErrorName() string

ErrorName returns error name.

func (SFixed32RulesValidationError) Field

Field function returns field value.

func (SFixed32RulesValidationError) Key

Key function returns key value.

func (SFixed32RulesValidationError) Reason

Reason function returns reason value.

type SFixed64Rules

type SFixed64Rules struct {
	// Const specifies that this field must be exactly the specified value
	Const *int64 `protobuf:"fixed64,1,opt,name=const" json:"const,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// exclusive
	Lt *int64 `protobuf:"fixed64,2,opt,name=lt" json:"lt,omitempty"`
	// Lte specifies that this field must be less than or equal to the
	// specified value, inclusive
	Lte *int64 `protobuf:"fixed64,3,opt,name=lte" json:"lte,omitempty"`
	// Gt specifies that this field must be greater than the specified value,
	// exclusive. If the value of Gt is larger than a specified Lt or Lte, the
	// range is reversed.
	Gt *int64 `protobuf:"fixed64,4,opt,name=gt" json:"gt,omitempty"`
	// Gte specifies that this field must be greater than or equal to the
	// specified value, inclusive. If the value of Gte is larger than a
	// specified Lt or Lte, the range is reversed.
	Gte *int64 `protobuf:"fixed64,5,opt,name=gte" json:"gte,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []int64 `protobuf:"fixed64,6,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn                []int64  `protobuf:"fixed64,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

SFixed64Rules describes the constraints applied to `sfixed64` values

func (*SFixed64Rules) Descriptor

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

func (*SFixed64Rules) GetConst

func (m *SFixed64Rules) GetConst() int64

func (*SFixed64Rules) GetGt

func (m *SFixed64Rules) GetGt() int64

func (*SFixed64Rules) GetGte

func (m *SFixed64Rules) GetGte() int64

func (*SFixed64Rules) GetIn

func (m *SFixed64Rules) GetIn() []int64

func (*SFixed64Rules) GetLt

func (m *SFixed64Rules) GetLt() int64

func (*SFixed64Rules) GetLte

func (m *SFixed64Rules) GetLte() int64

func (*SFixed64Rules) GetNotIn

func (m *SFixed64Rules) GetNotIn() []int64

func (*SFixed64Rules) ProtoMessage

func (*SFixed64Rules) ProtoMessage()

func (*SFixed64Rules) Reset

func (m *SFixed64Rules) Reset()

func (*SFixed64Rules) String

func (m *SFixed64Rules) String() string

func (*SFixed64Rules) Validate

func (m *SFixed64Rules) Validate() error

Validate checks the field values on SFixed64Rules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*SFixed64Rules) XXX_DiscardUnknown

func (m *SFixed64Rules) XXX_DiscardUnknown()

func (*SFixed64Rules) XXX_Marshal

func (m *SFixed64Rules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SFixed64Rules) XXX_Merge

func (m *SFixed64Rules) XXX_Merge(src proto.Message)

func (*SFixed64Rules) XXX_Size

func (m *SFixed64Rules) XXX_Size() int

func (*SFixed64Rules) XXX_Unmarshal

func (m *SFixed64Rules) XXX_Unmarshal(b []byte) error

type SFixed64RulesValidationError

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

SFixed64RulesValidationError is the validation error returned by SFixed64Rules.Validate if the designated constraints aren't met.

func (SFixed64RulesValidationError) Cause

Cause function returns cause value.

func (SFixed64RulesValidationError) Error

Error satisfies the builtin error interface

func (SFixed64RulesValidationError) ErrorName

func (e SFixed64RulesValidationError) ErrorName() string

ErrorName returns error name.

func (SFixed64RulesValidationError) Field

Field function returns field value.

func (SFixed64RulesValidationError) Key

Key function returns key value.

func (SFixed64RulesValidationError) Reason

Reason function returns reason value.

type SInt32Rules

type SInt32Rules struct {
	// Const specifies that this field must be exactly the specified value
	Const *int32 `protobuf:"zigzag32,1,opt,name=const" json:"const,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// exclusive
	Lt *int32 `protobuf:"zigzag32,2,opt,name=lt" json:"lt,omitempty"`
	// Lte specifies that this field must be less than or equal to the
	// specified value, inclusive
	Lte *int32 `protobuf:"zigzag32,3,opt,name=lte" json:"lte,omitempty"`
	// Gt specifies that this field must be greater than the specified value,
	// exclusive. If the value of Gt is larger than a specified Lt or Lte, the
	// range is reversed.
	Gt *int32 `protobuf:"zigzag32,4,opt,name=gt" json:"gt,omitempty"`
	// Gte specifies that this field must be greater than or equal to the
	// specified value, inclusive. If the value of Gte is larger than a
	// specified Lt or Lte, the range is reversed.
	Gte *int32 `protobuf:"zigzag32,5,opt,name=gte" json:"gte,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []int32 `protobuf:"zigzag32,6,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn                []int32  `protobuf:"zigzag32,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

SInt32Rules describes the constraints applied to `sint32` values

func (*SInt32Rules) Descriptor

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

func (*SInt32Rules) GetConst

func (m *SInt32Rules) GetConst() int32

func (*SInt32Rules) GetGt

func (m *SInt32Rules) GetGt() int32

func (*SInt32Rules) GetGte

func (m *SInt32Rules) GetGte() int32

func (*SInt32Rules) GetIn

func (m *SInt32Rules) GetIn() []int32

func (*SInt32Rules) GetLt

func (m *SInt32Rules) GetLt() int32

func (*SInt32Rules) GetLte

func (m *SInt32Rules) GetLte() int32

func (*SInt32Rules) GetNotIn

func (m *SInt32Rules) GetNotIn() []int32

func (*SInt32Rules) ProtoMessage

func (*SInt32Rules) ProtoMessage()

func (*SInt32Rules) Reset

func (m *SInt32Rules) Reset()

func (*SInt32Rules) String

func (m *SInt32Rules) String() string

func (*SInt32Rules) Validate

func (m *SInt32Rules) Validate() error

Validate checks the field values on SInt32Rules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*SInt32Rules) XXX_DiscardUnknown

func (m *SInt32Rules) XXX_DiscardUnknown()

func (*SInt32Rules) XXX_Marshal

func (m *SInt32Rules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SInt32Rules) XXX_Merge

func (m *SInt32Rules) XXX_Merge(src proto.Message)

func (*SInt32Rules) XXX_Size

func (m *SInt32Rules) XXX_Size() int

func (*SInt32Rules) XXX_Unmarshal

func (m *SInt32Rules) XXX_Unmarshal(b []byte) error

type SInt32RulesValidationError

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

SInt32RulesValidationError is the validation error returned by SInt32Rules.Validate if the designated constraints aren't met.

func (SInt32RulesValidationError) Cause

Cause function returns cause value.

func (SInt32RulesValidationError) Error

Error satisfies the builtin error interface

func (SInt32RulesValidationError) ErrorName

func (e SInt32RulesValidationError) ErrorName() string

ErrorName returns error name.

func (SInt32RulesValidationError) Field

Field function returns field value.

func (SInt32RulesValidationError) Key

Key function returns key value.

func (SInt32RulesValidationError) Reason

Reason function returns reason value.

type SInt64Rules

type SInt64Rules struct {
	// Const specifies that this field must be exactly the specified value
	Const *int64 `protobuf:"zigzag64,1,opt,name=const" json:"const,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// exclusive
	Lt *int64 `protobuf:"zigzag64,2,opt,name=lt" json:"lt,omitempty"`
	// Lte specifies that this field must be less than or equal to the
	// specified value, inclusive
	Lte *int64 `protobuf:"zigzag64,3,opt,name=lte" json:"lte,omitempty"`
	// Gt specifies that this field must be greater than the specified value,
	// exclusive. If the value of Gt is larger than a specified Lt or Lte, the
	// range is reversed.
	Gt *int64 `protobuf:"zigzag64,4,opt,name=gt" json:"gt,omitempty"`
	// Gte specifies that this field must be greater than or equal to the
	// specified value, inclusive. If the value of Gte is larger than a
	// specified Lt or Lte, the range is reversed.
	Gte *int64 `protobuf:"zigzag64,5,opt,name=gte" json:"gte,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []int64 `protobuf:"zigzag64,6,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn                []int64  `protobuf:"zigzag64,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

SInt64Rules describes the constraints applied to `sint64` values

func (*SInt64Rules) Descriptor

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

func (*SInt64Rules) GetConst

func (m *SInt64Rules) GetConst() int64

func (*SInt64Rules) GetGt

func (m *SInt64Rules) GetGt() int64

func (*SInt64Rules) GetGte

func (m *SInt64Rules) GetGte() int64

func (*SInt64Rules) GetIn

func (m *SInt64Rules) GetIn() []int64

func (*SInt64Rules) GetLt

func (m *SInt64Rules) GetLt() int64

func (*SInt64Rules) GetLte

func (m *SInt64Rules) GetLte() int64

func (*SInt64Rules) GetNotIn

func (m *SInt64Rules) GetNotIn() []int64

func (*SInt64Rules) ProtoMessage

func (*SInt64Rules) ProtoMessage()

func (*SInt64Rules) Reset

func (m *SInt64Rules) Reset()

func (*SInt64Rules) String

func (m *SInt64Rules) String() string

func (*SInt64Rules) Validate

func (m *SInt64Rules) Validate() error

Validate checks the field values on SInt64Rules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*SInt64Rules) XXX_DiscardUnknown

func (m *SInt64Rules) XXX_DiscardUnknown()

func (*SInt64Rules) XXX_Marshal

func (m *SInt64Rules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SInt64Rules) XXX_Merge

func (m *SInt64Rules) XXX_Merge(src proto.Message)

func (*SInt64Rules) XXX_Size

func (m *SInt64Rules) XXX_Size() int

func (*SInt64Rules) XXX_Unmarshal

func (m *SInt64Rules) XXX_Unmarshal(b []byte) error

type SInt64RulesValidationError

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

SInt64RulesValidationError is the validation error returned by SInt64Rules.Validate if the designated constraints aren't met.

func (SInt64RulesValidationError) Cause

Cause function returns cause value.

func (SInt64RulesValidationError) Error

Error satisfies the builtin error interface

func (SInt64RulesValidationError) ErrorName

func (e SInt64RulesValidationError) ErrorName() string

ErrorName returns error name.

func (SInt64RulesValidationError) Field

Field function returns field value.

func (SInt64RulesValidationError) Key

Key function returns key value.

func (SInt64RulesValidationError) Reason

Reason function returns reason value.

type StringRules

type StringRules struct {
	// Const specifies that this field must be exactly the specified value
	Const *string `protobuf:"bytes,1,opt,name=const" json:"const,omitempty"`
	// Len specifies that this field must be the specified number of
	// characters (Unicode code points). Note that the number of
	// characters may differ from the number of bytes in the string.
	Len *uint64 `protobuf:"varint,19,opt,name=len" json:"len,omitempty"`
	// MinLen specifies that this field must be the specified number of
	// characters (Unicode code points) at a minimum. Note that the number of
	// characters may differ from the number of bytes in the string.
	MinLen *uint64 `protobuf:"varint,2,opt,name=min_len,json=minLen" json:"min_len,omitempty"`
	// MaxLen specifies that this field must be the specified number of
	// characters (Unicode code points) at a maximum. Note that the number of
	// characters may differ from the number of bytes in the string.
	MaxLen *uint64 `protobuf:"varint,3,opt,name=max_len,json=maxLen" json:"max_len,omitempty"`
	// LenBytes specifies that this field must be the specified number of bytes
	// at a minimum
	LenBytes *uint64 `protobuf:"varint,20,opt,name=len_bytes,json=lenBytes" json:"len_bytes,omitempty"`
	// MinBytes specifies that this field must be the specified number of bytes
	// at a minimum
	MinBytes *uint64 `protobuf:"varint,4,opt,name=min_bytes,json=minBytes" json:"min_bytes,omitempty"`
	// MaxBytes specifies that this field must be the specified number of bytes
	// at a maximum
	MaxBytes *uint64 `protobuf:"varint,5,opt,name=max_bytes,json=maxBytes" json:"max_bytes,omitempty"`
	// Pattern specifes that this field must match against the specified
	// regular expression (RE2 syntax). The included expression should elide
	// any delimiters.
	Pattern *string `protobuf:"bytes,6,opt,name=pattern" json:"pattern,omitempty"`
	// Prefix specifies that this field must have the specified substring at
	// the beginning of the string.
	Prefix *string `protobuf:"bytes,7,opt,name=prefix" json:"prefix,omitempty"`
	// Suffix specifies that this field must have the specified substring at
	// the end of the string.
	Suffix *string `protobuf:"bytes,8,opt,name=suffix" json:"suffix,omitempty"`
	// Contains specifies that this field must have the specified substring
	// anywhere in the string.
	Contains *string `protobuf:"bytes,9,opt,name=contains" json:"contains,omitempty"`
	// NotContains specifies that this field cannot have the specified substring
	// anywhere in the string.
	NotContains *string `protobuf:"bytes,23,opt,name=not_contains,json=notContains" json:"not_contains,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []string `protobuf:"bytes,10,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn []string `protobuf:"bytes,11,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	// WellKnown rules provide advanced constraints against common string
	// patterns
	//
	// Types that are valid to be assigned to WellKnown:
	//	*StringRules_Email
	//	*StringRules_Hostname
	//	*StringRules_Ip
	//	*StringRules_Ipv4
	//	*StringRules_Ipv6
	//	*StringRules_Uri
	//	*StringRules_UriRef
	//	*StringRules_Address
	//	*StringRules_Uuid
	//	*StringRules_WellKnownRegex
	WellKnown isStringRules_WellKnown `protobuf_oneof:"well_known"`
	// This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
	// strict header validation.
	// By default, this is true, and HTTP header validations are RFC-compliant.
	// Setting to false will enable a looser validations that only disallows
	// \r\n\0 characters, which can be used to bypass header matching rules.
	Strict               *bool    `protobuf:"varint,25,opt,name=strict,def=1" json:"strict,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

StringRules describe the constraints applied to `string` values

func (*StringRules) Descriptor

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

func (*StringRules) GetAddress

func (m *StringRules) GetAddress() bool

func (*StringRules) GetConst

func (m *StringRules) GetConst() string

func (*StringRules) GetContains

func (m *StringRules) GetContains() string

func (*StringRules) GetEmail

func (m *StringRules) GetEmail() bool

func (*StringRules) GetHostname

func (m *StringRules) GetHostname() bool

func (*StringRules) GetIn

func (m *StringRules) GetIn() []string

func (*StringRules) GetIp

func (m *StringRules) GetIp() bool

func (*StringRules) GetIpv4

func (m *StringRules) GetIpv4() bool

func (*StringRules) GetIpv6

func (m *StringRules) GetIpv6() bool

func (*StringRules) GetLen

func (m *StringRules) GetLen() uint64

func (*StringRules) GetLenBytes

func (m *StringRules) GetLenBytes() uint64

func (*StringRules) GetMaxBytes

func (m *StringRules) GetMaxBytes() uint64

func (*StringRules) GetMaxLen

func (m *StringRules) GetMaxLen() uint64

func (*StringRules) GetMinBytes

func (m *StringRules) GetMinBytes() uint64

func (*StringRules) GetMinLen

func (m *StringRules) GetMinLen() uint64

func (*StringRules) GetNotContains

func (m *StringRules) GetNotContains() string

func (*StringRules) GetNotIn

func (m *StringRules) GetNotIn() []string

func (*StringRules) GetPattern

func (m *StringRules) GetPattern() string

func (*StringRules) GetPrefix

func (m *StringRules) GetPrefix() string

func (*StringRules) GetStrict

func (m *StringRules) GetStrict() bool

func (*StringRules) GetSuffix

func (m *StringRules) GetSuffix() string

func (*StringRules) GetUri

func (m *StringRules) GetUri() bool

func (*StringRules) GetUriRef

func (m *StringRules) GetUriRef() bool

func (*StringRules) GetUuid

func (m *StringRules) GetUuid() bool

func (*StringRules) GetWellKnown

func (m *StringRules) GetWellKnown() isStringRules_WellKnown

func (*StringRules) GetWellKnownRegex

func (m *StringRules) GetWellKnownRegex() KnownRegex

func (*StringRules) ProtoMessage

func (*StringRules) ProtoMessage()

func (*StringRules) Reset

func (m *StringRules) Reset()

func (*StringRules) String

func (m *StringRules) String() string

func (*StringRules) Validate

func (m *StringRules) Validate() error

Validate checks the field values on StringRules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*StringRules) XXX_DiscardUnknown

func (m *StringRules) XXX_DiscardUnknown()

func (*StringRules) XXX_Marshal

func (m *StringRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringRules) XXX_Merge

func (m *StringRules) XXX_Merge(src proto.Message)

func (*StringRules) XXX_OneofWrappers

func (*StringRules) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*StringRules) XXX_Size

func (m *StringRules) XXX_Size() int

func (*StringRules) XXX_Unmarshal

func (m *StringRules) XXX_Unmarshal(b []byte) error

type StringRulesValidationError

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

StringRulesValidationError is the validation error returned by StringRules.Validate if the designated constraints aren't met.

func (StringRulesValidationError) Cause

Cause function returns cause value.

func (StringRulesValidationError) Error

Error satisfies the builtin error interface

func (StringRulesValidationError) ErrorName

func (e StringRulesValidationError) ErrorName() string

ErrorName returns error name.

func (StringRulesValidationError) Field

Field function returns field value.

func (StringRulesValidationError) Key

Key function returns key value.

func (StringRulesValidationError) Reason

Reason function returns reason value.

type StringRules_Address

type StringRules_Address struct {
	Address bool `protobuf:"varint,21,opt,name=address,oneof"`
}

type StringRules_Email

type StringRules_Email struct {
	Email bool `protobuf:"varint,12,opt,name=email,oneof"`
}

type StringRules_Hostname

type StringRules_Hostname struct {
	Hostname bool `protobuf:"varint,13,opt,name=hostname,oneof"`
}

type StringRules_Ip

type StringRules_Ip struct {
	Ip bool `protobuf:"varint,14,opt,name=ip,oneof"`
}

type StringRules_Ipv4

type StringRules_Ipv4 struct {
	Ipv4 bool `protobuf:"varint,15,opt,name=ipv4,oneof"`
}

type StringRules_Ipv6

type StringRules_Ipv6 struct {
	Ipv6 bool `protobuf:"varint,16,opt,name=ipv6,oneof"`
}

type StringRules_Uri

type StringRules_Uri struct {
	Uri bool `protobuf:"varint,17,opt,name=uri,oneof"`
}

type StringRules_UriRef

type StringRules_UriRef struct {
	UriRef bool `protobuf:"varint,18,opt,name=uri_ref,json=uriRef,oneof"`
}

type StringRules_Uuid

type StringRules_Uuid struct {
	Uuid bool `protobuf:"varint,22,opt,name=uuid,oneof"`
}

type StringRules_WellKnownRegex

type StringRules_WellKnownRegex struct {
	WellKnownRegex KnownRegex `protobuf:"varint,24,opt,name=well_known_regex,json=wellKnownRegex,enum=appootb.validate.KnownRegex,oneof"`
}

type TimestampRules

type TimestampRules struct {
	// Required specifies that this field must be set
	Required *bool `protobuf:"varint,1,opt,name=required" json:"required,omitempty"`
	// Const specifies that this field must be exactly the specified value
	Const *timestamp.Timestamp `protobuf:"bytes,2,opt,name=const" json:"const,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// exclusive
	Lt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=lt" json:"lt,omitempty"`
	// Lte specifies that this field must be less than the specified value,
	// inclusive
	Lte *timestamp.Timestamp `protobuf:"bytes,4,opt,name=lte" json:"lte,omitempty"`
	// Gt specifies that this field must be greater than the specified value,
	// exclusive
	Gt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=gt" json:"gt,omitempty"`
	// Gte specifies that this field must be greater than the specified value,
	// inclusive
	Gte *timestamp.Timestamp `protobuf:"bytes,6,opt,name=gte" json:"gte,omitempty"`
	// LtNow specifies that this must be less than the current time. LtNow
	// can only be used with the Within rule.
	LtNow *bool `protobuf:"varint,7,opt,name=lt_now,json=ltNow" json:"lt_now,omitempty"`
	// GtNow specifies that this must be greater than the current time. GtNow
	// can only be used with the Within rule.
	GtNow *bool `protobuf:"varint,8,opt,name=gt_now,json=gtNow" json:"gt_now,omitempty"`
	// Within specifies that this field must be within this duration of the
	// current time. This constraint can be used alone or with the LtNow and
	// GtNow rules.
	Within               *duration.Duration `protobuf:"bytes,9,opt,name=within" json:"within,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known type

func (*TimestampRules) Descriptor

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

func (*TimestampRules) GetConst

func (m *TimestampRules) GetConst() *timestamp.Timestamp

func (*TimestampRules) GetGt

func (m *TimestampRules) GetGt() *timestamp.Timestamp

func (*TimestampRules) GetGtNow

func (m *TimestampRules) GetGtNow() bool

func (*TimestampRules) GetGte

func (m *TimestampRules) GetGte() *timestamp.Timestamp

func (*TimestampRules) GetLt

func (m *TimestampRules) GetLt() *timestamp.Timestamp

func (*TimestampRules) GetLtNow

func (m *TimestampRules) GetLtNow() bool

func (*TimestampRules) GetLte

func (m *TimestampRules) GetLte() *timestamp.Timestamp

func (*TimestampRules) GetRequired

func (m *TimestampRules) GetRequired() bool

func (*TimestampRules) GetWithin

func (m *TimestampRules) GetWithin() *duration.Duration

func (*TimestampRules) ProtoMessage

func (*TimestampRules) ProtoMessage()

func (*TimestampRules) Reset

func (m *TimestampRules) Reset()

func (*TimestampRules) String

func (m *TimestampRules) String() string

func (*TimestampRules) Validate

func (m *TimestampRules) Validate() error

Validate checks the field values on TimestampRules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*TimestampRules) XXX_DiscardUnknown

func (m *TimestampRules) XXX_DiscardUnknown()

func (*TimestampRules) XXX_Marshal

func (m *TimestampRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TimestampRules) XXX_Merge

func (m *TimestampRules) XXX_Merge(src proto.Message)

func (*TimestampRules) XXX_Size

func (m *TimestampRules) XXX_Size() int

func (*TimestampRules) XXX_Unmarshal

func (m *TimestampRules) XXX_Unmarshal(b []byte) error

type TimestampRulesValidationError

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

TimestampRulesValidationError is the validation error returned by TimestampRules.Validate if the designated constraints aren't met.

func (TimestampRulesValidationError) Cause

Cause function returns cause value.

func (TimestampRulesValidationError) Error

Error satisfies the builtin error interface

func (TimestampRulesValidationError) ErrorName

func (e TimestampRulesValidationError) ErrorName() string

ErrorName returns error name.

func (TimestampRulesValidationError) Field

Field function returns field value.

func (TimestampRulesValidationError) Key

Key function returns key value.

func (TimestampRulesValidationError) Reason

Reason function returns reason value.

type UInt32Rules

type UInt32Rules struct {
	// Const specifies that this field must be exactly the specified value
	Const *uint32 `protobuf:"varint,1,opt,name=const" json:"const,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// exclusive
	Lt *uint32 `protobuf:"varint,2,opt,name=lt" json:"lt,omitempty"`
	// Lte specifies that this field must be less than or equal to the
	// specified value, inclusive
	Lte *uint32 `protobuf:"varint,3,opt,name=lte" json:"lte,omitempty"`
	// Gt specifies that this field must be greater than the specified value,
	// exclusive. If the value of Gt is larger than a specified Lt or Lte, the
	// range is reversed.
	Gt *uint32 `protobuf:"varint,4,opt,name=gt" json:"gt,omitempty"`
	// Gte specifies that this field must be greater than or equal to the
	// specified value, inclusive. If the value of Gte is larger than a
	// specified Lt or Lte, the range is reversed.
	Gte *uint32 `protobuf:"varint,5,opt,name=gte" json:"gte,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []uint32 `protobuf:"varint,6,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn                []uint32 `protobuf:"varint,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

UInt32Rules describes the constraints applied to `uint32` values

func (*UInt32Rules) Descriptor

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

func (*UInt32Rules) GetConst

func (m *UInt32Rules) GetConst() uint32

func (*UInt32Rules) GetGt

func (m *UInt32Rules) GetGt() uint32

func (*UInt32Rules) GetGte

func (m *UInt32Rules) GetGte() uint32

func (*UInt32Rules) GetIn

func (m *UInt32Rules) GetIn() []uint32

func (*UInt32Rules) GetLt

func (m *UInt32Rules) GetLt() uint32

func (*UInt32Rules) GetLte

func (m *UInt32Rules) GetLte() uint32

func (*UInt32Rules) GetNotIn

func (m *UInt32Rules) GetNotIn() []uint32

func (*UInt32Rules) ProtoMessage

func (*UInt32Rules) ProtoMessage()

func (*UInt32Rules) Reset

func (m *UInt32Rules) Reset()

func (*UInt32Rules) String

func (m *UInt32Rules) String() string

func (*UInt32Rules) Validate

func (m *UInt32Rules) Validate() error

Validate checks the field values on UInt32Rules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*UInt32Rules) XXX_DiscardUnknown

func (m *UInt32Rules) XXX_DiscardUnknown()

func (*UInt32Rules) XXX_Marshal

func (m *UInt32Rules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UInt32Rules) XXX_Merge

func (m *UInt32Rules) XXX_Merge(src proto.Message)

func (*UInt32Rules) XXX_Size

func (m *UInt32Rules) XXX_Size() int

func (*UInt32Rules) XXX_Unmarshal

func (m *UInt32Rules) XXX_Unmarshal(b []byte) error

type UInt32RulesValidationError

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

UInt32RulesValidationError is the validation error returned by UInt32Rules.Validate if the designated constraints aren't met.

func (UInt32RulesValidationError) Cause

Cause function returns cause value.

func (UInt32RulesValidationError) Error

Error satisfies the builtin error interface

func (UInt32RulesValidationError) ErrorName

func (e UInt32RulesValidationError) ErrorName() string

ErrorName returns error name.

func (UInt32RulesValidationError) Field

Field function returns field value.

func (UInt32RulesValidationError) Key

Key function returns key value.

func (UInt32RulesValidationError) Reason

Reason function returns reason value.

type UInt64Rules

type UInt64Rules struct {
	// Const specifies that this field must be exactly the specified value
	Const *uint64 `protobuf:"varint,1,opt,name=const" json:"const,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// exclusive
	Lt *uint64 `protobuf:"varint,2,opt,name=lt" json:"lt,omitempty"`
	// Lte specifies that this field must be less than or equal to the
	// specified value, inclusive
	Lte *uint64 `protobuf:"varint,3,opt,name=lte" json:"lte,omitempty"`
	// Gt specifies that this field must be greater than the specified value,
	// exclusive. If the value of Gt is larger than a specified Lt or Lte, the
	// range is reversed.
	Gt *uint64 `protobuf:"varint,4,opt,name=gt" json:"gt,omitempty"`
	// Gte specifies that this field must be greater than or equal to the
	// specified value, inclusive. If the value of Gte is larger than a
	// specified Lt or Lte, the range is reversed.
	Gte *uint64 `protobuf:"varint,5,opt,name=gte" json:"gte,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []uint64 `protobuf:"varint,6,rep,name=in" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn                []uint64 `protobuf:"varint,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

UInt64Rules describes the constraints applied to `uint64` values

func (*UInt64Rules) Descriptor

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

func (*UInt64Rules) GetConst

func (m *UInt64Rules) GetConst() uint64

func (*UInt64Rules) GetGt

func (m *UInt64Rules) GetGt() uint64

func (*UInt64Rules) GetGte

func (m *UInt64Rules) GetGte() uint64

func (*UInt64Rules) GetIn

func (m *UInt64Rules) GetIn() []uint64

func (*UInt64Rules) GetLt

func (m *UInt64Rules) GetLt() uint64

func (*UInt64Rules) GetLte

func (m *UInt64Rules) GetLte() uint64

func (*UInt64Rules) GetNotIn

func (m *UInt64Rules) GetNotIn() []uint64

func (*UInt64Rules) ProtoMessage

func (*UInt64Rules) ProtoMessage()

func (*UInt64Rules) Reset

func (m *UInt64Rules) Reset()

func (*UInt64Rules) String

func (m *UInt64Rules) String() string

func (*UInt64Rules) Validate

func (m *UInt64Rules) Validate() error

Validate checks the field values on UInt64Rules with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*UInt64Rules) XXX_DiscardUnknown

func (m *UInt64Rules) XXX_DiscardUnknown()

func (*UInt64Rules) XXX_Marshal

func (m *UInt64Rules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UInt64Rules) XXX_Merge

func (m *UInt64Rules) XXX_Merge(src proto.Message)

func (*UInt64Rules) XXX_Size

func (m *UInt64Rules) XXX_Size() int

func (*UInt64Rules) XXX_Unmarshal

func (m *UInt64Rules) XXX_Unmarshal(b []byte) error

type UInt64RulesValidationError

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

UInt64RulesValidationError is the validation error returned by UInt64Rules.Validate if the designated constraints aren't met.

func (UInt64RulesValidationError) Cause

Cause function returns cause value.

func (UInt64RulesValidationError) Error

Error satisfies the builtin error interface

func (UInt64RulesValidationError) ErrorName

func (e UInt64RulesValidationError) ErrorName() string

ErrorName returns error name.

func (UInt64RulesValidationError) Field

Field function returns field value.

func (UInt64RulesValidationError) Key

Key function returns key value.

func (UInt64RulesValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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