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