| 1 | // @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none" |
| 2 | // @generated from file types/v1/logquery.proto (package types.v1, syntax proto3) |
| 3 | /* eslint-disable */ |
| 4 | // @ts-nocheck |
| 5 | |
| 6 | import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; |
| 7 | import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; |
| 8 | import { Val } from "./types_pb"; |
| 9 | |
| 10 | /** |
| 11 | * @generated from message types.v1.LogQuery |
| 12 | */ |
| 13 | export class LogQuery extends Message<LogQuery> { |
| 14 | /** |
| 15 | * @generated from field: types.v1.Timerange timerange = 1; |
| 16 | */ |
| 17 | timerange?: Timerange; |
| 18 | |
| 19 | /** |
| 20 | * @generated from field: types.v1.Context context = 2; |
| 21 | */ |
| 22 | context?: Context; |
| 23 | |
| 24 | /** |
| 25 | * @generated from field: types.v1.Statements query = 3; |
| 26 | */ |
| 27 | query?: Statements; |
| 28 | |
| 29 | constructor(data?: PartialMessage<LogQuery>) { |
| 30 | super(); |
| 31 | proto3.util.initPartial(data, this); |
| 32 | } |
| 33 | |
| 34 | static readonly runtime: typeof proto3 = proto3; |
| 35 | static readonly typeName = "types.v1.LogQuery"; |
| 36 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 37 | { no: 1, name: "timerange", kind: "message", T: Timerange }, |
| 38 | { no: 2, name: "context", kind: "message", T: Context }, |
| 39 | { no: 3, name: "query", kind: "message", T: Statements }, |
| 40 | ]); |
| 41 | |
| 42 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LogQuery { |
| 43 | return new LogQuery().fromBinary(bytes, options); |
| 44 | } |
| 45 | |
| 46 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LogQuery { |
| 47 | return new LogQuery().fromJson(jsonValue, options); |
| 48 | } |
| 49 | |
| 50 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LogQuery { |
| 51 | return new LogQuery().fromJsonString(jsonString, options); |
| 52 | } |
| 53 | |
| 54 | static equals(a: LogQuery | PlainMessage<LogQuery> | undefined, b: LogQuery | PlainMessage<LogQuery> | undefined): boolean { |
| 55 | return proto3.util.equals(LogQuery, a, b); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * @generated from message types.v1.Timerange |
| 61 | */ |
| 62 | export class Timerange extends Message<Timerange> { |
| 63 | /** |
| 64 | * @generated from field: types.v1.Expr from = 1; |
| 65 | */ |
| 66 | from?: Expr; |
| 67 | |
| 68 | /** |
| 69 | * @generated from field: optional types.v1.Expr to = 2; |
| 70 | */ |
| 71 | to?: Expr; |
| 72 | |
| 73 | constructor(data?: PartialMessage<Timerange>) { |
| 74 | super(); |
| 75 | proto3.util.initPartial(data, this); |
| 76 | } |
| 77 | |
| 78 | static readonly runtime: typeof proto3 = proto3; |
| 79 | static readonly typeName = "types.v1.Timerange"; |
| 80 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 81 | { no: 1, name: "from", kind: "message", T: Expr }, |
| 82 | { no: 2, name: "to", kind: "message", T: Expr, opt: true }, |
| 83 | ]); |
| 84 | |
| 85 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Timerange { |
| 86 | return new Timerange().fromBinary(bytes, options); |
| 87 | } |
| 88 | |
| 89 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Timerange { |
| 90 | return new Timerange().fromJson(jsonValue, options); |
| 91 | } |
| 92 | |
| 93 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Timerange { |
| 94 | return new Timerange().fromJsonString(jsonString, options); |
| 95 | } |
| 96 | |
| 97 | static equals(a: Timerange | PlainMessage<Timerange> | undefined, b: Timerange | PlainMessage<Timerange> | undefined): boolean { |
| 98 | return proto3.util.equals(Timerange, a, b); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * @generated from message types.v1.Context |
| 104 | */ |
| 105 | export class Context extends Message<Context> { |
| 106 | /** |
| 107 | * @generated from field: optional types.v1.Expr machine_id = 101; |
| 108 | */ |
| 109 | machineId?: Expr; |
| 110 | |
| 111 | /** |
| 112 | * @generated from field: optional types.v1.Expr session_id = 102; |
| 113 | */ |
| 114 | sessionId?: Expr; |
| 115 | |
| 116 | constructor(data?: PartialMessage<Context>) { |
| 117 | super(); |
| 118 | proto3.util.initPartial(data, this); |
| 119 | } |
| 120 | |
| 121 | static readonly runtime: typeof proto3 = proto3; |
| 122 | static readonly typeName = "types.v1.Context"; |
| 123 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 124 | { no: 101, name: "machine_id", kind: "message", T: Expr, opt: true }, |
| 125 | { no: 102, name: "session_id", kind: "message", T: Expr, opt: true }, |
| 126 | ]); |
| 127 | |
| 128 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Context { |
| 129 | return new Context().fromBinary(bytes, options); |
| 130 | } |
| 131 | |
| 132 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Context { |
| 133 | return new Context().fromJson(jsonValue, options); |
| 134 | } |
| 135 | |
| 136 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Context { |
| 137 | return new Context().fromJsonString(jsonString, options); |
| 138 | } |
| 139 | |
| 140 | static equals(a: Context | PlainMessage<Context> | undefined, b: Context | PlainMessage<Context> | undefined): boolean { |
| 141 | return proto3.util.equals(Context, a, b); |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | /** |
| 146 | * @generated from message types.v1.Statements |
| 147 | */ |
| 148 | export class Statements extends Message<Statements> { |
| 149 | /** |
| 150 | * statements are `|` separated |
| 151 | * |
| 152 | * @generated from field: repeated types.v1.Statement statements = 1; |
| 153 | */ |
| 154 | statements: Statement[] = []; |
| 155 | |
| 156 | /** |
| 157 | * @generated from field: types.v1.RenderStatement render = 2; |
| 158 | */ |
| 159 | render?: RenderStatement; |
| 160 | |
| 161 | constructor(data?: PartialMessage<Statements>) { |
| 162 | super(); |
| 163 | proto3.util.initPartial(data, this); |
| 164 | } |
| 165 | |
| 166 | static readonly runtime: typeof proto3 = proto3; |
| 167 | static readonly typeName = "types.v1.Statements"; |
| 168 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 169 | { no: 1, name: "statements", kind: "message", T: Statement, repeated: true }, |
| 170 | { no: 2, name: "render", kind: "message", T: RenderStatement }, |
| 171 | ]); |
| 172 | |
| 173 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Statements { |
| 174 | return new Statements().fromBinary(bytes, options); |
| 175 | } |
| 176 | |
| 177 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Statements { |
| 178 | return new Statements().fromJson(jsonValue, options); |
| 179 | } |
| 180 | |
| 181 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Statements { |
| 182 | return new Statements().fromJsonString(jsonString, options); |
| 183 | } |
| 184 | |
| 185 | static equals(a: Statements | PlainMessage<Statements> | undefined, b: Statements | PlainMessage<Statements> | undefined): boolean { |
| 186 | return proto3.util.equals(Statements, a, b); |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * @generated from message types.v1.Statement |
| 192 | */ |
| 193 | export class Statement extends Message<Statement> { |
| 194 | /** |
| 195 | * @generated from oneof types.v1.Statement.stmt |
| 196 | */ |
| 197 | stmt: { |
| 198 | /** |
| 199 | * @generated from field: types.v1.FilterOperator filter = 1; |
| 200 | */ |
| 201 | value: FilterOperator; |
| 202 | case: "filter"; |
| 203 | } | { |
| 204 | /** |
| 205 | * @generated from field: types.v1.SummarizeOperator summarize = 2; |
| 206 | */ |
| 207 | value: SummarizeOperator; |
| 208 | case: "summarize"; |
| 209 | } | { |
| 210 | /** |
| 211 | * @generated from field: types.v1.ProjectOperator project = 300; |
| 212 | */ |
| 213 | value: ProjectOperator; |
| 214 | case: "project"; |
| 215 | } | { |
| 216 | /** |
| 217 | * @generated from field: types.v1.ProjectAwayOperator project_away = 301; |
| 218 | */ |
| 219 | value: ProjectAwayOperator; |
| 220 | case: "projectAway"; |
| 221 | } | { |
| 222 | /** |
| 223 | * @generated from field: types.v1.ProjectKeepOperator project_keep = 302; |
| 224 | */ |
| 225 | value: ProjectKeepOperator; |
| 226 | case: "projectKeep"; |
| 227 | } | { |
| 228 | /** |
| 229 | * @generated from field: types.v1.ExtendOperator extend = 4; |
| 230 | */ |
| 231 | value: ExtendOperator; |
| 232 | case: "extend"; |
| 233 | } | { |
| 234 | /** |
| 235 | * @generated from field: types.v1.CountOperator count = 5; |
| 236 | */ |
| 237 | value: CountOperator; |
| 238 | case: "count"; |
| 239 | } | { |
| 240 | /** |
| 241 | * @generated from field: types.v1.DistinctOperator distinct = 6; |
| 242 | */ |
| 243 | value: DistinctOperator; |
| 244 | case: "distinct"; |
| 245 | } | { |
| 246 | /** |
| 247 | * @generated from field: types.v1.SampleOperator sample = 7; |
| 248 | */ |
| 249 | value: SampleOperator; |
| 250 | case: "sample"; |
| 251 | } | { |
| 252 | /** |
| 253 | * @generated from field: types.v1.SearchOperator search = 8; |
| 254 | */ |
| 255 | value: SearchOperator; |
| 256 | case: "search"; |
| 257 | } | { |
| 258 | /** |
| 259 | * @generated from field: types.v1.SortOperator sort = 9; |
| 260 | */ |
| 261 | value: SortOperator; |
| 262 | case: "sort"; |
| 263 | } | { |
| 264 | /** |
| 265 | * @generated from field: types.v1.TakeOperator take = 10; |
| 266 | */ |
| 267 | value: TakeOperator; |
| 268 | case: "take"; |
| 269 | } | { |
| 270 | /** |
| 271 | * @generated from field: types.v1.TopOperator top = 11; |
| 272 | */ |
| 273 | value: TopOperator; |
| 274 | case: "top"; |
| 275 | } | { case: undefined; value?: undefined } = { case: undefined }; |
| 276 | |
| 277 | constructor(data?: PartialMessage<Statement>) { |
| 278 | super(); |
| 279 | proto3.util.initPartial(data, this); |
| 280 | } |
| 281 | |
| 282 | static readonly runtime: typeof proto3 = proto3; |
| 283 | static readonly typeName = "types.v1.Statement"; |
| 284 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 285 | { no: 1, name: "filter", kind: "message", T: FilterOperator, oneof: "stmt" }, |
| 286 | { no: 2, name: "summarize", kind: "message", T: SummarizeOperator, oneof: "stmt" }, |
| 287 | { no: 300, name: "project", kind: "message", T: ProjectOperator, oneof: "stmt" }, |
| 288 | { no: 301, name: "project_away", kind: "message", T: ProjectAwayOperator, oneof: "stmt" }, |
| 289 | { no: 302, name: "project_keep", kind: "message", T: ProjectKeepOperator, oneof: "stmt" }, |
| 290 | { no: 4, name: "extend", kind: "message", T: ExtendOperator, oneof: "stmt" }, |
| 291 | { no: 5, name: "count", kind: "message", T: CountOperator, oneof: "stmt" }, |
| 292 | { no: 6, name: "distinct", kind: "message", T: DistinctOperator, oneof: "stmt" }, |
| 293 | { no: 7, name: "sample", kind: "message", T: SampleOperator, oneof: "stmt" }, |
| 294 | { no: 8, name: "search", kind: "message", T: SearchOperator, oneof: "stmt" }, |
| 295 | { no: 9, name: "sort", kind: "message", T: SortOperator, oneof: "stmt" }, |
| 296 | { no: 10, name: "take", kind: "message", T: TakeOperator, oneof: "stmt" }, |
| 297 | { no: 11, name: "top", kind: "message", T: TopOperator, oneof: "stmt" }, |
| 298 | ]); |
| 299 | |
| 300 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Statement { |
| 301 | return new Statement().fromBinary(bytes, options); |
| 302 | } |
| 303 | |
| 304 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Statement { |
| 305 | return new Statement().fromJson(jsonValue, options); |
| 306 | } |
| 307 | |
| 308 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Statement { |
| 309 | return new Statement().fromJsonString(jsonString, options); |
| 310 | } |
| 311 | |
| 312 | static equals(a: Statement | PlainMessage<Statement> | undefined, b: Statement | PlainMessage<Statement> | undefined): boolean { |
| 313 | return proto3.util.equals(Statement, a, b); |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | /** |
| 318 | * @generated from message types.v1.FilterOperator |
| 319 | */ |
| 320 | export class FilterOperator extends Message<FilterOperator> { |
| 321 | /** |
| 322 | * @generated from field: types.v1.Expr expr = 1; |
| 323 | */ |
| 324 | expr?: Expr; |
| 325 | |
| 326 | constructor(data?: PartialMessage<FilterOperator>) { |
| 327 | super(); |
| 328 | proto3.util.initPartial(data, this); |
| 329 | } |
| 330 | |
| 331 | static readonly runtime: typeof proto3 = proto3; |
| 332 | static readonly typeName = "types.v1.FilterOperator"; |
| 333 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 334 | { no: 1, name: "expr", kind: "message", T: Expr }, |
| 335 | ]); |
| 336 | |
| 337 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FilterOperator { |
| 338 | return new FilterOperator().fromBinary(bytes, options); |
| 339 | } |
| 340 | |
| 341 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FilterOperator { |
| 342 | return new FilterOperator().fromJson(jsonValue, options); |
| 343 | } |
| 344 | |
| 345 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FilterOperator { |
| 346 | return new FilterOperator().fromJsonString(jsonString, options); |
| 347 | } |
| 348 | |
| 349 | static equals(a: FilterOperator | PlainMessage<FilterOperator> | undefined, b: FilterOperator | PlainMessage<FilterOperator> | undefined): boolean { |
| 350 | return proto3.util.equals(FilterOperator, a, b); |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | /** |
| 355 | * @generated from message types.v1.SummarizeOperator |
| 356 | */ |
| 357 | export class SummarizeOperator extends Message<SummarizeOperator> { |
| 358 | /** |
| 359 | * @generated from field: types.v1.SummarizeOperator.Parameters parameters = 1; |
| 360 | */ |
| 361 | parameters?: SummarizeOperator_Parameters; |
| 362 | |
| 363 | /** |
| 364 | * @generated from field: optional types.v1.SummarizeOperator.ByGroupExpressions by_group_expressions = 2; |
| 365 | */ |
| 366 | byGroupExpressions?: SummarizeOperator_ByGroupExpressions; |
| 367 | |
| 368 | constructor(data?: PartialMessage<SummarizeOperator>) { |
| 369 | super(); |
| 370 | proto3.util.initPartial(data, this); |
| 371 | } |
| 372 | |
| 373 | static readonly runtime: typeof proto3 = proto3; |
| 374 | static readonly typeName = "types.v1.SummarizeOperator"; |
| 375 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 376 | { no: 1, name: "parameters", kind: "message", T: SummarizeOperator_Parameters }, |
| 377 | { no: 2, name: "by_group_expressions", kind: "message", T: SummarizeOperator_ByGroupExpressions, opt: true }, |
| 378 | ]); |
| 379 | |
| 380 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SummarizeOperator { |
| 381 | return new SummarizeOperator().fromBinary(bytes, options); |
| 382 | } |
| 383 | |
| 384 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SummarizeOperator { |
| 385 | return new SummarizeOperator().fromJson(jsonValue, options); |
| 386 | } |
| 387 | |
| 388 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SummarizeOperator { |
| 389 | return new SummarizeOperator().fromJsonString(jsonString, options); |
| 390 | } |
| 391 | |
| 392 | static equals(a: SummarizeOperator | PlainMessage<SummarizeOperator> | undefined, b: SummarizeOperator | PlainMessage<SummarizeOperator> | undefined): boolean { |
| 393 | return proto3.util.equals(SummarizeOperator, a, b); |
| 394 | } |
| 395 | } |
| 396 | |
| 397 | /** |
| 398 | * @generated from message types.v1.SummarizeOperator.Parameters |
| 399 | */ |
| 400 | export class SummarizeOperator_Parameters extends Message<SummarizeOperator_Parameters> { |
| 401 | /** |
| 402 | * @generated from field: repeated types.v1.SummarizeOperator.Parameter parameters = 1; |
| 403 | */ |
| 404 | parameters: SummarizeOperator_Parameter[] = []; |
| 405 | |
| 406 | constructor(data?: PartialMessage<SummarizeOperator_Parameters>) { |
| 407 | super(); |
| 408 | proto3.util.initPartial(data, this); |
| 409 | } |
| 410 | |
| 411 | static readonly runtime: typeof proto3 = proto3; |
| 412 | static readonly typeName = "types.v1.SummarizeOperator.Parameters"; |
| 413 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 414 | { no: 1, name: "parameters", kind: "message", T: SummarizeOperator_Parameter, repeated: true }, |
| 415 | ]); |
| 416 | |
| 417 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SummarizeOperator_Parameters { |
| 418 | return new SummarizeOperator_Parameters().fromBinary(bytes, options); |
| 419 | } |
| 420 | |
| 421 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SummarizeOperator_Parameters { |
| 422 | return new SummarizeOperator_Parameters().fromJson(jsonValue, options); |
| 423 | } |
| 424 | |
| 425 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SummarizeOperator_Parameters { |
| 426 | return new SummarizeOperator_Parameters().fromJsonString(jsonString, options); |
| 427 | } |
| 428 | |
| 429 | static equals(a: SummarizeOperator_Parameters | PlainMessage<SummarizeOperator_Parameters> | undefined, b: SummarizeOperator_Parameters | PlainMessage<SummarizeOperator_Parameters> | undefined): boolean { |
| 430 | return proto3.util.equals(SummarizeOperator_Parameters, a, b); |
| 431 | } |
| 432 | } |
| 433 | |
| 434 | /** |
| 435 | * @generated from message types.v1.SummarizeOperator.Parameter |
| 436 | */ |
| 437 | export class SummarizeOperator_Parameter extends Message<SummarizeOperator_Parameter> { |
| 438 | /** |
| 439 | * @generated from field: optional types.v1.Identifier column = 1; |
| 440 | */ |
| 441 | column?: Identifier; |
| 442 | |
| 443 | /** |
| 444 | * @generated from field: types.v1.FuncCall aggregate_function = 2; |
| 445 | */ |
| 446 | aggregateFunction?: FuncCall; |
| 447 | |
| 448 | constructor(data?: PartialMessage<SummarizeOperator_Parameter>) { |
| 449 | super(); |
| 450 | proto3.util.initPartial(data, this); |
| 451 | } |
| 452 | |
| 453 | static readonly runtime: typeof proto3 = proto3; |
| 454 | static readonly typeName = "types.v1.SummarizeOperator.Parameter"; |
| 455 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 456 | { no: 1, name: "column", kind: "message", T: Identifier, opt: true }, |
| 457 | { no: 2, name: "aggregate_function", kind: "message", T: FuncCall }, |
| 458 | ]); |
| 459 | |
| 460 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SummarizeOperator_Parameter { |
| 461 | return new SummarizeOperator_Parameter().fromBinary(bytes, options); |
| 462 | } |
| 463 | |
| 464 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SummarizeOperator_Parameter { |
| 465 | return new SummarizeOperator_Parameter().fromJson(jsonValue, options); |
| 466 | } |
| 467 | |
| 468 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SummarizeOperator_Parameter { |
| 469 | return new SummarizeOperator_Parameter().fromJsonString(jsonString, options); |
| 470 | } |
| 471 | |
| 472 | static equals(a: SummarizeOperator_Parameter | PlainMessage<SummarizeOperator_Parameter> | undefined, b: SummarizeOperator_Parameter | PlainMessage<SummarizeOperator_Parameter> | undefined): boolean { |
| 473 | return proto3.util.equals(SummarizeOperator_Parameter, a, b); |
| 474 | } |
| 475 | } |
| 476 | |
| 477 | /** |
| 478 | * @generated from message types.v1.SummarizeOperator.ByGroupExpressions |
| 479 | */ |
| 480 | export class SummarizeOperator_ByGroupExpressions extends Message<SummarizeOperator_ByGroupExpressions> { |
| 481 | /** |
| 482 | * @generated from field: repeated types.v1.SummarizeOperator.ByGroupExpression groups = 2; |
| 483 | */ |
| 484 | groups: SummarizeOperator_ByGroupExpression[] = []; |
| 485 | |
| 486 | constructor(data?: PartialMessage<SummarizeOperator_ByGroupExpressions>) { |
| 487 | super(); |
| 488 | proto3.util.initPartial(data, this); |
| 489 | } |
| 490 | |
| 491 | static readonly runtime: typeof proto3 = proto3; |
| 492 | static readonly typeName = "types.v1.SummarizeOperator.ByGroupExpressions"; |
| 493 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 494 | { no: 2, name: "groups", kind: "message", T: SummarizeOperator_ByGroupExpression, repeated: true }, |
| 495 | ]); |
| 496 | |
| 497 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SummarizeOperator_ByGroupExpressions { |
| 498 | return new SummarizeOperator_ByGroupExpressions().fromBinary(bytes, options); |
| 499 | } |
| 500 | |
| 501 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SummarizeOperator_ByGroupExpressions { |
| 502 | return new SummarizeOperator_ByGroupExpressions().fromJson(jsonValue, options); |
| 503 | } |
| 504 | |
| 505 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SummarizeOperator_ByGroupExpressions { |
| 506 | return new SummarizeOperator_ByGroupExpressions().fromJsonString(jsonString, options); |
| 507 | } |
| 508 | |
| 509 | static equals(a: SummarizeOperator_ByGroupExpressions | PlainMessage<SummarizeOperator_ByGroupExpressions> | undefined, b: SummarizeOperator_ByGroupExpressions | PlainMessage<SummarizeOperator_ByGroupExpressions> | undefined): boolean { |
| 510 | return proto3.util.equals(SummarizeOperator_ByGroupExpressions, a, b); |
| 511 | } |
| 512 | } |
| 513 | |
| 514 | /** |
| 515 | * @generated from message types.v1.SummarizeOperator.ByGroupExpression |
| 516 | */ |
| 517 | export class SummarizeOperator_ByGroupExpression extends Message<SummarizeOperator_ByGroupExpression> { |
| 518 | /** |
| 519 | * @generated from field: optional types.v1.Identifier column = 1; |
| 520 | */ |
| 521 | column?: Identifier; |
| 522 | |
| 523 | /** |
| 524 | * @generated from field: types.v1.Expr scalar = 2; |
| 525 | */ |
| 526 | scalar?: Expr; |
| 527 | |
| 528 | constructor(data?: PartialMessage<SummarizeOperator_ByGroupExpression>) { |
| 529 | super(); |
| 530 | proto3.util.initPartial(data, this); |
| 531 | } |
| 532 | |
| 533 | static readonly runtime: typeof proto3 = proto3; |
| 534 | static readonly typeName = "types.v1.SummarizeOperator.ByGroupExpression"; |
| 535 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 536 | { no: 1, name: "column", kind: "message", T: Identifier, opt: true }, |
| 537 | { no: 2, name: "scalar", kind: "message", T: Expr }, |
| 538 | ]); |
| 539 | |
| 540 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SummarizeOperator_ByGroupExpression { |
| 541 | return new SummarizeOperator_ByGroupExpression().fromBinary(bytes, options); |
| 542 | } |
| 543 | |
| 544 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SummarizeOperator_ByGroupExpression { |
| 545 | return new SummarizeOperator_ByGroupExpression().fromJson(jsonValue, options); |
| 546 | } |
| 547 | |
| 548 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SummarizeOperator_ByGroupExpression { |
| 549 | return new SummarizeOperator_ByGroupExpression().fromJsonString(jsonString, options); |
| 550 | } |
| 551 | |
| 552 | static equals(a: SummarizeOperator_ByGroupExpression | PlainMessage<SummarizeOperator_ByGroupExpression> | undefined, b: SummarizeOperator_ByGroupExpression | PlainMessage<SummarizeOperator_ByGroupExpression> | undefined): boolean { |
| 553 | return proto3.util.equals(SummarizeOperator_ByGroupExpression, a, b); |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | /** |
| 558 | * @generated from message types.v1.ProjectOperator |
| 559 | */ |
| 560 | export class ProjectOperator extends Message<ProjectOperator> { |
| 561 | /** |
| 562 | * @generated from field: repeated types.v1.ProjectOperator.Projection projections = 1; |
| 563 | */ |
| 564 | projections: ProjectOperator_Projection[] = []; |
| 565 | |
| 566 | constructor(data?: PartialMessage<ProjectOperator>) { |
| 567 | super(); |
| 568 | proto3.util.initPartial(data, this); |
| 569 | } |
| 570 | |
| 571 | static readonly runtime: typeof proto3 = proto3; |
| 572 | static readonly typeName = "types.v1.ProjectOperator"; |
| 573 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 574 | { no: 1, name: "projections", kind: "message", T: ProjectOperator_Projection, repeated: true }, |
| 575 | ]); |
| 576 | |
| 577 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProjectOperator { |
| 578 | return new ProjectOperator().fromBinary(bytes, options); |
| 579 | } |
| 580 | |
| 581 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProjectOperator { |
| 582 | return new ProjectOperator().fromJson(jsonValue, options); |
| 583 | } |
| 584 | |
| 585 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProjectOperator { |
| 586 | return new ProjectOperator().fromJsonString(jsonString, options); |
| 587 | } |
| 588 | |
| 589 | static equals(a: ProjectOperator | PlainMessage<ProjectOperator> | undefined, b: ProjectOperator | PlainMessage<ProjectOperator> | undefined): boolean { |
| 590 | return proto3.util.equals(ProjectOperator, a, b); |
| 591 | } |
| 592 | } |
| 593 | |
| 594 | /** |
| 595 | * @generated from message types.v1.ProjectOperator.Projection |
| 596 | */ |
| 597 | export class ProjectOperator_Projection extends Message<ProjectOperator_Projection> { |
| 598 | /** |
| 599 | * @generated from field: types.v1.Identifier column = 1; |
| 600 | */ |
| 601 | column?: Identifier; |
| 602 | |
| 603 | /** |
| 604 | * @generated from field: optional types.v1.Expr value = 2; |
| 605 | */ |
| 606 | value?: Expr; |
| 607 | |
| 608 | constructor(data?: PartialMessage<ProjectOperator_Projection>) { |
| 609 | super(); |
| 610 | proto3.util.initPartial(data, this); |
| 611 | } |
| 612 | |
| 613 | static readonly runtime: typeof proto3 = proto3; |
| 614 | static readonly typeName = "types.v1.ProjectOperator.Projection"; |
| 615 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 616 | { no: 1, name: "column", kind: "message", T: Identifier }, |
| 617 | { no: 2, name: "value", kind: "message", T: Expr, opt: true }, |
| 618 | ]); |
| 619 | |
| 620 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProjectOperator_Projection { |
| 621 | return new ProjectOperator_Projection().fromBinary(bytes, options); |
| 622 | } |
| 623 | |
| 624 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProjectOperator_Projection { |
| 625 | return new ProjectOperator_Projection().fromJson(jsonValue, options); |
| 626 | } |
| 627 | |
| 628 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProjectOperator_Projection { |
| 629 | return new ProjectOperator_Projection().fromJsonString(jsonString, options); |
| 630 | } |
| 631 | |
| 632 | static equals(a: ProjectOperator_Projection | PlainMessage<ProjectOperator_Projection> | undefined, b: ProjectOperator_Projection | PlainMessage<ProjectOperator_Projection> | undefined): boolean { |
| 633 | return proto3.util.equals(ProjectOperator_Projection, a, b); |
| 634 | } |
| 635 | } |
| 636 | |
| 637 | /** |
| 638 | * @generated from message types.v1.ProjectAwayOperator |
| 639 | */ |
| 640 | export class ProjectAwayOperator extends Message<ProjectAwayOperator> { |
| 641 | /** |
| 642 | * @generated from field: repeated types.v1.ProjectAwayOperator.Projection projections = 1; |
| 643 | */ |
| 644 | projections: ProjectAwayOperator_Projection[] = []; |
| 645 | |
| 646 | constructor(data?: PartialMessage<ProjectAwayOperator>) { |
| 647 | super(); |
| 648 | proto3.util.initPartial(data, this); |
| 649 | } |
| 650 | |
| 651 | static readonly runtime: typeof proto3 = proto3; |
| 652 | static readonly typeName = "types.v1.ProjectAwayOperator"; |
| 653 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 654 | { no: 1, name: "projections", kind: "message", T: ProjectAwayOperator_Projection, repeated: true }, |
| 655 | ]); |
| 656 | |
| 657 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProjectAwayOperator { |
| 658 | return new ProjectAwayOperator().fromBinary(bytes, options); |
| 659 | } |
| 660 | |
| 661 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProjectAwayOperator { |
| 662 | return new ProjectAwayOperator().fromJson(jsonValue, options); |
| 663 | } |
| 664 | |
| 665 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProjectAwayOperator { |
| 666 | return new ProjectAwayOperator().fromJsonString(jsonString, options); |
| 667 | } |
| 668 | |
| 669 | static equals(a: ProjectAwayOperator | PlainMessage<ProjectAwayOperator> | undefined, b: ProjectAwayOperator | PlainMessage<ProjectAwayOperator> | undefined): boolean { |
| 670 | return proto3.util.equals(ProjectAwayOperator, a, b); |
| 671 | } |
| 672 | } |
| 673 | |
| 674 | /** |
| 675 | * @generated from message types.v1.ProjectAwayOperator.Projection |
| 676 | */ |
| 677 | export class ProjectAwayOperator_Projection extends Message<ProjectAwayOperator_Projection> { |
| 678 | /** |
| 679 | * @generated from field: types.v1.Identifier column = 1; |
| 680 | */ |
| 681 | column?: Identifier; |
| 682 | |
| 683 | constructor(data?: PartialMessage<ProjectAwayOperator_Projection>) { |
| 684 | super(); |
| 685 | proto3.util.initPartial(data, this); |
| 686 | } |
| 687 | |
| 688 | static readonly runtime: typeof proto3 = proto3; |
| 689 | static readonly typeName = "types.v1.ProjectAwayOperator.Projection"; |
| 690 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 691 | { no: 1, name: "column", kind: "message", T: Identifier }, |
| 692 | ]); |
| 693 | |
| 694 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProjectAwayOperator_Projection { |
| 695 | return new ProjectAwayOperator_Projection().fromBinary(bytes, options); |
| 696 | } |
| 697 | |
| 698 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProjectAwayOperator_Projection { |
| 699 | return new ProjectAwayOperator_Projection().fromJson(jsonValue, options); |
| 700 | } |
| 701 | |
| 702 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProjectAwayOperator_Projection { |
| 703 | return new ProjectAwayOperator_Projection().fromJsonString(jsonString, options); |
| 704 | } |
| 705 | |
| 706 | static equals(a: ProjectAwayOperator_Projection | PlainMessage<ProjectAwayOperator_Projection> | undefined, b: ProjectAwayOperator_Projection | PlainMessage<ProjectAwayOperator_Projection> | undefined): boolean { |
| 707 | return proto3.util.equals(ProjectAwayOperator_Projection, a, b); |
| 708 | } |
| 709 | } |
| 710 | |
| 711 | /** |
| 712 | * @generated from message types.v1.ProjectKeepOperator |
| 713 | */ |
| 714 | export class ProjectKeepOperator extends Message<ProjectKeepOperator> { |
| 715 | /** |
| 716 | * @generated from field: repeated types.v1.ProjectKeepOperator.Projection projections = 1; |
| 717 | */ |
| 718 | projections: ProjectKeepOperator_Projection[] = []; |
| 719 | |
| 720 | constructor(data?: PartialMessage<ProjectKeepOperator>) { |
| 721 | super(); |
| 722 | proto3.util.initPartial(data, this); |
| 723 | } |
| 724 | |
| 725 | static readonly runtime: typeof proto3 = proto3; |
| 726 | static readonly typeName = "types.v1.ProjectKeepOperator"; |
| 727 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 728 | { no: 1, name: "projections", kind: "message", T: ProjectKeepOperator_Projection, repeated: true }, |
| 729 | ]); |
| 730 | |
| 731 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProjectKeepOperator { |
| 732 | return new ProjectKeepOperator().fromBinary(bytes, options); |
| 733 | } |
| 734 | |
| 735 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProjectKeepOperator { |
| 736 | return new ProjectKeepOperator().fromJson(jsonValue, options); |
| 737 | } |
| 738 | |
| 739 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProjectKeepOperator { |
| 740 | return new ProjectKeepOperator().fromJsonString(jsonString, options); |
| 741 | } |
| 742 | |
| 743 | static equals(a: ProjectKeepOperator | PlainMessage<ProjectKeepOperator> | undefined, b: ProjectKeepOperator | PlainMessage<ProjectKeepOperator> | undefined): boolean { |
| 744 | return proto3.util.equals(ProjectKeepOperator, a, b); |
| 745 | } |
| 746 | } |
| 747 | |
| 748 | /** |
| 749 | * @generated from message types.v1.ProjectKeepOperator.Projection |
| 750 | */ |
| 751 | export class ProjectKeepOperator_Projection extends Message<ProjectKeepOperator_Projection> { |
| 752 | /** |
| 753 | * @generated from field: types.v1.Identifier column = 1; |
| 754 | */ |
| 755 | column?: Identifier; |
| 756 | |
| 757 | constructor(data?: PartialMessage<ProjectKeepOperator_Projection>) { |
| 758 | super(); |
| 759 | proto3.util.initPartial(data, this); |
| 760 | } |
| 761 | |
| 762 | static readonly runtime: typeof proto3 = proto3; |
| 763 | static readonly typeName = "types.v1.ProjectKeepOperator.Projection"; |
| 764 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 765 | { no: 1, name: "column", kind: "message", T: Identifier }, |
| 766 | ]); |
| 767 | |
| 768 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProjectKeepOperator_Projection { |
| 769 | return new ProjectKeepOperator_Projection().fromBinary(bytes, options); |
| 770 | } |
| 771 | |
| 772 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProjectKeepOperator_Projection { |
| 773 | return new ProjectKeepOperator_Projection().fromJson(jsonValue, options); |
| 774 | } |
| 775 | |
| 776 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProjectKeepOperator_Projection { |
| 777 | return new ProjectKeepOperator_Projection().fromJsonString(jsonString, options); |
| 778 | } |
| 779 | |
| 780 | static equals(a: ProjectKeepOperator_Projection | PlainMessage<ProjectKeepOperator_Projection> | undefined, b: ProjectKeepOperator_Projection | PlainMessage<ProjectKeepOperator_Projection> | undefined): boolean { |
| 781 | return proto3.util.equals(ProjectKeepOperator_Projection, a, b); |
| 782 | } |
| 783 | } |
| 784 | |
| 785 | /** |
| 786 | * @generated from message types.v1.ExtendOperator |
| 787 | */ |
| 788 | export class ExtendOperator extends Message<ExtendOperator> { |
| 789 | /** |
| 790 | * @generated from field: repeated types.v1.ExtendOperator.Projection projections = 1; |
| 791 | */ |
| 792 | projections: ExtendOperator_Projection[] = []; |
| 793 | |
| 794 | constructor(data?: PartialMessage<ExtendOperator>) { |
| 795 | super(); |
| 796 | proto3.util.initPartial(data, this); |
| 797 | } |
| 798 | |
| 799 | static readonly runtime: typeof proto3 = proto3; |
| 800 | static readonly typeName = "types.v1.ExtendOperator"; |
| 801 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 802 | { no: 1, name: "projections", kind: "message", T: ExtendOperator_Projection, repeated: true }, |
| 803 | ]); |
| 804 | |
| 805 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtendOperator { |
| 806 | return new ExtendOperator().fromBinary(bytes, options); |
| 807 | } |
| 808 | |
| 809 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtendOperator { |
| 810 | return new ExtendOperator().fromJson(jsonValue, options); |
| 811 | } |
| 812 | |
| 813 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtendOperator { |
| 814 | return new ExtendOperator().fromJsonString(jsonString, options); |
| 815 | } |
| 816 | |
| 817 | static equals(a: ExtendOperator | PlainMessage<ExtendOperator> | undefined, b: ExtendOperator | PlainMessage<ExtendOperator> | undefined): boolean { |
| 818 | return proto3.util.equals(ExtendOperator, a, b); |
| 819 | } |
| 820 | } |
| 821 | |
| 822 | /** |
| 823 | * @generated from message types.v1.ExtendOperator.Projection |
| 824 | */ |
| 825 | export class ExtendOperator_Projection extends Message<ExtendOperator_Projection> { |
| 826 | /** |
| 827 | * @generated from field: types.v1.Identifier column = 1; |
| 828 | */ |
| 829 | column?: Identifier; |
| 830 | |
| 831 | /** |
| 832 | * @generated from field: types.v1.Expr value = 2; |
| 833 | */ |
| 834 | value?: Expr; |
| 835 | |
| 836 | constructor(data?: PartialMessage<ExtendOperator_Projection>) { |
| 837 | super(); |
| 838 | proto3.util.initPartial(data, this); |
| 839 | } |
| 840 | |
| 841 | static readonly runtime: typeof proto3 = proto3; |
| 842 | static readonly typeName = "types.v1.ExtendOperator.Projection"; |
| 843 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 844 | { no: 1, name: "column", kind: "message", T: Identifier }, |
| 845 | { no: 2, name: "value", kind: "message", T: Expr }, |
| 846 | ]); |
| 847 | |
| 848 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtendOperator_Projection { |
| 849 | return new ExtendOperator_Projection().fromBinary(bytes, options); |
| 850 | } |
| 851 | |
| 852 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtendOperator_Projection { |
| 853 | return new ExtendOperator_Projection().fromJson(jsonValue, options); |
| 854 | } |
| 855 | |
| 856 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtendOperator_Projection { |
| 857 | return new ExtendOperator_Projection().fromJsonString(jsonString, options); |
| 858 | } |
| 859 | |
| 860 | static equals(a: ExtendOperator_Projection | PlainMessage<ExtendOperator_Projection> | undefined, b: ExtendOperator_Projection | PlainMessage<ExtendOperator_Projection> | undefined): boolean { |
| 861 | return proto3.util.equals(ExtendOperator_Projection, a, b); |
| 862 | } |
| 863 | } |
| 864 | |
| 865 | /** |
| 866 | * @generated from message types.v1.CountOperator |
| 867 | */ |
| 868 | export class CountOperator extends Message<CountOperator> { |
| 869 | constructor(data?: PartialMessage<CountOperator>) { |
| 870 | super(); |
| 871 | proto3.util.initPartial(data, this); |
| 872 | } |
| 873 | |
| 874 | static readonly runtime: typeof proto3 = proto3; |
| 875 | static readonly typeName = "types.v1.CountOperator"; |
| 876 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 877 | ]); |
| 878 | |
| 879 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CountOperator { |
| 880 | return new CountOperator().fromBinary(bytes, options); |
| 881 | } |
| 882 | |
| 883 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CountOperator { |
| 884 | return new CountOperator().fromJson(jsonValue, options); |
| 885 | } |
| 886 | |
| 887 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CountOperator { |
| 888 | return new CountOperator().fromJsonString(jsonString, options); |
| 889 | } |
| 890 | |
| 891 | static equals(a: CountOperator | PlainMessage<CountOperator> | undefined, b: CountOperator | PlainMessage<CountOperator> | undefined): boolean { |
| 892 | return proto3.util.equals(CountOperator, a, b); |
| 893 | } |
| 894 | } |
| 895 | |
| 896 | /** |
| 897 | * @generated from message types.v1.DistinctOperator |
| 898 | */ |
| 899 | export class DistinctOperator extends Message<DistinctOperator> { |
| 900 | /** |
| 901 | * @generated from field: repeated types.v1.Identifier fields = 1; |
| 902 | */ |
| 903 | fields: Identifier[] = []; |
| 904 | |
| 905 | constructor(data?: PartialMessage<DistinctOperator>) { |
| 906 | super(); |
| 907 | proto3.util.initPartial(data, this); |
| 908 | } |
| 909 | |
| 910 | static readonly runtime: typeof proto3 = proto3; |
| 911 | static readonly typeName = "types.v1.DistinctOperator"; |
| 912 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 913 | { no: 1, name: "fields", kind: "message", T: Identifier, repeated: true }, |
| 914 | ]); |
| 915 | |
| 916 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DistinctOperator { |
| 917 | return new DistinctOperator().fromBinary(bytes, options); |
| 918 | } |
| 919 | |
| 920 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DistinctOperator { |
| 921 | return new DistinctOperator().fromJson(jsonValue, options); |
| 922 | } |
| 923 | |
| 924 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DistinctOperator { |
| 925 | return new DistinctOperator().fromJsonString(jsonString, options); |
| 926 | } |
| 927 | |
| 928 | static equals(a: DistinctOperator | PlainMessage<DistinctOperator> | undefined, b: DistinctOperator | PlainMessage<DistinctOperator> | undefined): boolean { |
| 929 | return proto3.util.equals(DistinctOperator, a, b); |
| 930 | } |
| 931 | } |
| 932 | |
| 933 | /** |
| 934 | * @generated from message types.v1.SampleOperator |
| 935 | */ |
| 936 | export class SampleOperator extends Message<SampleOperator> { |
| 937 | /** |
| 938 | * @generated from field: int64 count = 1; |
| 939 | */ |
| 940 | count = protoInt64.zero; |
| 941 | |
| 942 | constructor(data?: PartialMessage<SampleOperator>) { |
| 943 | super(); |
| 944 | proto3.util.initPartial(data, this); |
| 945 | } |
| 946 | |
| 947 | static readonly runtime: typeof proto3 = proto3; |
| 948 | static readonly typeName = "types.v1.SampleOperator"; |
| 949 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 950 | { no: 1, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, |
| 951 | ]); |
| 952 | |
| 953 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SampleOperator { |
| 954 | return new SampleOperator().fromBinary(bytes, options); |
| 955 | } |
| 956 | |
| 957 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SampleOperator { |
| 958 | return new SampleOperator().fromJson(jsonValue, options); |
| 959 | } |
| 960 | |
| 961 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SampleOperator { |
| 962 | return new SampleOperator().fromJsonString(jsonString, options); |
| 963 | } |
| 964 | |
| 965 | static equals(a: SampleOperator | PlainMessage<SampleOperator> | undefined, b: SampleOperator | PlainMessage<SampleOperator> | undefined): boolean { |
| 966 | return proto3.util.equals(SampleOperator, a, b); |
| 967 | } |
| 968 | } |
| 969 | |
| 970 | /** |
| 971 | * @generated from message types.v1.SearchOperator |
| 972 | */ |
| 973 | export class SearchOperator extends Message<SearchOperator> { |
| 974 | /** |
| 975 | * @generated from oneof types.v1.SearchOperator.predicate |
| 976 | */ |
| 977 | predicate: { |
| 978 | /** |
| 979 | * @generated from field: string literal = 101; |
| 980 | */ |
| 981 | value: string; |
| 982 | case: "literal"; |
| 983 | } | { |
| 984 | /** |
| 985 | * @generated from field: types.v1.SearchOperator.FieldSearch field = 102; |
| 986 | */ |
| 987 | value: SearchOperator_FieldSearch; |
| 988 | case: "field"; |
| 989 | } | { |
| 990 | /** |
| 991 | * @generated from field: types.v1.SearchOperator.ExactSearch exact = 103; |
| 992 | */ |
| 993 | value: SearchOperator_ExactSearch; |
| 994 | case: "exact"; |
| 995 | } | { |
| 996 | /** |
| 997 | * @generated from field: types.v1.SearchOperator.RegexSearch regex = 104; |
| 998 | */ |
| 999 | value: SearchOperator_RegexSearch; |
| 1000 | case: "regex"; |
| 1001 | } | { case: undefined; value?: undefined } = { case: undefined }; |
| 1002 | |
| 1003 | /** |
| 1004 | * @generated from field: optional types.v1.SearchOperator.Kind kind = 2; |
| 1005 | */ |
| 1006 | kind?: SearchOperator_Kind; |
| 1007 | |
| 1008 | constructor(data?: PartialMessage<SearchOperator>) { |
| 1009 | super(); |
| 1010 | proto3.util.initPartial(data, this); |
| 1011 | } |
| 1012 | |
| 1013 | static readonly runtime: typeof proto3 = proto3; |
| 1014 | static readonly typeName = "types.v1.SearchOperator"; |
| 1015 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1016 | { no: 101, name: "literal", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "predicate" }, |
| 1017 | { no: 102, name: "field", kind: "message", T: SearchOperator_FieldSearch, oneof: "predicate" }, |
| 1018 | { no: 103, name: "exact", kind: "message", T: SearchOperator_ExactSearch, oneof: "predicate" }, |
| 1019 | { no: 104, name: "regex", kind: "message", T: SearchOperator_RegexSearch, oneof: "predicate" }, |
| 1020 | { no: 2, name: "kind", kind: "enum", T: proto3.getEnumType(SearchOperator_Kind), opt: true }, |
| 1021 | ]); |
| 1022 | |
| 1023 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchOperator { |
| 1024 | return new SearchOperator().fromBinary(bytes, options); |
| 1025 | } |
| 1026 | |
| 1027 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchOperator { |
| 1028 | return new SearchOperator().fromJson(jsonValue, options); |
| 1029 | } |
| 1030 | |
| 1031 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchOperator { |
| 1032 | return new SearchOperator().fromJsonString(jsonString, options); |
| 1033 | } |
| 1034 | |
| 1035 | static equals(a: SearchOperator | PlainMessage<SearchOperator> | undefined, b: SearchOperator | PlainMessage<SearchOperator> | undefined): boolean { |
| 1036 | return proto3.util.equals(SearchOperator, a, b); |
| 1037 | } |
| 1038 | } |
| 1039 | |
| 1040 | /** |
| 1041 | * @generated from enum types.v1.SearchOperator.Kind |
| 1042 | */ |
| 1043 | export enum SearchOperator_Kind { |
| 1044 | /** |
| 1045 | * @generated from enum value: Default = 0; |
| 1046 | */ |
| 1047 | Default = 0, |
| 1048 | |
| 1049 | /** |
| 1050 | * @generated from enum value: CaseInsensitive = 1; |
| 1051 | */ |
| 1052 | CaseInsensitive = 1, |
| 1053 | |
| 1054 | /** |
| 1055 | * @generated from enum value: CaseSensitive = 2; |
| 1056 | */ |
| 1057 | CaseSensitive = 2, |
| 1058 | } |
| 1059 | // Retrieve enum metadata with: proto3.getEnumType(SearchOperator_Kind) |
| 1060 | proto3.util.setEnumType(SearchOperator_Kind, "types.v1.SearchOperator.Kind", [ |
| 1061 | { no: 0, name: "Default" }, |
| 1062 | { no: 1, name: "CaseInsensitive" }, |
| 1063 | { no: 2, name: "CaseSensitive" }, |
| 1064 | ]); |
| 1065 | |
| 1066 | /** |
| 1067 | * @generated from message types.v1.SearchOperator.Literal |
| 1068 | */ |
| 1069 | export class SearchOperator_Literal extends Message<SearchOperator_Literal> { |
| 1070 | /** |
| 1071 | * @generated from field: string literal = 1; |
| 1072 | */ |
| 1073 | literal = ""; |
| 1074 | |
| 1075 | constructor(data?: PartialMessage<SearchOperator_Literal>) { |
| 1076 | super(); |
| 1077 | proto3.util.initPartial(data, this); |
| 1078 | } |
| 1079 | |
| 1080 | static readonly runtime: typeof proto3 = proto3; |
| 1081 | static readonly typeName = "types.v1.SearchOperator.Literal"; |
| 1082 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1083 | { no: 1, name: "literal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 1084 | ]); |
| 1085 | |
| 1086 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchOperator_Literal { |
| 1087 | return new SearchOperator_Literal().fromBinary(bytes, options); |
| 1088 | } |
| 1089 | |
| 1090 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchOperator_Literal { |
| 1091 | return new SearchOperator_Literal().fromJson(jsonValue, options); |
| 1092 | } |
| 1093 | |
| 1094 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchOperator_Literal { |
| 1095 | return new SearchOperator_Literal().fromJsonString(jsonString, options); |
| 1096 | } |
| 1097 | |
| 1098 | static equals(a: SearchOperator_Literal | PlainMessage<SearchOperator_Literal> | undefined, b: SearchOperator_Literal | PlainMessage<SearchOperator_Literal> | undefined): boolean { |
| 1099 | return proto3.util.equals(SearchOperator_Literal, a, b); |
| 1100 | } |
| 1101 | } |
| 1102 | |
| 1103 | /** |
| 1104 | * @generated from message types.v1.SearchOperator.FieldSearch |
| 1105 | */ |
| 1106 | export class SearchOperator_FieldSearch extends Message<SearchOperator_FieldSearch> { |
| 1107 | /** |
| 1108 | * @generated from field: string column = 1; |
| 1109 | */ |
| 1110 | column = ""; |
| 1111 | |
| 1112 | /** |
| 1113 | * @generated from field: string literal = 2; |
| 1114 | */ |
| 1115 | literal = ""; |
| 1116 | |
| 1117 | constructor(data?: PartialMessage<SearchOperator_FieldSearch>) { |
| 1118 | super(); |
| 1119 | proto3.util.initPartial(data, this); |
| 1120 | } |
| 1121 | |
| 1122 | static readonly runtime: typeof proto3 = proto3; |
| 1123 | static readonly typeName = "types.v1.SearchOperator.FieldSearch"; |
| 1124 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1125 | { no: 1, name: "column", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 1126 | { no: 2, name: "literal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 1127 | ]); |
| 1128 | |
| 1129 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchOperator_FieldSearch { |
| 1130 | return new SearchOperator_FieldSearch().fromBinary(bytes, options); |
| 1131 | } |
| 1132 | |
| 1133 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchOperator_FieldSearch { |
| 1134 | return new SearchOperator_FieldSearch().fromJson(jsonValue, options); |
| 1135 | } |
| 1136 | |
| 1137 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchOperator_FieldSearch { |
| 1138 | return new SearchOperator_FieldSearch().fromJsonString(jsonString, options); |
| 1139 | } |
| 1140 | |
| 1141 | static equals(a: SearchOperator_FieldSearch | PlainMessage<SearchOperator_FieldSearch> | undefined, b: SearchOperator_FieldSearch | PlainMessage<SearchOperator_FieldSearch> | undefined): boolean { |
| 1142 | return proto3.util.equals(SearchOperator_FieldSearch, a, b); |
| 1143 | } |
| 1144 | } |
| 1145 | |
| 1146 | /** |
| 1147 | * @generated from message types.v1.SearchOperator.ExactSearch |
| 1148 | */ |
| 1149 | export class SearchOperator_ExactSearch extends Message<SearchOperator_ExactSearch> { |
| 1150 | /** |
| 1151 | * @generated from field: string column = 1; |
| 1152 | */ |
| 1153 | column = ""; |
| 1154 | |
| 1155 | /** |
| 1156 | * @generated from field: string literal = 2; |
| 1157 | */ |
| 1158 | literal = ""; |
| 1159 | |
| 1160 | constructor(data?: PartialMessage<SearchOperator_ExactSearch>) { |
| 1161 | super(); |
| 1162 | proto3.util.initPartial(data, this); |
| 1163 | } |
| 1164 | |
| 1165 | static readonly runtime: typeof proto3 = proto3; |
| 1166 | static readonly typeName = "types.v1.SearchOperator.ExactSearch"; |
| 1167 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1168 | { no: 1, name: "column", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 1169 | { no: 2, name: "literal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 1170 | ]); |
| 1171 | |
| 1172 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchOperator_ExactSearch { |
| 1173 | return new SearchOperator_ExactSearch().fromBinary(bytes, options); |
| 1174 | } |
| 1175 | |
| 1176 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchOperator_ExactSearch { |
| 1177 | return new SearchOperator_ExactSearch().fromJson(jsonValue, options); |
| 1178 | } |
| 1179 | |
| 1180 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchOperator_ExactSearch { |
| 1181 | return new SearchOperator_ExactSearch().fromJsonString(jsonString, options); |
| 1182 | } |
| 1183 | |
| 1184 | static equals(a: SearchOperator_ExactSearch | PlainMessage<SearchOperator_ExactSearch> | undefined, b: SearchOperator_ExactSearch | PlainMessage<SearchOperator_ExactSearch> | undefined): boolean { |
| 1185 | return proto3.util.equals(SearchOperator_ExactSearch, a, b); |
| 1186 | } |
| 1187 | } |
| 1188 | |
| 1189 | /** |
| 1190 | * @generated from message types.v1.SearchOperator.RegexSearch |
| 1191 | */ |
| 1192 | export class SearchOperator_RegexSearch extends Message<SearchOperator_RegexSearch> { |
| 1193 | /** |
| 1194 | * @generated from field: string column = 1; |
| 1195 | */ |
| 1196 | column = ""; |
| 1197 | |
| 1198 | /** |
| 1199 | * @generated from field: string regex = 2; |
| 1200 | */ |
| 1201 | regex = ""; |
| 1202 | |
| 1203 | constructor(data?: PartialMessage<SearchOperator_RegexSearch>) { |
| 1204 | super(); |
| 1205 | proto3.util.initPartial(data, this); |
| 1206 | } |
| 1207 | |
| 1208 | static readonly runtime: typeof proto3 = proto3; |
| 1209 | static readonly typeName = "types.v1.SearchOperator.RegexSearch"; |
| 1210 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1211 | { no: 1, name: "column", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 1212 | { no: 2, name: "regex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 1213 | ]); |
| 1214 | |
| 1215 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchOperator_RegexSearch { |
| 1216 | return new SearchOperator_RegexSearch().fromBinary(bytes, options); |
| 1217 | } |
| 1218 | |
| 1219 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchOperator_RegexSearch { |
| 1220 | return new SearchOperator_RegexSearch().fromJson(jsonValue, options); |
| 1221 | } |
| 1222 | |
| 1223 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchOperator_RegexSearch { |
| 1224 | return new SearchOperator_RegexSearch().fromJsonString(jsonString, options); |
| 1225 | } |
| 1226 | |
| 1227 | static equals(a: SearchOperator_RegexSearch | PlainMessage<SearchOperator_RegexSearch> | undefined, b: SearchOperator_RegexSearch | PlainMessage<SearchOperator_RegexSearch> | undefined): boolean { |
| 1228 | return proto3.util.equals(SearchOperator_RegexSearch, a, b); |
| 1229 | } |
| 1230 | } |
| 1231 | |
| 1232 | /** |
| 1233 | * @generated from message types.v1.SortOperator |
| 1234 | */ |
| 1235 | export class SortOperator extends Message<SortOperator> { |
| 1236 | /** |
| 1237 | * @generated from field: repeated types.v1.SortOperator.ByColumn by_columns = 1; |
| 1238 | */ |
| 1239 | byColumns: SortOperator_ByColumn[] = []; |
| 1240 | |
| 1241 | constructor(data?: PartialMessage<SortOperator>) { |
| 1242 | super(); |
| 1243 | proto3.util.initPartial(data, this); |
| 1244 | } |
| 1245 | |
| 1246 | static readonly runtime: typeof proto3 = proto3; |
| 1247 | static readonly typeName = "types.v1.SortOperator"; |
| 1248 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1249 | { no: 1, name: "by_columns", kind: "message", T: SortOperator_ByColumn, repeated: true }, |
| 1250 | ]); |
| 1251 | |
| 1252 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SortOperator { |
| 1253 | return new SortOperator().fromBinary(bytes, options); |
| 1254 | } |
| 1255 | |
| 1256 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SortOperator { |
| 1257 | return new SortOperator().fromJson(jsonValue, options); |
| 1258 | } |
| 1259 | |
| 1260 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SortOperator { |
| 1261 | return new SortOperator().fromJsonString(jsonString, options); |
| 1262 | } |
| 1263 | |
| 1264 | static equals(a: SortOperator | PlainMessage<SortOperator> | undefined, b: SortOperator | PlainMessage<SortOperator> | undefined): boolean { |
| 1265 | return proto3.util.equals(SortOperator, a, b); |
| 1266 | } |
| 1267 | } |
| 1268 | |
| 1269 | /** |
| 1270 | * @generated from enum types.v1.SortOperator.Order |
| 1271 | */ |
| 1272 | export enum SortOperator_Order { |
| 1273 | /** |
| 1274 | * @generated from enum value: Desc = 0; |
| 1275 | */ |
| 1276 | Desc = 0, |
| 1277 | |
| 1278 | /** |
| 1279 | * @generated from enum value: Asc = 1; |
| 1280 | */ |
| 1281 | Asc = 1, |
| 1282 | } |
| 1283 | // Retrieve enum metadata with: proto3.getEnumType(SortOperator_Order) |
| 1284 | proto3.util.setEnumType(SortOperator_Order, "types.v1.SortOperator.Order", [ |
| 1285 | { no: 0, name: "Desc" }, |
| 1286 | { no: 1, name: "Asc" }, |
| 1287 | ]); |
| 1288 | |
| 1289 | /** |
| 1290 | * @generated from message types.v1.SortOperator.ByColumn |
| 1291 | */ |
| 1292 | export class SortOperator_ByColumn extends Message<SortOperator_ByColumn> { |
| 1293 | /** |
| 1294 | * @generated from field: types.v1.Identifier column = 1; |
| 1295 | */ |
| 1296 | column?: Identifier; |
| 1297 | |
| 1298 | /** |
| 1299 | * @generated from field: optional types.v1.SortOperator.Order order = 2; |
| 1300 | */ |
| 1301 | order?: SortOperator_Order; |
| 1302 | |
| 1303 | constructor(data?: PartialMessage<SortOperator_ByColumn>) { |
| 1304 | super(); |
| 1305 | proto3.util.initPartial(data, this); |
| 1306 | } |
| 1307 | |
| 1308 | static readonly runtime: typeof proto3 = proto3; |
| 1309 | static readonly typeName = "types.v1.SortOperator.ByColumn"; |
| 1310 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1311 | { no: 1, name: "column", kind: "message", T: Identifier }, |
| 1312 | { no: 2, name: "order", kind: "enum", T: proto3.getEnumType(SortOperator_Order), opt: true }, |
| 1313 | ]); |
| 1314 | |
| 1315 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SortOperator_ByColumn { |
| 1316 | return new SortOperator_ByColumn().fromBinary(bytes, options); |
| 1317 | } |
| 1318 | |
| 1319 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SortOperator_ByColumn { |
| 1320 | return new SortOperator_ByColumn().fromJson(jsonValue, options); |
| 1321 | } |
| 1322 | |
| 1323 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SortOperator_ByColumn { |
| 1324 | return new SortOperator_ByColumn().fromJsonString(jsonString, options); |
| 1325 | } |
| 1326 | |
| 1327 | static equals(a: SortOperator_ByColumn | PlainMessage<SortOperator_ByColumn> | undefined, b: SortOperator_ByColumn | PlainMessage<SortOperator_ByColumn> | undefined): boolean { |
| 1328 | return proto3.util.equals(SortOperator_ByColumn, a, b); |
| 1329 | } |
| 1330 | } |
| 1331 | |
| 1332 | /** |
| 1333 | * @generated from message types.v1.TakeOperator |
| 1334 | */ |
| 1335 | export class TakeOperator extends Message<TakeOperator> { |
| 1336 | /** |
| 1337 | * @generated from field: int64 count = 1; |
| 1338 | */ |
| 1339 | count = protoInt64.zero; |
| 1340 | |
| 1341 | constructor(data?: PartialMessage<TakeOperator>) { |
| 1342 | super(); |
| 1343 | proto3.util.initPartial(data, this); |
| 1344 | } |
| 1345 | |
| 1346 | static readonly runtime: typeof proto3 = proto3; |
| 1347 | static readonly typeName = "types.v1.TakeOperator"; |
| 1348 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1349 | { no: 1, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, |
| 1350 | ]); |
| 1351 | |
| 1352 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TakeOperator { |
| 1353 | return new TakeOperator().fromBinary(bytes, options); |
| 1354 | } |
| 1355 | |
| 1356 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TakeOperator { |
| 1357 | return new TakeOperator().fromJson(jsonValue, options); |
| 1358 | } |
| 1359 | |
| 1360 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TakeOperator { |
| 1361 | return new TakeOperator().fromJsonString(jsonString, options); |
| 1362 | } |
| 1363 | |
| 1364 | static equals(a: TakeOperator | PlainMessage<TakeOperator> | undefined, b: TakeOperator | PlainMessage<TakeOperator> | undefined): boolean { |
| 1365 | return proto3.util.equals(TakeOperator, a, b); |
| 1366 | } |
| 1367 | } |
| 1368 | |
| 1369 | /** |
| 1370 | * @generated from message types.v1.TopOperator |
| 1371 | */ |
| 1372 | export class TopOperator extends Message<TopOperator> { |
| 1373 | /** |
| 1374 | * @generated from field: int64 count = 1; |
| 1375 | */ |
| 1376 | count = protoInt64.zero; |
| 1377 | |
| 1378 | /** |
| 1379 | * @generated from field: optional types.v1.TopOperator.ByColumn by_column = 2; |
| 1380 | */ |
| 1381 | byColumn?: TopOperator_ByColumn; |
| 1382 | |
| 1383 | constructor(data?: PartialMessage<TopOperator>) { |
| 1384 | super(); |
| 1385 | proto3.util.initPartial(data, this); |
| 1386 | } |
| 1387 | |
| 1388 | static readonly runtime: typeof proto3 = proto3; |
| 1389 | static readonly typeName = "types.v1.TopOperator"; |
| 1390 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1391 | { no: 1, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, |
| 1392 | { no: 2, name: "by_column", kind: "message", T: TopOperator_ByColumn, opt: true }, |
| 1393 | ]); |
| 1394 | |
| 1395 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TopOperator { |
| 1396 | return new TopOperator().fromBinary(bytes, options); |
| 1397 | } |
| 1398 | |
| 1399 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TopOperator { |
| 1400 | return new TopOperator().fromJson(jsonValue, options); |
| 1401 | } |
| 1402 | |
| 1403 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TopOperator { |
| 1404 | return new TopOperator().fromJsonString(jsonString, options); |
| 1405 | } |
| 1406 | |
| 1407 | static equals(a: TopOperator | PlainMessage<TopOperator> | undefined, b: TopOperator | PlainMessage<TopOperator> | undefined): boolean { |
| 1408 | return proto3.util.equals(TopOperator, a, b); |
| 1409 | } |
| 1410 | } |
| 1411 | |
| 1412 | /** |
| 1413 | * @generated from enum types.v1.TopOperator.Order |
| 1414 | */ |
| 1415 | export enum TopOperator_Order { |
| 1416 | /** |
| 1417 | * @generated from enum value: Desc = 0; |
| 1418 | */ |
| 1419 | Desc = 0, |
| 1420 | |
| 1421 | /** |
| 1422 | * @generated from enum value: Asc = 1; |
| 1423 | */ |
| 1424 | Asc = 1, |
| 1425 | } |
| 1426 | // Retrieve enum metadata with: proto3.getEnumType(TopOperator_Order) |
| 1427 | proto3.util.setEnumType(TopOperator_Order, "types.v1.TopOperator.Order", [ |
| 1428 | { no: 0, name: "Desc" }, |
| 1429 | { no: 1, name: "Asc" }, |
| 1430 | ]); |
| 1431 | |
| 1432 | /** |
| 1433 | * @generated from message types.v1.TopOperator.ByColumn |
| 1434 | */ |
| 1435 | export class TopOperator_ByColumn extends Message<TopOperator_ByColumn> { |
| 1436 | /** |
| 1437 | * @generated from field: types.v1.Expr scalar = 1; |
| 1438 | */ |
| 1439 | scalar?: Expr; |
| 1440 | |
| 1441 | /** |
| 1442 | * @generated from field: optional types.v1.TopOperator.Order order = 2; |
| 1443 | */ |
| 1444 | order?: TopOperator_Order; |
| 1445 | |
| 1446 | constructor(data?: PartialMessage<TopOperator_ByColumn>) { |
| 1447 | super(); |
| 1448 | proto3.util.initPartial(data, this); |
| 1449 | } |
| 1450 | |
| 1451 | static readonly runtime: typeof proto3 = proto3; |
| 1452 | static readonly typeName = "types.v1.TopOperator.ByColumn"; |
| 1453 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1454 | { no: 1, name: "scalar", kind: "message", T: Expr }, |
| 1455 | { no: 2, name: "order", kind: "enum", T: proto3.getEnumType(TopOperator_Order), opt: true }, |
| 1456 | ]); |
| 1457 | |
| 1458 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TopOperator_ByColumn { |
| 1459 | return new TopOperator_ByColumn().fromBinary(bytes, options); |
| 1460 | } |
| 1461 | |
| 1462 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TopOperator_ByColumn { |
| 1463 | return new TopOperator_ByColumn().fromJson(jsonValue, options); |
| 1464 | } |
| 1465 | |
| 1466 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TopOperator_ByColumn { |
| 1467 | return new TopOperator_ByColumn().fromJsonString(jsonString, options); |
| 1468 | } |
| 1469 | |
| 1470 | static equals(a: TopOperator_ByColumn | PlainMessage<TopOperator_ByColumn> | undefined, b: TopOperator_ByColumn | PlainMessage<TopOperator_ByColumn> | undefined): boolean { |
| 1471 | return proto3.util.equals(TopOperator_ByColumn, a, b); |
| 1472 | } |
| 1473 | } |
| 1474 | |
| 1475 | /** |
| 1476 | * @generated from message types.v1.RenderStatement |
| 1477 | */ |
| 1478 | export class RenderStatement extends Message<RenderStatement> { |
| 1479 | /** |
| 1480 | * @generated from oneof types.v1.RenderStatement.stmt |
| 1481 | */ |
| 1482 | stmt: { |
| 1483 | /** |
| 1484 | * @generated from field: types.v1.SplitOperator split = 1; |
| 1485 | */ |
| 1486 | value: SplitOperator; |
| 1487 | case: "split"; |
| 1488 | } | { case: undefined; value?: undefined } = { case: undefined }; |
| 1489 | |
| 1490 | constructor(data?: PartialMessage<RenderStatement>) { |
| 1491 | super(); |
| 1492 | proto3.util.initPartial(data, this); |
| 1493 | } |
| 1494 | |
| 1495 | static readonly runtime: typeof proto3 = proto3; |
| 1496 | static readonly typeName = "types.v1.RenderStatement"; |
| 1497 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1498 | { no: 1, name: "split", kind: "message", T: SplitOperator, oneof: "stmt" }, |
| 1499 | ]); |
| 1500 | |
| 1501 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RenderStatement { |
| 1502 | return new RenderStatement().fromBinary(bytes, options); |
| 1503 | } |
| 1504 | |
| 1505 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RenderStatement { |
| 1506 | return new RenderStatement().fromJson(jsonValue, options); |
| 1507 | } |
| 1508 | |
| 1509 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RenderStatement { |
| 1510 | return new RenderStatement().fromJsonString(jsonString, options); |
| 1511 | } |
| 1512 | |
| 1513 | static equals(a: RenderStatement | PlainMessage<RenderStatement> | undefined, b: RenderStatement | PlainMessage<RenderStatement> | undefined): boolean { |
| 1514 | return proto3.util.equals(RenderStatement, a, b); |
| 1515 | } |
| 1516 | } |
| 1517 | |
| 1518 | /** |
| 1519 | * @generated from message types.v1.SplitOperator |
| 1520 | */ |
| 1521 | export class SplitOperator extends Message<SplitOperator> { |
| 1522 | /** |
| 1523 | * @generated from field: types.v1.SplitOperator.ByOperator by = 2; |
| 1524 | */ |
| 1525 | by?: SplitOperator_ByOperator; |
| 1526 | |
| 1527 | constructor(data?: PartialMessage<SplitOperator>) { |
| 1528 | super(); |
| 1529 | proto3.util.initPartial(data, this); |
| 1530 | } |
| 1531 | |
| 1532 | static readonly runtime: typeof proto3 = proto3; |
| 1533 | static readonly typeName = "types.v1.SplitOperator"; |
| 1534 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1535 | { no: 2, name: "by", kind: "message", T: SplitOperator_ByOperator }, |
| 1536 | ]); |
| 1537 | |
| 1538 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SplitOperator { |
| 1539 | return new SplitOperator().fromBinary(bytes, options); |
| 1540 | } |
| 1541 | |
| 1542 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SplitOperator { |
| 1543 | return new SplitOperator().fromJson(jsonValue, options); |
| 1544 | } |
| 1545 | |
| 1546 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SplitOperator { |
| 1547 | return new SplitOperator().fromJsonString(jsonString, options); |
| 1548 | } |
| 1549 | |
| 1550 | static equals(a: SplitOperator | PlainMessage<SplitOperator> | undefined, b: SplitOperator | PlainMessage<SplitOperator> | undefined): boolean { |
| 1551 | return proto3.util.equals(SplitOperator, a, b); |
| 1552 | } |
| 1553 | } |
| 1554 | |
| 1555 | /** |
| 1556 | * @generated from message types.v1.SplitOperator.ByOperator |
| 1557 | */ |
| 1558 | export class SplitOperator_ByOperator extends Message<SplitOperator_ByOperator> { |
| 1559 | /** |
| 1560 | * @generated from field: repeated types.v1.Expr scalars = 1; |
| 1561 | */ |
| 1562 | scalars: Expr[] = []; |
| 1563 | |
| 1564 | constructor(data?: PartialMessage<SplitOperator_ByOperator>) { |
| 1565 | super(); |
| 1566 | proto3.util.initPartial(data, this); |
| 1567 | } |
| 1568 | |
| 1569 | static readonly runtime: typeof proto3 = proto3; |
| 1570 | static readonly typeName = "types.v1.SplitOperator.ByOperator"; |
| 1571 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1572 | { no: 1, name: "scalars", kind: "message", T: Expr, repeated: true }, |
| 1573 | ]); |
| 1574 | |
| 1575 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SplitOperator_ByOperator { |
| 1576 | return new SplitOperator_ByOperator().fromBinary(bytes, options); |
| 1577 | } |
| 1578 | |
| 1579 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SplitOperator_ByOperator { |
| 1580 | return new SplitOperator_ByOperator().fromJson(jsonValue, options); |
| 1581 | } |
| 1582 | |
| 1583 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SplitOperator_ByOperator { |
| 1584 | return new SplitOperator_ByOperator().fromJsonString(jsonString, options); |
| 1585 | } |
| 1586 | |
| 1587 | static equals(a: SplitOperator_ByOperator | PlainMessage<SplitOperator_ByOperator> | undefined, b: SplitOperator_ByOperator | PlainMessage<SplitOperator_ByOperator> | undefined): boolean { |
| 1588 | return proto3.util.equals(SplitOperator_ByOperator, a, b); |
| 1589 | } |
| 1590 | } |
| 1591 | |
| 1592 | /** |
| 1593 | * @generated from message types.v1.Expr |
| 1594 | */ |
| 1595 | export class Expr extends Message<Expr> { |
| 1596 | /** |
| 1597 | * @generated from oneof types.v1.Expr.expr |
| 1598 | */ |
| 1599 | expr: { |
| 1600 | /** |
| 1601 | * @generated from field: types.v1.Val literal = 101; |
| 1602 | */ |
| 1603 | value: Val; |
| 1604 | case: "literal"; |
| 1605 | } | { |
| 1606 | /** |
| 1607 | * @generated from field: types.v1.UnaryOp unary = 102; |
| 1608 | */ |
| 1609 | value: UnaryOp; |
| 1610 | case: "unary"; |
| 1611 | } | { |
| 1612 | /** |
| 1613 | * @generated from field: types.v1.BinaryOp binary = 103; |
| 1614 | */ |
| 1615 | value: BinaryOp; |
| 1616 | case: "binary"; |
| 1617 | } | { |
| 1618 | /** |
| 1619 | * @generated from field: types.v1.FuncCall func_call = 104; |
| 1620 | */ |
| 1621 | value: FuncCall; |
| 1622 | case: "funcCall"; |
| 1623 | } | { |
| 1624 | /** |
| 1625 | * @generated from field: types.v1.Identifier identifier = 105; |
| 1626 | */ |
| 1627 | value: Identifier; |
| 1628 | case: "identifier"; |
| 1629 | } | { |
| 1630 | /** |
| 1631 | * kvs['hello'] |
| 1632 | * |
| 1633 | * @generated from field: types.v1.Indexor indexor = 106; |
| 1634 | */ |
| 1635 | value: Indexor; |
| 1636 | case: "indexor"; |
| 1637 | } | { case: undefined; value?: undefined } = { case: undefined }; |
| 1638 | |
| 1639 | constructor(data?: PartialMessage<Expr>) { |
| 1640 | super(); |
| 1641 | proto3.util.initPartial(data, this); |
| 1642 | } |
| 1643 | |
| 1644 | static readonly runtime: typeof proto3 = proto3; |
| 1645 | static readonly typeName = "types.v1.Expr"; |
| 1646 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1647 | { no: 101, name: "literal", kind: "message", T: Val, oneof: "expr" }, |
| 1648 | { no: 102, name: "unary", kind: "message", T: UnaryOp, oneof: "expr" }, |
| 1649 | { no: 103, name: "binary", kind: "message", T: BinaryOp, oneof: "expr" }, |
| 1650 | { no: 104, name: "func_call", kind: "message", T: FuncCall, oneof: "expr" }, |
| 1651 | { no: 105, name: "identifier", kind: "message", T: Identifier, oneof: "expr" }, |
| 1652 | { no: 106, name: "indexor", kind: "message", T: Indexor, oneof: "expr" }, |
| 1653 | ]); |
| 1654 | |
| 1655 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Expr { |
| 1656 | return new Expr().fromBinary(bytes, options); |
| 1657 | } |
| 1658 | |
| 1659 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Expr { |
| 1660 | return new Expr().fromJson(jsonValue, options); |
| 1661 | } |
| 1662 | |
| 1663 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Expr { |
| 1664 | return new Expr().fromJsonString(jsonString, options); |
| 1665 | } |
| 1666 | |
| 1667 | static equals(a: Expr | PlainMessage<Expr> | undefined, b: Expr | PlainMessage<Expr> | undefined): boolean { |
| 1668 | return proto3.util.equals(Expr, a, b); |
| 1669 | } |
| 1670 | } |
| 1671 | |
| 1672 | /** |
| 1673 | * @generated from message types.v1.UnaryOp |
| 1674 | */ |
| 1675 | export class UnaryOp extends Message<UnaryOp> { |
| 1676 | /** |
| 1677 | * @generated from field: types.v1.UnaryOp.Operator op = 1; |
| 1678 | */ |
| 1679 | op = UnaryOp_Operator.INVALID; |
| 1680 | |
| 1681 | /** |
| 1682 | * @generated from field: types.v1.Expr arg = 2; |
| 1683 | */ |
| 1684 | arg?: Expr; |
| 1685 | |
| 1686 | constructor(data?: PartialMessage<UnaryOp>) { |
| 1687 | super(); |
| 1688 | proto3.util.initPartial(data, this); |
| 1689 | } |
| 1690 | |
| 1691 | static readonly runtime: typeof proto3 = proto3; |
| 1692 | static readonly typeName = "types.v1.UnaryOp"; |
| 1693 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1694 | { no: 1, name: "op", kind: "enum", T: proto3.getEnumType(UnaryOp_Operator) }, |
| 1695 | { no: 2, name: "arg", kind: "message", T: Expr }, |
| 1696 | ]); |
| 1697 | |
| 1698 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnaryOp { |
| 1699 | return new UnaryOp().fromBinary(bytes, options); |
| 1700 | } |
| 1701 | |
| 1702 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnaryOp { |
| 1703 | return new UnaryOp().fromJson(jsonValue, options); |
| 1704 | } |
| 1705 | |
| 1706 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnaryOp { |
| 1707 | return new UnaryOp().fromJsonString(jsonString, options); |
| 1708 | } |
| 1709 | |
| 1710 | static equals(a: UnaryOp | PlainMessage<UnaryOp> | undefined, b: UnaryOp | PlainMessage<UnaryOp> | undefined): boolean { |
| 1711 | return proto3.util.equals(UnaryOp, a, b); |
| 1712 | } |
| 1713 | } |
| 1714 | |
| 1715 | /** |
| 1716 | * @generated from enum types.v1.UnaryOp.Operator |
| 1717 | */ |
| 1718 | export enum UnaryOp_Operator { |
| 1719 | /** |
| 1720 | * @generated from enum value: INVALID = 0; |
| 1721 | */ |
| 1722 | INVALID = 0, |
| 1723 | |
| 1724 | /** |
| 1725 | * @generated from enum value: NOT = 1; |
| 1726 | */ |
| 1727 | NOT = 1, |
| 1728 | |
| 1729 | /** |
| 1730 | * @generated from enum value: NEG = 2; |
| 1731 | */ |
| 1732 | NEG = 2, |
| 1733 | } |
| 1734 | // Retrieve enum metadata with: proto3.getEnumType(UnaryOp_Operator) |
| 1735 | proto3.util.setEnumType(UnaryOp_Operator, "types.v1.UnaryOp.Operator", [ |
| 1736 | { no: 0, name: "INVALID" }, |
| 1737 | { no: 1, name: "NOT" }, |
| 1738 | { no: 2, name: "NEG" }, |
| 1739 | ]); |
| 1740 | |
| 1741 | /** |
| 1742 | * @generated from message types.v1.BinaryOp |
| 1743 | */ |
| 1744 | export class BinaryOp extends Message<BinaryOp> { |
| 1745 | /** |
| 1746 | * @generated from field: types.v1.Expr lhs = 1; |
| 1747 | */ |
| 1748 | lhs?: Expr; |
| 1749 | |
| 1750 | /** |
| 1751 | * @generated from field: types.v1.BinaryOp.Operator op = 2; |
| 1752 | */ |
| 1753 | op = BinaryOp_Operator.INVALID; |
| 1754 | |
| 1755 | /** |
| 1756 | * @generated from field: types.v1.Expr rhs = 3; |
| 1757 | */ |
| 1758 | rhs?: Expr; |
| 1759 | |
| 1760 | constructor(data?: PartialMessage<BinaryOp>) { |
| 1761 | super(); |
| 1762 | proto3.util.initPartial(data, this); |
| 1763 | } |
| 1764 | |
| 1765 | static readonly runtime: typeof proto3 = proto3; |
| 1766 | static readonly typeName = "types.v1.BinaryOp"; |
| 1767 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 1768 | { no: 1, name: "lhs", kind: "message", T: Expr }, |
| 1769 | { no: 2, name: "op", kind: "enum", T: proto3.getEnumType(BinaryOp_Operator) }, |
| 1770 | { no: 3, name: "rhs", kind: "message", T: Expr }, |
| 1771 | ]); |
| 1772 | |
| 1773 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BinaryOp { |
| 1774 | return new BinaryOp().fromBinary(bytes, options); |
| 1775 | } |
| 1776 | |
| 1777 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BinaryOp { |
| 1778 | return new BinaryOp().fromJson(jsonValue, options); |
| 1779 | } |
| 1780 | |
| 1781 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BinaryOp { |
| 1782 | return new BinaryOp().fromJsonString(jsonString, options); |
| 1783 | } |
| 1784 | |
| 1785 | static equals(a: BinaryOp | PlainMessage<BinaryOp> | undefined, b: BinaryOp | PlainMessage<BinaryOp> | undefined): boolean { |
| 1786 | return proto3.util.equals(BinaryOp, a, b); |
| 1787 | } |
| 1788 | } |
| 1789 | |
| 1790 | /** |
| 1791 | * @generated from enum types.v1.BinaryOp.Operator |
| 1792 | */ |
| 1793 | export enum BinaryOp_Operator { |
| 1794 | /** |
| 1795 | * @generated from enum value: INVALID = 0; |
| 1796 | */ |
| 1797 | INVALID = 0, |
| 1798 | |
| 1799 | /** |
| 1800 | * @generated from enum value: LOG_AND = 101; |
| 1801 | */ |
| 1802 | LOG_AND = 101, |
| 1803 | |
| 1804 | /** |
| 1805 | * @generated from enum value: LOG_OR = 102; |
| 1806 | */ |
| 1807 | LOG_OR = 102, |
| 1808 | |
| 1809 | /** |
| 1810 | * @generated from enum value: NUM_ADD = 201; |
| 1811 | */ |
| 1812 | NUM_ADD = 201, |
| 1813 | |
| 1814 | /** |
| 1815 | * @generated from enum value: NUM_SUB = 202; |
| 1816 | */ |
| 1817 | NUM_SUB = 202, |
| 1818 | |
| 1819 | /** |
| 1820 | * @generated from enum value: NUM_DIV = 203; |
| 1821 | */ |
| 1822 | NUM_DIV = 203, |
| 1823 | |
| 1824 | /** |
| 1825 | * @generated from enum value: NUM_MUL = 204; |
| 1826 | */ |
| 1827 | NUM_MUL = 204, |
| 1828 | |
| 1829 | /** |
| 1830 | * @generated from enum value: NUM_MOD = 205; |
| 1831 | */ |
| 1832 | NUM_MOD = 205, |
| 1833 | |
| 1834 | /** |
| 1835 | * @generated from enum value: CMP_EQ = 301; |
| 1836 | */ |
| 1837 | CMP_EQ = 301, |
| 1838 | |
| 1839 | /** |
| 1840 | * @generated from enum value: CMP_NOTEQ = 302; |
| 1841 | */ |
| 1842 | CMP_NOTEQ = 302, |
| 1843 | |
| 1844 | /** |
| 1845 | * @generated from enum value: CMP_GT = 303; |
| 1846 | */ |
| 1847 | CMP_GT = 303, |
| 1848 | |
| 1849 | /** |
| 1850 | * @generated from enum value: CMP_GTE = 304; |
| 1851 | */ |
| 1852 | CMP_GTE = 304, |
| 1853 | |
| 1854 | /** |
| 1855 | * @generated from enum value: CMP_LT = 305; |
| 1856 | */ |
| 1857 | CMP_LT = 305, |
| 1858 | |
| 1859 | /** |
| 1860 | * @generated from enum value: CMP_LTE = 306; |
| 1861 | */ |
| 1862 | CMP_LTE = 306, |
| 1863 | |
| 1864 | /** |
| 1865 | * @generated from enum value: SET_IN = 401; |
| 1866 | */ |
| 1867 | SET_IN = 401, |
| 1868 | |
| 1869 | /** |
| 1870 | * @generated from enum value: SET_NOTIN = 402; |
| 1871 | */ |
| 1872 | SET_NOTIN = 402, |
| 1873 | |
| 1874 | /** |
| 1875 | * @generated from enum value: STR_EQ_NOCS = 501; |
| 1876 | */ |
| 1877 | STR_EQ_NOCS = 501, |
| 1878 | |
| 1879 | /** |
| 1880 | * @generated from enum value: STR_NOTEQ_NOCS = 502; |
| 1881 | */ |
| 1882 | STR_NOTEQ_NOCS = 502, |
| 1883 | |
| 1884 | /** |
| 1885 | * @generated from enum value: STR_CONTAINS = 503; |
| 1886 | */ |
| 1887 | STR_CONTAINS = 503, |
| 1888 | |
| 1889 | /** |
| 1890 | * @generated from enum value: STR_NOT_CONTAINS = 504; |
| 1891 | */ |
| 1892 | STR_NOT_CONTAINS = 504, |
| 1893 | |
| 1894 | /** |
| 1895 | * @generated from enum value: STR_CONTAINS_CS = 505; |
| 1896 | */ |
| 1897 | STR_CONTAINS_CS = 505, |
| 1898 | |
| 1899 | /** |
| 1900 | * @generated from enum value: STR_NOT_CONTAINS_CS = 506; |
| 1901 | */ |
| 1902 | STR_NOT_CONTAINS_CS = 506, |
| 1903 | |
| 1904 | /** |
| 1905 | * @generated from enum value: STR_STARTSWITH = 507; |
| 1906 | */ |
| 1907 | STR_STARTSWITH = 507, |
| 1908 | |
| 1909 | /** |
| 1910 | * @generated from enum value: STR_NOT_STARTSWITH = 508; |
| 1911 | */ |
| 1912 | STR_NOT_STARTSWITH = 508, |
| 1913 | |
| 1914 | /** |
| 1915 | * @generated from enum value: STR_STARTSWITH_CS = 509; |
| 1916 | */ |
| 1917 | STR_STARTSWITH_CS = 509, |
| 1918 | |
| 1919 | /** |
| 1920 | * @generated from enum value: STR_NOT_STARTSWITH_CS = 510; |
| 1921 | */ |
| 1922 | STR_NOT_STARTSWITH_CS = 510, |
| 1923 | |
| 1924 | /** |
| 1925 | * @generated from enum value: STR_ENDSWITH = 511; |
| 1926 | */ |
| 1927 | STR_ENDSWITH = 511, |
| 1928 | |
| 1929 | /** |
| 1930 | * @generated from enum value: STR_NOT_ENDSWITH = 512; |
| 1931 | */ |
| 1932 | STR_NOT_ENDSWITH = 512, |
| 1933 | |
| 1934 | /** |
| 1935 | * @generated from enum value: STR_ENDSWITH_CS = 513; |
| 1936 | */ |
| 1937 | STR_ENDSWITH_CS = 513, |
| 1938 | |
| 1939 | /** |
| 1940 | * @generated from enum value: STR_NOT_ENDSWITH_CS = 514; |
| 1941 | */ |
| 1942 | STR_NOT_ENDSWITH_CS = 514, |
| 1943 | |
| 1944 | /** |
| 1945 | * @generated from enum value: STR_IN_NOCS = 515; |
| 1946 | */ |
| 1947 | STR_IN_NOCS = 515, |
| 1948 | |
| 1949 | /** |
| 1950 | * @generated from enum value: STR_NOT_IN_NOCS = 516; |
| 1951 | */ |
| 1952 | STR_NOT_IN_NOCS = 516, |
| 1953 | |
| 1954 | /** |
| 1955 | * @generated from enum value: STR_NOT_MATCHES_REGEX = 517; |
| 1956 | */ |
| 1957 | STR_NOT_MATCHES_REGEX = 517, |
| 1958 | |
| 1959 | /** |
| 1960 | * @generated from enum value: STR_MATCHES_REGEX = 518; |
| 1961 | */ |
| 1962 | STR_MATCHES_REGEX = 518, |
| 1963 | |
| 1964 | /** |
| 1965 | * @generated from enum value: STR_HAS = 519; |
| 1966 | */ |
| 1967 | STR_HAS = 519, |
| 1968 | |
| 1969 | /** |
| 1970 | * @generated from enum value: STR_HAS_CS = 520; |
| 1971 | */ |
| 1972 | STR_HAS_CS = 520, |
| 1973 | |
| 1974 | /** |
| 1975 | * @generated from enum value: STR_HASSUFFIX = 521; |
| 1976 | */ |
| 1977 | STR_HASSUFFIX = 521, |
| 1978 | |
| 1979 | /** |
| 1980 | * @generated from enum value: STR_HASSUFFIX_CS = 522; |
| 1981 | */ |
| 1982 | STR_HASSUFFIX_CS = 522, |
| 1983 | |
| 1984 | /** |
| 1985 | * @generated from enum value: STR_HASPREFIX = 523; |
| 1986 | */ |
| 1987 | STR_HASPREFIX = 523, |
| 1988 | |
| 1989 | /** |
| 1990 | * @generated from enum value: STR_HASPREFIX_CS = 524; |
| 1991 | */ |
| 1992 | STR_HASPREFIX_CS = 524, |
| 1993 | } |
| 1994 | // Retrieve enum metadata with: proto3.getEnumType(BinaryOp_Operator) |
| 1995 | proto3.util.setEnumType(BinaryOp_Operator, "types.v1.BinaryOp.Operator", [ |
| 1996 | { no: 0, name: "INVALID" }, |
| 1997 | { no: 101, name: "LOG_AND" }, |
| 1998 | { no: 102, name: "LOG_OR" }, |
| 1999 | { no: 201, name: "NUM_ADD" }, |
| 2000 | { no: 202, name: "NUM_SUB" }, |
| 2001 | { no: 203, name: "NUM_DIV" }, |
| 2002 | { no: 204, name: "NUM_MUL" }, |
| 2003 | { no: 205, name: "NUM_MOD" }, |
| 2004 | { no: 301, name: "CMP_EQ" }, |
| 2005 | { no: 302, name: "CMP_NOTEQ" }, |
| 2006 | { no: 303, name: "CMP_GT" }, |
| 2007 | { no: 304, name: "CMP_GTE" }, |
| 2008 | { no: 305, name: "CMP_LT" }, |
| 2009 | { no: 306, name: "CMP_LTE" }, |
| 2010 | { no: 401, name: "SET_IN" }, |
| 2011 | { no: 402, name: "SET_NOTIN" }, |
| 2012 | { no: 501, name: "STR_EQ_NOCS" }, |
| 2013 | { no: 502, name: "STR_NOTEQ_NOCS" }, |
| 2014 | { no: 503, name: "STR_CONTAINS" }, |
| 2015 | { no: 504, name: "STR_NOT_CONTAINS" }, |
| 2016 | { no: 505, name: "STR_CONTAINS_CS" }, |
| 2017 | { no: 506, name: "STR_NOT_CONTAINS_CS" }, |
| 2018 | { no: 507, name: "STR_STARTSWITH" }, |
| 2019 | { no: 508, name: "STR_NOT_STARTSWITH" }, |
| 2020 | { no: 509, name: "STR_STARTSWITH_CS" }, |
| 2021 | { no: 510, name: "STR_NOT_STARTSWITH_CS" }, |
| 2022 | { no: 511, name: "STR_ENDSWITH" }, |
| 2023 | { no: 512, name: "STR_NOT_ENDSWITH" }, |
| 2024 | { no: 513, name: "STR_ENDSWITH_CS" }, |
| 2025 | { no: 514, name: "STR_NOT_ENDSWITH_CS" }, |
| 2026 | { no: 515, name: "STR_IN_NOCS" }, |
| 2027 | { no: 516, name: "STR_NOT_IN_NOCS" }, |
| 2028 | { no: 517, name: "STR_NOT_MATCHES_REGEX" }, |
| 2029 | { no: 518, name: "STR_MATCHES_REGEX" }, |
| 2030 | { no: 519, name: "STR_HAS" }, |
| 2031 | { no: 520, name: "STR_HAS_CS" }, |
| 2032 | { no: 521, name: "STR_HASSUFFIX" }, |
| 2033 | { no: 522, name: "STR_HASSUFFIX_CS" }, |
| 2034 | { no: 523, name: "STR_HASPREFIX" }, |
| 2035 | { no: 524, name: "STR_HASPREFIX_CS" }, |
| 2036 | ]); |
| 2037 | |
| 2038 | /** |
| 2039 | * @generated from message types.v1.FuncCall |
| 2040 | */ |
| 2041 | export class FuncCall extends Message<FuncCall> { |
| 2042 | /** |
| 2043 | * @generated from field: string name = 1; |
| 2044 | */ |
| 2045 | name = ""; |
| 2046 | |
| 2047 | /** |
| 2048 | * @generated from field: repeated types.v1.Expr args = 2; |
| 2049 | */ |
| 2050 | args: Expr[] = []; |
| 2051 | |
| 2052 | constructor(data?: PartialMessage<FuncCall>) { |
| 2053 | super(); |
| 2054 | proto3.util.initPartial(data, this); |
| 2055 | } |
| 2056 | |
| 2057 | static readonly runtime: typeof proto3 = proto3; |
| 2058 | static readonly typeName = "types.v1.FuncCall"; |
| 2059 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 2060 | { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 2061 | { no: 2, name: "args", kind: "message", T: Expr, repeated: true }, |
| 2062 | ]); |
| 2063 | |
| 2064 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FuncCall { |
| 2065 | return new FuncCall().fromBinary(bytes, options); |
| 2066 | } |
| 2067 | |
| 2068 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FuncCall { |
| 2069 | return new FuncCall().fromJson(jsonValue, options); |
| 2070 | } |
| 2071 | |
| 2072 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FuncCall { |
| 2073 | return new FuncCall().fromJsonString(jsonString, options); |
| 2074 | } |
| 2075 | |
| 2076 | static equals(a: FuncCall | PlainMessage<FuncCall> | undefined, b: FuncCall | PlainMessage<FuncCall> | undefined): boolean { |
| 2077 | return proto3.util.equals(FuncCall, a, b); |
| 2078 | } |
| 2079 | } |
| 2080 | |
| 2081 | /** |
| 2082 | * @generated from message types.v1.Identifier |
| 2083 | */ |
| 2084 | export class Identifier extends Message<Identifier> { |
| 2085 | /** |
| 2086 | * @generated from field: string name = 1; |
| 2087 | */ |
| 2088 | name = ""; |
| 2089 | |
| 2090 | constructor(data?: PartialMessage<Identifier>) { |
| 2091 | super(); |
| 2092 | proto3.util.initPartial(data, this); |
| 2093 | } |
| 2094 | |
| 2095 | static readonly runtime: typeof proto3 = proto3; |
| 2096 | static readonly typeName = "types.v1.Identifier"; |
| 2097 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 2098 | { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 2099 | ]); |
| 2100 | |
| 2101 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Identifier { |
| 2102 | return new Identifier().fromBinary(bytes, options); |
| 2103 | } |
| 2104 | |
| 2105 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Identifier { |
| 2106 | return new Identifier().fromJson(jsonValue, options); |
| 2107 | } |
| 2108 | |
| 2109 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Identifier { |
| 2110 | return new Identifier().fromJsonString(jsonString, options); |
| 2111 | } |
| 2112 | |
| 2113 | static equals(a: Identifier | PlainMessage<Identifier> | undefined, b: Identifier | PlainMessage<Identifier> | undefined): boolean { |
| 2114 | return proto3.util.equals(Identifier, a, b); |
| 2115 | } |
| 2116 | } |
| 2117 | |
| 2118 | /** |
| 2119 | * @generated from message types.v1.Indexor |
| 2120 | */ |
| 2121 | export class Indexor extends Message<Indexor> { |
| 2122 | /** |
| 2123 | * @generated from field: types.v1.Expr x = 1; |
| 2124 | */ |
| 2125 | x?: Expr; |
| 2126 | |
| 2127 | /** |
| 2128 | * @generated from field: types.v1.Expr index = 2; |
| 2129 | */ |
| 2130 | index?: Expr; |
| 2131 | |
| 2132 | constructor(data?: PartialMessage<Indexor>) { |
| 2133 | super(); |
| 2134 | proto3.util.initPartial(data, this); |
| 2135 | } |
| 2136 | |
| 2137 | static readonly runtime: typeof proto3 = proto3; |
| 2138 | static readonly typeName = "types.v1.Indexor"; |
| 2139 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 2140 | { no: 1, name: "x", kind: "message", T: Expr }, |
| 2141 | { no: 2, name: "index", kind: "message", T: Expr }, |
| 2142 | ]); |
| 2143 | |
| 2144 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Indexor { |
| 2145 | return new Indexor().fromBinary(bytes, options); |
| 2146 | } |
| 2147 | |
| 2148 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Indexor { |
| 2149 | return new Indexor().fromJson(jsonValue, options); |
| 2150 | } |
| 2151 | |
| 2152 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Indexor { |
| 2153 | return new Indexor().fromJsonString(jsonString, options); |
| 2154 | } |
| 2155 | |
| 2156 | static equals(a: Indexor | PlainMessage<Indexor> | undefined, b: Indexor | PlainMessage<Indexor> | undefined): boolean { |
| 2157 | return proto3.util.equals(Indexor, a, b); |
| 2158 | } |
| 2159 | } |
| 2160 |