| 1 | // @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none" |
| 2 | // @generated from file types/v1/symbol.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 } from "@bufbuild/protobuf"; |
| 8 | import { VarType } from "./types_pb"; |
| 9 | |
| 10 | /** |
| 11 | * @generated from message types.v1.Symbol |
| 12 | */ |
| 13 | export class Symbol extends Message<Symbol> { |
| 14 | /** |
| 15 | * @generated from field: string name = 1; |
| 16 | */ |
| 17 | name = ""; |
| 18 | |
| 19 | /** |
| 20 | * @generated from field: types.v1.VarType type = 2; |
| 21 | */ |
| 22 | type?: VarType; |
| 23 | |
| 24 | constructor(data?: PartialMessage<Symbol>) { |
| 25 | super(); |
| 26 | proto3.util.initPartial(data, this); |
| 27 | } |
| 28 | |
| 29 | static readonly runtime: typeof proto3 = proto3; |
| 30 | static readonly typeName = "types.v1.Symbol"; |
| 31 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 32 | { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 33 | { no: 2, name: "type", kind: "message", T: VarType }, |
| 34 | ]); |
| 35 | |
| 36 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Symbol { |
| 37 | return new Symbol().fromBinary(bytes, options); |
| 38 | } |
| 39 | |
| 40 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Symbol { |
| 41 | return new Symbol().fromJson(jsonValue, options); |
| 42 | } |
| 43 | |
| 44 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Symbol { |
| 45 | return new Symbol().fromJsonString(jsonString, options); |
| 46 | } |
| 47 | |
| 48 | static equals(a: Symbol | PlainMessage<Symbol> | undefined, b: Symbol | PlainMessage<Symbol> | undefined): boolean { |
| 49 | return proto3.util.equals(Symbol, a, b); |
| 50 | } |
| 51 | } |
| 52 |