// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: runtime/v1/query.proto

package runtimev1

import (
	v1 "github.com/pingcap-inc/nexuscrm-contract/wire-go/gen/common/v1"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type QueryPredicateKind int32

const (
	QueryPredicateKind_QUERY_PREDICATE_KIND_UNSPECIFIED           QueryPredicateKind = 0
	QueryPredicateKind_QUERY_PREDICATE_KIND_AND                   QueryPredicateKind = 1
	QueryPredicateKind_QUERY_PREDICATE_KIND_OR                    QueryPredicateKind = 2
	QueryPredicateKind_QUERY_PREDICATE_KIND_NOT                   QueryPredicateKind = 3
	QueryPredicateKind_QUERY_PREDICATE_KIND_EXPRESSION            QueryPredicateKind = 4
	QueryPredicateKind_QUERY_PREDICATE_KIND_COMPARISON            QueryPredicateKind = 5
	QueryPredicateKind_QUERY_PREDICATE_KIND_FIELD_COMPARISON      QueryPredicateKind = 6
	QueryPredicateKind_QUERY_PREDICATE_KIND_CORRELATED_MEMBERSHIP QueryPredicateKind = 7
)

// Enum value maps for QueryPredicateKind.
var (
	QueryPredicateKind_name = map[int32]string{
		0: "QUERY_PREDICATE_KIND_UNSPECIFIED",
		1: "QUERY_PREDICATE_KIND_AND",
		2: "QUERY_PREDICATE_KIND_OR",
		3: "QUERY_PREDICATE_KIND_NOT",
		4: "QUERY_PREDICATE_KIND_EXPRESSION",
		5: "QUERY_PREDICATE_KIND_COMPARISON",
		6: "QUERY_PREDICATE_KIND_FIELD_COMPARISON",
		7: "QUERY_PREDICATE_KIND_CORRELATED_MEMBERSHIP",
	}
	QueryPredicateKind_value = map[string]int32{
		"QUERY_PREDICATE_KIND_UNSPECIFIED":           0,
		"QUERY_PREDICATE_KIND_AND":                   1,
		"QUERY_PREDICATE_KIND_OR":                    2,
		"QUERY_PREDICATE_KIND_NOT":                   3,
		"QUERY_PREDICATE_KIND_EXPRESSION":            4,
		"QUERY_PREDICATE_KIND_COMPARISON":            5,
		"QUERY_PREDICATE_KIND_FIELD_COMPARISON":      6,
		"QUERY_PREDICATE_KIND_CORRELATED_MEMBERSHIP": 7,
	}
)

func (x QueryPredicateKind) Enum() *QueryPredicateKind {
	p := new(QueryPredicateKind)
	*p = x
	return p
}

func (x QueryPredicateKind) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (QueryPredicateKind) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_query_proto_enumTypes[0].Descriptor()
}

func (QueryPredicateKind) Type() protoreflect.EnumType {
	return &file_runtime_v1_query_proto_enumTypes[0]
}

func (x QueryPredicateKind) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use QueryPredicateKind.Descriptor instead.
func (QueryPredicateKind) EnumDescriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{0}
}

type QueryOperandKind int32

const (
	QueryOperandKind_QUERY_OPERAND_KIND_UNSPECIFIED     QueryOperandKind = 0
	QueryOperandKind_QUERY_OPERAND_KIND_FIELD           QueryOperandKind = 1
	QueryOperandKind_QUERY_OPERAND_KIND_LITERAL         QueryOperandKind = 2
	QueryOperandKind_QUERY_OPERAND_KIND_LIST            QueryOperandKind = 3
	QueryOperandKind_QUERY_OPERAND_KIND_FUNCTION        QueryOperandKind = 4
	QueryOperandKind_QUERY_OPERAND_KIND_TRUSTED_CONTEXT QueryOperandKind = 5
)

// Enum value maps for QueryOperandKind.
var (
	QueryOperandKind_name = map[int32]string{
		0: "QUERY_OPERAND_KIND_UNSPECIFIED",
		1: "QUERY_OPERAND_KIND_FIELD",
		2: "QUERY_OPERAND_KIND_LITERAL",
		3: "QUERY_OPERAND_KIND_LIST",
		4: "QUERY_OPERAND_KIND_FUNCTION",
		5: "QUERY_OPERAND_KIND_TRUSTED_CONTEXT",
	}
	QueryOperandKind_value = map[string]int32{
		"QUERY_OPERAND_KIND_UNSPECIFIED":     0,
		"QUERY_OPERAND_KIND_FIELD":           1,
		"QUERY_OPERAND_KIND_LITERAL":         2,
		"QUERY_OPERAND_KIND_LIST":            3,
		"QUERY_OPERAND_KIND_FUNCTION":        4,
		"QUERY_OPERAND_KIND_TRUSTED_CONTEXT": 5,
	}
)

func (x QueryOperandKind) Enum() *QueryOperandKind {
	p := new(QueryOperandKind)
	*p = x
	return p
}

func (x QueryOperandKind) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (QueryOperandKind) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_query_proto_enumTypes[1].Descriptor()
}

func (QueryOperandKind) Type() protoreflect.EnumType {
	return &file_runtime_v1_query_proto_enumTypes[1]
}

func (x QueryOperandKind) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use QueryOperandKind.Descriptor instead.
func (QueryOperandKind) EnumDescriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{1}
}

type QueryComparisonOperator int32

const (
	QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_UNSPECIFIED      QueryComparisonOperator = 0
	QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_EQUAL            QueryComparisonOperator = 1
	QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_NOT_EQUAL        QueryComparisonOperator = 2
	QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_GREATER_THAN     QueryComparisonOperator = 3
	QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_GREATER_OR_EQUAL QueryComparisonOperator = 4
	QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_LESS_THAN        QueryComparisonOperator = 5
	QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_LESS_OR_EQUAL    QueryComparisonOperator = 6
	QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_IN               QueryComparisonOperator = 7
	QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_NOT_IN           QueryComparisonOperator = 8
	QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_CONTAINS         QueryComparisonOperator = 9
	QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_STARTS_WITH      QueryComparisonOperator = 10
	QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_ENDS_WITH        QueryComparisonOperator = 11
	QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_LIKE             QueryComparisonOperator = 12
	QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_NOT_LIKE         QueryComparisonOperator = 13
)

// Enum value maps for QueryComparisonOperator.
var (
	QueryComparisonOperator_name = map[int32]string{
		0:  "QUERY_COMPARISON_OPERATOR_UNSPECIFIED",
		1:  "QUERY_COMPARISON_OPERATOR_EQUAL",
		2:  "QUERY_COMPARISON_OPERATOR_NOT_EQUAL",
		3:  "QUERY_COMPARISON_OPERATOR_GREATER_THAN",
		4:  "QUERY_COMPARISON_OPERATOR_GREATER_OR_EQUAL",
		5:  "QUERY_COMPARISON_OPERATOR_LESS_THAN",
		6:  "QUERY_COMPARISON_OPERATOR_LESS_OR_EQUAL",
		7:  "QUERY_COMPARISON_OPERATOR_IN",
		8:  "QUERY_COMPARISON_OPERATOR_NOT_IN",
		9:  "QUERY_COMPARISON_OPERATOR_CONTAINS",
		10: "QUERY_COMPARISON_OPERATOR_STARTS_WITH",
		11: "QUERY_COMPARISON_OPERATOR_ENDS_WITH",
		12: "QUERY_COMPARISON_OPERATOR_LIKE",
		13: "QUERY_COMPARISON_OPERATOR_NOT_LIKE",
	}
	QueryComparisonOperator_value = map[string]int32{
		"QUERY_COMPARISON_OPERATOR_UNSPECIFIED":      0,
		"QUERY_COMPARISON_OPERATOR_EQUAL":            1,
		"QUERY_COMPARISON_OPERATOR_NOT_EQUAL":        2,
		"QUERY_COMPARISON_OPERATOR_GREATER_THAN":     3,
		"QUERY_COMPARISON_OPERATOR_GREATER_OR_EQUAL": 4,
		"QUERY_COMPARISON_OPERATOR_LESS_THAN":        5,
		"QUERY_COMPARISON_OPERATOR_LESS_OR_EQUAL":    6,
		"QUERY_COMPARISON_OPERATOR_IN":               7,
		"QUERY_COMPARISON_OPERATOR_NOT_IN":           8,
		"QUERY_COMPARISON_OPERATOR_CONTAINS":         9,
		"QUERY_COMPARISON_OPERATOR_STARTS_WITH":      10,
		"QUERY_COMPARISON_OPERATOR_ENDS_WITH":        11,
		"QUERY_COMPARISON_OPERATOR_LIKE":             12,
		"QUERY_COMPARISON_OPERATOR_NOT_LIKE":         13,
	}
)

func (x QueryComparisonOperator) Enum() *QueryComparisonOperator {
	p := new(QueryComparisonOperator)
	*p = x
	return p
}

func (x QueryComparisonOperator) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (QueryComparisonOperator) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_query_proto_enumTypes[2].Descriptor()
}

func (QueryComparisonOperator) Type() protoreflect.EnumType {
	return &file_runtime_v1_query_proto_enumTypes[2]
}

func (x QueryComparisonOperator) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use QueryComparisonOperator.Descriptor instead.
func (QueryComparisonOperator) EnumDescriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{2}
}

type QueryFunctionName int32

const (
	QueryFunctionName_QUERY_FUNCTION_NAME_UNSPECIFIED        QueryFunctionName = 0
	QueryFunctionName_QUERY_FUNCTION_NAME_COUNT              QueryFunctionName = 1
	QueryFunctionName_QUERY_FUNCTION_NAME_COUNT_DISTINCT     QueryFunctionName = 2
	QueryFunctionName_QUERY_FUNCTION_NAME_SUM                QueryFunctionName = 3
	QueryFunctionName_QUERY_FUNCTION_NAME_AVG                QueryFunctionName = 4
	QueryFunctionName_QUERY_FUNCTION_NAME_MIN                QueryFunctionName = 5
	QueryFunctionName_QUERY_FUNCTION_NAME_MAX                QueryFunctionName = 6
	QueryFunctionName_QUERY_FUNCTION_NAME_STRING             QueryFunctionName = 7
	QueryFunctionName_QUERY_FUNCTION_NAME_FORMAT             QueryFunctionName = 8
	QueryFunctionName_QUERY_FUNCTION_NAME_DISPLAY_VALUE      QueryFunctionName = 9
	QueryFunctionName_QUERY_FUNCTION_NAME_NORMALIZE_CURRENCY QueryFunctionName = 10
	QueryFunctionName_QUERY_FUNCTION_NAME_GROUPING           QueryFunctionName = 11
	QueryFunctionName_QUERY_FUNCTION_NAME_TEMPORAL_PART      QueryFunctionName = 12
	QueryFunctionName_QUERY_FUNCTION_NAME_GEO_DISTANCE       QueryFunctionName = 13
	QueryFunctionName_QUERY_FUNCTION_NAME_GEO_POINT          QueryFunctionName = 14
)

// Enum value maps for QueryFunctionName.
var (
	QueryFunctionName_name = map[int32]string{
		0:  "QUERY_FUNCTION_NAME_UNSPECIFIED",
		1:  "QUERY_FUNCTION_NAME_COUNT",
		2:  "QUERY_FUNCTION_NAME_COUNT_DISTINCT",
		3:  "QUERY_FUNCTION_NAME_SUM",
		4:  "QUERY_FUNCTION_NAME_AVG",
		5:  "QUERY_FUNCTION_NAME_MIN",
		6:  "QUERY_FUNCTION_NAME_MAX",
		7:  "QUERY_FUNCTION_NAME_STRING",
		8:  "QUERY_FUNCTION_NAME_FORMAT",
		9:  "QUERY_FUNCTION_NAME_DISPLAY_VALUE",
		10: "QUERY_FUNCTION_NAME_NORMALIZE_CURRENCY",
		11: "QUERY_FUNCTION_NAME_GROUPING",
		12: "QUERY_FUNCTION_NAME_TEMPORAL_PART",
		13: "QUERY_FUNCTION_NAME_GEO_DISTANCE",
		14: "QUERY_FUNCTION_NAME_GEO_POINT",
	}
	QueryFunctionName_value = map[string]int32{
		"QUERY_FUNCTION_NAME_UNSPECIFIED":        0,
		"QUERY_FUNCTION_NAME_COUNT":              1,
		"QUERY_FUNCTION_NAME_COUNT_DISTINCT":     2,
		"QUERY_FUNCTION_NAME_SUM":                3,
		"QUERY_FUNCTION_NAME_AVG":                4,
		"QUERY_FUNCTION_NAME_MIN":                5,
		"QUERY_FUNCTION_NAME_MAX":                6,
		"QUERY_FUNCTION_NAME_STRING":             7,
		"QUERY_FUNCTION_NAME_FORMAT":             8,
		"QUERY_FUNCTION_NAME_DISPLAY_VALUE":      9,
		"QUERY_FUNCTION_NAME_NORMALIZE_CURRENCY": 10,
		"QUERY_FUNCTION_NAME_GROUPING":           11,
		"QUERY_FUNCTION_NAME_TEMPORAL_PART":      12,
		"QUERY_FUNCTION_NAME_GEO_DISTANCE":       13,
		"QUERY_FUNCTION_NAME_GEO_POINT":          14,
	}
)

func (x QueryFunctionName) Enum() *QueryFunctionName {
	p := new(QueryFunctionName)
	*p = x
	return p
}

func (x QueryFunctionName) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (QueryFunctionName) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_query_proto_enumTypes[3].Descriptor()
}

func (QueryFunctionName) Type() protoreflect.EnumType {
	return &file_runtime_v1_query_proto_enumTypes[3]
}

func (x QueryFunctionName) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use QueryFunctionName.Descriptor instead.
func (QueryFunctionName) EnumDescriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{3}
}

type QueryTemporalPart int32

const (
	QueryTemporalPart_QUERY_TEMPORAL_PART_UNSPECIFIED   QueryTemporalPart = 0
	QueryTemporalPart_QUERY_TEMPORAL_PART_MONTH         QueryTemporalPart = 1
	QueryTemporalPart_QUERY_TEMPORAL_PART_YEAR          QueryTemporalPart = 2
	QueryTemporalPart_QUERY_TEMPORAL_PART_QUARTER       QueryTemporalPart = 3
	QueryTemporalPart_QUERY_TEMPORAL_PART_DAY_OF_MONTH  QueryTemporalPart = 4
	QueryTemporalPart_QUERY_TEMPORAL_PART_DAY_OF_WEEK   QueryTemporalPart = 5
	QueryTemporalPart_QUERY_TEMPORAL_PART_DAY_OF_YEAR   QueryTemporalPart = 6
	QueryTemporalPart_QUERY_TEMPORAL_PART_DATE          QueryTemporalPart = 7
	QueryTemporalPart_QUERY_TEMPORAL_PART_HOUR          QueryTemporalPart = 8
	QueryTemporalPart_QUERY_TEMPORAL_PART_WEEK_OF_MONTH QueryTemporalPart = 9
	QueryTemporalPart_QUERY_TEMPORAL_PART_WEEK_OF_YEAR  QueryTemporalPart = 10
)

