custom_constraints

package
v1.35.1-20240212200631... Latest Latest
Warning

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

Go to latest
Published: unknown 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) Descriptor deprecated

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

Deprecated: Use DynRuntimeError.ProtoReflect.Descriptor instead.

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

func (x *DynRuntimeError) String() string

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) EnumDescriptor deprecated

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

Deprecated: Use Enum.Descriptor instead.

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"`
	// contains filtered or unexported fields
}

func (*FieldExpressions) Descriptor deprecated

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

Deprecated: Use FieldExpressions.ProtoReflect.Descriptor instead.

func (*FieldExpressions) GetA

func (x *FieldExpressions) GetA() int32

func (*FieldExpressions) GetB

func (x *FieldExpressions) GetB() Enum

func (*FieldExpressions) GetC

func (*FieldExpressions) ProtoMessage

func (*FieldExpressions) ProtoMessage()

func (*FieldExpressions) ProtoReflect

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

func (*FieldExpressions) Reset

func (x *FieldExpressions) Reset()

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) Descriptor deprecated

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

Deprecated: Use FieldExpressions_Nested.ProtoReflect.Descriptor instead.

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

func (x *FieldExpressions_Nested) String() string

type IncorrectType

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

func (*IncorrectType) Descriptor deprecated

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

Deprecated: Use IncorrectType.ProtoReflect.Descriptor instead.

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

func (x *IncorrectType) String() string

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) Descriptor deprecated

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

Deprecated: Use MessageExpressions.ProtoReflect.Descriptor instead.

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

func (*MessageExpressions) ProtoMessage()

func (*MessageExpressions) ProtoReflect

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

func (*MessageExpressions) Reset

func (x *MessageExpressions) Reset()

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) Descriptor deprecated

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

Deprecated: Use MessageExpressions_Nested.ProtoReflect.Descriptor instead.

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

func (x *MessageExpressions_Nested) String() string

type MissingField

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

func (*MissingField) Descriptor deprecated

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

Deprecated: Use MissingField.ProtoReflect.Descriptor instead.

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

func (x *MissingField) String() string

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) Descriptor deprecated

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

Deprecated: Use NoExpressions.ProtoReflect.Descriptor instead.

func (*NoExpressions) GetA

func (x *NoExpressions) GetA() int32

func (*NoExpressions) GetB

func (x *NoExpressions) GetB() Enum

func (*NoExpressions) GetC

func (*NoExpressions) ProtoMessage

func (*NoExpressions) ProtoMessage()

func (*NoExpressions) ProtoReflect

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

func (*NoExpressions) Reset

func (x *NoExpressions) Reset()

func (*NoExpressions) String

func (x *NoExpressions) String() string

type NoExpressions_Nested

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

func (*NoExpressions_Nested) Descriptor deprecated

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

Deprecated: Use NoExpressions_Nested.ProtoReflect.Descriptor instead.

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 NowEqualsNow

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

func (*NowEqualsNow) Descriptor deprecated

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

Deprecated: Use NowEqualsNow.ProtoReflect.Descriptor instead.

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

Jump to

Keyboard shortcuts

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