validate

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var E_Disabled = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.MessageOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         919191,
	Name:          "validate.disabled",
	Tag:           "varint,919191,opt,name=disabled",
	Filename:      "validate/validate.proto",
}
View Source
var E_Required = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.OneofOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         919191,
	Name:          "validate.required",
	Tag:           "varint,919191,opt,name=required",
	Filename:      "validate/validate.proto",
}
View Source
var E_Rules = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.FieldOptions)(nil),
	ExtensionType: (*FieldRules)(nil),
	Field:         919191,
	Name:          "validate.rules",
	Tag:           "bytes,919191,opt,name=rules",
	Filename:      "validate/validate.proto",
}

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) XXX_DiscardUnknown added in v0.0.7

func (m *AnyRules) XXX_DiscardUnknown()

func (*AnyRules) XXX_Marshal added in v0.0.7

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

func (*AnyRules) XXX_Merge added in v0.0.7

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

func (*AnyRules) XXX_Size added in v0.0.7

func (m *AnyRules) XXX_Size() int

func (*AnyRules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *BoolRules) XXX_DiscardUnknown()

func (*BoolRules) XXX_Marshal added in v0.0.7

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

func (*BoolRules) XXX_Merge added in v0.0.7

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

func (*BoolRules) XXX_Size added in v0.0.7

func (m *BoolRules) XXX_Size() int

func (*BoolRules) XXX_Unmarshal added in v0.0.7

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

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 specifes 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 added in v0.0.7

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) XXX_DiscardUnknown added in v0.0.7

func (m *BytesRules) XXX_DiscardUnknown()

func (*BytesRules) XXX_Marshal added in v0.0.7

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

func (*BytesRules) XXX_Merge added in v0.0.7

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

func (*BytesRules) XXX_OneofFuncs

func (*BytesRules) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*BytesRules) XXX_Size added in v0.0.7

func (m *BytesRules) XXX_Size() int

func (*BytesRules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *DoubleRules) XXX_DiscardUnknown()

func (*DoubleRules) XXX_Marshal added in v0.0.7

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

func (*DoubleRules) XXX_Merge added in v0.0.7

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

func (*DoubleRules) XXX_Size added in v0.0.7

func (m *DoubleRules) XXX_Size() int

func (*DoubleRules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *DurationRules) XXX_DiscardUnknown()

func (*DurationRules) XXX_Marshal added in v0.0.7

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

func (*DurationRules) XXX_Merge added in v0.0.7

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

func (*DurationRules) XXX_Size added in v0.0.7

func (m *DurationRules) XXX_Size() int

func (*DurationRules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *EnumRules) XXX_DiscardUnknown()

func (*EnumRules) XXX_Marshal added in v0.0.7

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

func (*EnumRules) XXX_Merge added in v0.0.7

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

func (*EnumRules) XXX_Size added in v0.0.7

func (m *EnumRules) XXX_Size() int

func (*EnumRules) XXX_Unmarshal added in v0.0.7

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

type FieldRules

type FieldRules struct {
	// 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_Message
	//	*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) XXX_DiscardUnknown added in v0.0.7

func (m *FieldRules) XXX_DiscardUnknown()

func (*FieldRules) XXX_Marshal added in v0.0.7

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

func (*FieldRules) XXX_Merge added in v0.0.7

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

func (*FieldRules) XXX_OneofFuncs

func (*FieldRules) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*FieldRules) XXX_Size added in v0.0.7

func (m *FieldRules) XXX_Size() int

func (*FieldRules) XXX_Unmarshal added in v0.0.7

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

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_Message