// Enum value maps for QueryTemporalPart.
var (
	QueryTemporalPart_name = map[int32]string{
		0:  "QUERY_TEMPORAL_PART_UNSPECIFIED",
		1:  "QUERY_TEMPORAL_PART_MONTH",
		2:  "QUERY_TEMPORAL_PART_YEAR",
		3:  "QUERY_TEMPORAL_PART_QUARTER",
		4:  "QUERY_TEMPORAL_PART_DAY_OF_MONTH",
		5:  "QUERY_TEMPORAL_PART_DAY_OF_WEEK",
		6:  "QUERY_TEMPORAL_PART_DAY_OF_YEAR",
		7:  "QUERY_TEMPORAL_PART_DATE",
		8:  "QUERY_TEMPORAL_PART_HOUR",
		9:  "QUERY_TEMPORAL_PART_WEEK_OF_MONTH",
		10: "QUERY_TEMPORAL_PART_WEEK_OF_YEAR",
	}
	QueryTemporalPart_value = map[string]int32{
		"QUERY_TEMPORAL_PART_UNSPECIFIED":   0,
		"QUERY_TEMPORAL_PART_MONTH":         1,
		"QUERY_TEMPORAL_PART_YEAR":          2,
		"QUERY_TEMPORAL_PART_QUARTER":       3,
		"QUERY_TEMPORAL_PART_DAY_OF_MONTH":  4,
		"QUERY_TEMPORAL_PART_DAY_OF_WEEK":   5,
		"QUERY_TEMPORAL_PART_DAY_OF_YEAR":   6,
		"QUERY_TEMPORAL_PART_DATE":          7,
		"QUERY_TEMPORAL_PART_HOUR":          8,
		"QUERY_TEMPORAL_PART_WEEK_OF_MONTH": 9,
		"QUERY_TEMPORAL_PART_WEEK_OF_YEAR":  10,
	}
)

func (x QueryTemporalPart) Enum() *QueryTemporalPart {
	p := new(QueryTemporalPart)
	*p = x
	return p
}

func (x QueryTemporalPart) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (QueryTemporalPart) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_query_proto_enumTypes[4].Descriptor()
}

func (QueryTemporalPart) Type() protoreflect.EnumType {
	return &file_runtime_v1_query_proto_enumTypes[4]
}

func (x QueryTemporalPart) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use QueryTemporalPart.Descriptor instead.
func (QueryTemporalPart) EnumDescriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{4}
}

type QueryTemporalBasis int32

const (
	QueryTemporalBasis_QUERY_TEMPORAL_BASIS_UNSPECIFIED QueryTemporalBasis = 0
	QueryTemporalBasis_QUERY_TEMPORAL_BASIS_CIVIL       QueryTemporalBasis = 1
	QueryTemporalBasis_QUERY_TEMPORAL_BASIS_BUSINESS    QueryTemporalBasis = 2
)

// Enum value maps for QueryTemporalBasis.
var (
	QueryTemporalBasis_name = map[int32]string{
		0: "QUERY_TEMPORAL_BASIS_UNSPECIFIED",
		1: "QUERY_TEMPORAL_BASIS_CIVIL",
		2: "QUERY_TEMPORAL_BASIS_BUSINESS",
	}
	QueryTemporalBasis_value = map[string]int32{
		"QUERY_TEMPORAL_BASIS_UNSPECIFIED": 0,
		"QUERY_TEMPORAL_BASIS_CIVIL":       1,
		"QUERY_TEMPORAL_BASIS_BUSINESS":    2,
	}
)

func (x QueryTemporalBasis) Enum() *QueryTemporalBasis {
	p := new(QueryTemporalBasis)
	*p = x
	return p
}

func (x QueryTemporalBasis) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (QueryTemporalBasis) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_query_proto_enumTypes[5].Descriptor()
}

func (QueryTemporalBasis) Type() protoreflect.EnumType {
	return &file_runtime_v1_query_proto_enumTypes[5]
}

func (x QueryTemporalBasis) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use QueryTemporalBasis.Descriptor instead.
func (QueryTemporalBasis) EnumDescriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{5}
}

type QueryDistanceUnit int32

const (
	QueryDistanceUnit_QUERY_DISTANCE_UNIT_UNSPECIFIED QueryDistanceUnit = 0
	QueryDistanceUnit_QUERY_DISTANCE_UNIT_KILOMETERS  QueryDistanceUnit = 1
	QueryDistanceUnit_QUERY_DISTANCE_UNIT_MILES       QueryDistanceUnit = 2
)

// Enum value maps for QueryDistanceUnit.
var (
	QueryDistanceUnit_name = map[int32]string{
		0: "QUERY_DISTANCE_UNIT_UNSPECIFIED",
		1: "QUERY_DISTANCE_UNIT_KILOMETERS",
		2: "QUERY_DISTANCE_UNIT_MILES",
	}
	QueryDistanceUnit_value = map[string]int32{
		"QUERY_DISTANCE_UNIT_UNSPECIFIED": 0,
		"QUERY_DISTANCE_UNIT_KILOMETERS":  1,
		"QUERY_DISTANCE_UNIT_MILES":       2,
	}
)

func (x QueryDistanceUnit) Enum() *QueryDistanceUnit {
	p := new(QueryDistanceUnit)
	*p = x
	return p
}

func (x QueryDistanceUnit) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (QueryDistanceUnit) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_query_proto_enumTypes[6].Descriptor()
}

func (QueryDistanceUnit) Type() protoreflect.EnumType {
	return &file_runtime_v1_query_proto_enumTypes[6]
}

func (x QueryDistanceUnit) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use QueryDistanceUnit.Descriptor instead.
func (QueryDistanceUnit) EnumDescriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{6}
}

type QuerySortDirection int32

const (
	QuerySortDirection_QUERY_SORT_DIRECTION_UNSPECIFIED QuerySortDirection = 0
	QuerySortDirection_QUERY_SORT_DIRECTION_ASCENDING   QuerySortDirection = 1
	QuerySortDirection_QUERY_SORT_DIRECTION_DESCENDING  QuerySortDirection = 2
)

// Enum value maps for QuerySortDirection.
var (
	QuerySortDirection_name = map[int32]string{
		0: "QUERY_SORT_DIRECTION_UNSPECIFIED",
		1: "QUERY_SORT_DIRECTION_ASCENDING",
		2: "QUERY_SORT_DIRECTION_DESCENDING",
	}
	QuerySortDirection_value = map[string]int32{
		"QUERY_SORT_DIRECTION_UNSPECIFIED": 0,
		"QUERY_SORT_DIRECTION_ASCENDING":   1,
		"QUERY_SORT_DIRECTION_DESCENDING":  2,
	}
)

func (x QuerySortDirection) Enum() *QuerySortDirection {
	p := new(QuerySortDirection)
	*p = x
	return p
}

func (x QuerySortDirection) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (QuerySortDirection) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_query_proto_enumTypes[7].Descriptor()
}

func (QuerySortDirection) Type() protoreflect.EnumType {
	return &file_runtime_v1_query_proto_enumTypes[7]
}

func (x QuerySortDirection) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use QuerySortDirection.Descriptor instead.
func (QuerySortDirection) EnumDescriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{7}
}

type QuerySelectionKind int32

const (
	QuerySelectionKind_QUERY_SELECTION_KIND_UNSPECIFIED QuerySelectionKind = 0
	QuerySelectionKind_QUERY_SELECTION_KIND_FIELD       QuerySelectionKind = 1
	QuerySelectionKind_QUERY_SELECTION_KIND_AGGREGATE   QuerySelectionKind = 2
)

// Enum value maps for QuerySelectionKind.
var (
	QuerySelectionKind_name = map[int32]string{
		0: "QUERY_SELECTION_KIND_UNSPECIFIED",
		1: "QUERY_SELECTION_KIND_FIELD",
		2: "QUERY_SELECTION_KIND_AGGREGATE",
	}
	QuerySelectionKind_value = map[string]int32{
		"QUERY_SELECTION_KIND_UNSPECIFIED": 0,
		"QUERY_SELECTION_KIND_FIELD":       1,
		"QUERY_SELECTION_KIND_AGGREGATE":   2,
	}
)

func (x QuerySelectionKind) Enum() *QuerySelectionKind {
	p := new(QuerySelectionKind)
	*p = x
	return p
}

func (x QuerySelectionKind) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (QuerySelectionKind) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_query_proto_enumTypes[8].Descriptor()
}

func (QuerySelectionKind) Type() protoreflect.EnumType {
	return &file_runtime_v1_query_proto_enumTypes[8]
}

func (x QuerySelectionKind) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use QuerySelectionKind.Descriptor instead.
func (QuerySelectionKind) EnumDescriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{8}
}

type QueryAggregateFunction int32

const (
	QueryAggregateFunction_QUERY_AGGREGATE_FUNCTION_UNSPECIFIED QueryAggregateFunction = 0
	QueryAggregateFunction_QUERY_AGGREGATE_FUNCTION_COUNT       QueryAggregateFunction = 1
	QueryAggregateFunction_QUERY_AGGREGATE_FUNCTION_SUM         QueryAggregateFunction = 2
	QueryAggregateFunction_QUERY_AGGREGATE_FUNCTION_AVG         QueryAggregateFunction = 3
	QueryAggregateFunction_QUERY_AGGREGATE_FUNCTION_MIN         QueryAggregateFunction = 4
	QueryAggregateFunction_QUERY_AGGREGATE_FUNCTION_MAX         QueryAggregateFunction = 5
)

// Enum value maps for QueryAggregateFunction.
var (
	QueryAggregateFunction_name = map[int32]string{
		0: "QUERY_AGGREGATE_FUNCTION_UNSPECIFIED",
		1: "QUERY_AGGREGATE_FUNCTION_COUNT",
		2: "QUERY_AGGREGATE_FUNCTION_SUM",
		3: "QUERY_AGGREGATE_FUNCTION_AVG",
		4: "QUERY_AGGREGATE_FUNCTION_MIN",
		5: "QUERY_AGGREGATE_FUNCTION_MAX",
	}
	QueryAggregateFunction_value = map[string]int32{
		"QUERY_AGGREGATE_FUNCTION_UNSPECIFIED": 0,
		"QUERY_AGGREGATE_FUNCTION_COUNT":       1,
		"QUERY_AGGREGATE_FUNCTION_SUM":         2,
		"QUERY_AGGREGATE_FUNCTION_AVG":         3,
		"QUERY_AGGREGATE_FUNCTION_MIN":         4,
		"QUERY_AGGREGATE_FUNCTION_MAX":         5,
	}
)

func (x QueryAggregateFunction) Enum() *QueryAggregateFunction {
	p := new(QueryAggregateFunction)
	*p = x
	return p
}

func (x QueryAggregateFunction) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (QueryAggregateFunction) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_query_proto_enumTypes[9].Descriptor()
}

func (QueryAggregateFunction) Type() protoreflect.EnumType {
	return &file_runtime_v1_query_proto_enumTypes[9]
}

func (x QueryAggregateFunction) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use QueryAggregateFunction.Descriptor instead.
func (QueryAggregateFunction) EnumDescriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{9}
}

type QueryValueKind int32

const (
	QueryValueKind_QUERY_VALUE_KIND_UNSPECIFIED QueryValueKind = 0
	QueryValueKind_QUERY_VALUE_KIND_STRING      QueryValueKind = 1
	QueryValueKind_QUERY_VALUE_KIND_BOOLEAN     QueryValueKind = 2
	QueryValueKind_QUERY_VALUE_KIND_INTEGER     QueryValueKind = 3
	QueryValueKind_QUERY_VALUE_KIND_UNSIGNED    QueryValueKind = 4
	QueryValueKind_QUERY_VALUE_KIND_DOUBLE      QueryValueKind = 5
	QueryValueKind_QUERY_VALUE_KIND_DECIMAL     QueryValueKind = 6
	QueryValueKind_QUERY_VALUE_KIND_DATE        QueryValueKind = 7
	QueryValueKind_QUERY_VALUE_KIND_DATETIME    QueryValueKind = 8
	QueryValueKind_QUERY_VALUE_KIND_REFERENCE   QueryValueKind = 9
	QueryValueKind_QUERY_VALUE_KIND_OBJECT      QueryValueKind = 10
	QueryValueKind_QUERY_VALUE_KIND_LIST        QueryValueKind = 11
)

// Enum value maps for QueryValueKind.
var (
	QueryValueKind_name = map[int32]string{
		0:  "QUERY_VALUE_KIND_UNSPECIFIED",
		1:  "QUERY_VALUE_KIND_STRING",
		2:  "QUERY_VALUE_KIND_BOOLEAN",
		3:  "QUERY_VALUE_KIND_INTEGER",
		4:  "QUERY_VALUE_KIND_UNSIGNED",
		5:  "QUERY_VALUE_KIND_DOUBLE",
		6:  "QUERY_VALUE_KIND_DECIMAL",
		7:  "QUERY_VALUE_KIND_DATE",
		8:  "QUERY_VALUE_KIND_DATETIME",
		9:  "QUERY_VALUE_KIND_REFERENCE",
		10: "QUERY_VALUE_KIND_OBJECT",
		11: "QUERY_VALUE_KIND_LIST",
	}
	QueryValueKind_value = map[string]int32{
		"QUERY_VALUE_KIND_UNSPECIFIED": 0,
		"QUERY_VALUE_KIND_STRING":      1,
		"QUERY_VALUE_KIND_BOOLEAN":     2,
		"QUERY_VALUE_KIND_INTEGER":     3,
		"QUERY_VALUE_KIND_UNSIGNED":    4,
		"QUERY_VALUE_KIND_DOUBLE":      5,
		"QUERY_VALUE_KIND_DECIMAL":     6,
		"QUERY_VALUE_KIND_DATE":        7,
		"QUERY_VALUE_KIND_DATETIME":    8,
		"QUERY_VALUE_KIND_REFERENCE":   9,
		"QUERY_VALUE_KIND_OBJECT":      10,
		"QUERY_VALUE_KIND_LIST":        11,
	}
)

func (x QueryValueKind) Enum() *QueryValueKind {
	p := new(QueryValueKind)
	*p = x
	return p
}

func (x QueryValueKind) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (QueryValueKind) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_query_proto_enumTypes[10].Descriptor()
}

func (QueryValueKind) Type() protoreflect.EnumType {
	return &file_runtime_v1_query_proto_enumTypes[10]
}

func (x QueryValueKind) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use QueryValueKind.Descriptor instead.
func (QueryValueKind) EnumDescriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{10}
}

// QueryTrustedContextValue is deliberately appended after the v1 message and
// enum set. Existing generated enum ordinals remain stable while the operand
// oneof can reference this additive authority selector.
type QueryTrustedContextValue int32

const (
	QueryTrustedContextValue_QUERY_TRUSTED_CONTEXT_VALUE_UNSPECIFIED  QueryTrustedContextValue = 0
	QueryTrustedContextValue_QUERY_TRUSTED_CONTEXT_VALUE_PRINCIPAL_ID QueryTrustedContextValue = 1
)

