query

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_query_operation_proto protoreflect.FileDescriptor

Functions

func FromFloat64

func FromFloat64(s []float64) []*wrapperspb.DoubleValue

func FromFlot32

func FromFlot32(s []float32) []*wrapperspb.FloatValue

func FromInt32

func FromInt32(s []int32) []*wrapperspb.Int32Value

func FromInt64

func FromInt64(s []int64) []*wrapperspb.Int64Value

func FromString

func FromString(s []string) []*wrapperspb.StringValue

Types

type BooleanFilterOperators

type BooleanFilterOperators struct {
	Eq    *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=eq,json=$eq,proto3,oneof" json:"eq,omitempty"`
	Neq   *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=neq,json=$neq,proto3,oneof" json:"neq,omitempty"`
	Null  *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=null,json=$null,proto3,oneof" json:"null,omitempty"`
	Nnull *wrapperspb.BoolValue `protobuf:"bytes,4,opt,name=nnull,json=$nnull,proto3,oneof" json:"nnull,omitempty"`
	// contains filtered or unexported fields
}

func (*BooleanFilterOperators) Descriptor deprecated

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

Deprecated: Use BooleanFilterOperators.ProtoReflect.Descriptor instead.

func (*BooleanFilterOperators) GetEq

func (*BooleanFilterOperators) GetNeq

func (*BooleanFilterOperators) GetNnull

func (*BooleanFilterOperators) GetNull

func (*BooleanFilterOperators) ProtoMessage

func (*BooleanFilterOperators) ProtoMessage()

func (*BooleanFilterOperators) ProtoReflect

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

func (*BooleanFilterOperators) Reset

func (x *BooleanFilterOperators) Reset()

func (*BooleanFilterOperators) String

func (x *BooleanFilterOperators) String() string

type DateFilterOperators

type DateFilterOperators struct {
	Eq    *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=eq,json=$eq,proto3,oneof" json:"eq,omitempty"`
	Neq   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=neq,json=$neq,proto3,oneof" json:"neq,omitempty"`
	Gt    *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=gt,json=$gt,proto3,oneof" json:"gt,omitempty"`
	Gte   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=gte,json=$gte,proto3,oneof" json:"gte,omitempty"`
	Lt    *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=lt,json=$lt,proto3,oneof" json:"lt,omitempty"`
	Lte   *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=lte,json=$lte,proto3,oneof" json:"lte,omitempty"`
	Null  *wrapperspb.BoolValue  `protobuf:"bytes,7,opt,name=null,json=$null,proto3,oneof" json:"null,omitempty"`
	Nnull *wrapperspb.BoolValue  `protobuf:"bytes,8,opt,name=nnull,json=$nnull,proto3,oneof" json:"nnull,omitempty"`
	// contains filtered or unexported fields
}

func (*DateFilterOperators) Descriptor deprecated

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

Deprecated: Use DateFilterOperators.ProtoReflect.Descriptor instead.

func (*DateFilterOperators) GetEq

func (*DateFilterOperators) GetGt

func (*DateFilterOperators) GetGte

func (*DateFilterOperators) GetLt

func (*DateFilterOperators) GetLte

func (*DateFilterOperators) GetNeq

func (*DateFilterOperators) GetNnull

func (x *DateFilterOperators) GetNnull() *wrapperspb.BoolValue

func (*DateFilterOperators) GetNull

func (*DateFilterOperators) ProtoMessage

func (*DateFilterOperators) ProtoMessage()

func (*DateFilterOperators) ProtoReflect

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

func (*DateFilterOperators) Reset

func (x *DateFilterOperators) Reset()

func (*DateFilterOperators) String

func (x *DateFilterOperators) String() string

type DoubleFilterOperators