type FieldRules_Message struct {
	Message *MessageRules `protobuf:"bytes,17,opt,name=message,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) XXX_DiscardUnknown added in v0.0.7

func (m *Fixed32Rules) XXX_DiscardUnknown()

func (*Fixed32Rules) XXX_Marshal added in v0.0.7

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

func (*Fixed32Rules) XXX_Merge added in v0.0.7

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

func (*Fixed32Rules) XXX_Size added in v0.0.7

func (m *Fixed32Rules) XXX_Size() int

func (*Fixed32Rules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *Fixed64Rules) XXX_DiscardUnknown()

func (*Fixed64Rules) XXX_Marshal added in v0.0.7

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

func (*Fixed64Rules) XXX_Merge added in v0.0.7

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

func (*Fixed64Rules) XXX_Size added in v0.0.7

func (m *Fixed64Rules) XXX_Size() int

func (*Fixed64Rules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *FloatRules) XXX_DiscardUnknown()

func (*FloatRules) XXX_Marshal added in v0.0.7

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

func (*FloatRules) XXX_Merge added in v0.0.7

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

func (*FloatRules) XXX_Size added in v0.0.7

func (m *FloatRules) XXX_Size() int

func (*FloatRules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *Int32Rules) XXX_DiscardUnknown()

func (*Int32Rules) XXX_Marshal added in v0.0.7

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

func (*Int32Rules) XXX_Merge added in v0.0.7

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

func (*Int32Rules) XXX_Size added in v0.0.7

func (m *Int32Rules) XXX_Size() int

func (*Int32Rules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *Int64Rules) XXX_DiscardUnknown()

func (*Int64Rules) XXX_Marshal added in v0.0.7

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

func (*Int64Rules) XXX_Merge added in v0.0.7

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

func (*Int64Rules) XXX_Size added in v0.0.7

func (m *Int64Rules) XXX_Size() int

func (*Int64Rules) XXX_Unmarshal added in v0.0.7

func (m *Int64Rules) XXX_Unmarshal(b []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) XXX_DiscardUnknown added in v0.0.7

func (m *MapRules) XXX_DiscardUnknown()

func (*MapRules) XXX_Marshal added in v0.0.7

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

func (*MapRules) XXX_Merge added in v0.0.7

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

func (*MapRules) XXX_Size added in v0.0.7

func (m *MapRules) XXX_Size() int

func (*MapRules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *MessageRules) XXX_DiscardUnknown()

func (*MessageRules) XXX_Marshal added in v0.0.7

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

func (*MessageRules) XXX_Merge added in v0.0.7

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

func (*MessageRules) XXX_Size added in v0.0.7

func (m *MessageRules) XXX_Size() int

func (*MessageRules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *RepeatedRules) XXX_DiscardUnknown()

func (*RepeatedRules) XXX_Marshal added in v0.0.7

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

func (*RepeatedRules) XXX_Merge added in v0.0.7

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

func (*RepeatedRules) XXX_Size added in v0.0.7

func (m *RepeatedRules) XXX_Size() int

func (*RepeatedRules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *SFixed32Rules) XXX_DiscardUnknown()

func (*SFixed32Rules) XXX_Marshal added in v0.0.7

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

func (*SFixed32Rules) XXX_Merge added in v0.0.7

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

func (*SFixed32Rules) XXX_Size added in v0.0.7

func (m *SFixed32Rules) XXX_Size() int

func (*SFixed32Rules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *SFixed64Rules) XXX_DiscardUnknown()

func (*SFixed64Rules) XXX_Marshal added in v0.0.7

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

func (*SFixed64Rules) XXX_Merge added in v0.0.7

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

func (*SFixed64Rules) XXX_Size added in v0.0.7

func (m *SFixed64Rules) XXX_Size() int

func (*SFixed64Rules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *SInt32Rules) XXX_DiscardUnknown()

func (*SInt32Rules) XXX_Marshal added in v0.0.7

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

func (*SInt32Rules) XXX_Merge added in v0.0.7

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

func (*SInt32Rules) XXX_Size added in v0.0.7

func (m *SInt32Rules) XXX_Size() int

func (*SInt32Rules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *SInt64Rules) XXX_DiscardUnknown()

func (*SInt64Rules) XXX_Marshal added in v0.0.7

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

func (*SInt64Rules) XXX_Merge added in v0.0.7

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

func (*SInt64Rules) XXX_Size added in v0.0.7

func (m *SInt64Rules) XXX_Size() int

func (*SInt64Rules) XXX_Unmarshal added in v0.0.7

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

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"`
	// 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
	WellKnown            isStringRules_WellKnown `protobuf_oneof:"well_known"`
	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 added in v0.1.0

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 added in v0.0.7

func (m *StringRules) GetLen() uint64

func (*StringRules) GetLenBytes added in v0.0.7

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) GetNotIn

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

func (*StringRules) GetPattern

func (m *StringRules) GetPattern() string

func (*StringRules) GetPrefix

func (m *StringRules) GetPrefix() string

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) GetWellKnown

func (m *StringRules) GetWellKnown() isStringRules_WellKnown

func (*StringRules) ProtoMessage

func (*StringRules) ProtoMessage()

func (*StringRules) Reset

func (m *StringRules) Reset()

func (*StringRules) String

func (m *StringRules) String() string

func (*StringRules) XXX_DiscardUnknown added in v0.0.7

func (m *StringRules) XXX_DiscardUnknown()

func (*StringRules) XXX_Marshal added in v0.0.7

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

func (*StringRules) XXX_Merge added in v0.0.7

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

func (*StringRules) XXX_OneofFuncs

func (*StringRules) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*StringRules) XXX_Size added in v0.0.7

func (m *StringRules) XXX_Size() int

func (*StringRules) XXX_Unmarshal added in v0.0.7

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

type StringRules_Address added in v0.1.0

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 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) XXX_DiscardUnknown added in v0.0.7

func (m *TimestampRules) XXX_DiscardUnknown()

func (*TimestampRules) XXX_Marshal added in v0.0.7

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

func (*TimestampRules) XXX_Merge added in v0.0.7

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

func (*TimestampRules) XXX_Size added in v0.0.7

func (m *TimestampRules) XXX_Size() int

func (*TimestampRules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *UInt32Rules) XXX_DiscardUnknown()

func (*UInt32Rules) XXX_Marshal added in v0.0.7

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

func (*UInt32Rules) XXX_Merge added in v0.0.7

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

func (*UInt32Rules) XXX_Size added in v0.0.7

func (m *UInt32Rules) XXX_Size() int

func (*UInt32Rules) XXX_Unmarshal added in v0.0.7

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

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) XXX_DiscardUnknown added in v0.0.7

func (m *UInt64Rules) XXX_DiscardUnknown()

func (*UInt64Rules) XXX_Marshal added in v0.0.7

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

func (*UInt64Rules) XXX_Merge added in v0.0.7

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

func (*UInt64Rules) XXX_Size added in v0.0.7

func (m *UInt64Rules) XXX_Size() int

func (*UInt64Rules) XXX_Unmarshal added in v0.0.7

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

Jump to

Keyboard shortcuts

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