// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file common/v1/object-ref.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.ObjectRef */ export class ObjectRef 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: typeof proto3 = proto3; static readonly typeName = "common.v1.ObjectRef"; 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): ObjectRef { return new ObjectRef().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ObjectRef { return new ObjectRef().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ObjectRef { return new ObjectRef().fromJsonString(jsonString, options); } static equals(a: ObjectRef | PlainMessage | undefined, b: ObjectRef | PlainMessage | undefined): boolean { return proto3.util.equals(ObjectRef, a, b); } }