| 1 | // @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none" |
| 2 | // @generated from file types/v1/version.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 | |
| 9 | /** |
| 10 | * @generated from message types.v1.Version |
| 11 | */ |
| 12 | export class Version extends Message<Version> { |
| 13 | /** |
| 14 | * @generated from field: int32 major = 1; |
| 15 | */ |
| 16 | major = 0; |
| 17 | |
| 18 | /** |
| 19 | * @generated from field: int32 minor = 2; |
| 20 | */ |
| 21 | minor = 0; |
| 22 | |
| 23 | /** |
| 24 | * @generated from field: int32 patch = 3; |
| 25 | */ |
| 26 | patch = 0; |
| 27 | |
| 28 | /** |
| 29 | * @generated from field: repeated string prereleases = 4; |
| 30 | */ |
| 31 | prereleases: string[] = []; |
| 32 | |
| 33 | /** |
| 34 | * @generated from field: string build = 5; |
| 35 | */ |
| 36 | build = ""; |
| 37 | |
| 38 | constructor(data?: PartialMessage<Version>) { |
| 39 | super(); |
| 40 | proto3.util.initPartial(data, this); |
| 41 | } |
| 42 | |
| 43 | static readonly runtime: typeof proto3 = proto3; |
| 44 | static readonly typeName = "types.v1.Version"; |
| 45 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 46 | { no: 1, name: "major", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, |
| 47 | { no: 2, name: "minor", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, |
| 48 | { no: 3, name: "patch", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, |
| 49 | { no: 4, name: "prereleases", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, |
| 50 | { no: 5, name: "build", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 51 | ]); |
| 52 | |
| 53 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Version { |
| 54 | return new Version().fromBinary(bytes, options); |
| 55 | } |
| 56 | |
| 57 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Version { |
| 58 | return new Version().fromJson(jsonValue, options); |
| 59 | } |
| 60 | |
| 61 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Version { |
| 62 | return new Version().fromJsonString(jsonString, options); |
| 63 | } |
| 64 | |
| 65 | static equals(a: Version | PlainMessage<Version> | undefined, b: Version | PlainMessage<Version> | undefined): boolean { |
| 66 | return proto3.util.equals(Version, a, b); |
| 67 | } |
| 68 | } |
| 69 |