// @generated by protoc-gen-es v1.10.0 with parameter "target=ts" // @generated from file sf/substreams/v1/deltas.proto (package sf.substreams.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"; /** * @generated from message sf.substreams.v1.StoreDeltas */ export class StoreDeltas extends Message { /** * @generated from field: repeated sf.substreams.v1.StoreDelta store_deltas = 1; */ storeDeltas: StoreDelta[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "sf.substreams.v1.StoreDeltas"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "store_deltas", kind: "message", T: StoreDelta, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): StoreDeltas { return new StoreDeltas().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): StoreDeltas { return new StoreDeltas().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): StoreDeltas { return new StoreDeltas().fromJsonString(jsonString, options); } static equals(a: StoreDeltas | PlainMessage | undefined, b: StoreDeltas | PlainMessage | undefined): boolean { return proto3.util.equals(StoreDeltas, a, b); } } /** * @generated from message sf.substreams.v1.StoreDelta */ export class StoreDelta extends Message { /** * @generated from field: sf.substreams.v1.StoreDelta.Operation operation = 1; */ operation = StoreDelta_Operation.UNSET; /** * @generated from field: uint64 ordinal = 2; */ ordinal = protoInt64.zero; /** * @generated from field: string key = 3; */ key = ""; /** * @generated from field: bytes old_value = 4; */ oldValue = new Uint8Array(0); /** * @generated from field: bytes new_value = 5; */ newValue = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "sf.substreams.v1.StoreDelta"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "operation", kind: "enum", T: proto3.getEnumType(StoreDelta_Operation) }, { no: 2, name: "ordinal", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "old_value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 5, name: "new_value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): StoreDelta { return new StoreDelta().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): StoreDelta { return new StoreDelta().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): StoreDelta { return new StoreDelta().fromJsonString(jsonString, options); } static equals(a: StoreDelta | PlainMessage | undefined, b: StoreDelta | PlainMessage | undefined): boolean { return proto3.util.equals(StoreDelta, a, b); } } /** * @generated from enum sf.substreams.v1.StoreDelta.Operation */ export enum StoreDelta_Operation { /** * @generated from enum value: UNSET = 0; */ UNSET = 0, /** * @generated from enum value: CREATE = 1; */ CREATE = 1, /** * @generated from enum value: UPDATE = 2; */ UPDATE = 2, /** * @generated from enum value: DELETE = 3; */ DELETE = 3, } // Retrieve enum metadata with: proto3.getEnumType(StoreDelta_Operation) proto3.util.setEnumType(StoreDelta_Operation, "sf.substreams.v1.StoreDelta.Operation", [ { no: 0, name: "UNSET" }, { no: 1, name: "CREATE" }, { no: 2, name: "UPDATE" }, { no: 3, name: "DELETE" }, ]);