|
| 1 | +// @generated by protoc-gen-es v1.9.0 with parameter "target=ts" |
| 2 | +// @generated from file quary/service/v1/chart_file.proto (package quary.service.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, Struct } from "@bufbuild/protobuf"; |
| 8 | + |
| 9 | +/** |
| 10 | + * CharFile is a representation of a chart that can be used to generate a visualization. |
| 11 | + * |
| 12 | + * @generated from message quary.service.v1.ChartFile |
| 13 | + */ |
| 14 | +export class ChartFile extends Message<ChartFile> { |
| 15 | + /** |
| 16 | + * description of the cart |
| 17 | + * |
| 18 | + * @generated from field: optional string description = 2; |
| 19 | + */ |
| 20 | + description?: string; |
| 21 | + |
| 22 | + /** |
| 23 | + * Tags are used to group different parts of the project together. For example, you could tag all models that are |
| 24 | + * related to a specific department with the same tag. |
| 25 | + * |
| 26 | + * @generated from field: repeated string tags = 3; |
| 27 | + */ |
| 28 | + tags: string[] = []; |
| 29 | + |
| 30 | + /** |
| 31 | + * Where the data comes from |
| 32 | + * |
| 33 | + * @generated from oneof quary.service.v1.ChartFile.source |
| 34 | + */ |
| 35 | + source: { |
| 36 | + /** |
| 37 | + * raw sql that is passed to the database |
| 38 | + * |
| 39 | + * @generated from field: string raw_sql = 4; |
| 40 | + */ |
| 41 | + value: string; |
| 42 | + case: "rawSql"; |
| 43 | + } | { |
| 44 | + /** |
| 45 | + * sql that is passed to the database with templating through quary |
| 46 | + * |
| 47 | + * @generated from field: string pre_templated_sql = 5; |
| 48 | + */ |
| 49 | + value: string; |
| 50 | + case: "preTemplatedSql"; |
| 51 | + } | { |
| 52 | + /** |
| 53 | + * reference to a pre-existing asset, model, source, seed, snapshot |
| 54 | + * |
| 55 | + * @generated from field: quary.service.v1.ChartFile.AssetReference reference = 6; |
| 56 | + */ |
| 57 | + value: ChartFile_AssetReference; |
| 58 | + case: "reference"; |
| 59 | + } | { case: undefined; value?: undefined } = { case: undefined }; |
| 60 | + |
| 61 | + /** |
| 62 | + * Configuration for the chart that is passed to perspective |
| 63 | + * |
| 64 | + * @generated from field: google.protobuf.Struct config = 7; |
| 65 | + */ |
| 66 | + config?: Struct; |
| 67 | + |
| 68 | + constructor(data?: PartialMessage<ChartFile>) { |
| 69 | + super(); |
| 70 | + proto3.util.initPartial(data, this); |
| 71 | + } |
| 72 | + |
| 73 | + static readonly runtime: typeof proto3 = proto3; |
| 74 | + static readonly typeName = "quary.service.v1.ChartFile"; |
| 75 | + static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 76 | + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, |
| 77 | + { no: 3, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, |
| 78 | + { no: 4, name: "raw_sql", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "source" }, |
| 79 | + { no: 5, name: "pre_templated_sql", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "source" }, |
| 80 | + { no: 6, name: "reference", kind: "message", T: ChartFile_AssetReference, oneof: "source" }, |
| 81 | + { no: 7, name: "config", kind: "message", T: Struct }, |
| 82 | + ]); |
| 83 | + |
| 84 | + static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChartFile { |
| 85 | + return new ChartFile().fromBinary(bytes, options); |
| 86 | + } |
| 87 | + |
| 88 | + static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChartFile { |
| 89 | + return new ChartFile().fromJson(jsonValue, options); |
| 90 | + } |
| 91 | + |
| 92 | + static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChartFile { |
| 93 | + return new ChartFile().fromJsonString(jsonString, options); |
| 94 | + } |
| 95 | + |
| 96 | + static equals(a: ChartFile | PlainMessage<ChartFile> | undefined, b: ChartFile | PlainMessage<ChartFile> | undefined): boolean { |
| 97 | + return proto3.util.equals(ChartFile, a, b); |
| 98 | + } |
| 99 | +} |
| 100 | + |
| 101 | +/** |
| 102 | + * @generated from message quary.service.v1.ChartFile.AssetReference |
| 103 | + */ |
| 104 | +export class ChartFile_AssetReference extends Message<ChartFile_AssetReference> { |
| 105 | + /** |
| 106 | + * @generated from field: string name = 1; |
| 107 | + */ |
| 108 | + name = ""; |
| 109 | + |
| 110 | + constructor(data?: PartialMessage<ChartFile_AssetReference>) { |
| 111 | + super(); |
| 112 | + proto3.util.initPartial(data, this); |
| 113 | + } |
| 114 | + |
| 115 | + static readonly runtime: typeof proto3 = proto3; |
| 116 | + static readonly typeName = "quary.service.v1.ChartFile.AssetReference"; |
| 117 | + static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 118 | + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 119 | + ]); |
| 120 | + |
| 121 | + static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChartFile_AssetReference { |
| 122 | + return new ChartFile_AssetReference().fromBinary(bytes, options); |
| 123 | + } |
| 124 | + |
| 125 | + static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChartFile_AssetReference { |
| 126 | + return new ChartFile_AssetReference().fromJson(jsonValue, options); |
| 127 | + } |
| 128 | + |
| 129 | + static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChartFile_AssetReference { |
| 130 | + return new ChartFile_AssetReference().fromJsonString(jsonString, options); |
| 131 | + } |
| 132 | + |
| 133 | + static equals(a: ChartFile_AssetReference | PlainMessage<ChartFile_AssetReference> | undefined, b: ChartFile_AssetReference | PlainMessage<ChartFile_AssetReference> | undefined): boolean { |
| 134 | + return proto3.util.equals(ChartFile_AssetReference, a, b); |
| 135 | + } |
| 136 | +} |
| 137 | + |
0 commit comments