// @generated by protoc-gen-es v1.10.0 with parameter "target=ts" // @generated from file counter.proto (package vizapi, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { RequestProjectHeader } from "./core/shared_pb.js"; /** * @generated from message vizapi.NextProjectCounterRequest */ export class NextProjectCounterRequest extends Message { /** * @generated from field: api.RequestProjectHeader Header = 1; */ Header?: RequestProjectHeader; /** * @generated from field: string Key = 2; */ Key = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "vizapi.NextProjectCounterRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Header", kind: "message", T: RequestProjectHeader }, { no: 2, name: "Key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NextProjectCounterRequest { return new NextProjectCounterRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): NextProjectCounterRequest { return new NextProjectCounterRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): NextProjectCounterRequest { return new NextProjectCounterRequest().fromJsonString(jsonString, options); } static equals(a: NextProjectCounterRequest | PlainMessage | undefined, b: NextProjectCounterRequest | PlainMessage | undefined): boolean { return proto3.util.equals(NextProjectCounterRequest, a, b); } } /** * @generated from message vizapi.NextCounterResult */ export class NextCounterResult extends Message { /** * @generated from field: int64 Value = 1; */ Value = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "vizapi.NextCounterResult"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Value", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NextCounterResult { return new NextCounterResult().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): NextCounterResult { return new NextCounterResult().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): NextCounterResult { return new NextCounterResult().fromJsonString(jsonString, options); } static equals(a: NextCounterResult | PlainMessage | undefined, b: NextCounterResult | PlainMessage | undefined): boolean { return proto3.util.equals(NextCounterResult, a, b); } }