type DoubleFilterOperators struct {
	Eq    *wrapperspb.DoubleValue   `protobuf:"bytes,1,opt,name=eq,json=$eq,proto3,oneof" json:"eq,omitempty"`
	Neq   *wrapperspb.DoubleValue   `protobuf:"bytes,2,opt,name=neq,json=$neq,proto3,oneof" json:"neq,omitempty"`
	In    []*wrapperspb.DoubleValue `protobuf:"bytes,3,rep,name=in,json=$in,proto3" json:"in,omitempty"`
	Nin   []*wrapperspb.DoubleValue `protobuf:"bytes,4,rep,name=nin,json=$nin,proto3" json:"nin,omitempty"`
	Gt    *wrapperspb.DoubleValue   `protobuf:"bytes,5,opt,name=gt,json=$gt,proto3,oneof" json:"gt,omitempty"`
	Gte   *wrapperspb.DoubleValue   `protobuf:"bytes,6,opt,name=gte,json=$gte,proto3,oneof" json:"gte,omitempty"`
	Lt    *wrapperspb.DoubleValue   `protobuf:"bytes,7,opt,name=lt,json=$lt,proto3,oneof" json:"lt,omitempty"`
	Lte   *wrapperspb.DoubleValue   `protobuf:"bytes,8,opt,name=lte,json=$lte,proto3,oneof" json:"lte,omitempty"`
	Null  *wrapperspb.BoolValue     `protobuf:"bytes,9,opt,name=null,json=$null,proto3,oneof" json:"null,omitempty"`
	Nnull *wrapperspb.BoolValue     `protobuf:"bytes,10,opt,name=nnull,json=$nnull,proto3,oneof" json:"nnull,omitempty"`
	// contains filtered or unexported fields
}

func (*DoubleFilterOperators) Descriptor deprecated

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

Deprecated: Use DoubleFilterOperators.ProtoReflect.Descriptor instead.

func (*DoubleFilterOperators) GetEq

func (*DoubleFilterOperators) GetGt

func (*DoubleFilterOperators) GetGte

func (*DoubleFilterOperators) GetIn

func (*DoubleFilterOperators) GetLt

func (*DoubleFilterOperators) GetLte

func (*DoubleFilterOperators) GetNeq

func (*DoubleFilterOperators) GetNin

func (*DoubleFilterOperators) GetNnull

func (*DoubleFilterOperators) GetNull

func (*DoubleFilterOperators) ProtoMessage

func (*DoubleFilterOperators) ProtoMessage()

func (*DoubleFilterOperators) ProtoReflect

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

func (*DoubleFilterOperators) Reset

func (x *DoubleFilterOperators) Reset()

func (*DoubleFilterOperators) String

func (x *DoubleFilterOperators) String() string

type Field

type Field struct {
	*fieldmaskpb.FieldMask
}

func NewField

func NewField(f *fieldmaskpb.FieldMask) *Field

func (*Field) GetFields

func (f *Field) GetFields() *fieldmaskpb.FieldMask

type Filter

type Filter[TFilter any] interface {
	GetFilter() TFilter
}

type FloatFilterOperators

type FloatFilterOperators struct {
	Eq    *wrapperspb.FloatValue   `protobuf:"bytes,1,opt,name=eq,json=$eq,proto3,oneof" json:"eq,omitempty"`
	Neq   *wrapperspb.FloatValue   `protobuf:"bytes,2,opt,name=neq,json=$neq,proto3,oneof" json:"neq,omitempty"`
	In    []*wrapperspb.FloatValue `protobuf:"bytes,3,rep,name=in,json=$in,proto3" json:"in,omitempty"`
	Nin   []*wrapperspb.FloatValue `protobuf:"bytes,4,rep,name=nin,json=$nin,proto3" json:"nin,omitempty"`
	Gt    *wrapperspb.FloatValue   `protobuf:"bytes,5,opt,name=gt,json=$gt,proto3,oneof" json:"gt,omitempty"`
	Gte   *wrapperspb.FloatValue   `protobuf:"bytes,6,opt,name=gte,json=$gte,proto3,oneof" json:"gte,omitempty"`
	Lt    *wrapperspb.FloatValue   `protobuf:"bytes,7,opt,name=lt,json=$lt,proto3,oneof" json:"lt,omitempty"`
	Lte   *wrapperspb.FloatValue   `protobuf:"bytes,8,opt,name=lte,json=$lte,proto3,oneof" json:"lte,omitempty"`
	Null  *wrapperspb.BoolValue    `protobuf:"bytes,9,opt,name=null,json=$null,proto3,oneof" json:"null,omitempty"`
	Nnull *wrapperspb.BoolValue    `protobuf:"bytes,10,opt,name=nnull,json=$nnull,proto3,oneof" json:"nnull,omitempty"`
	// contains filtered or unexported fields
}

func (*FloatFilterOperators) Descriptor deprecated

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

Deprecated: Use FloatFilterOperators.ProtoReflect.Descriptor instead.

