validate

package
v0.0.0-...-1b23c14 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional validate.FieldValidator field_validator = 50000;
	E_FieldValidator = &file_validate_options_proto_extTypes[0]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var File_validate_options_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FieldValidator

type FieldValidator struct {

	// Used for nested message types, requires that the field must exists.
	MustExists *bool `protobuf:"varint,1,opt,name=must_exists,json=mustExists" json:"must_exists,omitempty"`
	// Used for string fields validate
	String_ *ValidateString `protobuf:"bytes,2,opt,name=string" json:"string,omitempty"`
	// Used for integer fields validate
	Integer *ValidateInteger `protobuf:"bytes,3,opt,name=integer" json:"integer,omitempty"`
	// Used for floating fields validate
	Floating *ValidateFloating `protobuf:"bytes,4,opt,name=floating" json:"floating,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldValidator) Descriptor deprecated

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

Deprecated: Use FieldValidator.ProtoReflect.Descriptor instead.

func (*FieldValidator) GetFloating

func (x *FieldValidator) GetFloating() *ValidateFloating

func (*FieldValidator) GetInteger

func (x *FieldValidator) GetInteger() *ValidateInteger

func (*FieldValidator) GetMustExists

func (x *FieldValidator) GetMustExists() bool

func (*FieldValidator) GetString_

func (x *FieldValidator) GetString_() *ValidateString

func (*FieldValidator) ProtoMessage

func (*FieldValidator) ProtoMessage()

func (*FieldValidator) ProtoReflect

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

func (*FieldValidator) Reset

func (x *FieldValidator) Reset()

func (*FieldValidator) String

func (x *FieldValidator) String() string

type ValidateError

type ValidateError struct {

	// Used for specifies a user-customizable public error code when validating.
	MainErrorCode *string `protobuf:"bytes,1,opt,name=main_error_code,json=mainErrorCode" json:"main_error_code,omitempty"`
	// Used for specifies a user-customizable private error code when validating.
	OtherErrorCode *string `protobuf:"bytes,2,opt,name=other_error_code,json=otherErrorCode" json:"other_error_code,omitempty"`
	// Used for specifies a user-customizable error msg when validating.
	ErrorMsg *string `protobuf:"bytes,3,opt,name=error_msg,json=errorMsg" json:"error_msg,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateError) Descriptor deprecated

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

Deprecated: Use ValidateError.ProtoReflect.Descriptor instead.

func (*ValidateError) GetErrorMsg

func (x *ValidateError) GetErrorMsg() string

func (*ValidateError) GetMainErrorCode

func (x *ValidateError) GetMainErrorCode() string

func (*ValidateError) GetOtherErrorCode

func (x *ValidateError) GetOtherErrorCode() string

func (*ValidateError) ProtoMessage

func (*ValidateError) ProtoMessage()

func (*ValidateError) ProtoReflect

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

func (*ValidateError) Reset

func (x *ValidateError) Reset()

func (*ValidateError) String

func (x *ValidateError) String() string

type ValidateFloatEq

type ValidateFloatEq struct {

	// Need Validate?
	Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
	// Used for specifies a user-customizable error when validating.
	CustomError *ValidateError `protobuf:"bytes,2,opt,name=custom_error,json=customError" json:"custom_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateFloatEq) Descriptor deprecated

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

Deprecated: Use ValidateFloatEq.ProtoReflect.Descriptor instead.

func (*ValidateFloatEq) GetCustomError

func (x *ValidateFloatEq) GetCustomError() *ValidateError

func (*ValidateFloatEq) GetValue

func (x *ValidateFloatEq) GetValue() float64

func (*ValidateFloatEq) ProtoMessage

func (*ValidateFloatEq) ProtoMessage()

func (*ValidateFloatEq) ProtoReflect

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

func (*ValidateFloatEq) Reset

func (x *ValidateFloatEq) Reset()

func (*ValidateFloatEq) String

func (x *ValidateFloatEq) String() string

type ValidateFloatGt

type ValidateFloatGt struct {

	// Need Validate?
	Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
	// Used for specifies a user-customizable error when validating.
	CustomError *ValidateError `protobuf:"bytes,2,opt,name=custom_error,json=customError" json:"custom_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateFloatGt) Descriptor deprecated

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

Deprecated: Use ValidateFloatGt.ProtoReflect.Descriptor instead.

func (*ValidateFloatGt) GetCustomError

func (x *ValidateFloatGt) GetCustomError() *ValidateError

func (*ValidateFloatGt) GetValue

func (x *ValidateFloatGt) GetValue() float64

func (*ValidateFloatGt) ProtoMessage

func (*ValidateFloatGt) ProtoMessage()

func (*ValidateFloatGt) ProtoReflect

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

func (*ValidateFloatGt) Reset

func (x *ValidateFloatGt) Reset()

func (*ValidateFloatGt) String

func (x *ValidateFloatGt) String() string

type ValidateFloatGte

type ValidateFloatGte struct {

	// Need Validate?
	Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
	// Used for specifies a user-customizable error when validating.
	CustomError *ValidateError `protobuf:"bytes,2,opt,name=custom_error,json=customError" json:"custom_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateFloatGte) Descriptor deprecated

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

Deprecated: Use ValidateFloatGte.ProtoReflect.Descriptor instead.

func (*ValidateFloatGte) GetCustomError

func (x *ValidateFloatGte) GetCustomError() *ValidateError

func (*ValidateFloatGte) GetValue

func (x *ValidateFloatGte) GetValue() float64

func (*ValidateFloatGte) ProtoMessage

func (*ValidateFloatGte) ProtoMessage()

func (*ValidateFloatGte) ProtoReflect

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

func (*ValidateFloatGte) Reset

func (x *ValidateFloatGte) Reset()

func (*ValidateFloatGte) String

func (x *ValidateFloatGte) String() string

type ValidateFloatLt

type ValidateFloatLt struct {

	// Need Validate?
	Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
	// Used for specifies a user-customizable error when validating.
	CustomError *ValidateError `protobuf:"bytes,2,opt,name=custom_error,json=customError" json:"custom_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateFloatLt) Descriptor deprecated

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

Deprecated: Use ValidateFloatLt.ProtoReflect.Descriptor instead.

func (*ValidateFloatLt) GetCustomError

func (x *ValidateFloatLt) GetCustomError() *ValidateError

func (*ValidateFloatLt) GetValue

func (x *ValidateFloatLt) GetValue() float64

func (*ValidateFloatLt) ProtoMessage

func (*ValidateFloatLt) ProtoMessage()

func (*ValidateFloatLt) ProtoReflect

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

func (*ValidateFloatLt) Reset

func (x *ValidateFloatLt) Reset()

func (*ValidateFloatLt) String

func (x *ValidateFloatLt) String() string

type ValidateFloatLte

type ValidateFloatLte struct {

	// Need Validate?
	Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
	// Used for specifies a user-customizable error when validating.
	CustomError *ValidateError `protobuf:"bytes,2,opt,name=custom_error,json=customError" json:"custom_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateFloatLte) Descriptor deprecated

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

Deprecated: Use ValidateFloatLte.ProtoReflect.Descriptor instead.

func (*ValidateFloatLte) GetCustomError

func (x *ValidateFloatLte) GetCustomError() *ValidateError

func (*ValidateFloatLte) GetValue

func (x *ValidateFloatLte) GetValue() float64

func (*ValidateFloatLte) ProtoMessage

func (*ValidateFloatLte) ProtoMessage()

func (*ValidateFloatLte) ProtoReflect

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

func (*ValidateFloatLte) Reset

func (x *ValidateFloatLte) Reset()

func (*ValidateFloatLte) String

func (x *ValidateFloatLte) String() string

type ValidateFloatNotEq

type ValidateFloatNotEq struct {

	// Need Validate?
	Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
	// Used for specifies a user-customizable error when validating.
	CustomError *ValidateError `protobuf:"bytes,2,opt,name=custom_error,json=customError" json:"custom_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateFloatNotEq) Descriptor deprecated

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

Deprecated: Use ValidateFloatNotEq.ProtoReflect.Descriptor instead.

func (*ValidateFloatNotEq) GetCustomError

func (x *ValidateFloatNotEq) GetCustomError() *ValidateError

func (*ValidateFloatNotEq) GetValue

func (x *ValidateFloatNotEq) GetValue() float64

func (*ValidateFloatNotEq) ProtoMessage

func (*ValidateFloatNotEq) ProtoMessage()

func (*ValidateFloatNotEq) ProtoReflect

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

func (*ValidateFloatNotEq) Reset

func (x *ValidateFloatNotEq) Reset()

func (*ValidateFloatNotEq) String

func (x *ValidateFloatNotEq) String() string

type ValidateFloating

type ValidateFloating struct {

	// Field value of double strictly greater than this value.
	// Note that this value can only take on a valid floating point
	// value. Use together with float_epsilon if you need something more specific.
	Gt *ValidateFloatGt `protobuf:"bytes,1,opt,name=gt" json:"gt,omitempty"`
	// Field value of double strictly smaller than this value.
	// Note that this value can only take on a valid floating point
	// value. Use together with float_epsilon if you need something more specific.
	Lt *ValidateFloatLt `protobuf:"bytes,2,opt,name=lt" json:"lt,omitempty"`
	// Floating-point value compared to which the field content should be greater
	// or equal.
	Gte *ValidateFloatGte `protobuf:"bytes,3,opt,name=gte" json:"gte,omitempty"`
	// Floating-point value compared to which the field content should be smaller
	// or equal.
	Lte *ValidateFloatLte `protobuf:"bytes,4,opt,name=lte" json:"lte,omitempty"`
	// Floating-point value compared to which the field content should be equal.
	Eq *ValidateFloatEq `protobuf:"bytes,5,opt,name=eq" json:"eq,omitempty"`
	// Floating-point value compared to which the field content should not be
	// equal.
	NotEq *ValidateFloatNotEq `protobuf:"bytes,6,opt,name=not_eq,json=notEq" json:"not_eq,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateFloating) Descriptor deprecated

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

Deprecated: Use ValidateFloating.ProtoReflect.Descriptor instead.

func (*ValidateFloating) GetEq

func (x *ValidateFloating) GetEq() *ValidateFloatEq

func (*ValidateFloating) GetGt

func (x *ValidateFloating) GetGt() *ValidateFloatGt

func (*ValidateFloating) GetGte

func (x *ValidateFloating) GetGte() *ValidateFloatGte

func (*ValidateFloating) GetLt

func (x *ValidateFloating) GetLt() *ValidateFloatLt

func (*ValidateFloating) GetLte

func (x *ValidateFloating) GetLte() *ValidateFloatLte

func (*ValidateFloating) GetNotEq

func (x *ValidateFloating) GetNotEq() *ValidateFloatNotEq

func (*ValidateFloating) ProtoMessage

func (*ValidateFloating) ProtoMessage()

func (*ValidateFloating) ProtoReflect

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

func (*ValidateFloating) Reset

func (x *ValidateFloating) Reset()

func (*ValidateFloating) String

func (x *ValidateFloating) String() string

type ValidateIntEq

type ValidateIntEq struct {

	// Need Validate?
	Value *int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
	// Used for specifies a user-customizable error when validating.
	CustomError *ValidateError `protobuf:"bytes,2,opt,name=custom_error,json=customError" json:"custom_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateIntEq) Descriptor deprecated

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

Deprecated: Use ValidateIntEq.ProtoReflect.Descriptor instead.

func (*ValidateIntEq) GetCustomError

func (x *ValidateIntEq) GetCustomError() *ValidateError

func (*ValidateIntEq) GetValue

func (x *ValidateIntEq) GetValue() int64

func (*ValidateIntEq) ProtoMessage

func (*ValidateIntEq) ProtoMessage()

func (*ValidateIntEq) ProtoReflect

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

func (*ValidateIntEq) Reset

func (x *ValidateIntEq) Reset()

func (*ValidateIntEq) String

func (x *ValidateIntEq) String() string

type ValidateIntGt

type ValidateIntGt struct {

	// Need Validate?
	Value *int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
	// Used for specifies a user-customizable error when validating.
	CustomError *ValidateError `protobuf:"bytes,2,opt,name=custom_error,json=customError" json:"custom_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateIntGt) Descriptor deprecated

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

Deprecated: Use ValidateIntGt.ProtoReflect.Descriptor instead.

func (*ValidateIntGt) GetCustomError

func (x *ValidateIntGt) GetCustomError() *ValidateError

func (*ValidateIntGt) GetValue

func (x *ValidateIntGt) GetValue() int64

func (*ValidateIntGt) ProtoMessage

func (*ValidateIntGt) ProtoMessage()

func (*ValidateIntGt) ProtoReflect

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

func (*ValidateIntGt) Reset

func (x *ValidateIntGt) Reset()

func (*ValidateIntGt) String

func (x *ValidateIntGt) String() string

type ValidateIntLt

type ValidateIntLt struct {

	// Need Validate?
	Value *int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
	// Used for specifies a user-customizable error when validating.
	CustomError *ValidateError `protobuf:"bytes,2,opt,name=custom_error,json=customError" json:"custom_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateIntLt) Descriptor deprecated

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

Deprecated: Use ValidateIntLt.ProtoReflect.Descriptor instead.

func (*ValidateIntLt) GetCustomError

func (x *ValidateIntLt) GetCustomError() *ValidateError

func (*ValidateIntLt) GetValue

func (x *ValidateIntLt) GetValue() int64

func (*ValidateIntLt) ProtoMessage

func (*ValidateIntLt) ProtoMessage()

func (*ValidateIntLt) ProtoReflect

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

func (*ValidateIntLt) Reset

func (x *ValidateIntLt) Reset()

func (*ValidateIntLt) String

func (x *ValidateIntLt) String() string

type ValidateIntNotEq

type ValidateIntNotEq struct {

	// Need Validate?
	Value *int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
	// Used for specifies a user-customizable error when validating.
	CustomError *ValidateError `protobuf:"bytes,2,opt,name=custom_error,json=customError" json:"custom_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateIntNotEq) Descriptor deprecated

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

Deprecated: Use ValidateIntNotEq.ProtoReflect.Descriptor instead.

func (*ValidateIntNotEq) GetCustomError

func (x *ValidateIntNotEq) GetCustomError() *ValidateError

func (*ValidateIntNotEq) GetValue

func (x *ValidateIntNotEq) GetValue() int64

func (*ValidateIntNotEq) ProtoMessage

func (*ValidateIntNotEq) ProtoMessage()

func (*ValidateIntNotEq) ProtoReflect

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

func (*ValidateIntNotEq) Reset

func (x *ValidateIntNotEq) Reset()

func (*ValidateIntNotEq) String

func (x *ValidateIntNotEq) String() string

type ValidateInteger

type ValidateInteger struct {

	// Field value greater to this value.
	Gt *ValidateIntGt `protobuf:"bytes,1,opt,name=gt" json:"gt,omitempty"`
	// Field value smaller to this value.
	Lt *ValidateIntLt `protobuf:"bytes,2,opt,name=lt" json:"lt,omitempty"`
	// Field value equal to this value.
	Eq *ValidateIntEq `protobuf:"bytes,3,opt,name=eq" json:"eq,omitempty"`
	// Field value not equal to this value.
	NotEq *ValidateIntNotEq `protobuf:"bytes,4,opt,name=not_eq,json=notEq" json:"not_eq,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateInteger) Descriptor deprecated

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

Deprecated: Use ValidateInteger.ProtoReflect.Descriptor instead.

func (*ValidateInteger) GetEq

func (x *ValidateInteger) GetEq() *ValidateIntEq

func (*ValidateInteger) GetGt

func (x *ValidateInteger) GetGt() *ValidateIntGt

func (*ValidateInteger) GetLt

func (x *ValidateInteger) GetLt() *ValidateIntLt

func (*ValidateInteger) GetNotEq

func (x *ValidateInteger) GetNotEq() *ValidateIntNotEq

func (*ValidateInteger) ProtoMessage

func (*ValidateInteger) ProtoMessage()

func (*ValidateInteger) ProtoReflect

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

func (*ValidateInteger) Reset

func (x *ValidateInteger) Reset()

func (*ValidateInteger) String

func (x *ValidateInteger) String() string

type ValidateString

type ValidateString struct {

	// requires the string to be not empty (i.e different from "").
	NotEmpty *ValidateStringNotEmpty `protobuf:"bytes,1,opt,name=not_empty,json=notEmpty" json:"not_empty,omitempty"`
	// Field value of length must greater than this value.
	LengthGt *ValidateStringLengthGt `protobuf:"bytes,2,opt,name=length_gt,json=lengthGt" json:"length_gt,omitempty"`
	// Field value of length must smaller than this value.
	LengthLt *ValidateStringLengthLt `protobuf:"bytes,3,opt,name=length_lt,json=lengthLt" json:"length_lt,omitempty"`
	// Field value of length must strictly equal to this value.
	LengthEq *ValidateStringLengthEq `protobuf:"bytes,4,opt,name=length_eq,json=lengthEq" json:"length_eq,omitempty"`
	// Field value of length must not equal to this value.
	LengthNotEq *ValidateStringLengthNotEq `protobuf:"bytes,5,opt,name=length_not_eq,json=lengthNotEq" json:"length_not_eq,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateString) Descriptor deprecated

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

Deprecated: Use ValidateString.ProtoReflect.Descriptor instead.

func (*ValidateString) GetLengthEq

func (x *ValidateString) GetLengthEq() *ValidateStringLengthEq

func (*ValidateString) GetLengthGt

func (x *ValidateString) GetLengthGt() *ValidateStringLengthGt

func (*ValidateString) GetLengthLt

func (x *ValidateString) GetLengthLt() *ValidateStringLengthLt

func (*ValidateString) GetLengthNotEq

func (x *ValidateString) GetLengthNotEq() *ValidateStringLengthNotEq

func (*ValidateString) GetNotEmpty

func (x *ValidateString) GetNotEmpty() *ValidateStringNotEmpty

func (*ValidateString) ProtoMessage

func (*ValidateString) ProtoMessage()

func (*ValidateString) ProtoReflect

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

func (*ValidateString) Reset

func (x *ValidateString) Reset()

func (*ValidateString) String

func (x *ValidateString) String() string

type ValidateStringLengthEq

type ValidateStringLengthEq struct {

	// Need Validate?
	Value *int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
	// Used for specifies a user-customizable error when validating.
	CustomError *ValidateError `protobuf:"bytes,2,opt,name=custom_error,json=customError" json:"custom_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateStringLengthEq) Descriptor deprecated

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

Deprecated: Use ValidateStringLengthEq.ProtoReflect.Descriptor instead.

func (*ValidateStringLengthEq) GetCustomError

func (x *ValidateStringLengthEq) GetCustomError() *ValidateError

func (*ValidateStringLengthEq) GetValue

func (x *ValidateStringLengthEq) GetValue() int64

func (*ValidateStringLengthEq) ProtoMessage

func (*ValidateStringLengthEq) ProtoMessage()

func (*ValidateStringLengthEq) ProtoReflect

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

func (*ValidateStringLengthEq) Reset

func (x *ValidateStringLengthEq) Reset()

func (*ValidateStringLengthEq) String

func (x *ValidateStringLengthEq) String() string

type ValidateStringLengthGt

type ValidateStringLengthGt struct {

	// Need Validate?
	Value *int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
	// Used for specifies a user-customizable error when validating.
	CustomError *ValidateError `protobuf:"bytes,2,opt,name=custom_error,json=customError" json:"custom_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateStringLengthGt) Descriptor deprecated

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

Deprecated: Use ValidateStringLengthGt.ProtoReflect.Descriptor instead.

func (*ValidateStringLengthGt) GetCustomError

func (x *ValidateStringLengthGt) GetCustomError() *ValidateError

func (*ValidateStringLengthGt) GetValue

func (x *ValidateStringLengthGt) GetValue() int64

func (*ValidateStringLengthGt) ProtoMessage

func (*ValidateStringLengthGt) ProtoMessage()

func (*ValidateStringLengthGt) ProtoReflect

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

func (*ValidateStringLengthGt) Reset

func (x *ValidateStringLengthGt) Reset()

func (*ValidateStringLengthGt) String

func (x *ValidateStringLengthGt) String() string

type ValidateStringLengthLt

type ValidateStringLengthLt struct {

	// Need Validate?
	Value *int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
	// Used for specifies a user-customizable error when validating.
	CustomError *ValidateError `protobuf:"bytes,2,opt,name=custom_error,json=customError" json:"custom_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateStringLengthLt) Descriptor deprecated

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

Deprecated: Use ValidateStringLengthLt.ProtoReflect.Descriptor instead.

func (*ValidateStringLengthLt) GetCustomError

func (x *ValidateStringLengthLt) GetCustomError() *ValidateError

func (*ValidateStringLengthLt) GetValue

func (x *ValidateStringLengthLt) GetValue() int64

func (*ValidateStringLengthLt) ProtoMessage

func (*ValidateStringLengthLt) ProtoMessage()

func (*ValidateStringLengthLt) ProtoReflect

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

func (*ValidateStringLengthLt) Reset

func (x *ValidateStringLengthLt) Reset()

func (*ValidateStringLengthLt) String

func (x *ValidateStringLengthLt) String() string

type ValidateStringLengthNotEq

type ValidateStringLengthNotEq struct {

	// Need Validate?
	Value *int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
	// Used for specifies a user-customizable error when validating.
	CustomError *ValidateError `protobuf:"bytes,2,opt,name=custom_error,json=customError" json:"custom_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateStringLengthNotEq) Descriptor deprecated

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

Deprecated: Use ValidateStringLengthNotEq.ProtoReflect.Descriptor instead.

func (*ValidateStringLengthNotEq) GetCustomError

func (x *ValidateStringLengthNotEq) GetCustomError() *ValidateError

func (*ValidateStringLengthNotEq) GetValue

func (x *ValidateStringLengthNotEq) GetValue() int64

func (*ValidateStringLengthNotEq) ProtoMessage

func (*ValidateStringLengthNotEq) ProtoMessage()

func (*ValidateStringLengthNotEq) ProtoReflect

func (*ValidateStringLengthNotEq) Reset

func (x *ValidateStringLengthNotEq) Reset()

func (*ValidateStringLengthNotEq) String

func (x *ValidateStringLengthNotEq) String() string

type ValidateStringNotEmpty

type ValidateStringNotEmpty struct {

	// Need Validate?
	Value *bool `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
	// Used for specifies a user-customizable error when validating.
	CustomError *ValidateError `protobuf:"bytes,2,opt,name=custom_error,json=customError" json:"custom_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateStringNotEmpty) Descriptor deprecated

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

Deprecated: Use ValidateStringNotEmpty.ProtoReflect.Descriptor instead.

func (*ValidateStringNotEmpty) GetCustomError

func (x *ValidateStringNotEmpty) GetCustomError() *ValidateError

func (*ValidateStringNotEmpty) GetValue

func (x *ValidateStringNotEmpty) GetValue() bool

func (*ValidateStringNotEmpty) ProtoMessage

func (*ValidateStringNotEmpty) ProtoMessage()

func (*ValidateStringNotEmpty) ProtoReflect

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

func (*ValidateStringNotEmpty) Reset

func (x *ValidateStringNotEmpty) Reset()

func (*ValidateStringNotEmpty) String

func (x *ValidateStringNotEmpty) String() string

Jump to

Keyboard shortcuts

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