// Enum value maps for QueryTrustedContextValue.
var (
	QueryTrustedContextValue_name = map[int32]string{
		0: "QUERY_TRUSTED_CONTEXT_VALUE_UNSPECIFIED",
		1: "QUERY_TRUSTED_CONTEXT_VALUE_PRINCIPAL_ID",
	}
	QueryTrustedContextValue_value = map[string]int32{
		"QUERY_TRUSTED_CONTEXT_VALUE_UNSPECIFIED":  0,
		"QUERY_TRUSTED_CONTEXT_VALUE_PRINCIPAL_ID": 1,
	}
)

func (x QueryTrustedContextValue) Enum() *QueryTrustedContextValue {
	p := new(QueryTrustedContextValue)
	*p = x
	return p
}

func (x QueryTrustedContextValue) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (QueryTrustedContextValue) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_query_proto_enumTypes[11].Descriptor()
}

func (QueryTrustedContextValue) Type() protoreflect.EnumType {
	return &file_runtime_v1_query_proto_enumTypes[11]
}

func (x QueryTrustedContextValue) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use QueryTrustedContextValue.Descriptor instead.
func (QueryTrustedContextValue) EnumDescriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{11}
}

type QueryScalar struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Value:
	//
	//	*QueryScalar_NullValue
	//	*QueryScalar_StringValue
	//	*QueryScalar_BooleanValue
	//	*QueryScalar_IntegerValue
	//	*QueryScalar_UnsignedValue
	//	*QueryScalar_DoubleValue
	//	*QueryScalar_DecimalValue
	//	*QueryScalar_DateValue
	//	*QueryScalar_DatetimeValue
	Value         isQueryScalar_Value `protobuf_oneof:"value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryScalar) Reset() {
	*x = QueryScalar{}
	mi := &file_runtime_v1_query_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryScalar) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryScalar) ProtoMessage() {}

func (x *QueryScalar) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryScalar.ProtoReflect.Descriptor instead.
func (*QueryScalar) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{0}
}

func (x *QueryScalar) GetValue() isQueryScalar_Value {
	if x != nil {
		return x.Value
	}
	return nil
}

func (x *QueryScalar) GetNullValue() *NullValue {
	if x != nil {
		if x, ok := x.Value.(*QueryScalar_NullValue); ok {
			return x.NullValue
		}
	}
	return nil
}

func (x *QueryScalar) GetStringValue() string {
	if x != nil {
		if x, ok := x.Value.(*QueryScalar_StringValue); ok {
			return x.StringValue
		}
	}
	return ""
}

func (x *QueryScalar) GetBooleanValue() bool {
	if x != nil {
		if x, ok := x.Value.(*QueryScalar_BooleanValue); ok {
			return x.BooleanValue
		}
	}
	return false
}

func (x *QueryScalar) GetIntegerValue() int64 {
	if x != nil {
		if x, ok := x.Value.(*QueryScalar_IntegerValue); ok {
			return x.IntegerValue
		}
	}
	return 0
}

func (x *QueryScalar) GetUnsignedValue() uint64 {
	if x != nil {
		if x, ok := x.Value.(*QueryScalar_UnsignedValue); ok {
			return x.UnsignedValue
		}
	}
	return 0
}

func (x *QueryScalar) GetDoubleValue() float64 {
	if x != nil {
		if x, ok := x.Value.(*QueryScalar_DoubleValue); ok {
			return x.DoubleValue
		}
	}
	return 0
}

func (x *QueryScalar) GetDecimalValue() *DecimalValue {
	if x != nil {
		if x, ok := x.Value.(*QueryScalar_DecimalValue); ok {
			return x.DecimalValue
		}
	}
	return nil
}

func (x *QueryScalar) GetDateValue() *DateValue {
	if x != nil {
		if x, ok := x.Value.(*QueryScalar_DateValue); ok {
			return x.DateValue
		}
	}
	return nil
}

func (x *QueryScalar) GetDatetimeValue() *DateTimeValue {
	if x != nil {
		if x, ok := x.Value.(*QueryScalar_DatetimeValue); ok {
			return x.DatetimeValue
		}
	}
	return nil
}

type isQueryScalar_Value interface {
	isQueryScalar_Value()
}

type QueryScalar_NullValue struct {
	NullValue *NullValue `protobuf:"bytes,1,opt,name=null_value,json=nullValue,proto3,oneof"`
}

type QueryScalar_StringValue struct {
	StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type QueryScalar_BooleanValue struct {
	BooleanValue bool `protobuf:"varint,3,opt,name=boolean_value,json=booleanValue,proto3,oneof"`
}

type QueryScalar_IntegerValue struct {
	IntegerValue int64 `protobuf:"zigzag64,4,opt,name=integer_value,json=integerValue,proto3,oneof"`
}

type QueryScalar_UnsignedValue struct {
	UnsignedValue uint64 `protobuf:"varint,5,opt,name=unsigned_value,json=unsignedValue,proto3,oneof"`
}

type QueryScalar_DoubleValue struct {
	DoubleValue float64 `protobuf:"fixed64,6,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type QueryScalar_DecimalValue struct {
	DecimalValue *DecimalValue `protobuf:"bytes,7,opt,name=decimal_value,json=decimalValue,proto3,oneof"`
}

type QueryScalar_DateValue struct {
	DateValue *DateValue `protobuf:"bytes,8,opt,name=date_value,json=dateValue,proto3,oneof"`
}

type QueryScalar_DatetimeValue struct {
	DatetimeValue *DateTimeValue `protobuf:"bytes,9,opt,name=datetime_value,json=datetimeValue,proto3,oneof"`
}

func (*QueryScalar_NullValue) isQueryScalar_Value() {}

func (*QueryScalar_StringValue) isQueryScalar_Value() {}

func (*QueryScalar_BooleanValue) isQueryScalar_Value() {}

func (*QueryScalar_IntegerValue) isQueryScalar_Value() {}

func (*QueryScalar_UnsignedValue) isQueryScalar_Value() {}

func (*QueryScalar_DoubleValue) isQueryScalar_Value() {}

func (*QueryScalar_DecimalValue) isQueryScalar_Value() {}

func (*QueryScalar_DateValue) isQueryScalar_Value() {}

func (*QueryScalar_DatetimeValue) isQueryScalar_Value() {}

type QueryOperands struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Values        []*QueryOperand        `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryOperands) Reset() {
	*x = QueryOperands{}
	mi := &file_runtime_v1_query_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryOperands) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryOperands) ProtoMessage() {}

func (x *QueryOperands) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryOperands.ProtoReflect.Descriptor instead.
func (*QueryOperands) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{1}
}

func (x *QueryOperands) GetValues() []*QueryOperand {
	if x != nil {
		return x.Values
	}
	return nil
}

type QueryOperand struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	Kind  QueryOperandKind       `protobuf:"varint,1,opt,name=kind,proto3,enum=nexuscrm.runtime.v1.QueryOperandKind" json:"kind,omitempty"`
	// Types that are valid to be assigned to Value:
	//
	//	*QueryOperand_Field
	//	*QueryOperand_Literal
	//	*QueryOperand_List
	//	*QueryOperand_Function
	//	*QueryOperand_TrustedContext
	Value         isQueryOperand_Value `protobuf_oneof:"value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryOperand) Reset() {
	*x = QueryOperand{}
	mi := &file_runtime_v1_query_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryOperand) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryOperand) ProtoMessage() {}

func (x *QueryOperand) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryOperand.ProtoReflect.Descriptor instead.
func (*QueryOperand) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{2}
}

func (x *QueryOperand) GetKind() QueryOperandKind {
	if x != nil {
		return x.Kind
	}
	return QueryOperandKind_QUERY_OPERAND_KIND_UNSPECIFIED
}

func (x *QueryOperand) GetValue() isQueryOperand_Value {
	if x != nil {
		return x.Value
	}
	return nil
}

func (x *QueryOperand) GetField() string {
	if x != nil {
		if x, ok := x.Value.(*QueryOperand_Field); ok {
			return x.Field
		}
	}
	return ""
}

func (x *QueryOperand) GetLiteral() *QueryScalar {
	if x != nil {
		if x, ok := x.Value.(*QueryOperand_Literal); ok {
			return x.Literal
		}
	}
	return nil
}

func (x *QueryOperand) GetList() *QueryOperands {
	if x != nil {
		if x, ok := x.Value.(*QueryOperand_List); ok {
			return x.List
		}
	}
	return nil
}

func (x *QueryOperand) GetFunction() *QueryFunction {
	if x != nil {
		if x, ok := x.Value.(*QueryOperand_Function); ok {
			return x.Function
		}
	}
	return nil
}

func (x *QueryOperand) GetTrustedContext() QueryTrustedContextValue {
	if x != nil {
		if x, ok := x.Value.(*QueryOperand_TrustedContext); ok {
			return x.TrustedContext
		}
	}
	return QueryTrustedContextValue_QUERY_TRUSTED_CONTEXT_VALUE_UNSPECIFIED
}

type isQueryOperand_Value interface {
	isQueryOperand_Value()
}

type QueryOperand_Field struct {
	Field string `protobuf:"bytes,2,opt,name=field,proto3,oneof"`
}

type QueryOperand_Literal struct {
	Literal *QueryScalar `protobuf:"bytes,3,opt,name=literal,proto3,oneof"`
}

type QueryOperand_List struct {
	List *QueryOperands `protobuf:"bytes,4,opt,name=list,proto3,oneof"`
}

type QueryOperand_Function struct {
	Function *QueryFunction `protobuf:"bytes,5,opt,name=function,proto3,oneof"`
}

type QueryOperand_TrustedContext struct {
	TrustedContext QueryTrustedContextValue `protobuf:"varint,6,opt,name=trusted_context,json=trustedContext,proto3,enum=nexuscrm.runtime.v1.QueryTrustedContextValue,oneof"`
}

func (*QueryOperand_Field) isQueryOperand_Value() {}

func (*QueryOperand_Literal) isQueryOperand_Value() {}

func (*QueryOperand_List) isQueryOperand_Value() {}

func (*QueryOperand_Function) isQueryOperand_Value() {}

func (*QueryOperand_TrustedContext) isQueryOperand_Value() {}

type QueryFunction struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Name          QueryFunctionName      `protobuf:"varint,1,opt,name=name,proto3,enum=nexuscrm.runtime.v1.QueryFunctionName" json:"name,omitempty"`
	Arguments     []*QueryOperand        `protobuf:"bytes,2,rep,name=arguments,proto3" json:"arguments,omitempty"`
	TemporalPart  QueryTemporalPart      `protobuf:"varint,3,opt,name=temporal_part,json=temporalPart,proto3,enum=nexuscrm.runtime.v1.QueryTemporalPart" json:"temporal_part,omitempty"`
	DistanceUnit  QueryDistanceUnit      `protobuf:"varint,4,opt,name=distance_unit,json=distanceUnit,proto3,enum=nexuscrm.runtime.v1.QueryDistanceUnit" json:"distance_unit,omitempty"`
	TemporalBasis QueryTemporalBasis     `protobuf:"varint,5,opt,name=temporal_basis,json=temporalBasis,proto3,enum=nexuscrm.runtime.v1.QueryTemporalBasis" json:"temporal_basis,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryFunction) Reset() {
	*x = QueryFunction{}
	mi := &file_runtime_v1_query_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryFunction) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryFunction) ProtoMessage() {}

func (x *QueryFunction) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryFunction.ProtoReflect.Descriptor instead.
func (*QueryFunction) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{3}
}

func (x *QueryFunction) GetName() QueryFunctionName {
	if x != nil {
		return x.Name
	}
	return QueryFunctionName_QUERY_FUNCTION_NAME_UNSPECIFIED
}

func (x *QueryFunction) GetArguments() []*QueryOperand {
	if x != nil {
		return x.Arguments
	}
	return nil
}

func (x *QueryFunction) GetTemporalPart() QueryTemporalPart {
	if x != nil {
		return x.TemporalPart
	}
	return QueryTemporalPart_QUERY_TEMPORAL_PART_UNSPECIFIED
}

func (x *QueryFunction) GetDistanceUnit() QueryDistanceUnit {
	if x != nil {
		return x.DistanceUnit
	}
	return QueryDistanceUnit_QUERY_DISTANCE_UNIT_UNSPECIFIED
}

func (x *QueryFunction) GetTemporalBasis() QueryTemporalBasis {
	if x != nil {
		return x.TemporalBasis
	}
	return QueryTemporalBasis_QUERY_TEMPORAL_BASIS_UNSPECIFIED
}

type QueryPredicates struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Values        []*QueryPredicate      `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryPredicates) Reset() {
	*x = QueryPredicates{}
	mi := &file_runtime_v1_query_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryPredicates) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryPredicates) ProtoMessage() {}

func (x *QueryPredicates) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[4]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryPredicates.ProtoReflect.Descriptor instead.
func (*QueryPredicates) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{4}
}

func (x *QueryPredicates) GetValues() []*QueryPredicate {
	if x != nil {
		return x.Values
	}
	return nil
}

type QueryComparison struct {
	state         protoimpl.MessageState  `protogen:"open.v1"`
	Left          *QueryOperand           `protobuf:"bytes,1,opt,name=left,proto3" json:"left,omitempty"`
	Operator      QueryComparisonOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=nexuscrm.runtime.v1.QueryComparisonOperator" json:"operator,omitempty"`
	Right         *QueryOperand           `protobuf:"bytes,3,opt,name=right,proto3" json:"right,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryComparison) Reset() {
	*x = QueryComparison{}
	mi := &file_runtime_v1_query_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryComparison) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryComparison) ProtoMessage() {}

func (x *QueryComparison) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[5]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryComparison.ProtoReflect.Descriptor instead.
func (*QueryComparison) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{5}
}

func (x *QueryComparison) GetLeft() *QueryOperand {
	if x != nil {
		return x.Left
	}
	return nil
}

func (x *QueryComparison) GetOperator() QueryComparisonOperator {
	if x != nil {
		return x.Operator
	}
	return QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_UNSPECIFIED
}

func (x *QueryComparison) GetRight() *QueryOperand {
	if x != nil {
		return x.Right
	}
	return nil
}

type QueryFieldComparison struct {
	state         protoimpl.MessageState  `protogen:"open.v1"`
	Field         string                  `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	Operator      QueryComparisonOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=nexuscrm.runtime.v1.QueryComparisonOperator" json:"operator,omitempty"`
	Value         *QueryScalar            `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryFieldComparison) Reset() {
	*x = QueryFieldComparison{}
	mi := &file_runtime_v1_query_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryFieldComparison) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryFieldComparison) ProtoMessage() {}

func (x *QueryFieldComparison) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[6]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryFieldComparison.ProtoReflect.Descriptor instead.
func (*QueryFieldComparison) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{6}
}

func (x *QueryFieldComparison) GetField() string {
	if x != nil {
		return x.Field
	}
	return ""
}

func (x *QueryFieldComparison) GetOperator() QueryComparisonOperator {
	if x != nil {
		return x.Operator
	}
	return QueryComparisonOperator_QUERY_COMPARISON_OPERATOR_UNSPECIFIED
}

func (x *QueryFieldComparison) GetValue() *QueryScalar {
	if x != nil {
		return x.Value
	}
	return nil
}

type QueryCorrelatedMembership struct {
	state               protoimpl.MessageState `protogen:"open.v1"`
	Id                  string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	OuterField          string                 `protobuf:"bytes,2,opt,name=outer_field,json=outerField,proto3" json:"outer_field,omitempty"`
	Negate              bool                   `protobuf:"varint,3,opt,name=negate,proto3" json:"negate,omitempty"`
	InnerObjectId       string                 `protobuf:"bytes,4,opt,name=inner_object_id,json=innerObjectId,proto3" json:"inner_object_id,omitempty"`
	InnerSelectField    string                 `protobuf:"bytes,5,opt,name=inner_select_field,json=innerSelectField,proto3" json:"inner_select_field,omitempty"`
	InnerFilter         *QueryPredicate        `protobuf:"bytes,6,opt,name=inner_filter,json=innerFilter,proto3" json:"inner_filter,omitempty"`
	InnerLimit          uint32                 `protobuf:"varint,7,opt,name=inner_limit,json=innerLimit,proto3" json:"inner_limit,omitempty"`
	InnerIncludeDeleted bool                   `protobuf:"varint,8,opt,name=inner_include_deleted,json=innerIncludeDeleted,proto3" json:"inner_include_deleted,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

func (x *QueryCorrelatedMembership) Reset() {
	*x = QueryCorrelatedMembership{}
	mi := &file_runtime_v1_query_proto_msgTypes[7]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryCorrelatedMembership) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryCorrelatedMembership) ProtoMessage() {}