func (*FloatFilterOperators) GetEq

func (*FloatFilterOperators) GetGt

func (*FloatFilterOperators) GetGte

func (*FloatFilterOperators) GetIn

func (*FloatFilterOperators) GetLt

func (*FloatFilterOperators) GetLte

func (*FloatFilterOperators) GetNeq

func (*FloatFilterOperators) GetNin

func (*FloatFilterOperators) GetNnull

func (x *FloatFilterOperators) GetNnull() *wrapperspb.BoolValue

func (*FloatFilterOperators) GetNull

func (*FloatFilterOperators) ProtoMessage

func (*FloatFilterOperators) ProtoMessage()

func (*FloatFilterOperators) ProtoReflect

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

func (*FloatFilterOperators) Reset

func (x *FloatFilterOperators) Reset()

func (*FloatFilterOperators) String

func (x *FloatFilterOperators) String() string

type Int32FilterOperators

type Int32FilterOperators struct {
	Eq    *wrapperspb.Int32Value   `protobuf:"bytes,1,opt,name=eq,json=$eq,proto3,oneof" json:"eq,omitempty"`
	Neq   *wrapperspb.Int32Value   `protobuf:"bytes,2,opt,name=neq,json=$neq,proto3,oneof" json:"neq,omitempty"`
	In    []*wrapperspb.Int32Value `protobuf:"bytes,3,rep,name=in,json=$in,proto3" json:"in,omitempty"`
	Nin   []*wrapperspb.Int32Value `protobuf:"bytes,4,rep,name=nin,json=$nin,proto3" json:"nin,omitempty"`
	Gt    *wrapperspb.Int32Value   `protobuf:"bytes,5,opt,name=gt,json=$gt,proto3,oneof" json:"gt,omitempty"`
	Gte   *wrapperspb.Int32Value   `protobuf:"bytes,6,opt,name=gte,json=$gte,proto3,oneof" json:"gte,omitempty"`
	Lt    *wrapperspb.Int32Value   `protobuf:"bytes,7,opt,name=lt,json=$lt,proto3,oneof" json:"lt,omitempty"`
	Lte   *wrapperspb.Int32Value   `protobuf:"bytes,8,opt,name=lte,json=$lte,proto3,oneof" json:"lte,omitempty"`
	Null  *wrapperspb.BoolValue    `protobuf:"bytes,9,opt,name=null,json=$null,proto3,oneof" json:"null,omitempty"`
	Nnull *wrapperspb.BoolValue    `protobuf:"bytes,10,opt,name=nnull,json=$nnull,proto3,oneof" json:"nnull,omitempty"`
	// contains filtered or unexported fields
}
message UInt64FilterOperators{
 optional google.protobuf.UInt64Value    eq =1 [json_name="$eq"];
 optional google.protobuf.UInt64Value    neq=2 [json_name="$neq"];
 repeated google.protobuf.UInt64Value    in=3 [json_name="$in"];
 repeated google.protobuf.UInt64Value    nin=4 [json_name="$nin"];
 optional google.protobuf.UInt64Value    gt =5 [json_name="$gt"];
 optional google.protobuf.UInt64Value    gte =6 [json_name="$gte"];
 optional google.protobuf.UInt64Value    lt =7 [json_name="$lt"];
 optional google.protobuf.UInt64Value    lte =8 [json_name="$lte"];

 optional google.protobuf.BoolValue  null=9 [json_name="$null"];
 optional google.protobuf.BoolValue nnull=10 [json_name="$nnull"];

}

func (*Int32FilterOperators) Descriptor deprecated

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

Deprecated: Use Int32FilterOperators.ProtoReflect.Descriptor instead.

func (*Int32FilterOperators) GetEq

func (*Int32FilterOperators) GetGt

func (*Int32FilterOperators) GetGte

func (*Int32FilterOperators) GetIn

func (*Int32FilterOperators) GetLt

func (*Int32FilterOperators) GetLte

func (*Int32FilterOperators) GetNeq

func (*Int32FilterOperators) GetNin

func (*Int32FilterOperators) GetNnull

func (x *Int32FilterOperators) GetNnull() *wrapperspb.BoolValue

func (*Int32FilterOperators) GetNull

func (*Int32FilterOperators) ProtoMessage

func (*Int32FilterOperators) ProtoMessage()

