custom_constraints

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Enum_name = map[int32]string{
		0: "ENUM_UNSPECIFIED",
		1: "ENUM_ONE",
	}
	Enum_value = map[string]int32{
		"ENUM_UNSPECIFIED": 0,
		"ENUM_ONE":         1,
	}
)

Enum value maps for Enum.

View Source
var File_buf_validate_conformance_cases_custom_constraints_custom_constraints_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DynRuntimeError

type DynRuntimeError struct {
	A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	// contains filtered or unexported fields
}

func (*DynRuntimeError) GetA

func (x *DynRuntimeError) GetA() int32

func (*DynRuntimeError) ProtoMessage

func (*DynRuntimeError) ProtoMessage()

func (*DynRuntimeError) ProtoReflect

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

func (*DynRuntimeError) Reset

func (x *DynRuntimeError) Reset()

func (*DynRuntimeError) SetA added in v0.8.1

func (x *DynRuntimeError) SetA(v int32)

func (*DynRuntimeError) String

func (x *DynRuntimeError) String() string

type DynRuntimeError_builder added in v0.8.1

type DynRuntimeError_builder struct {
	A int32
	// contains filtered or unexported fields
}

func (DynRuntimeError_builder) Build added in v0.8.1

type Enum

type Enum int32
const (
	Enum_ENUM_UNSPECIFIED Enum = 0
	Enum_ENUM_ONE         Enum = 1
)

func (Enum) Descriptor

func (Enum) Descriptor() protoreflect.EnumDescriptor

func (Enum) Enum

func (x Enum) Enum() *Enum

func (Enum) Number

func (x Enum) Number() protoreflect.EnumNumber

func (Enum) String

func (x Enum) String() string

func (Enum) Type

func (Enum) Type() protoreflect.EnumType

type FieldExpressions

