gwtypes

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OperatorType_name = map[int32]string{
		0: "EQ",
		1: "NE",
		2: "GT",
		3: "GTE",
		4: "LT",
		5: "LTE",
		6: "Like",
		7: "NotLike",
		8: "Null",
		9: "NotNull",
	}
	OperatorType_value = map[string]int32{
		"EQ":      0,
		"NE":      1,
		"GT":      2,
		"GTE":     3,
		"LT":      4,
		"LTE":     5,
		"Like":    6,
		"NotLike": 7,
		"Null":    8,
		"NotNull": 9,
	}
)

Enum value maps for OperatorType.

View Source
var (
	MultiType_name = map[int32]string{
		0: "Exact",
		1: "Between",
		2: "NotBetween",
		3: "In",
		4: "NotIn",
	}
	MultiType_value = map[string]int32{
		"Exact":      0,
		"Between":    1,
		"NotBetween": 2,
		"In":         3,
		"NotIn":      4,
	}
)

Enum value maps for MultiType.

View Source
var (
	WildcardType_name = map[int32]string{
		0: "None",
		1: "Contains",
		2: "StartsWith",
		3: "EndsWith",
	}
	WildcardType_value = map[string]int32{
		"None":       0,
		"Contains":   1,
		"StartsWith": 2,
		"EndsWith":   3,
	}
)

Enum value maps for WildcardType.

View Source
var File_gwtypes_gwtypes_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BoolSlice

type BoolSlice struct {

	// The bool value.
	Value []bool `protobuf:"varint,1,rep,packed,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for array of `bool`.

The JSON representation for `BoolSlice` is JSON array of `true` and `false` strings.

func (*BoolSlice) Descriptor deprecated

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

Deprecated: Use BoolSlice.ProtoReflect.Descriptor instead.

func (*BoolSlice) GetValue

func (x *BoolSlice) GetValue() []bool

func (*BoolSlice) ProtoMessage

func (*BoolSlice) ProtoMessage()

func (*BoolSlice) ProtoReflect

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

func (*BoolSlice) Reset

func (x *BoolSlice) Reset()

func (*BoolSlice) String

func (x *BoolSlice) String() string

type Condition

type Condition struct {
	Operator OperatorType `protobuf:"varint,1,opt,name=operator,proto3,enum=gwtypes.OperatorType" json:"operator,omitempty"`
	Multi    MultiType    `protobuf:"varint,2,opt,name=multi,proto3,enum=gwtypes.MultiType" json:"multi,omitempty"`
	Wildcard WildcardType `protobuf:"varint,3,opt,name=wildcard,proto3,enum=gwtypes.WildcardType" json:"wildcard,omitempty"`
	Value    *anypb.Any   `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Condition) Descriptor deprecated

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

Deprecated: Use Condition.ProtoReflect.Descriptor instead.

func (*Condition) GetMulti

func (x *Condition) GetMulti() MultiType

func (*Condition) GetOperator

func (x *Condition) GetOperator() OperatorType

func (*Condition) GetValue

func (x *Condition) GetValue() *anypb.Any

func (*Condition) GetWildcard

func (x *Condition) GetWildcard() WildcardType

func (*Condition) ProtoMessage

func (*Condition) ProtoMessage()

func (*Condition) ProtoReflect

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

func (*Condition) Reset

func (x *Condition) Reset()

func (*Condition) String

func (x *Condition) String() string

type DoubleSlice