func (*Int32FilterOperators) ProtoReflect

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

func (*Int32FilterOperators) Reset

func (x *Int32FilterOperators) Reset()

func (*Int32FilterOperators) String

func (x *Int32FilterOperators) String() string

type Int64FilterOperators

type Int64FilterOperators struct {
	Eq    *wrapperspb.Int64Value   `protobuf:"bytes,1,opt,name=eq,json=$eq,proto3,oneof" json:"eq,omitempty"`
	Neq   *wrapperspb.Int64Value   `protobuf:"bytes,2,opt,name=neq,json=$neq,proto3,oneof" json:"neq,omitempty"`
	In    []*wrapperspb.Int64Value `protobuf:"bytes,3,rep,name=in,json=$in,proto3" json:"in,omitempty"`
	Nin   []*wrapperspb.Int64Value `protobuf:"bytes,4,rep,name=nin,json=$nin,proto3" json:"nin,omitempty"`
	Gt    *wrapperspb.Int64Value   `protobuf:"bytes,5,opt,name=gt,json=$gt,proto3,oneof" json:"gt,omitempty"`
	Gte   *wrapperspb.Int64Value   `protobuf:"bytes,6,opt,name=gte,json=$gte,proto3,oneof" json:"gte,omitempty"`
	Lt    *wrapperspb.Int64Value   `protobuf:"bytes,7,opt,name=lt,json=$lt,proto3,oneof" json:"lt,omitempty"`
	Lte   *wrapperspb.Int64Value   `protobuf:"bytes,8,opt,name=lte,json=$lte,proto3,oneof" json:"lte,omitempty"`
	Null  *wrapperspb.BoolValue    `protobuf:"bytes,9,opt,name=null,json=$null,proto3,oneof" json:"null,omitempty"`
	Nnull *wrapperspb.BoolValue    `protobuf:"bytes,10,opt,name=nnull,json=$nnull,proto3,oneof" json:"nnull,omitempty"`
	// contains filtered or unexported fields
}

func (*Int64FilterOperators) Descriptor deprecated

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

Deprecated: Use Int64FilterOperators.ProtoReflect.Descriptor instead.

func (*Int64FilterOperators) GetEq

func (*Int64FilterOperators) GetGt

func (*Int64FilterOperators) GetGte

func (*Int64FilterOperators) GetIn

func (*Int64FilterOperators) GetLt

func (*Int64FilterOperators) GetLte

func (*Int64FilterOperators) GetNeq

func (*Int64FilterOperators) GetNin

func (*Int64FilterOperators) GetNnull

func (x *Int64FilterOperators) GetNnull() *wrapperspb.BoolValue

func (*Int64FilterOperators) GetNull

func (*Int64FilterOperators) ProtoMessage

func (*Int64FilterOperators) ProtoMessage()

func (*Int64FilterOperators) ProtoReflect

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

func (*Int64FilterOperators) Reset

func (x *Int64FilterOperators) Reset()

func (*Int64FilterOperators) String

func (x *Int64FilterOperators) String() string

type NullFilterOperators

type NullFilterOperators struct {
	Null  *wrapperspb.BoolValue `protobuf:"bytes,7,opt,name=null,json=$null,proto3,oneof" json:"null,omitempty"`
	Nnull *wrapperspb.BoolValue `protobuf:"bytes,8,opt,name=nnull,json=$nnull,proto3,oneof" json:"nnull,omitempty"`
	// contains filtered or unexported fields
}

func (*NullFilterOperators) Descriptor deprecated

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

Deprecated: Use NullFilterOperators.ProtoReflect.Descriptor instead.

func (*NullFilterOperators) GetNnull

func (x *NullFilterOperators) GetNnull() *wrapperspb.BoolValue

func (*NullFilterOperators) GetNull

func (*NullFilterOperators) ProtoMessage

func (*NullFilterOperators) ProtoMessage()

func (*NullFilterOperators) ProtoReflect

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

func (*NullFilterOperators) Reset

func (x *NullFilterOperators) Reset()

func (*NullFilterOperators) String

func (x *NullFilterOperators) String() string

type Page

type Page interface {
	GetPageOffset() int32
	GetPageSize() int32
}

Page handle pagination

type Search interface {
	GetSearch() string
}

Search field

type Select

type Select interface {
	GetFields() *fieldmaskpb.FieldMask
}

