// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file usage/v1/summaries.proto (package usage.v1, 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 { UsageMetricType } from "./activity_pb.js"; /** * @generated from message usage.v1.DailyUsage */ export class DailyUsage extends Message { /** * @generated from field: int32 day = 1; */ day = 0; /** * @generated from field: int32 month = 2; */ month = 0; /** * @generated from field: int32 year = 3; */ year = 0; /** * @generated from field: usage.v1.UsageMetricType metric_type = 4; */ metricType = UsageMetricType.USAGE_METRIC_UNDEFINED; /** * @generated from field: int64 metric_value = 5; */ metricValue = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "usage.v1.DailyUsage"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "day", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 2, name: "month", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "year", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 4, name: "metric_type", kind: "enum", T: proto3.getEnumType(UsageMetricType) }, { no: 5, name: "metric_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DailyUsage { return new DailyUsage().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DailyUsage { return new DailyUsage().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DailyUsage { return new DailyUsage().fromJsonString(jsonString, options); } static equals(a: DailyUsage | PlainMessage | undefined, b: DailyUsage | PlainMessage | undefined): boolean { return proto3.util.equals(DailyUsage, a, b); } } /** * @generated from message usage.v1.MonthlyUsage */ export class MonthlyUsage extends Message { /** * @generated from field: int32 day = 1; */ day = 0; /** * @generated from field: int32 month = 2; */ month = 0; /** * @generated from field: int32 year = 3; */ year = 0; /** * @generated from field: usage.v1.UsageMetricType metric_type = 4; */ metricType = UsageMetricType.USAGE_METRIC_UNDEFINED; /** * @generated from field: int64 metric_value = 5; */ metricValue = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "usage.v1.MonthlyUsage"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "day", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 2, name: "month", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "year", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 4, name: "metric_type", kind: "enum", T: proto3.getEnumType(UsageMetricType) }, { no: 5, name: "metric_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MonthlyUsage { return new MonthlyUsage().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MonthlyUsage { return new MonthlyUsage().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MonthlyUsage { return new MonthlyUsage().fromJsonString(jsonString, options); } static equals(a: MonthlyUsage | PlainMessage | undefined, b: MonthlyUsage | PlainMessage | undefined): boolean { return proto3.util.equals(MonthlyUsage, a, b); } }