type DoubleSlice struct {

	// The double value.
	Value []float64 `protobuf:"fixed64,1,rep,packed,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for array of `double`.

The JSON representation for `DoubleSlice` is JSON array of numbers.

func (*DoubleSlice) Descriptor deprecated

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

Deprecated: Use DoubleSlice.ProtoReflect.Descriptor instead.

func (*DoubleSlice) GetValue

func (x *DoubleSlice) GetValue() []float64

func (*DoubleSlice) ProtoMessage

func (*DoubleSlice) ProtoMessage()

func (*DoubleSlice) ProtoReflect

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

func (*DoubleSlice) Reset

func (x *DoubleSlice) Reset()

func (*DoubleSlice) String

func (x *DoubleSlice) String() string

type FloatSlice

type FloatSlice struct {

	// The float value.
	Value []float32 `protobuf:"fixed32,1,rep,packed,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for array of `float`.

The JSON representation for `FloatSlice` is JSON array of numbers.

func (*FloatSlice) Descriptor deprecated

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

Deprecated: Use FloatSlice.ProtoReflect.Descriptor instead.

func (*FloatSlice) GetValue

func (x *FloatSlice) GetValue() []float32

func (*FloatSlice) ProtoMessage

func (*FloatSlice) ProtoMessage()

func (*FloatSlice) ProtoReflect

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

func (*FloatSlice) Reset

func (x *FloatSlice) Reset()

func (*FloatSlice) String

func (x *FloatSlice) String() string

type Int32Slice

type Int32Slice struct {

	// The int32 value.
	Value []int32 `protobuf:"varint,1,rep,packed,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for array of `int32`.

The JSON representation for `Int32Slice` is JSON array of numbers.

func (*Int32Slice) Descriptor deprecated

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

Deprecated: Use Int32Slice.ProtoReflect.Descriptor instead.

func (*Int32Slice) GetValue

func (x *Int32Slice) GetValue() []int32

func (*Int32Slice) ProtoMessage

func (*Int32Slice) ProtoMessage()

func (*Int32Slice) ProtoReflect

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

func (*Int32Slice) Reset

func (x *Int32Slice) Reset()

func (*Int32Slice) String

func (x *Int32Slice) String() string

type Int64Slice

type Int64Slice struct {

	// The int64 value.
	Value []int64 `protobuf:"varint,1,rep,packed,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for array of `int64`.

The JSON representation for `Int64Slice` is JSON array of numbers.

func (*Int64Slice) Descriptor deprecated

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

Deprecated: Use Int64Slice.ProtoReflect.Descriptor instead.

func (*Int64Slice) GetValue

func (x *Int64Slice) GetValue() []int64

func (*Int64Slice) ProtoMessage

func (*Int64Slice) ProtoMessage()

func (*Int64Slice) ProtoReflect

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

func (*Int64Slice) Reset

func (x *Int64Slice) Reset()

func (*Int64Slice) String

func (x *Int64Slice) String() string

type MultiType

type MultiType int32
const (
	MultiType_Exact      MultiType = 0
	MultiType_Between    MultiType = 1
	MultiType_NotBetween MultiType = 2
	MultiType_In         MultiType = 3
	MultiType_NotIn      MultiType = 4
)

func MustParseMultiType

func MustParseMultiType(s string, d MultiType) MultiType

func ParseMultiType

func ParseMultiType(s string) (MultiType, error)

func (MultiType) Descriptor

func (MultiType) Descriptor() protoreflect.EnumDescriptor

func (MultiType) Enum

func (x MultiType) Enum() *MultiType

func (MultiType) EnumDescriptor deprecated

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

Deprecated: Use MultiType.Descriptor instead.

func (MultiType) Number

func (x MultiType) Number() protoreflect.EnumNumber

func (MultiType) String

func (x MultiType) String() string

func (MultiType) Type

type OperatorType

type OperatorType int32
const (
	OperatorType_EQ      OperatorType = 0
	OperatorType_NE      OperatorType = 1
	OperatorType_GT      OperatorType = 2
	OperatorType_GTE     OperatorType = 3
	OperatorType_LT      OperatorType = 4
	OperatorType_LTE     OperatorType = 5
	OperatorType_Like    OperatorType = 6
	OperatorType_NotLike OperatorType = 7
	OperatorType_Null    OperatorType = 8
	OperatorType_NotNull OperatorType = 9
)

func MustParseOperatorType

func MustParseOperatorType(s string, d OperatorType) OperatorType

func ParseOperatorType

func ParseOperatorType(s string) (OperatorType, error)

func (OperatorType) Descriptor

func (OperatorType) Enum

func (x OperatorType) Enum() *OperatorType

func (OperatorType) EnumDescriptor deprecated

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

Deprecated: Use OperatorType.Descriptor instead.

func (OperatorType) Number

func (OperatorType) String

func (x OperatorType) String() string

func (OperatorType) Type

type StringSlice

type StringSlice struct {

	// The string value.
	Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for array of `string`.

The JSON representation for `StringSlice` is JSON array of strings.

func (*StringSlice) Descriptor deprecated

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

Deprecated: Use StringSlice.ProtoReflect.Descriptor instead.

func (*StringSlice) GetValue

func (x *StringSlice) GetValue() []string

func (*StringSlice) ProtoMessage

func (*StringSlice) ProtoMessage()

func (*StringSlice) ProtoReflect

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

func (*StringSlice) Reset

func (x *StringSlice) Reset()

func (*StringSlice) String

func (x *StringSlice) String() string

type UInt32Slice

type UInt32Slice struct {

	// The uint32 value.
	Value []uint32 `protobuf:"varint,1,rep,packed,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for array of `uint32`.

The JSON representation for `UInt32Slice` is JSON array of numbers.

func (*UInt32Slice) Descriptor deprecated

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

Deprecated: Use UInt32Slice.ProtoReflect.Descriptor instead.

func (*UInt32Slice) GetValue

func (x *UInt32Slice) GetValue() []uint32

func (*UInt32Slice) ProtoMessage

func (*UInt32Slice) ProtoMessage()

func (*UInt32Slice) ProtoReflect

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

func (*UInt32Slice) Reset

func (x *UInt32Slice) Reset()

func (*UInt32Slice) String

func (x *UInt32Slice) String() string

type UInt64Slice

type UInt64Slice struct {

	// The uint64 value.
	Value []uint64 `protobuf:"varint,1,rep,packed,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for array of `uint64`.

The JSON representation for `UInt64Slice` is JSON array of numbers.

func (*UInt64Slice) Descriptor deprecated

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

Deprecated: Use UInt64Slice.ProtoReflect.Descriptor instead.

func (*UInt64Slice) GetValue

func (x *UInt64Slice) GetValue() []uint64

func (*UInt64Slice) ProtoMessage

func (*UInt64Slice) ProtoMessage()

func (*UInt64Slice) ProtoReflect

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

func (*UInt64Slice) Reset

func (x *UInt64Slice) Reset()

func (*UInt64Slice) String

func (x *UInt64Slice) String() string

type WildcardType

type WildcardType int32
const (
	WildcardType_None       WildcardType = 0
	WildcardType_Contains   WildcardType = 1
	WildcardType_StartsWith WildcardType = 2
	WildcardType_EndsWith   WildcardType = 3
)

func MustParseWildcardType

func MustParseWildcardType(s string, d WildcardType) WildcardType

func ParseWildcardType

func ParseWildcardType(s string) (WildcardType, error)

func (WildcardType) Descriptor

func (WildcardType) Enum

func (x WildcardType) Enum() *WildcardType

func (WildcardType) EnumDescriptor deprecated

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

Deprecated: Use WildcardType.Descriptor instead.

func (WildcardType) Number

func (WildcardType) String

func (x WildcardType) String() string

func (WildcardType) Type

Jump to

Keyboard shortcuts

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