// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none"
// @generated from file types/v1/version_artifact.proto (package types.v1, syntax proto3)
/* eslint-disable */
// @ts-nocheck

import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";

/**
 * @generated from message types.v1.VersionArtifact
 */
export class VersionArtifact extends Message<VersionArtifact> {
  /**
   * @generated from field: string url = 1;
   */
  url = "";

  /**
   * @generated from field: string sha256 = 2;
   */
  sha256 = "";

  /**
   * @generated from field: string signature = 3;
   */
  signature = "";

  /**
   * @generated from field: string architecture = 4;
   */
  architecture = "";

  /**
   * @generated from field: string operating_system = 5;
   */
  operatingSystem = "";

  constructor(data?: PartialMessage<VersionArtifact>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "types.v1.VersionArtifact";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 2, name: "sha256", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 3, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 4, name: "architecture", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 5, name: "operating_system", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VersionArtifact {
    return new VersionArtifact().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VersionArtifact {
    return new VersionArtifact().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VersionArtifact {
    return new VersionArtifact().fromJsonString(jsonString, options);
  }

  static equals(a: VersionArtifact | PlainMessage<VersionArtifact> | undefined, b: VersionArtifact | PlainMessage<VersionArtifact> | undefined): boolean {
    return proto3.util.equals(VersionArtifact, a, b);
  }
}