func (x *QueryCorrelatedMembership) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[7]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryCorrelatedMembership.ProtoReflect.Descriptor instead.
func (*QueryCorrelatedMembership) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{7}
}

func (x *QueryCorrelatedMembership) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *QueryCorrelatedMembership) GetOuterField() string {
	if x != nil {
		return x.OuterField
	}
	return ""
}

func (x *QueryCorrelatedMembership) GetNegate() bool {
	if x != nil {
		return x.Negate
	}
	return false
}

func (x *QueryCorrelatedMembership) GetInnerObjectId() string {
	if x != nil {
		return x.InnerObjectId
	}
	return ""
}

func (x *QueryCorrelatedMembership) GetInnerSelectField() string {
	if x != nil {
		return x.InnerSelectField
	}
	return ""
}

func (x *QueryCorrelatedMembership) GetInnerFilter() *QueryPredicate {
	if x != nil {
		return x.InnerFilter
	}
	return nil
}

func (x *QueryCorrelatedMembership) GetInnerLimit() uint32 {
	if x != nil {
		return x.InnerLimit
	}
	return 0
}

func (x *QueryCorrelatedMembership) GetInnerIncludeDeleted() bool {
	if x != nil {
		return x.InnerIncludeDeleted
	}
	return false
}

type QueryPredicate struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	Kind  QueryPredicateKind     `protobuf:"varint,1,opt,name=kind,proto3,enum=nexuscrm.runtime.v1.QueryPredicateKind" json:"kind,omitempty"`
	// Types that are valid to be assigned to Value:
	//
	//	*QueryPredicate_Children
	//	*QueryPredicate_Expression
	//	*QueryPredicate_Comparison
	//	*QueryPredicate_FieldComparison
	//	*QueryPredicate_CorrelatedMembership
	Value         isQueryPredicate_Value `protobuf_oneof:"value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryPredicate) Reset() {
	*x = QueryPredicate{}
	mi := &file_runtime_v1_query_proto_msgTypes[8]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryPredicate) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryPredicate) ProtoMessage() {}

func (x *QueryPredicate) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[8]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryPredicate.ProtoReflect.Descriptor instead.
func (*QueryPredicate) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{8}
}

func (x *QueryPredicate) GetKind() QueryPredicateKind {
	if x != nil {
		return x.Kind
	}
	return QueryPredicateKind_QUERY_PREDICATE_KIND_UNSPECIFIED
}

func (x *QueryPredicate) GetValue() isQueryPredicate_Value {
	if x != nil {
		return x.Value
	}
	return nil
}

func (x *QueryPredicate) GetChildren() *QueryPredicates {
	if x != nil {
		if x, ok := x.Value.(*QueryPredicate_Children); ok {
			return x.Children
		}
	}
	return nil
}

func (x *QueryPredicate) GetExpression() *QueryOperand {
	if x != nil {
		if x, ok := x.Value.(*QueryPredicate_Expression); ok {
			return x.Expression
		}
	}
	return nil
}

func (x *QueryPredicate) GetComparison() *QueryComparison {
	if x != nil {
		if x, ok := x.Value.(*QueryPredicate_Comparison); ok {
			return x.Comparison
		}
	}
	return nil
}

func (x *QueryPredicate) GetFieldComparison() *QueryFieldComparison {
	if x != nil {
		if x, ok := x.Value.(*QueryPredicate_FieldComparison); ok {
			return x.FieldComparison
		}
	}
	return nil
}

func (x *QueryPredicate) GetCorrelatedMembership() *QueryCorrelatedMembership {
	if x != nil {
		if x, ok := x.Value.(*QueryPredicate_CorrelatedMembership); ok {
			return x.CorrelatedMembership
		}
	}
	return nil
}

type isQueryPredicate_Value interface {
	isQueryPredicate_Value()
}

type QueryPredicate_Children struct {
	Children *QueryPredicates `protobuf:"bytes,2,opt,name=children,proto3,oneof"`
}

type QueryPredicate_Expression struct {
	Expression *QueryOperand `protobuf:"bytes,3,opt,name=expression,proto3,oneof"`
}

type QueryPredicate_Comparison struct {
	Comparison *QueryComparison `protobuf:"bytes,4,opt,name=comparison,proto3,oneof"`
}

type QueryPredicate_FieldComparison struct {
	FieldComparison *QueryFieldComparison `protobuf:"bytes,5,opt,name=field_comparison,json=fieldComparison,proto3,oneof"`
}

type QueryPredicate_CorrelatedMembership struct {
	CorrelatedMembership *QueryCorrelatedMembership `protobuf:"bytes,6,opt,name=correlated_membership,json=correlatedMembership,proto3,oneof"`
}

func (*QueryPredicate_Children) isQueryPredicate_Value() {}

func (*QueryPredicate_Expression) isQueryPredicate_Value() {}

func (*QueryPredicate_Comparison) isQueryPredicate_Value() {}

func (*QueryPredicate_FieldComparison) isQueryPredicate_Value() {}

func (*QueryPredicate_CorrelatedMembership) isQueryPredicate_Value() {}

type QuerySort struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Field         string                 `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	Direction     QuerySortDirection     `protobuf:"varint,2,opt,name=direction,proto3,enum=nexuscrm.runtime.v1.QuerySortDirection" json:"direction,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QuerySort) Reset() {
	*x = QuerySort{}
	mi := &file_runtime_v1_query_proto_msgTypes[9]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QuerySort) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QuerySort) ProtoMessage() {}

func (x *QuerySort) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[9]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QuerySort.ProtoReflect.Descriptor instead.
func (*QuerySort) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{9}
}

func (x *QuerySort) GetField() string {
	if x != nil {
		return x.Field
	}
	return ""
}

func (x *QuerySort) GetDirection() QuerySortDirection {
	if x != nil {
		return x.Direction
	}
	return QuerySortDirection_QUERY_SORT_DIRECTION_UNSPECIFIED
}

type QuerySelection struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Kind          QuerySelectionKind     `protobuf:"varint,1,opt,name=kind,proto3,enum=nexuscrm.runtime.v1.QuerySelectionKind" json:"kind,omitempty"`
	Field         string                 `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"`
	Aggregate     QueryAggregateFunction `protobuf:"varint,3,opt,name=aggregate,proto3,enum=nexuscrm.runtime.v1.QueryAggregateFunction" json:"aggregate,omitempty"`
	Alias         string                 `protobuf:"bytes,4,opt,name=alias,proto3" json:"alias,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QuerySelection) Reset() {
	*x = QuerySelection{}
	mi := &file_runtime_v1_query_proto_msgTypes[10]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QuerySelection) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QuerySelection) ProtoMessage() {}

func (x *QuerySelection) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[10]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QuerySelection.ProtoReflect.Descriptor instead.
func (*QuerySelection) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{10}
}

func (x *QuerySelection) GetKind() QuerySelectionKind {
	if x != nil {
		return x.Kind
	}
	return QuerySelectionKind_QUERY_SELECTION_KIND_UNSPECIFIED
}

func (x *QuerySelection) GetField() string {
	if x != nil {
		return x.Field
	}
	return ""
}

func (x *QuerySelection) GetAggregate() QueryAggregateFunction {
	if x != nil {
		return x.Aggregate
	}
	return QueryAggregateFunction_QUERY_AGGREGATE_FUNCTION_UNSPECIFIED
}

func (x *QuerySelection) GetAlias() string {
	if x != nil {
		return x.Alias
	}
	return ""
}

type QuerySubquery struct {
	state            protoimpl.MessageState `protogen:"open.v1"`
	RelationshipName string                 `protobuf:"bytes,1,opt,name=relationship_name,json=relationshipName,proto3" json:"relationship_name,omitempty"`
	SelectedFields   []string               `protobuf:"bytes,2,rep,name=selected_fields,json=selectedFields,proto3" json:"selected_fields,omitempty"`
	Filter           *QueryPredicate        `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	OrderBy          []*QuerySort           `protobuf:"bytes,4,rep,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	Limit            uint32                 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

func (x *QuerySubquery) Reset() {
	*x = QuerySubquery{}
	mi := &file_runtime_v1_query_proto_msgTypes[11]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QuerySubquery) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QuerySubquery) ProtoMessage() {}

func (x *QuerySubquery) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[11]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QuerySubquery.ProtoReflect.Descriptor instead.
func (*QuerySubquery) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{11}
}

func (x *QuerySubquery) GetRelationshipName() string {
	if x != nil {
		return x.RelationshipName
	}
	return ""
}

func (x *QuerySubquery) GetSelectedFields() []string {
	if x != nil {
		return x.SelectedFields
	}
	return nil
}

func (x *QuerySubquery) GetFilter() *QueryPredicate {
	if x != nil {
		return x.Filter
	}
	return nil
}

func (x *QuerySubquery) GetOrderBy() []*QuerySort {
	if x != nil {
		return x.OrderBy
	}
	return nil
}

func (x *QuerySubquery) GetLimit() uint32 {
	if x != nil {
		return x.Limit
	}
	return 0
}

type QueryRecordsRequest struct {
	state               protoimpl.MessageState `protogen:"open.v1"`
	ObjectId            string                 `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	Selections          []*QuerySelection      `protobuf:"bytes,2,rep,name=selections,proto3" json:"selections,omitempty"`
	Filter              *QueryPredicate        `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	Limit               uint32                 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset              uint64                 `protobuf:"varint,7,opt,name=offset,proto3" json:"offset,omitempty"`
	SkipTotalSize       bool                   `protobuf:"varint,8,opt,name=skip_total_size,json=skipTotalSize,proto3" json:"skip_total_size,omitempty"`
	IncludeDeleted      bool                   `protobuf:"varint,9,opt,name=include_deleted,json=includeDeleted,proto3" json:"include_deleted,omitempty"`
	OrderBy             []*QuerySort           `protobuf:"bytes,10,rep,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	GroupBy             string                 `protobuf:"bytes,11,opt,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"`
	Having              *QueryPredicate        `protobuf:"bytes,12,opt,name=having,proto3" json:"having,omitempty"`
	Subqueries          []*QuerySubquery       `protobuf:"bytes,13,rep,name=subqueries,proto3" json:"subqueries,omitempty"`
	AggregateFetchLimit uint32                 `protobuf:"varint,14,opt,name=aggregate_fetch_limit,json=aggregateFetchLimit,proto3" json:"aggregate_fetch_limit,omitempty"`
	MinCatalogRevision  *uint64                `protobuf:"varint,15,opt,name=min_catalog_revision,json=minCatalogRevision,proto3,oneof" json:"min_catalog_revision,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

func (x *QueryRecordsRequest) Reset() {
	*x = QueryRecordsRequest{}
	mi := &file_runtime_v1_query_proto_msgTypes[12]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryRecordsRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryRecordsRequest) ProtoMessage() {}

func (x *QueryRecordsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[12]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryRecordsRequest.ProtoReflect.Descriptor instead.
func (*QueryRecordsRequest) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{12}
}

func (x *QueryRecordsRequest) GetObjectId() string {
	if x != nil {
		return x.ObjectId
	}
	return ""
}

func (x *QueryRecordsRequest) GetSelections() []*QuerySelection {
	if x != nil {
		return x.Selections
	}
	return nil
}

func (x *QueryRecordsRequest) GetFilter() *QueryPredicate {
	if x != nil {
		return x.Filter
	}
	return nil
}

func (x *QueryRecordsRequest) GetLimit() uint32 {
	if x != nil {
		return x.Limit
	}
	return 0
}

func (x *QueryRecordsRequest) GetOffset() uint64 {
	if x != nil {
		return x.Offset
	}
	return 0
}

func (x *QueryRecordsRequest) GetSkipTotalSize() bool {
	if x != nil {
		return x.SkipTotalSize
	}
	return false
}

func (x *QueryRecordsRequest) GetIncludeDeleted() bool {
	if x != nil {
		return x.IncludeDeleted
	}
	return false
}

func (x *QueryRecordsRequest) GetOrderBy() []*QuerySort {
	if x != nil {
		return x.OrderBy
	}
	return nil
}

func (x *QueryRecordsRequest) GetGroupBy() string {
	if x != nil {
		return x.GroupBy
	}
	return ""
}

func (x *QueryRecordsRequest) GetHaving() *QueryPredicate {
	if x != nil {
		return x.Having
	}
	return nil
}

func (x *QueryRecordsRequest) GetSubqueries() []*QuerySubquery {
	if x != nil {
		return x.Subqueries
	}
	return nil
}

func (x *QueryRecordsRequest) GetAggregateFetchLimit() uint32 {
	if x != nil {
		return x.AggregateFetchLimit
	}
	return 0
}

func (x *QueryRecordsRequest) GetMinCatalogRevision() uint64 {
	if x != nil && x.MinCatalogRevision != nil {
		return *x.MinCatalogRevision
	}
	return 0
}

type QueryValues struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Values        []*QueryValue          `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryValues) Reset() {
	*x = QueryValues{}
	mi := &file_runtime_v1_query_proto_msgTypes[13]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryValues) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryValues) ProtoMessage() {}

func (x *QueryValues) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[13]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryValues.ProtoReflect.Descriptor instead.
func (*QueryValues) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{13}
}

func (x *QueryValues) GetValues() []*QueryValue {
	if x != nil {
		return x.Values
	}
	return nil
}