type FieldExpressions struct {
	A int32                    `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	B Enum                     `protobuf:"varint,2,opt,name=b,proto3,enum=buf.validate.conformance.cases.custom_constraints.Enum" json:"b,omitempty"`
	C *FieldExpressions_Nested `protobuf:"bytes,3,opt,name=c,proto3" json:"c,omitempty"`
	D int32                    `protobuf:"varint,4,opt,name=d,proto3" json:"d,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldExpressions) ClearC added in v0.8.1

func (x *FieldExpressions) ClearC()

func (*FieldExpressions) GetA

func (x *FieldExpressions) GetA() int32

func (*FieldExpressions) GetB

func (x *FieldExpressions) GetB() Enum

func (*FieldExpressions) GetC

func (*FieldExpressions) GetD added in v0.8.0

func (x *FieldExpressions) GetD() int32

func (*FieldExpressions) HasC added in v0.8.1

func (x *FieldExpressions) HasC() bool

func (*FieldExpressions) ProtoMessage

func (*FieldExpressions) ProtoMessage()

func (*FieldExpressions) ProtoReflect

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

func (*FieldExpressions) Reset

func (x *FieldExpressions) Reset()

func (*FieldExpressions) SetA added in v0.8.1

func (x *FieldExpressions) SetA(v int32)

func (*FieldExpressions) SetB added in v0.8.1

func (x *FieldExpressions) SetB(v Enum)

func (*FieldExpressions) SetC added in v0.8.1

func (*FieldExpressions) SetD added in v0.8.1

func (x *FieldExpressions) SetD(v int32)

func (*FieldExpressions) String

func (x *FieldExpressions) String() string

type FieldExpressions_Nested

type FieldExpressions_Nested struct {
	A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldExpressions_Nested) GetA

func (x *FieldExpressions_Nested) GetA() int32

func (*FieldExpressions_Nested) ProtoMessage

func (*FieldExpressions_Nested) ProtoMessage()

func (*FieldExpressions_Nested) ProtoReflect

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

func (*FieldExpressions_Nested) Reset

func (x *FieldExpressions_Nested) Reset()

func (*FieldExpressions_Nested) SetA added in v0.8.1

func (x *FieldExpressions_Nested) SetA(v int32)

func (*FieldExpressions_Nested) String

func (x *FieldExpressions_Nested) String() string

type FieldExpressions_Nested_builder added in v0.8.1

type FieldExpressions_Nested_builder struct {
	A int32
	// contains filtered or unexported fields
}

func (FieldExpressions_Nested_builder) Build added in v0.8.1

type FieldExpressions_builder added in v0.8.1

type FieldExpressions_builder struct {
	A int32
	B Enum
	C *FieldExpressions_Nested
	D int32
	// contains filtered or unexported fields
}

func (FieldExpressions_builder) Build added in v0.8.1

type IncorrectType

type IncorrectType struct {
	A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	// contains filtered or unexported fields
}

func (*IncorrectType) GetA

func (x *IncorrectType) GetA() int32

func (*IncorrectType) ProtoMessage

func (*IncorrectType) ProtoMessage()

func (*IncorrectType) ProtoReflect

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

func (*IncorrectType) Reset

func (x *IncorrectType) Reset()

func (*IncorrectType) SetA added in v0.8.1

func (x *IncorrectType) SetA(v int32)

func (*IncorrectType) String

func (x *IncorrectType) String() string

type IncorrectType_builder added in v0.8.1

type IncorrectType_builder struct {
	A int32
	// contains filtered or unexported fields
}

func (IncorrectType_builder) Build added in v0.8.1

type MessageExpressions

type MessageExpressions struct {
	A int32                      `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	B int32                      `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"`
	C Enum                       `protobuf:"varint,3,opt,name=c,proto3,enum=buf.validate.conformance.cases.custom_constraints.Enum" json:"c,omitempty"`
	D Enum                       `protobuf:"varint,4,opt,name=d,proto3,enum=buf.validate.conformance.cases.custom_constraints.Enum" json:"d,omitempty"`
	E *MessageExpressions_Nested `protobuf:"bytes,5,opt,name=e,proto3" json:"e,omitempty"`
	F *MessageExpressions_Nested `protobuf:"bytes,6,opt,name=f,proto3" json:"f,omitempty"`
	// contains filtered or unexported fields
}

A message with message-level custom expressions

func (*MessageExpressions) ClearE added in v0.8.1

func (x *MessageExpressions) ClearE()

func (*MessageExpressions) ClearF added in v0.8.1

func (x *MessageExpressions) ClearF()

func (*MessageExpressions) GetA

func (x *MessageExpressions) GetA() int32

func (*MessageExpressions) GetB

func (x *MessageExpressions) GetB() int32

func (*MessageExpressions) GetC

func (x *MessageExpressions) GetC() Enum

func (*MessageExpressions) GetD

func (x *MessageExpressions) GetD() Enum

func (*MessageExpressions) GetE

func (*MessageExpressions) GetF

func (*MessageExpressions) HasE added in v0.8.1

func (x *MessageExpressions) HasE() bool

func (*MessageExpressions) HasF added in v0.8.1

func (x *MessageExpressions) HasF() bool

func (*MessageExpressions) ProtoMessage

func (*MessageExpressions) ProtoMessage()

func (*MessageExpressions) ProtoReflect

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

func (*MessageExpressions) Reset

func (x *MessageExpressions) Reset()

func (*MessageExpressions) SetA added in v0.8.1

func (x *MessageExpressions) SetA(v int32)

func (*MessageExpressions) SetB added in v0.8.1

func (x *MessageExpressions) SetB(v int32)

func (*MessageExpressions) SetC added in v0.8.1

func (x *MessageExpressions) SetC(v Enum)

func (*MessageExpressions) SetD added in v0.8.1

func (x *MessageExpressions) SetD(v Enum)

func (*MessageExpressions) SetE added in v0.8.1

func (*MessageExpressions) SetF added in v0.8.1

func (*MessageExpressions) String

func (x *MessageExpressions) String() string

type MessageExpressions_Nested

type MessageExpressions_Nested struct {
	A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	B int32 `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageExpressions_Nested) GetA

func (x *MessageExpressions_Nested) GetA() int32

func (*MessageExpressions_Nested) GetB

func (x *MessageExpressions_Nested) GetB() int32

func (*MessageExpressions_Nested) ProtoMessage

func (*MessageExpressions_Nested) ProtoMessage()

func (*MessageExpressions_Nested) ProtoReflect

func (*MessageExpressions_Nested) Reset

func (x *MessageExpressions_Nested) Reset()

func (*MessageExpressions_Nested) SetA added in v0.8.1

func (x *MessageExpressions_Nested) SetA(v int32)

func (*MessageExpressions_Nested) SetB added in v0.8.1

func (x *MessageExpressions_Nested) SetB(v int32)

func (*MessageExpressions_Nested) String

func (x *MessageExpressions_Nested) String() string

type MessageExpressions_Nested_builder added in v0.8.1

type MessageExpressions_Nested_builder struct {
	A int32
	B int32
	// contains filtered or unexported fields
}

func (MessageExpressions_Nested_builder) Build added in v0.8.1

type MessageExpressions_builder added in v0.8.1

type MessageExpressions_builder struct {
	A int32
	B int32
	C Enum
	D Enum
	E *MessageExpressions_Nested
	F *MessageExpressions_Nested
	// contains filtered or unexported fields
}

func (MessageExpressions_builder) Build added in v0.8.1

type MissingField

type MissingField struct {
	A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	// contains filtered or unexported fields
}

func (*MissingField) GetA

func (x *MissingField) GetA() int32

func (*MissingField) ProtoMessage

func (*MissingField) ProtoMessage()

func (*MissingField) ProtoReflect

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

func (*MissingField) Reset

func (x *MissingField) Reset()

func (*MissingField) SetA added in v0.8.1

func (x *MissingField) SetA(v int32)

func (*MissingField) String

func (x *MissingField) String() string

type MissingField_builder added in v0.8.1

type MissingField_builder struct {
	A int32
	// contains filtered or unexported fields
}

func (MissingField_builder) Build added in v0.8.1

func (b0 MissingField_builder) Build() *MissingField

type NoExpressions

type NoExpressions struct {
	A int32                 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	B Enum                  `protobuf:"varint,2,opt,name=b,proto3,enum=buf.validate.conformance.cases.custom_constraints.Enum" json:"b,omitempty"`
	C *NoExpressions_Nested `protobuf:"bytes,3,opt,name=c,proto3" json:"c,omitempty"`
	// contains filtered or unexported fields
}

A message that does not contain any expressions

func (*NoExpressions) ClearC added in v0.8.1

func (x *NoExpressions) ClearC()

func (*NoExpressions) GetA

func (x *NoExpressions) GetA() int32

func (*NoExpressions) GetB

func (x *NoExpressions) GetB() Enum

func (*NoExpressions) GetC

func (*NoExpressions) HasC added in v0.8.1

func (x *NoExpressions) HasC() bool

func (*NoExpressions) ProtoMessage

func (*NoExpressions) ProtoMessage()

func (*NoExpressions) ProtoReflect

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

func (*NoExpressions) Reset

func (x *NoExpressions) Reset()

func (*NoExpressions) SetA added in v0.8.1

func (x *NoExpressions) SetA(v int32)

func (*NoExpressions) SetB added in v0.8.1

func (x *NoExpressions) SetB(v Enum)

func (*NoExpressions) SetC added in v0.8.1

func (x *NoExpressions) SetC(v *NoExpressions_Nested)

func (*NoExpressions) String

func (x *NoExpressions) String() string

type NoExpressions_Nested

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

func (*NoExpressions_Nested) ProtoMessage

func (*NoExpressions_Nested) ProtoMessage()

func (*NoExpressions_Nested) ProtoReflect

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

func (*NoExpressions_Nested) Reset

func (x *NoExpressions_Nested) Reset()

func (*NoExpressions_Nested) String

func (x *NoExpressions_Nested) String() string

type NoExpressions_Nested_builder added in v0.8.1

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

func (NoExpressions_Nested_builder) Build added in v0.8.1

type NoExpressions_builder added in v0.8.1

type NoExpressions_builder struct {
	A int32
	B Enum
	C *NoExpressions_Nested
	// contains filtered or unexported fields
}

func (NoExpressions_builder) Build added in v0.8.1

type NowEqualsNow

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

func (*NowEqualsNow) ProtoMessage

func (*NowEqualsNow) ProtoMessage()

func (*NowEqualsNow) ProtoReflect

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

func (*NowEqualsNow) Reset

func (x *NowEqualsNow) Reset()

func (*NowEqualsNow) String

func (x *NowEqualsNow) String() string

type NowEqualsNow_builder added in v0.8.1

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

func (NowEqualsNow_builder) Build added in v0.8.1

func (b0 NowEqualsNow_builder) Build() *NowEqualsNow

Jump to

Keyboard shortcuts

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