substreams-sink-redis
Version:
Substreams Redis sink module
68 lines • 2.76 kB
TypeScript
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";
/**
* @generated from message sf.substreams.sink.kv.v1.KVOperations
*/
export declare class KVOperations extends Message<KVOperations> {
/**
* @generated from field: repeated sf.substreams.sink.kv.v1.KVOperation operations = 1;
*/
operations: KVOperation[];
constructor(data?: PartialMessage<KVOperations>);
static readonly runtime: typeof proto3;
static readonly typeName = "sf.substreams.sink.kv.v1.KVOperations";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): KVOperations;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): KVOperations;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): KVOperations;
static equals(a: KVOperations | PlainMessage<KVOperations> | undefined, b: KVOperations | PlainMessage<KVOperations> | undefined): boolean;
}
/**
* @generated from message sf.substreams.sink.kv.v1.KVOperation
*/
export declare class KVOperation extends Message<KVOperation> {
/**
* @generated from field: string key = 1;
*/
key: string;
/**
* @generated from field: bytes value = 2;
*/
value: Uint8Array;
/**
* @generated from field: uint64 ordinal = 3;
*/
ordinal: bigint;
/**
* @generated from field: sf.substreams.sink.kv.v1.KVOperation.Type type = 4;
*/
type: KVOperation_Type;
constructor(data?: PartialMessage<KVOperation>);
static readonly runtime: typeof proto3;
static readonly typeName = "sf.substreams.sink.kv.v1.KVOperation";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): KVOperation;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): KVOperation;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): KVOperation;
static equals(a: KVOperation | PlainMessage<KVOperation> | undefined, b: KVOperation | PlainMessage<KVOperation> | undefined): boolean;
}
/**
* @generated from enum sf.substreams.sink.kv.v1.KVOperation.Type
*/
export declare enum 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;
*/
UNSET = 0,
/**
* @generated from enum value: SET = 1;
*/
SET = 1,
/**
* @generated from enum value: DELETE = 2;
*/
DELETE = 2
}
//# sourceMappingURL=kv_pb.d.ts.map