Documentation
¶
Index ¶
- Variables
- type Int32Test
- func (*Int32Test) Descriptor() ([]byte, []int)deprecated
- func (x *Int32Test) GetIntegerValue() int32
- func (*Int32Test) ProtoMessage()
- func (x *Int32Test) ProtoReflect() protoreflect.Message
- func (x *Int32Test) Reset()
- func (x *Int32Test) String() string
- func (m *Int32Test) Validate() error
- func (m *Int32Test) ValidateAll() error
- type Int32TestMultiError
- type Int32TestValidationError
Constants ¶
This section is empty.
Variables ¶
var File_datatrails_common_api_unittestapi_testing_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Int32Test ¶
type Int32Test struct { IntegerValue int32 `protobuf:"varint,1,opt,name=integer_value,json=integerValue,proto3" json:"integer_value,omitempty"` // contains filtered or unexported fields }
func (*Int32Test) Descriptor
deprecated
func (*Int32Test) GetIntegerValue ¶
func (*Int32Test) ProtoMessage ¶
func (*Int32Test) ProtoMessage()
func (*Int32Test) ProtoReflect ¶
func (x *Int32Test) ProtoReflect() protoreflect.Message
func (*Int32Test) Validate ¶
Validate checks the field values on Int32Test with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Int32Test) ValidateAll ¶
ValidateAll checks the field values on Int32Test with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Int32TestMultiError, or nil if none found.
type Int32TestMultiError ¶
type Int32TestMultiError []error
Int32TestMultiError is an error wrapping multiple validation errors returned by Int32Test.ValidateAll() if the designated constraints aren't met.
func (Int32TestMultiError) AllErrors ¶
func (m Int32TestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Int32TestMultiError) Error ¶
func (m Int32TestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Int32TestValidationError ¶
type Int32TestValidationError struct {
// contains filtered or unexported fields
}
Int32TestValidationError is the validation error returned by Int32Test.Validate if the designated constraints aren't met.
func (Int32TestValidationError) Cause ¶
func (e Int32TestValidationError) Cause() error
Cause function returns cause value.
func (Int32TestValidationError) Error ¶
func (e Int32TestValidationError) Error() string
Error satisfies the builtin error interface
func (Int32TestValidationError) ErrorName ¶
func (e Int32TestValidationError) ErrorName() string
ErrorName returns error name.
func (Int32TestValidationError) Field ¶
func (e Int32TestValidationError) Field() string
Field function returns field value.
func (Int32TestValidationError) Key ¶
func (e Int32TestValidationError) Key() bool
Key function returns key value.
func (Int32TestValidationError) Reason ¶
func (e Int32TestValidationError) Reason() string
Reason function returns reason value.