// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file artworking/v1/upscale.proto (package artworking.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 artworking.v1.UpscaleOptions */ export class UpscaleOptions extends Message { /** * @generated from field: optional string model = 1; */ model?: string; /** * @generated from field: optional int32 upscale_factor = 2; */ upscaleFactor?: number; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.UpscaleOptions"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "model", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 2, name: "upscale_factor", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpscaleOptions { return new UpscaleOptions().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UpscaleOptions { return new UpscaleOptions().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UpscaleOptions { return new UpscaleOptions().fromJsonString(jsonString, options); } static equals(a: UpscaleOptions | PlainMessage | undefined, b: UpscaleOptions | PlainMessage | undefined): boolean { return proto3.util.equals(UpscaleOptions, a, b); } } /** * @generated from message artworking.v1.UpscaleParams */ export class UpscaleParams extends Message { /** * @generated from field: optional artworking.v1.UpscaleOptions options = 1; */ options?: UpscaleOptions; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.UpscaleParams"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "options", kind: "message", T: UpscaleOptions, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpscaleParams { return new UpscaleParams().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UpscaleParams { return new UpscaleParams().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UpscaleParams { return new UpscaleParams().fromJsonString(jsonString, options); } static equals(a: UpscaleParams | PlainMessage | undefined, b: UpscaleParams | PlainMessage | undefined): boolean { return proto3.util.equals(UpscaleParams, a, b); } }