// @generated by protoc-gen-es v0.2.0 with parameter "target=ts" // @generated from file common/v1/object-id.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.ObjectID */ export class ObjectID extends Message { /** * id of object being referenced * * @generated from field: string object_id = 1; */ objectId = ""; /** * context of id, eg "job" or "cart-item" * * @generated from field: string object_type = 2; */ objectType = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime = proto3; static readonly typeName = "common.v1.ObjectID"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "object_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "object_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ObjectID { return new ObjectID().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ObjectID { return new ObjectID().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ObjectID { return new ObjectID().fromJsonString(jsonString, options); } static equals(a: ObjectID | PlainMessage | undefined, b: ObjectID | PlainMessage | undefined): boolean { return proto3.util.equals(ObjectID, a, b); } }