Select fields to query or update

type Sort

type Sort interface {
	GetSort() []string
}

Sort interface handle sorting like '+created_at','-created_at'

type StringFilterOperation

type StringFilterOperation struct {
	Eq          *wrapperspb.StringValue   `protobuf:"bytes,1,opt,name=eq,json=$eq,proto3,oneof" json:"eq,omitempty"`
	Neq         *wrapperspb.StringValue   `protobuf:"bytes,2,opt,name=neq,json=$neq,proto3,oneof" json:"neq,omitempty"`
	Contains    *wrapperspb.StringValue   `protobuf:"bytes,3,opt,name=contains,json=$contains,proto3,oneof" json:"contains,omitempty"`
	StartsWith  *wrapperspb.StringValue   `protobuf:"bytes,4,opt,name=starts_with,json=$starts_with,proto3,oneof" json:"starts_with,omitempty"`
	NstartsWith *wrapperspb.StringValue   `protobuf:"bytes,5,opt,name=nstarts_with,json=$nstarts_with,proto3,oneof" json:"nstarts_with,omitempty"`
	EndsWith    *wrapperspb.StringValue   `protobuf:"bytes,6,opt,name=ends_with,json=$ends_with,proto3,oneof" json:"ends_with,omitempty"`
	NendsWith   *wrapperspb.StringValue   `protobuf:"bytes,7,opt,name=nends_with,json=$nends_with,proto3,oneof" json:"nends_with,omitempty"`
	In          []*wrapperspb.StringValue `protobuf:"bytes,8,rep,name=in,json=$in,proto3" json:"in,omitempty"`
	Nin         []*wrapperspb.StringValue `protobuf:"bytes,9,rep,name=nin,json=$nin,proto3" json:"nin,omitempty"`
	Null        *wrapperspb.BoolValue     `protobuf:"bytes,10,opt,name=null,json=$null,proto3,oneof" json:"null,omitempty"`
	Nnull       *wrapperspb.BoolValue     `protobuf:"bytes,11,opt,name=nnull,json=$nnull,proto3,oneof" json:"nnull,omitempty"`
	Empty       *wrapperspb.BoolValue     `protobuf:"bytes,12,opt,name=empty,json=$empty,proto3,oneof" json:"empty,omitempty"`
	Nempty      *wrapperspb.BoolValue     `protobuf:"bytes,13,opt,name=nempty,json=$nempty,proto3,oneof" json:"nempty,omitempty"`
	Like        *wrapperspb.StringValue   `protobuf:"bytes,14,opt,name=like,json=$like,proto3,oneof" json:"like,omitempty"`
	// contains filtered or unexported fields
}

func (*StringFilterOperation) Descriptor deprecated

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

Deprecated: Use StringFilterOperation.ProtoReflect.Descriptor instead.

func (*StringFilterOperation) GetContains

func (x *StringFilterOperation) GetContains() *wrapperspb.StringValue

func (*StringFilterOperation) GetEmpty

func (*StringFilterOperation) GetEndsWith

func (x *StringFilterOperation) GetEndsWith() *wrapperspb.StringValue

func (*StringFilterOperation) GetEq

func (*StringFilterOperation) GetIn

func (*StringFilterOperation) GetLike

func (*StringFilterOperation) GetNempty

func (x *StringFilterOperation) GetNempty() *wrapperspb.BoolValue

func (*StringFilterOperation) GetNendsWith

func (x *StringFilterOperation) GetNendsWith() *wrapperspb.StringValue

func (*StringFilterOperation) GetNeq

func (*StringFilterOperation) GetNin

func (*StringFilterOperation) GetNnull

func (*StringFilterOperation) GetNstartsWith

func (x *StringFilterOperation) GetNstartsWith() *wrapperspb.StringValue

func (*StringFilterOperation) GetNull

func (*StringFilterOperation) GetStartsWith

func (x *StringFilterOperation) GetStartsWith() *wrapperspb.StringValue

func (*StringFilterOperation) ProtoMessage

func (*StringFilterOperation) ProtoMessage()

func (*StringFilterOperation) ProtoReflect

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

func (*StringFilterOperation) Reset

func (x *StringFilterOperation) Reset()

func (*StringFilterOperation) String

func (x *StringFilterOperation) String() string

Jump to

Keyboard shortcuts

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