UNPKG

substreams-sink-redis

Version:
107 lines 3.78 kB
// @generated by protoc-gen-es v1.3.0 with parameter "target=ts" // @generated from file sf/substreams/sink/kv/v1/kv.proto (package sf.substreams.sink.kv.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; /** * @generated from message sf.substreams.sink.kv.v1.KVOperations */ export class KVOperations extends Message { /** * @generated from field: repeated sf.substreams.sink.kv.v1.KVOperation operations = 1; */ operations = []; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "sf.substreams.sink.kv.v1.KVOperations"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "operations", kind: "message", T: KVOperation, repeated: true }, ]); static fromBinary(bytes, options) { return new KVOperations().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new KVOperations().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new KVOperations().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(KVOperations, a, b); } } /** * @generated from message sf.substreams.sink.kv.v1.KVOperation */ export class KVOperation extends Message { /** * @generated from field: string key = 1; */ key = ""; /** * @generated from field: bytes value = 2; */ value = new Uint8Array(0); /** * @generated from field: uint64 ordinal = 3; */ ordinal = protoInt64.zero; /** * @generated from field: sf.substreams.sink.kv.v1.KVOperation.Type type = 4; */ type = KVOperation_Type.UNSET; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "sf.substreams.sink.kv.v1.KVOperation"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "ordinal", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 4, name: "type", kind: "enum", T: proto3.getEnumType(KVOperation_Type) }, ]); static fromBinary(bytes, options) { return new KVOperation().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new KVOperation().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new KVOperation().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(KVOperation, a, b); } } /** * @generated from enum sf.substreams.sink.kv.v1.KVOperation.Type */ export var KVOperation_Type; (function (KVOperation_Type) { /** * Protobuf default should not be used, this is used so that the consume can ensure that the value was actually specified * * @generated from enum value: UNSET = 0; */ KVOperation_Type[KVOperation_Type["UNSET"] = 0] = "UNSET"; /** * @generated from enum value: SET = 1; */ KVOperation_Type[KVOperation_Type["SET"] = 1] = "SET"; /** * @generated from enum value: DELETE = 2; */ KVOperation_Type[KVOperation_Type["DELETE"] = 2] = "DELETE"; })(KVOperation_Type || (KVOperation_Type = {})); // Retrieve enum metadata with: proto3.getEnumType(KVOperation_Type) proto3.util.setEnumType(KVOperation_Type, "sf.substreams.sink.kv.v1.KVOperation.Type", [ { no: 0, name: "UNSET" }, { no: 1, name: "SET" }, { no: 2, name: "DELETE" }, ]); //# sourceMappingURL=kv_pb.js.map