type QueryValue struct {
	state        protoimpl.MessageState `protogen:"open.v1"`
	DeclaredKind QueryValueKind         `protobuf:"varint,1,opt,name=declared_kind,json=declaredKind,proto3,enum=nexuscrm.runtime.v1.QueryValueKind" json:"declared_kind,omitempty"`
	// Types that are valid to be assigned to Value:
	//
	//	*QueryValue_NullValue
	//	*QueryValue_StringValue
	//	*QueryValue_BooleanValue
	//	*QueryValue_IntegerValue
	//	*QueryValue_UnsignedValue
	//	*QueryValue_DoubleValue
	//	*QueryValue_DecimalValue
	//	*QueryValue_DateValue
	//	*QueryValue_DatetimeValue
	//	*QueryValue_ReferenceValue
	//	*QueryValue_ObjectValue
	//	*QueryValue_ListValue
	Value         isQueryValue_Value `protobuf_oneof:"value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryValue) Reset() {
	*x = QueryValue{}
	mi := &file_runtime_v1_query_proto_msgTypes[14]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryValue) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryValue) ProtoMessage() {}

func (x *QueryValue) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[14]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryValue.ProtoReflect.Descriptor instead.
func (*QueryValue) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{14}
}

func (x *QueryValue) GetDeclaredKind() QueryValueKind {
	if x != nil {
		return x.DeclaredKind
	}
	return QueryValueKind_QUERY_VALUE_KIND_UNSPECIFIED
}

func (x *QueryValue) GetValue() isQueryValue_Value {
	if x != nil {
		return x.Value
	}
	return nil
}

func (x *QueryValue) GetNullValue() *NullValue {
	if x != nil {
		if x, ok := x.Value.(*QueryValue_NullValue); ok {
			return x.NullValue
		}
	}
	return nil
}

func (x *QueryValue) GetStringValue() string {
	if x != nil {
		if x, ok := x.Value.(*QueryValue_StringValue); ok {
			return x.StringValue
		}
	}
	return ""
}

func (x *QueryValue) GetBooleanValue() bool {
	if x != nil {
		if x, ok := x.Value.(*QueryValue_BooleanValue); ok {
			return x.BooleanValue
		}
	}
	return false
}

func (x *QueryValue) GetIntegerValue() int64 {
	if x != nil {
		if x, ok := x.Value.(*QueryValue_IntegerValue); ok {
			return x.IntegerValue
		}
	}
	return 0
}

func (x *QueryValue) GetUnsignedValue() uint64 {
	if x != nil {
		if x, ok := x.Value.(*QueryValue_UnsignedValue); ok {
			return x.UnsignedValue
		}
	}
	return 0
}

func (x *QueryValue) GetDoubleValue() float64 {
	if x != nil {
		if x, ok := x.Value.(*QueryValue_DoubleValue); ok {
			return x.DoubleValue
		}
	}
	return 0
}

func (x *QueryValue) GetDecimalValue() *DecimalValue {
	if x != nil {
		if x, ok := x.Value.(*QueryValue_DecimalValue); ok {
			return x.DecimalValue
		}
	}
	return nil
}

func (x *QueryValue) GetDateValue() *DateValue {
	if x != nil {
		if x, ok := x.Value.(*QueryValue_DateValue); ok {
			return x.DateValue
		}
	}
	return nil
}

func (x *QueryValue) GetDatetimeValue() *DateTimeValue {
	if x != nil {
		if x, ok := x.Value.(*QueryValue_DatetimeValue); ok {
			return x.DatetimeValue
		}
	}
	return nil
}

func (x *QueryValue) GetReferenceValue() *ReferenceValue {
	if x != nil {
		if x, ok := x.Value.(*QueryValue_ReferenceValue); ok {
			return x.ReferenceValue
		}
	}
	return nil
}

func (x *QueryValue) GetObjectValue() *QueryRecord {
	if x != nil {
		if x, ok := x.Value.(*QueryValue_ObjectValue); ok {
			return x.ObjectValue
		}
	}
	return nil
}

func (x *QueryValue) GetListValue() *QueryValues {
	if x != nil {
		if x, ok := x.Value.(*QueryValue_ListValue); ok {
			return x.ListValue
		}
	}
	return nil
}

type isQueryValue_Value interface {
	isQueryValue_Value()
}

type QueryValue_NullValue struct {
	NullValue *NullValue `protobuf:"bytes,2,opt,name=null_value,json=nullValue,proto3,oneof"`
}

type QueryValue_StringValue struct {
	StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type QueryValue_BooleanValue struct {
	BooleanValue bool `protobuf:"varint,4,opt,name=boolean_value,json=booleanValue,proto3,oneof"`
}

type QueryValue_IntegerValue struct {
	IntegerValue int64 `protobuf:"zigzag64,5,opt,name=integer_value,json=integerValue,proto3,oneof"`
}

type QueryValue_UnsignedValue struct {
	UnsignedValue uint64 `protobuf:"varint,6,opt,name=unsigned_value,json=unsignedValue,proto3,oneof"`
}

type QueryValue_DoubleValue struct {
	DoubleValue float64 `protobuf:"fixed64,7,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type QueryValue_DecimalValue struct {
	DecimalValue *DecimalValue `protobuf:"bytes,8,opt,name=decimal_value,json=decimalValue,proto3,oneof"`
}

type QueryValue_DateValue struct {
	DateValue *DateValue `protobuf:"bytes,9,opt,name=date_value,json=dateValue,proto3,oneof"`
}

type QueryValue_DatetimeValue struct {
	DatetimeValue *DateTimeValue `protobuf:"bytes,10,opt,name=datetime_value,json=datetimeValue,proto3,oneof"`
}

type QueryValue_ReferenceValue struct {
	ReferenceValue *ReferenceValue `protobuf:"bytes,11,opt,name=reference_value,json=referenceValue,proto3,oneof"`
}

type QueryValue_ObjectValue struct {
	ObjectValue *QueryRecord `protobuf:"bytes,12,opt,name=object_value,json=objectValue,proto3,oneof"`
}

type QueryValue_ListValue struct {
	ListValue *QueryValues `protobuf:"bytes,13,opt,name=list_value,json=listValue,proto3,oneof"`
}

func (*QueryValue_NullValue) isQueryValue_Value() {}

func (*QueryValue_StringValue) isQueryValue_Value() {}

func (*QueryValue_BooleanValue) isQueryValue_Value() {}

func (*QueryValue_IntegerValue) isQueryValue_Value() {}

func (*QueryValue_UnsignedValue) isQueryValue_Value() {}

func (*QueryValue_DoubleValue) isQueryValue_Value() {}

func (*QueryValue_DecimalValue) isQueryValue_Value() {}

func (*QueryValue_DateValue) isQueryValue_Value() {}

func (*QueryValue_DatetimeValue) isQueryValue_Value() {}

func (*QueryValue_ReferenceValue) isQueryValue_Value() {}

func (*QueryValue_ObjectValue) isQueryValue_Value() {}

func (*QueryValue_ListValue) isQueryValue_Value() {}

type QueryField struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Name          string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value         *QueryValue            `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryField) Reset() {
	*x = QueryField{}
	mi := &file_runtime_v1_query_proto_msgTypes[15]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryField) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryField) ProtoMessage() {}

func (x *QueryField) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[15]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryField.ProtoReflect.Descriptor instead.
func (*QueryField) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{15}
}

func (x *QueryField) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *QueryField) GetValue() *QueryValue {
	if x != nil {
		return x.Value
	}
	return nil
}

type QueryRecord struct {
	state    protoimpl.MessageState `protogen:"open.v1"`
	ObjectId string                 `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	// Canonical ascending bytewise UTF-8 field order. Absent and FLS-hidden
	// fields have no entry; explicit null has the NullValue arm.
	Fields        []*QueryField `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryRecord) Reset() {
	*x = QueryRecord{}
	mi := &file_runtime_v1_query_proto_msgTypes[16]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryRecord) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryRecord) ProtoMessage() {}

func (x *QueryRecord) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[16]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryRecord.ProtoReflect.Descriptor instead.
func (*QueryRecord) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{16}
}

func (x *QueryRecord) GetObjectId() string {
	if x != nil {
		return x.ObjectId
	}
	return ""
}

func (x *QueryRecord) GetFields() []*QueryField {
	if x != nil {
		return x.Fields
	}
	return nil
}

type QueryRecordsResponse struct {
	state            protoimpl.MessageState  `protogen:"open.v1"`
	TotalSize        uint64                  `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	TotalSizeUnknown bool                    `protobuf:"varint,2,opt,name=total_size_unknown,json=totalSizeUnknown,proto3" json:"total_size_unknown,omitempty"`
	Done             bool                    `protobuf:"varint,3,opt,name=done,proto3" json:"done,omitempty"`
	Records          []*QueryRecord          `protobuf:"bytes,4,rep,name=records,proto3" json:"records,omitempty"`
	Aggregate        bool                    `protobuf:"varint,5,opt,name=aggregate,proto3" json:"aggregate,omitempty"`
	Receipts         *v1.ConsistencyReceipts `protobuf:"bytes,6,opt,name=receipts,proto3" json:"receipts,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

func (x *QueryRecordsResponse) Reset() {
	*x = QueryRecordsResponse{}
	mi := &file_runtime_v1_query_proto_msgTypes[17]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryRecordsResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryRecordsResponse) ProtoMessage() {}

func (x *QueryRecordsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[17]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryRecordsResponse.ProtoReflect.Descriptor instead.
func (*QueryRecordsResponse) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{17}
}

func (x *QueryRecordsResponse) GetTotalSize() uint64 {
	if x != nil {
		return x.TotalSize
	}
	return 0
}

func (x *QueryRecordsResponse) GetTotalSizeUnknown() bool {
	if x != nil {
		return x.TotalSizeUnknown
	}
	return false
}

func (x *QueryRecordsResponse) GetDone() bool {
	if x != nil {
		return x.Done
	}
	return false
}

func (x *QueryRecordsResponse) GetRecords() []*QueryRecord {
	if x != nil {
		return x.Records
	}
	return nil
}

func (x *QueryRecordsResponse) GetAggregate() bool {
	if x != nil {
		return x.Aggregate
	}
	return false
}

func (x *QueryRecordsResponse) GetReceipts() *v1.ConsistencyReceipts {
	if x != nil {
		return x.Receipts
	}
	return nil
}

type QueryHistoryRequest struct {
	state              protoimpl.MessageState `protogen:"open.v1"`
	ParentObjectId     string                 `protobuf:"bytes,1,opt,name=parent_object_id,json=parentObjectId,proto3" json:"parent_object_id,omitempty"`
	SelectedFields     []string               `protobuf:"bytes,2,rep,name=selected_fields,json=selectedFields,proto3" json:"selected_fields,omitempty"`
	ParentRecordId     string                 `protobuf:"bytes,3,opt,name=parent_record_id,json=parentRecordId,proto3" json:"parent_record_id,omitempty"`
	Filter             *QueryPredicate        `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	Limit              uint32                 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset             uint64                 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"`
	SortDescending     bool                   `protobuf:"varint,7,opt,name=sort_descending,json=sortDescending,proto3" json:"sort_descending,omitempty"`
	IncludeDeleted     bool                   `protobuf:"varint,8,opt,name=include_deleted,json=includeDeleted,proto3" json:"include_deleted,omitempty"`
	PageSize           uint32                 `protobuf:"varint,9,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	CursorOffset       uint64                 `protobuf:"varint,10,opt,name=cursor_offset,json=cursorOffset,proto3" json:"cursor_offset,omitempty"`
	MinCatalogRevision *uint64                `protobuf:"varint,11,opt,name=min_catalog_revision,json=minCatalogRevision,proto3,oneof" json:"min_catalog_revision,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

func (x *QueryHistoryRequest) Reset() {
	*x = QueryHistoryRequest{}
	mi := &file_runtime_v1_query_proto_msgTypes[18]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryHistoryRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryHistoryRequest) ProtoMessage() {}

func (x *QueryHistoryRequest) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[18]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryHistoryRequest.ProtoReflect.Descriptor instead.
func (*QueryHistoryRequest) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{18}
}

func (x *QueryHistoryRequest) GetParentObjectId() string {
	if x != nil {
		return x.ParentObjectId
	}
	return ""
}

func (x *QueryHistoryRequest) GetSelectedFields() []string {
	if x != nil {
		return x.SelectedFields
	}
	return nil
}

func (x *QueryHistoryRequest) GetParentRecordId() string {
	if x != nil {
		return x.ParentRecordId
	}
	return ""
}

func (x *QueryHistoryRequest) GetFilter() *QueryPredicate {
	if x != nil {
		return x.Filter
	}
	return nil
}

func (x *QueryHistoryRequest) GetLimit() uint32 {
	if x != nil {
		return x.Limit
	}
	return 0
}

func (x *QueryHistoryRequest) GetOffset() uint64 {
	if x != nil {
		return x.Offset
	}
	return 0
}

func (x *QueryHistoryRequest) GetSortDescending() bool {
	if x != nil {
		return x.SortDescending
	}
	return false
}

func (x *QueryHistoryRequest) GetIncludeDeleted() bool {
	if x != nil {
		return x.IncludeDeleted
	}
	return false
}

func (x *QueryHistoryRequest) GetPageSize() uint32 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

func (x *QueryHistoryRequest) GetCursorOffset() uint64 {
	if x != nil {
		return x.CursorOffset
	}
	return 0
}

func (x *QueryHistoryRequest) GetMinCatalogRevision() uint64 {
	if x != nil && x.MinCatalogRevision != nil {
		return *x.MinCatalogRevision
	}
	return 0
}

