// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file common/v1/stats.proto (package common.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 common.v1.StatsTotals */ export class StatsTotals extends Message { /** * @generated from field: int32 all_time = 1; */ allTime = 0; /** * @generated from field: int32 month = 2; */ month = 0; /** * @generated from field: int32 week = 3; */ week = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "common.v1.StatsTotals"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "all_time", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 2, name: "month", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "week", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): StatsTotals { return new StatsTotals().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): StatsTotals { return new StatsTotals().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): StatsTotals { return new StatsTotals().fromJsonString(jsonString, options); } static equals(a: StatsTotals | PlainMessage | undefined, b: StatsTotals | PlainMessage | undefined): boolean { return proto3.util.equals(StatsTotals, a, b); } }