type QueryHistoryRow struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Id            string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId      string                 `protobuf:"bytes,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	Field         string                 `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"`
	OldValue      *string                `protobuf:"bytes,4,opt,name=old_value,json=oldValue,proto3,oneof" json:"old_value,omitempty"`
	NewValue      *string                `protobuf:"bytes,5,opt,name=new_value,json=newValue,proto3,oneof" json:"new_value,omitempty"`
	DataType      string                 `protobuf:"bytes,6,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"`
	CreatedDate   string                 `protobuf:"bytes,7,opt,name=created_date,json=createdDate,proto3" json:"created_date,omitempty"`
	CreatedById   string                 `protobuf:"bytes,8,opt,name=created_by_id,json=createdById,proto3" json:"created_by_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryHistoryRow) Reset() {
	*x = QueryHistoryRow{}
	mi := &file_runtime_v1_query_proto_msgTypes[19]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryHistoryRow) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryHistoryRow) ProtoMessage() {}

func (x *QueryHistoryRow) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[19]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryHistoryRow.ProtoReflect.Descriptor instead.
func (*QueryHistoryRow) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{19}
}

func (x *QueryHistoryRow) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *QueryHistoryRow) GetParentId() string {
	if x != nil {
		return x.ParentId
	}
	return ""
}

func (x *QueryHistoryRow) GetField() string {
	if x != nil {
		return x.Field
	}
	return ""
}

func (x *QueryHistoryRow) GetOldValue() string {
	if x != nil && x.OldValue != nil {
		return *x.OldValue
	}
	return ""
}

func (x *QueryHistoryRow) GetNewValue() string {
	if x != nil && x.NewValue != nil {
		return *x.NewValue
	}
	return ""
}

func (x *QueryHistoryRow) GetDataType() string {
	if x != nil {
		return x.DataType
	}
	return ""
}

func (x *QueryHistoryRow) GetCreatedDate() string {
	if x != nil {
		return x.CreatedDate
	}
	return ""
}

func (x *QueryHistoryRow) GetCreatedById() string {
	if x != nil {
		return x.CreatedById
	}
	return ""
}

type QueryHistoryResponse struct {
	state         protoimpl.MessageState  `protogen:"open.v1"`
	TotalSize     uint64                  `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	Done          bool                    `protobuf:"varint,2,opt,name=done,proto3" json:"done,omitempty"`
	Rows          []*QueryHistoryRow      `protobuf:"bytes,3,rep,name=rows,proto3" json:"rows,omitempty"`
	Receipts      *v1.ConsistencyReceipts `protobuf:"bytes,4,opt,name=receipts,proto3" json:"receipts,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryHistoryResponse) Reset() {
	*x = QueryHistoryResponse{}
	mi := &file_runtime_v1_query_proto_msgTypes[20]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *QueryHistoryResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*QueryHistoryResponse) ProtoMessage() {}

func (x *QueryHistoryResponse) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_query_proto_msgTypes[20]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use QueryHistoryResponse.ProtoReflect.Descriptor instead.
func (*QueryHistoryResponse) Descriptor() ([]byte, []int) {
	return file_runtime_v1_query_proto_rawDescGZIP(), []int{20}
}

func (x *QueryHistoryResponse) GetTotalSize() uint64 {
	if x != nil {
		return x.TotalSize
	}
	return 0
}

func (x *QueryHistoryResponse) GetDone() bool {
	if x != nil {
		return x.Done
	}
	return false
}

func (x *QueryHistoryResponse) GetRows() []*QueryHistoryRow {
	if x != nil {
		return x.Rows
	}
	return nil
}

func (x *QueryHistoryResponse) GetReceipts() *v1.ConsistencyReceipts {
	if x != nil {
		return x.Receipts
	}
	return nil
}

var File_runtime_v1_query_proto protoreflect.FileDescriptor

const file_runtime_v1_query_proto_rawDesc = "" +
	"\n" +
	"\x16runtime/v1/query.proto\x12\x13nexuscrm.runtime.v1\x1a\x16common/v1/common.proto\x1a\x18runtime/v1/records.proto\"\xf0\x03\n" +
	"\vQueryScalar\x12?\n" +
	"\n" +
	"null_value\x18\x01 \x01(\v2\x1e.nexuscrm.runtime.v1.NullValueH\x00R\tnullValue\x12#\n" +
	"\fstring_value\x18\x02 \x01(\tH\x00R\vstringValue\x12%\n" +
	"\rboolean_value\x18\x03 \x01(\bH\x00R\fbooleanValue\x12%\n" +
	"\rinteger_value\x18\x04 \x01(\x12H\x00R\fintegerValue\x12'\n" +
	"\x0eunsigned_value\x18\x05 \x01(\x04H\x00R\runsignedValue\x12#\n" +
	"\fdouble_value\x18\x06 \x01(\x01H\x00R\vdoubleValue\x12H\n" +
	"\rdecimal_value\x18\a \x01(\v2!.nexuscrm.runtime.v1.DecimalValueH\x00R\fdecimalValue\x12?\n" +
	"\n" +
	"date_value\x18\b \x01(\v2\x1e.nexuscrm.runtime.v1.DateValueH\x00R\tdateValue\x12K\n" +
	"\x0edatetime_value\x18\t \x01(\v2\".nexuscrm.runtime.v1.DateTimeValueH\x00R\rdatetimeValueB\a\n" +
	"\x05value\"J\n" +
	"\rQueryOperands\x129\n" +
	"\x06values\x18\x01 \x03(\v2!.nexuscrm.runtime.v1.QueryOperandR\x06values\"\xfe\x02\n" +
	"\fQueryOperand\x129\n" +
	"\x04kind\x18\x01 \x01(\x0e2%.nexuscrm.runtime.v1.QueryOperandKindR\x04kind\x12\x16\n" +
	"\x05field\x18\x02 \x01(\tH\x00R\x05field\x12<\n" +
	"\aliteral\x18\x03 \x01(\v2 .nexuscrm.runtime.v1.QueryScalarH\x00R\aliteral\x128\n" +
	"\x04list\x18\x04 \x01(\v2\".nexuscrm.runtime.v1.QueryOperandsH\x00R\x04list\x12@\n" +
	"\bfunction\x18\x05 \x01(\v2\".nexuscrm.runtime.v1.QueryFunctionH\x00R\bfunction\x12X\n" +
	"\x0ftrusted_context\x18\x06 \x01(\x0e2-.nexuscrm.runtime.v1.QueryTrustedContextValueH\x00R\x0etrustedContextB\a\n" +
	"\x05value\"\xf6\x02\n" +
	"\rQueryFunction\x12:\n" +
	"\x04name\x18\x01 \x01(\x0e2&.nexuscrm.runtime.v1.QueryFunctionNameR\x04name\x12?\n" +
	"\targuments\x18\x02 \x03(\v2!.nexuscrm.runtime.v1.QueryOperandR\targuments\x12K\n" +
	"\rtemporal_part\x18\x03 \x01(\x0e2&.nexuscrm.runtime.v1.QueryTemporalPartR\ftemporalPart\x12K\n" +
	"\rdistance_unit\x18\x04 \x01(\x0e2&.nexuscrm.runtime.v1.QueryDistanceUnitR\fdistanceUnit\x12N\n" +
	"\x0etemporal_basis\x18\x05 \x01(\x0e2'.nexuscrm.runtime.v1.QueryTemporalBasisR\rtemporalBasis\"N\n" +
	"\x0fQueryPredicates\x12;\n" +
	"\x06values\x18\x01 \x03(\v2#.nexuscrm.runtime.v1.QueryPredicateR\x06values\"\xcb\x01\n" +
	"\x0fQueryComparison\x125\n" +
	"\x04left\x18\x01 \x01(\v2!.nexuscrm.runtime.v1.QueryOperandR\x04left\x12H\n" +
	"\boperator\x18\x02 \x01(\x0e2,.nexuscrm.runtime.v1.QueryComparisonOperatorR\boperator\x127\n" +
	"\x05right\x18\x03 \x01(\v2!.nexuscrm.runtime.v1.QueryOperandR\x05right\"\xae\x01\n" +
	"\x14QueryFieldComparison\x12\x14\n" +
	"\x05field\x18\x01 \x01(\tR\x05field\x12H\n" +
	"\boperator\x18\x02 \x01(\x0e2,.nexuscrm.runtime.v1.QueryComparisonOperatorR\boperator\x126\n" +
	"\x05value\x18\x03 \x01(\v2 .nexuscrm.runtime.v1.QueryScalarR\x05value\"\xd7\x02\n" +
	"\x19QueryCorrelatedMembership\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1f\n" +
	"\vouter_field\x18\x02 \x01(\tR\n" +
	"outerField\x12\x16\n" +
	"\x06negate\x18\x03 \x01(\bR\x06negate\x12&\n" +
	"\x0finner_object_id\x18\x04 \x01(\tR\rinnerObjectId\x12,\n" +
	"\x12inner_select_field\x18\x05 \x01(\tR\x10innerSelectField\x12F\n" +
	"\finner_filter\x18\x06 \x01(\v2#.nexuscrm.runtime.v1.QueryPredicateR\vinnerFilter\x12\x1f\n" +
	"\vinner_limit\x18\a \x01(\rR\n" +
	"innerLimit\x122\n" +
	"\x15inner_include_deleted\x18\b \x01(\bR\x13innerIncludeDeleted\"\xe6\x03\n" +
	"\x0eQueryPredicate\x12;\n" +
	"\x04kind\x18\x01 \x01(\x0e2'.nexuscrm.runtime.v1.QueryPredicateKindR\x04kind\x12B\n" +
	"\bchildren\x18\x02 \x01(\v2$.nexuscrm.runtime.v1.QueryPredicatesH\x00R\bchildren\x12C\n" +
	"\n" +
	"expression\x18\x03 \x01(\v2!.nexuscrm.runtime.v1.QueryOperandH\x00R\n" +
	"expression\x12F\n" +
	"\n" +
	"comparison\x18\x04 \x01(\v2$.nexuscrm.runtime.v1.QueryComparisonH\x00R\n" +
	"comparison\x12V\n" +
	"\x10field_comparison\x18\x05 \x01(\v2).nexuscrm.runtime.v1.QueryFieldComparisonH\x00R\x0ffieldComparison\x12e\n" +
	"\x15correlated_membership\x18\x06 \x01(\v2..nexuscrm.runtime.v1.QueryCorrelatedMembershipH\x00R\x14correlatedMembershipB\a\n" +
	"\x05value\"h\n" +
	"\tQuerySort\x12\x14\n" +
	"\x05field\x18\x01 \x01(\tR\x05field\x12E\n" +
	"\tdirection\x18\x02 \x01(\x0e2'.nexuscrm.runtime.v1.QuerySortDirectionR\tdirection\"\xc4\x01\n" +
	"\x0eQuerySelection\x12;\n" +
	"\x04kind\x18\x01 \x01(\x0e2'.nexuscrm.runtime.v1.QuerySelectionKindR\x04kind\x12\x14\n" +
	"\x05field\x18\x02 \x01(\tR\x05field\x12I\n" +
	"\taggregate\x18\x03 \x01(\x0e2+.nexuscrm.runtime.v1.QueryAggregateFunctionR\taggregate\x12\x14\n" +
	"\x05alias\x18\x04 \x01(\tR\x05alias\"\xf3\x01\n" +
	"\rQuerySubquery\x12+\n" +
	"\x11relationship_name\x18\x01 \x01(\tR\x10relationshipName\x12'\n" +
	"\x0fselected_fields\x18\x02 \x03(\tR\x0eselectedFields\x12;\n" +
	"\x06filter\x18\x03 \x01(\v2#.nexuscrm.runtime.v1.QueryPredicateR\x06filter\x129\n" +
	"\border_by\x18\x04 \x03(\v2\x1e.nexuscrm.runtime.v1.QuerySortR\aorderBy\x12\x14\n" +
	"\x05limit\x18\x05 \x01(\rR\x05limit\"\x9a\x05\n" +
	"\x13QueryRecordsRequest\x12\x1b\n" +
	"\tobject_id\x18\x01 \x01(\tR\bobjectId\x12C\n" +
	"\n" +
	"selections\x18\x02 \x03(\v2#.nexuscrm.runtime.v1.QuerySelectionR\n" +
	"selections\x12;\n" +
	"\x06filter\x18\x03 \x01(\v2#.nexuscrm.runtime.v1.QueryPredicateR\x06filter\x12\x14\n" +
	"\x05limit\x18\x06 \x01(\rR\x05limit\x12\x16\n" +
	"\x06offset\x18\a \x01(\x04R\x06offset\x12&\n" +
	"\x0fskip_total_size\x18\b \x01(\bR\rskipTotalSize\x12'\n" +
	"\x0finclude_deleted\x18\t \x01(\bR\x0eincludeDeleted\x129\n" +
	"\border_by\x18\n" +
	" \x03(\v2\x1e.nexuscrm.runtime.v1.QuerySortR\aorderBy\x12\x19\n" +
	"\bgroup_by\x18\v \x01(\tR\agroupBy\x12;\n" +
	"\x06having\x18\f \x01(\v2#.nexuscrm.runtime.v1.QueryPredicateR\x06having\x12B\n" +
	"\n" +
	"subqueries\x18\r \x03(\v2\".nexuscrm.runtime.v1.QuerySubqueryR\n" +
	"subqueries\x122\n" +
	"\x15aggregate_fetch_limit\x18\x0e \x01(\rR\x13aggregateFetchLimit\x125\n" +
	"\x14min_catalog_revision\x18\x0f \x01(\x04H\x00R\x12minCatalogRevision\x88\x01\x01B\x17\n" +
	"\x15_min_catalog_revisionJ\x04\b\x04\x10\x05J\x04\b\x05\x10\x06\"F\n" +
	"\vQueryValues\x127\n" +
	"\x06values\x18\x01 \x03(\v2\x1f.nexuscrm.runtime.v1.QueryValueR\x06values\"\x93\x06\n" +
	"\n" +
	"QueryValue\x12H\n" +
	"\rdeclared_kind\x18\x01 \x01(\x0e2#.nexuscrm.runtime.v1.QueryValueKindR\fdeclaredKind\x12?\n" +
	"\n" +
	"null_value\x18\x02 \x01(\v2\x1e.nexuscrm.runtime.v1.NullValueH\x00R\tnullValue\x12#\n" +
	"\fstring_value\x18\x03 \x01(\tH\x00R\vstringValue\x12%\n" +
	"\rboolean_value\x18\x04 \x01(\bH\x00R\fbooleanValue\x12%\n" +
	"\rinteger_value\x18\x05 \x01(\x12H\x00R\fintegerValue\x12'\n" +
	"\x0eunsigned_value\x18\x06 \x01(\x04H\x00R\runsignedValue\x12#\n" +
	"\fdouble_value\x18\a \x01(\x01H\x00R\vdoubleValue\x12H\n" +
	"\rdecimal_value\x18\b \x01(\v2!.nexuscrm.runtime.v1.DecimalValueH\x00R\fdecimalValue\x12?\n" +
	"\n" +
	"date_value\x18\t \x01(\v2\x1e.nexuscrm.runtime.v1.DateValueH\x00R\tdateValue\x12K\n" +
	"\x0edatetime_value\x18\n" +
	" \x01(\v2\".nexuscrm.runtime.v1.DateTimeValueH\x00R\rdatetimeValue\x12N\n" +
	"\x0freference_value\x18\v \x01(\v2#.nexuscrm.runtime.v1.ReferenceValueH\x00R\x0ereferenceValue\x12E\n" +
	"\fobject_value\x18\f \x01(\v2 .nexuscrm.runtime.v1.QueryRecordH\x00R\vobjectValue\x12A\n" +
	"\n" +
	"list_value\x18\r \x01(\v2 .nexuscrm.runtime.v1.QueryValuesH\x00R\tlistValueB\a\n" +
	"\x05value\"W\n" +
	"\n" +
	"QueryField\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x125\n" +
	"\x05value\x18\x02 \x01(\v2\x1f.nexuscrm.runtime.v1.QueryValueR\x05value\"c\n" +
	"\vQueryRecord\x12\x1b\n" +
	"\tobject_id\x18\x01 \x01(\tR\bobjectId\x127\n" +
	"\x06fields\x18\x02 \x03(\v2\x1f.nexuscrm.runtime.v1.QueryFieldR\x06fields\"\x96\x02\n" +
	"\x14QueryRecordsResponse\x12\x1d\n" +
	"\n" +
	"total_size\x18\x01 \x01(\x04R\ttotalSize\x12,\n" +
	"\x12total_size_unknown\x18\x02 \x01(\bR\x10totalSizeUnknown\x12\x12\n" +
	"\x04done\x18\x03 \x01(\bR\x04done\x12:\n" +
	"\arecords\x18\x04 \x03(\v2 .nexuscrm.runtime.v1.QueryRecordR\arecords\x12\x1c\n" +
	"\taggregate\x18\x05 \x01(\bR\taggregate\x12C\n" +
	"\breceipts\x18\x06 \x01(\v2'.nexuscrm.common.v1.ConsistencyReceiptsR\breceipts\"\xe1\x03\n" +
	"\x13QueryHistoryRequest\x12(\n" +
	"\x10parent_object_id\x18\x01 \x01(\tR\x0eparentObjectId\x12'\n" +
	"\x0fselected_fields\x18\x02 \x03(\tR\x0eselectedFields\x12(\n" +
	"\x10parent_record_id\x18\x03 \x01(\tR\x0eparentRecordId\x12;\n" +
	"\x06filter\x18\x04 \x01(\v2#.nexuscrm.runtime.v1.QueryPredicateR\x06filter\x12\x14\n" +
	"\x05limit\x18\x05 \x01(\rR\x05limit\x12\x16\n" +
	"\x06offset\x18\x06 \x01(\x04R\x06offset\x12'\n" +
	"\x0fsort_descending\x18\a \x01(\bR\x0esortDescending\x12'\n" +
	"\x0finclude_deleted\x18\b \x01(\bR\x0eincludeDeleted\x12\x1b\n" +
	"\tpage_size\x18\t \x01(\rR\bpageSize\x12#\n" +
	"\rcursor_offset\x18\n" +
	" \x01(\x04R\fcursorOffset\x125\n" +
	"\x14min_catalog_revision\x18\v \x01(\x04H\x00R\x12minCatalogRevision\x88\x01\x01B\x17\n" +
	"\x15_min_catalog_revision\"\x98\x02\n" +
	"\x0fQueryHistoryRow\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
	"\tparent_id\x18\x02 \x01(\tR\bparentId\x12\x14\n" +
	"\x05field\x18\x03 \x01(\tR\x05field\x12 \n" +
	"\told_value\x18\x04 \x01(\tH\x00R\boldValue\x88\x01\x01\x12 \n" +
	"\tnew_value\x18\x05 \x01(\tH\x01R\bnewValue\x88\x01\x01\x12\x1b\n" +
	"\tdata_type\x18\x06 \x01(\tR\bdataType\x12!\n" +
	"\fcreated_date\x18\a \x01(\tR\vcreatedDate\x12\"\n" +
	"\rcreated_by_id\x18\b \x01(\tR\vcreatedByIdB\f\n" +
	"\n" +
	"_old_valueB\f\n" +
	"\n" +
	"_new_value\"\xc8\x01\n" +
	"\x14QueryHistoryResponse\x12\x1d\n" +
	"\n" +
	"total_size\x18\x01 \x01(\x04R\ttotalSize\x12\x12\n" +
	"\x04done\x18\x02 \x01(\bR\x04done\x128\n" +
	"\x04rows\x18\x03 \x03(\v2$.nexuscrm.runtime.v1.QueryHistoryRowR\x04rows\x12C\n" +
	"\breceipts\x18\x04 \x01(\v2'.nexuscrm.common.v1.ConsistencyReceiptsR\breceipts*\xb8\x02\n" +
	"\x12QueryPredicateKind\x12$\n" +
	" QUERY_PREDICATE_KIND_UNSPECIFIED\x10\x00\x12\x1c\n" +
	"\x18QUERY_PREDICATE_KIND_AND\x10\x01\x12\x1b\n" +
	"\x17QUERY_PREDICATE_KIND_OR\x10\x02\x12\x1c\n" +
	"\x18QUERY_PREDICATE_KIND_NOT\x10\x03\x12#\n" +
	"\x1fQUERY_PREDICATE_KIND_EXPRESSION\x10\x04\x12#\n" +
	"\x1fQUERY_PREDICATE_KIND_COMPARISON\x10\x05\x12)\n" +
	"%QUERY_PREDICATE_KIND_FIELD_COMPARISON\x10\x06\x12.\n" +
	"*QUERY_PREDICATE_KIND_CORRELATED_MEMBERSHIP\x10\a*\xda\x01\n" +
	"\x10QueryOperandKind\x12\"\n" +
	"\x1eQUERY_OPERAND_KIND_UNSPECIFIED\x10\x00\x12\x1c\n" +
	"\x18QUERY_OPERAND_KIND_FIELD\x10\x01\x12\x1e\n" +
	"\x1aQUERY_OPERAND_KIND_LITERAL\x10\x02\x12\x1b\n" +
	"\x17QUERY_OPERAND_KIND_LIST\x10\x03\x12\x1f\n" +
	"\x1bQUERY_OPERAND_KIND_FUNCTION\x10\x04\x12&\n" +
	"\"QUERY_OPERAND_KIND_TRUSTED_CONTEXT\x10\x05*\xd4\x04\n" +
	"\x17QueryComparisonOperator\x12)\n" +
	"%QUERY_COMPARISON_OPERATOR_UNSPECIFIED\x10\x00\x12#\n" +
	"\x1fQUERY_COMPARISON_OPERATOR_EQUAL\x10\x01\x12'\n" +
	"#QUERY_COMPARISON_OPERATOR_NOT_EQUAL\x10\x02\x12*\n" +
	"&QUERY_COMPARISON_OPERATOR_GREATER_THAN\x10\x03\x12.\n" +
	"*QUERY_COMPARISON_OPERATOR_GREATER_OR_EQUAL\x10\x04\x12'\n" +
	"#QUERY_COMPARISON_OPERATOR_LESS_THAN\x10\x05\x12+\n" +
	"'QUERY_COMPARISON_OPERATOR_LESS_OR_EQUAL\x10\x06\x12 \n" +
	"\x1cQUERY_COMPARISON_OPERATOR_IN\x10\a\x12$\n" +
	" QUERY_COMPARISON_OPERATOR_NOT_IN\x10\b\x12&\n" +
	"\"QUERY_COMPARISON_OPERATOR_CONTAINS\x10\t\x12)\n" +
	"%QUERY_COMPARISON_OPERATOR_STARTS_WITH\x10\n" +
	"\x12'\n" +
	"#QUERY_COMPARISON_OPERATOR_ENDS_WITH\x10\v\x12\"\n" +
	"\x1eQUERY_COMPARISON_OPERATOR_LIKE\x10\f\x12&\n" +
	"\"QUERY_COMPARISON_OPERATOR_NOT_LIKE\x10\r*\x98\x04\n" +
	"\x11QueryFunctionName\x12#\n" +
	"\x1fQUERY_FUNCTION_NAME_UNSPECIFIED\x10\x00\x12\x1d\n" +
	"\x19QUERY_FUNCTION_NAME_COUNT\x10\x01\x12&\n" +
	"\"QUERY_FUNCTION_NAME_COUNT_DISTINCT\x10\x02\x12\x1b\n" +
	"\x17QUERY_FUNCTION_NAME_SUM\x10\x03\x12\x1b\n" +
	"\x17QUERY_FUNCTION_NAME_AVG\x10\x04\x12\x1b\n" +
	"\x17QUERY_FUNCTION_NAME_MIN\x10\x05\x12\x1b\n" +
	"\x17QUERY_FUNCTION_NAME_MAX\x10\x06\x12\x1e\n" +
	"\x1aQUERY_FUNCTION_NAME_STRING\x10\a\x12\x1e\n" +
	"\x1aQUERY_FUNCTION_NAME_FORMAT\x10\b\x12%\n" +
	"!QUERY_FUNCTION_NAME_DISPLAY_VALUE\x10\t\x12*\n" +
	"&QUERY_FUNCTION_NAME_NORMALIZE_CURRENCY\x10\n" +
	"\x12 \n" +
	"\x1cQUERY_FUNCTION_NAME_GROUPING\x10\v\x12%\n" +
	"!QUERY_FUNCTION_NAME_TEMPORAL_PART\x10\f\x12$\n" +
	" QUERY_FUNCTION_NAME_GEO_DISTANCE\x10\r\x12!\n" +
	"\x1dQUERY_FUNCTION_NAME_GEO_POINT\x10\x0e*\x8f\x03\n" +
	"\x11QueryTemporalPart\x12#\n" +
	"\x1fQUERY_TEMPORAL_PART_UNSPECIFIED\x10\x00\x12\x1d\n" +
	"\x19QUERY_TEMPORAL_PART_MONTH\x10\x01\x12\x1c\n" +
	"\x18QUERY_TEMPORAL_PART_YEAR\x10\x02\x12\x1f\n" +
	"\x1bQUERY_TEMPORAL_PART_QUARTER\x10\x03\x12$\n" +
	" QUERY_TEMPORAL_PART_DAY_OF_MONTH\x10\x04\x12#\n" +
	"\x1fQUERY_TEMPORAL_PART_DAY_OF_WEEK\x10\x05\x12#\n" +
	"\x1fQUERY_TEMPORAL_PART_DAY_OF_YEAR\x10\x06\x12\x1c\n" +
	"\x18QUERY_TEMPORAL_PART_DATE\x10\a\x12\x1c\n" +
	"\x18QUERY_TEMPORAL_PART_HOUR\x10\b\x12%\n" +
	"!QUERY_TEMPORAL_PART_WEEK_OF_MONTH\x10\t\x12$\n" +
	" QUERY_TEMPORAL_PART_WEEK_OF_YEAR\x10\n" +
	"*}\n" +
	"\x12QueryTemporalBasis\x12$\n" +
	" QUERY_TEMPORAL_BASIS_UNSPECIFIED\x10\x00\x12\x1e\n" +
	"\x1aQUERY_TEMPORAL_BASIS_CIVIL\x10\x01\x12!\n" +
	"\x1dQUERY_TEMPORAL_BASIS_BUSINESS\x10\x02*{\n" +
	"\x11QueryDistanceUnit\x12#\n" +
	"\x1fQUERY_DISTANCE_UNIT_UNSPECIFIED\x10\x00\x12\"\n" +
	"\x1eQUERY_DISTANCE_UNIT_KILOMETERS\x10\x01\x12\x1d\n" +
	"\x19QUERY_DISTANCE_UNIT_MILES\x10\x02*\x83\x01\n" +
	"\x12QuerySortDirection\x12$\n" +
	" QUERY_SORT_DIRECTION_UNSPECIFIED\x10\x00\x12\"\n" +
	"\x1eQUERY_SORT_DIRECTION_ASCENDING\x10\x01\x12#\n" +
	"\x1fQUERY_SORT_DIRECTION_DESCENDING\x10\x02*~\n" +
	"\x12QuerySelectionKind\x12$\n" +
	" QUERY_SELECTION_KIND_UNSPECIFIED\x10\x00\x12\x1e\n" +
	"\x1aQUERY_SELECTION_KIND_FIELD\x10\x01\x12\"\n" +
	"\x1eQUERY_SELECTION_KIND_AGGREGATE\x10\x02*\xee\x01\n" +
	"\x16QueryAggregateFunction\x12(\n" +
	"$QUERY_AGGREGATE_FUNCTION_UNSPECIFIED\x10\x00\x12\"\n" +
	"\x1eQUERY_AGGREGATE_FUNCTION_COUNT\x10\x01\x12 \n" +
	"\x1cQUERY_AGGREGATE_FUNCTION_SUM\x10\x02\x12 \n" +
	"\x1cQUERY_AGGREGATE_FUNCTION_AVG\x10\x03\x12 \n" +
	"\x1cQUERY_AGGREGATE_FUNCTION_MIN\x10\x04\x12 \n" +
	"\x1cQUERY_AGGREGATE_FUNCTION_MAX\x10\x05*\xf7\x02\n" +
	"\x0eQueryValueKind\x12 \n" +
	"\x1cQUERY_VALUE_KIND_UNSPECIFIED\x10\x00\x12\x1b\n" +
	"\x17QUERY_VALUE_KIND_STRING\x10\x01\x12\x1c\n" +
	"\x18QUERY_VALUE_KIND_BOOLEAN\x10\x02\x12\x1c\n" +
	"\x18QUERY_VALUE_KIND_INTEGER\x10\x03\x12\x1d\n" +
	"\x19QUERY_VALUE_KIND_UNSIGNED\x10\x04\x12\x1b\n" +
	"\x17QUERY_VALUE_KIND_DOUBLE\x10\x05\x12\x1c\n" +
	"\x18QUERY_VALUE_KIND_DECIMAL\x10\x06\x12\x19\n" +
	"\x15QUERY_VALUE_KIND_DATE\x10\a\x12\x1d\n" +
	"\x19QUERY_VALUE_KIND_DATETIME\x10\b\x12\x1e\n" +
	"\x1aQUERY_VALUE_KIND_REFERENCE\x10\t\x12\x1b\n" +
	"\x17QUERY_VALUE_KIND_OBJECT\x10\n" +
	"\x12\x19\n" +
	"\x15QUERY_VALUE_KIND_LIST\x10\v*u\n" +
	"\x18QueryTrustedContextValue\x12+\n" +
	"'QUERY_TRUSTED_CONTEXT_VALUE_UNSPECIFIED\x10\x00\x12,\n" +
	"(QUERY_TRUSTED_CONTEXT_VALUE_PRINCIPAL_ID\x10\x012\xde\x01\n" +
	"\x12RecordQueryService\x12c\n" +
	"\fQueryRecords\x12(.nexuscrm.runtime.v1.QueryRecordsRequest\x1a).nexuscrm.runtime.v1.QueryRecordsResponse\x12c\n" +
	"\fQueryHistory\x12(.nexuscrm.runtime.v1.QueryHistoryRequest\x1a).nexuscrm.runtime.v1.QueryHistoryResponseBKZIgithub.com/pingcap-inc/nexuscrm-contract/wire-go/gen/runtime/v1;runtimev1b\x06proto3"

var (
	file_runtime_v1_query_proto_rawDescOnce sync.Once
	file_runtime_v1_query_proto_rawDescData []byte
)

func file_runtime_v1_query_proto_rawDescGZIP() []byte {
	file_runtime_v1_query_proto_rawDescOnce.Do(func() {
		file_runtime_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_runtime_v1_query_proto_rawDesc), len(file_runtime_v1_query_proto_rawDesc)))
	})
	return file_runtime_v1_query_proto_rawDescData
}

var file_runtime_v1_query_proto_enumTypes = make([]protoimpl.EnumInfo, 12)
var file_runtime_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
var file_runtime_v1_query_proto_goTypes = []any{
	(QueryPredicateKind)(0),           // 0: nexuscrm.runtime.v1.QueryPredicateKind
	(QueryOperandKind)(0),             // 1: nexuscrm.runtime.v1.QueryOperandKind
	(QueryComparisonOperator)(0),      // 2: nexuscrm.runtime.v1.QueryComparisonOperator
	(QueryFunctionName)(0),            // 3: nexuscrm.runtime.v1.QueryFunctionName
	(QueryTemporalPart)(0),            // 4: nexuscrm.runtime.v1.QueryTemporalPart
	(QueryTemporalBasis)(0),           // 5: nexuscrm.runtime.v1.QueryTemporalBasis
	(QueryDistanceUnit)(0),            // 6: nexuscrm.runtime.v1.QueryDistanceUnit
	(QuerySortDirection)(0),           // 7: nexuscrm.runtime.v1.QuerySortDirection
	(QuerySelectionKind)(0),           // 8: nexuscrm.runtime.v1.QuerySelectionKind
	(QueryAggregateFunction)(0),       // 9: nexuscrm.runtime.v1.QueryAggregateFunction
	(QueryValueKind)(0),               // 10: nexuscrm.runtime.v1.QueryValueKind
	(QueryTrustedContextValue)(0),     // 11: nexuscrm.runtime.v1.QueryTrustedContextValue
	(*QueryScalar)(nil),               // 12: nexuscrm.runtime.v1.QueryScalar
	(*QueryOperands)(nil),             // 13: nexuscrm.runtime.v1.QueryOperands
	(*QueryOperand)(nil),              // 14: nexuscrm.runtime.v1.QueryOperand
	(*QueryFunction)(nil),             // 15: nexuscrm.runtime.v1.QueryFunction
	(*QueryPredicates)(nil),           // 16: nexuscrm.runtime.v1.QueryPredicates
	(*QueryComparison)(nil),           // 17: nexuscrm.runtime.v1.QueryComparison
	(*QueryFieldComparison)(nil),      // 18: nexuscrm.runtime.v1.QueryFieldComparison
	(*QueryCorrelatedMembership)(nil), // 19: nexuscrm.runtime.v1.QueryCorrelatedMembership
	(*QueryPredicate)(nil),            // 20: nexuscrm.runtime.v1.QueryPredicate
	(*QuerySort)(nil),                 // 21: nexuscrm.runtime.v1.QuerySort
	(*QuerySelection)(nil),            // 22: nexuscrm.runtime.v1.QuerySelection
	(*QuerySubquery)(nil),             // 23: nexuscrm.runtime.v1.QuerySubquery
	(*QueryRecordsRequest)(nil),       // 24: nexuscrm.runtime.v1.QueryRecordsRequest
	(*QueryValues)(nil),               // 25: nexuscrm.runtime.v1.QueryValues
	(*QueryValue)(nil),                // 26: nexuscrm.runtime.v1.QueryValue
	(*QueryField)(nil),                // 27: nexuscrm.runtime.v1.QueryField
	(*QueryRecord)(nil),               // 28: nexuscrm.runtime.v1.QueryRecord
	(*QueryRecordsResponse)(nil),      // 29: nexuscrm.runtime.v1.QueryRecordsResponse
	(*QueryHistoryRequest)(nil),       // 30: nexuscrm.runtime.v1.QueryHistoryRequest
	(*QueryHistoryRow)(nil),           // 31: nexuscrm.runtime.v1.QueryHistoryRow
	(*QueryHistoryResponse)(nil),      // 32: nexuscrm.runtime.v1.QueryHistoryResponse
	(*NullValue)(nil),                 // 33: nexuscrm.runtime.v1.NullValue
	(*DecimalValue)(nil),              // 34: nexuscrm.runtime.v1.DecimalValue
	(*DateValue)(nil),                 // 35: nexuscrm.runtime.v1.DateValue
	(*DateTimeValue)(nil),             // 36: nexuscrm.runtime.v1.DateTimeValue
	(*ReferenceValue)(nil),            // 37: nexuscrm.runtime.v1.ReferenceValue
	(*v1.ConsistencyReceipts)(nil),    // 38: nexuscrm.common.v1.ConsistencyReceipts
}
var file_runtime_v1_query_proto_depIdxs = []int32{
	33, // 0: nexuscrm.runtime.v1.QueryScalar.null_value:type_name -> nexuscrm.runtime.v1.NullValue
	34, // 1: nexuscrm.runtime.v1.QueryScalar.decimal_value:type_name -> nexuscrm.runtime.v1.DecimalValue
	35, // 2: nexuscrm.runtime.v1.QueryScalar.date_value:type_name -> nexuscrm.runtime.v1.DateValue
	36, // 3: nexuscrm.runtime.v1.QueryScalar.datetime_value:type_name -> nexuscrm.runtime.v1.DateTimeValue
	14, // 4: nexuscrm.runtime.v1.QueryOperands.values:type_name -> nexuscrm.runtime.v1.QueryOperand
	1,  // 5: nexuscrm.runtime.v1.QueryOperand.kind:type_name -> nexuscrm.runtime.v1.QueryOperandKind
	12, // 6: nexuscrm.runtime.v1.QueryOperand.literal:type_name -> nexuscrm.runtime.v1.QueryScalar
	13, // 7: nexuscrm.runtime.v1.QueryOperand.list:type_name -> nexuscrm.runtime.v1.QueryOperands
	15, // 8: nexuscrm.runtime.v1.QueryOperand.function:type_name -> nexuscrm.runtime.v1.QueryFunction
	11, // 9: nexuscrm.runtime.v1.QueryOperand.trusted_context:type_name -> nexuscrm.runtime.v1.QueryTrustedContextValue
	3,  // 10: nexuscrm.runtime.v1.QueryFunction.name:type_name -> nexuscrm.runtime.v1.QueryFunctionName
	14, // 11: nexuscrm.runtime.v1.QueryFunction.arguments:type_name -> nexuscrm.runtime.v1.QueryOperand
	4,  // 12: nexuscrm.runtime.v1.QueryFunction.temporal_part:type_name -> nexuscrm.runtime.v1.QueryTemporalPart
	6,  // 13: nexuscrm.runtime.v1.QueryFunction.distance_unit:type_name -> nexuscrm.runtime.v1.QueryDistanceUnit
	5,  // 14: nexuscrm.runtime.v1.QueryFunction.temporal_basis:type_name -> nexuscrm.runtime.v1.QueryTemporalBasis
	20, // 15: nexuscrm.runtime.v1.QueryPredicates.values:type_name -> nexuscrm.runtime.v1.QueryPredicate
	14, // 16: nexuscrm.runtime.v1.QueryComparison.left:type_name -> nexuscrm.runtime.v1.QueryOperand
	2,  // 17: nexuscrm.runtime.v1.QueryComparison.operator:type_name -> nexuscrm.runtime.v1.QueryComparisonOperator
	14, // 18: nexuscrm.runtime.v1.QueryComparison.right:type_name -> nexuscrm.runtime.v1.QueryOperand
	2,  // 19: nexuscrm.runtime.v1.QueryFieldComparison.operator:type_name -> nexuscrm.runtime.v1.QueryComparisonOperator
	12, // 20: nexuscrm.runtime.v1.QueryFieldComparison.value:type_name -> nexuscrm.runtime.v1.QueryScalar
	20, // 21: nexuscrm.runtime.v1.QueryCorrelatedMembership.inner_filter:type_name -> nexuscrm.runtime.v1.QueryPredicate
	0,  // 22: nexuscrm.runtime.v1.QueryPredicate.kind:type_name -> nexuscrm.runtime.v1.QueryPredicateKind
	16, // 23: nexuscrm.runtime.v1.QueryPredicate.children:type_name -> nexuscrm.runtime.v1.QueryPredicates
	14, // 24: nexuscrm.runtime.v1.QueryPredicate.expression:type_name -> nexuscrm.runtime.v1.QueryOperand
	17, // 25: nexuscrm.runtime.v1.QueryPredicate.comparison:type_name -> nexuscrm.runtime.v1.QueryComparison
	18, // 26: nexuscrm.runtime.v1.QueryPredicate.field_comparison:type_name -> nexuscrm.runtime.v1.QueryFieldComparison
	19, // 27: nexuscrm.runtime.v1.QueryPredicate.correlated_membership:type_name -> nexuscrm.runtime.v1.QueryCorrelatedMembership
	7,  // 28: nexuscrm.runtime.v1.QuerySort.direction:type_name -> nexuscrm.runtime.v1.QuerySortDirection
	8,  // 29: nexuscrm.runtime.v1.QuerySelection.kind:type_name -> nexuscrm.runtime.v1.QuerySelectionKind
	9,  // 30: nexuscrm.runtime.v1.QuerySelection.aggregate:type_name -> nexuscrm.runtime.v1.QueryAggregateFunction
	20, // 31: nexuscrm.runtime.v1.QuerySubquery.filter:type_name -> nexuscrm.runtime.v1.QueryPredicate
	21, // 32: nexuscrm.runtime.v1.QuerySubquery.order_by:type_name -> nexuscrm.runtime.v1.QuerySort
	22, // 33: nexuscrm.runtime.v1.QueryRecordsRequest.selections:type_name -> nexuscrm.runtime.v1.QuerySelection
	20, // 34: nexuscrm.runtime.v1.QueryRecordsRequest.filter:type_name -> nexuscrm.runtime.v1.QueryPredicate
	21, // 35: nexuscrm.runtime.v1.QueryRecordsRequest.order_by:type_name -> nexuscrm.runtime.v1.QuerySort
	20, // 36: nexuscrm.runtime.v1.QueryRecordsRequest.having:type_name -> nexuscrm.runtime.v1.QueryPredicate
	23, // 37: nexuscrm.runtime.v1.QueryRecordsRequest.subqueries:type_name -> nexuscrm.runtime.v1.QuerySubquery
	26, // 38: nexuscrm.runtime.v1.QueryValues.values:type_name -> nexuscrm.runtime.v1.QueryValue
	10, // 39: nexuscrm.runtime.v1.QueryValue.declared_kind:type_name -> nexuscrm.runtime.v1.QueryValueKind
	33, // 40: nexuscrm.runtime.v1.QueryValue.null_value:type_name -> nexuscrm.runtime.v1.NullValue
	34, // 41: nexuscrm.runtime.v1.QueryValue.decimal_value:type_name -> nexuscrm.runtime.v1.DecimalValue
	35, // 42: nexuscrm.runtime.v1.QueryValue.date_value:type_name -> nexuscrm.runtime.v1.DateValue
	36, // 43: nexuscrm.runtime.v1.QueryValue.datetime_value:type_name -> nexuscrm.runtime.v1.DateTimeValue
	37, // 44: nexuscrm.runtime.v1.QueryValue.reference_value:type_name -> nexuscrm.runtime.v1.ReferenceValue
	28, // 45: nexuscrm.runtime.v1.QueryValue.object_value:type_name -> nexuscrm.runtime.v1.QueryRecord
	25, // 46: nexuscrm.runtime.v1.QueryValue.list_value:type_name -> nexuscrm.runtime.v1.QueryValues
	26, // 47: nexuscrm.runtime.v1.QueryField.value:type_name -> nexuscrm.runtime.v1.QueryValue
	27, // 48: nexuscrm.runtime.v1.QueryRecord.fields:type_name -> nexuscrm.runtime.v1.QueryField
	28, // 49: nexuscrm.runtime.v1.QueryRecordsResponse.records:type_name -> nexuscrm.runtime.v1.QueryRecord
	38, // 50: nexuscrm.runtime.v1.QueryRecordsResponse.receipts:type_name -> nexuscrm.common.v1.ConsistencyReceipts
	20, // 51: nexuscrm.runtime.v1.QueryHistoryRequest.filter:type_name -> nexuscrm.runtime.v1.QueryPredicate
	31, // 52: nexuscrm.runtime.v1.QueryHistoryResponse.rows:type_name -> nexuscrm.runtime.v1.QueryHistoryRow
	38, // 53: nexuscrm.runtime.v1.QueryHistoryResponse.receipts:type_name -> nexuscrm.common.v1.ConsistencyReceipts
	24, // 54: nexuscrm.runtime.v1.RecordQueryService.QueryRecords:input_type -> nexuscrm.runtime.v1.QueryRecordsRequest
	30, // 55: nexuscrm.runtime.v1.RecordQueryService.QueryHistory:input_type -> nexuscrm.runtime.v1.QueryHistoryRequest
	29, // 56: nexuscrm.runtime.v1.RecordQueryService.QueryRecords:output_type -> nexuscrm.runtime.v1.QueryRecordsResponse
	32, // 57: nexuscrm.runtime.v1.RecordQueryService.QueryHistory:output_type -> nexuscrm.runtime.v1.QueryHistoryResponse
	56, // [56:58] is the sub-list for method output_type
	54, // [54:56] is the sub-list for method input_type
	54, // [54:54] is the sub-list for extension type_name
	54, // [54:54] is the sub-list for extension extendee
	0,  // [0:54] is the sub-list for field type_name
}

func init() { file_runtime_v1_query_proto_init() }
func file_runtime_v1_query_proto_init() {
	if File_runtime_v1_query_proto != nil {
		return
	}
	file_runtime_v1_records_proto_init()
	file_runtime_v1_query_proto_msgTypes[0].OneofWrappers = []any{
		(*QueryScalar_NullValue)(nil),
		(*QueryScalar_StringValue)(nil),
		(*QueryScalar_BooleanValue)(nil),
		(*QueryScalar_IntegerValue)(nil),
		(*QueryScalar_UnsignedValue)(nil),
		(*QueryScalar_DoubleValue)(nil),
		(*QueryScalar_DecimalValue)(nil),
		(*QueryScalar_DateValue)(nil),
		(*QueryScalar_DatetimeValue)(nil),
	}
	file_runtime_v1_query_proto_msgTypes[2].OneofWrappers = []any{
		(*QueryOperand_Field)(nil),
		(*QueryOperand_Literal)(nil),
		(*QueryOperand_List)(nil),
		(*QueryOperand_Function)(nil),
		(*QueryOperand_TrustedContext)(nil),
	}
	file_runtime_v1_query_proto_msgTypes[8].OneofWrappers = []any{
		(*QueryPredicate_Children)(nil),
		(*QueryPredicate_Expression)(nil),
		(*QueryPredicate_Comparison)(nil),
		(*QueryPredicate_FieldComparison)(nil),
		(*QueryPredicate_CorrelatedMembership)(nil),
	}
	file_runtime_v1_query_proto_msgTypes[12].OneofWrappers = []any{}
	file_runtime_v1_query_proto_msgTypes[14].OneofWrappers = []any{
		(*QueryValue_NullValue)(nil),
		(*QueryValue_StringValue)(nil),
		(*QueryValue_BooleanValue)(nil),
		(*QueryValue_IntegerValue)(nil),
		(*QueryValue_UnsignedValue)(nil),
		(*QueryValue_DoubleValue)(nil),
		(*QueryValue_DecimalValue)(nil),
		(*QueryValue_DateValue)(nil),
		(*QueryValue_DatetimeValue)(nil),
		(*QueryValue_ReferenceValue)(nil),
		(*QueryValue_ObjectValue)(nil),
		(*QueryValue_ListValue)(nil),
	}
	file_runtime_v1_query_proto_msgTypes[18].OneofWrappers = []any{}
	file_runtime_v1_query_proto_msgTypes[19].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_runtime_v1_query_proto_rawDesc), len(file_runtime_v1_query_proto_rawDesc)),
			NumEnums:      12,
			NumMessages:   21,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_runtime_v1_query_proto_goTypes,
		DependencyIndexes: file_runtime_v1_query_proto_depIdxs,
		EnumInfos:         file_runtime_v1_query_proto_enumTypes,
		MessageInfos:      file_runtime_v1_query_proto_msgTypes,
	}.Build()
	File_runtime_v1_query_proto = out.File
	file_runtime_v1_query_proto_goTypes = nil
	file_runtime_v1_query_proto_depIdxs = nil
}
