UNPKG

fabric-protos

Version:

Protocol Buffer files and generated JavaScript classes for Hyperledger Fabric

1,157 lines (965 loc) 1.16 MB
import * as $protobuf from "protobufjs"; import Long = require("long"); /** Namespace google. */ export namespace google { /** Namespace protobuf. */ namespace protobuf { /** Properties of a Timestamp. */ interface ITimestamp { /** Timestamp seconds */ seconds?: (number|Long|null); /** Timestamp nanos */ nanos?: (number|null); } /** Represents a Timestamp. */ class Timestamp implements ITimestamp { /** * Constructs a new Timestamp. * @param [properties] Properties to set */ constructor(properties?: google.protobuf.ITimestamp); /** Timestamp seconds. */ public seconds: (number|Long); /** Timestamp nanos. */ public nanos: number; /** * Creates a new Timestamp instance using the specified properties. * @param [properties] Properties to set * @returns Timestamp instance */ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; /** * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. * @param message Timestamp message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. * @param message Timestamp message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Timestamp message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Timestamp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp; /** * Decodes a Timestamp message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Timestamp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp; /** * Verifies a Timestamp message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Timestamp */ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; /** * Creates a plain object from a Timestamp message. Also converts values to other types if specified. * @param message Timestamp * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Timestamp to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Timestamp * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an Empty. */ interface IEmpty { } /** Represents an Empty. */ class Empty implements IEmpty { /** * Constructs a new Empty. * @param [properties] Properties to set */ constructor(properties?: google.protobuf.IEmpty); /** * Creates a new Empty instance using the specified properties. * @param [properties] Properties to set * @returns Empty instance */ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty; /** * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. * @param message Empty message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. * @param message Empty message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Empty message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Empty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty; /** * Decodes an Empty message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Empty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty; /** * Verifies an Empty message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an Empty message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Empty */ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty; /** * Creates a plain object from an Empty message. Also converts values to other types if specified. * @param message Empty * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Empty to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Empty * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } } } /** Namespace transientstore. */ export namespace transientstore { /** Properties of a TxPvtReadWriteSetWithConfigInfo. */ interface ITxPvtReadWriteSetWithConfigInfo { /** TxPvtReadWriteSetWithConfigInfo endorsed_at */ endorsed_at?: (number|Long|null); /** TxPvtReadWriteSetWithConfigInfo pvt_rwset */ pvt_rwset?: (rwset.ITxPvtReadWriteSet|null); /** TxPvtReadWriteSetWithConfigInfo collection_configs */ collection_configs?: ({ [k: string]: protos.ICollectionConfigPackage }|null); } /** Represents a TxPvtReadWriteSetWithConfigInfo. */ class TxPvtReadWriteSetWithConfigInfo implements ITxPvtReadWriteSetWithConfigInfo { /** * Constructs a new TxPvtReadWriteSetWithConfigInfo. * @param [properties] Properties to set */ constructor(properties?: transientstore.ITxPvtReadWriteSetWithConfigInfo); /** TxPvtReadWriteSetWithConfigInfo endorsed_at. */ public endorsed_at: (number|Long); /** TxPvtReadWriteSetWithConfigInfo pvt_rwset. */ public pvt_rwset?: (rwset.ITxPvtReadWriteSet|null); /** TxPvtReadWriteSetWithConfigInfo collection_configs. */ public collection_configs: { [k: string]: protos.ICollectionConfigPackage }; /** * Creates a new TxPvtReadWriteSetWithConfigInfo instance using the specified properties. * @param [properties] Properties to set * @returns TxPvtReadWriteSetWithConfigInfo instance */ public static create(properties?: transientstore.ITxPvtReadWriteSetWithConfigInfo): transientstore.TxPvtReadWriteSetWithConfigInfo; /** * Encodes the specified TxPvtReadWriteSetWithConfigInfo message. Does not implicitly {@link transientstore.TxPvtReadWriteSetWithConfigInfo.verify|verify} messages. * @param message TxPvtReadWriteSetWithConfigInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: transientstore.ITxPvtReadWriteSetWithConfigInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified TxPvtReadWriteSetWithConfigInfo message, length delimited. Does not implicitly {@link transientstore.TxPvtReadWriteSetWithConfigInfo.verify|verify} messages. * @param message TxPvtReadWriteSetWithConfigInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: transientstore.ITxPvtReadWriteSetWithConfigInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a TxPvtReadWriteSetWithConfigInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns TxPvtReadWriteSetWithConfigInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): transientstore.TxPvtReadWriteSetWithConfigInfo; /** * Decodes a TxPvtReadWriteSetWithConfigInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns TxPvtReadWriteSetWithConfigInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): transientstore.TxPvtReadWriteSetWithConfigInfo; /** * Verifies a TxPvtReadWriteSetWithConfigInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a TxPvtReadWriteSetWithConfigInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns TxPvtReadWriteSetWithConfigInfo */ public static fromObject(object: { [k: string]: any }): transientstore.TxPvtReadWriteSetWithConfigInfo; /** * Creates a plain object from a TxPvtReadWriteSetWithConfigInfo message. Also converts values to other types if specified. * @param message TxPvtReadWriteSetWithConfigInfo * @param [options] Conversion options * @returns Plain object */ public static toObject(message: transientstore.TxPvtReadWriteSetWithConfigInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this TxPvtReadWriteSetWithConfigInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for TxPvtReadWriteSetWithConfigInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } } /** Namespace rwset. */ export namespace rwset { /** Properties of a TxReadWriteSet. */ interface ITxReadWriteSet { /** TxReadWriteSet data_model */ data_model?: (rwset.TxReadWriteSet.DataModel|null); /** TxReadWriteSet ns_rwset */ ns_rwset?: (rwset.INsReadWriteSet[]|null); } /** Represents a TxReadWriteSet. */ class TxReadWriteSet implements ITxReadWriteSet { /** * Constructs a new TxReadWriteSet. * @param [properties] Properties to set */ constructor(properties?: rwset.ITxReadWriteSet); /** TxReadWriteSet data_model. */ public data_model: rwset.TxReadWriteSet.DataModel; /** TxReadWriteSet ns_rwset. */ public ns_rwset: rwset.INsReadWriteSet[]; /** * Creates a new TxReadWriteSet instance using the specified properties. * @param [properties] Properties to set * @returns TxReadWriteSet instance */ public static create(properties?: rwset.ITxReadWriteSet): rwset.TxReadWriteSet; /** * Encodes the specified TxReadWriteSet message. Does not implicitly {@link rwset.TxReadWriteSet.verify|verify} messages. * @param message TxReadWriteSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: rwset.ITxReadWriteSet, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified TxReadWriteSet message, length delimited. Does not implicitly {@link rwset.TxReadWriteSet.verify|verify} messages. * @param message TxReadWriteSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: rwset.ITxReadWriteSet, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a TxReadWriteSet message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns TxReadWriteSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): rwset.TxReadWriteSet; /** * Decodes a TxReadWriteSet message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns TxReadWriteSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): rwset.TxReadWriteSet; /** * Verifies a TxReadWriteSet message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a TxReadWriteSet message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns TxReadWriteSet */ public static fromObject(object: { [k: string]: any }): rwset.TxReadWriteSet; /** * Creates a plain object from a TxReadWriteSet message. Also converts values to other types if specified. * @param message TxReadWriteSet * @param [options] Conversion options * @returns Plain object */ public static toObject(message: rwset.TxReadWriteSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this TxReadWriteSet to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for TxReadWriteSet * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace TxReadWriteSet { /** DataModel enum. */ enum DataModel { KV = 0 } } /** Properties of a NsReadWriteSet. */ interface INsReadWriteSet { /** NsReadWriteSet namespace */ namespace?: (string|null); /** NsReadWriteSet rwset */ rwset?: (Uint8Array|null); /** NsReadWriteSet collection_hashed_rwset */ collection_hashed_rwset?: (rwset.ICollectionHashedReadWriteSet[]|null); } /** Represents a NsReadWriteSet. */ class NsReadWriteSet implements INsReadWriteSet { /** * Constructs a new NsReadWriteSet. * @param [properties] Properties to set */ constructor(properties?: rwset.INsReadWriteSet); /** NsReadWriteSet namespace. */ public namespace: string; /** NsReadWriteSet rwset. */ public rwset: Uint8Array; /** NsReadWriteSet collection_hashed_rwset. */ public collection_hashed_rwset: rwset.ICollectionHashedReadWriteSet[]; /** * Creates a new NsReadWriteSet instance using the specified properties. * @param [properties] Properties to set * @returns NsReadWriteSet instance */ public static create(properties?: rwset.INsReadWriteSet): rwset.NsReadWriteSet; /** * Encodes the specified NsReadWriteSet message. Does not implicitly {@link rwset.NsReadWriteSet.verify|verify} messages. * @param message NsReadWriteSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: rwset.INsReadWriteSet, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified NsReadWriteSet message, length delimited. Does not implicitly {@link rwset.NsReadWriteSet.verify|verify} messages. * @param message NsReadWriteSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: rwset.INsReadWriteSet, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a NsReadWriteSet message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns NsReadWriteSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): rwset.NsReadWriteSet; /** * Decodes a NsReadWriteSet message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns NsReadWriteSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): rwset.NsReadWriteSet; /** * Verifies a NsReadWriteSet message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a NsReadWriteSet message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns NsReadWriteSet */ public static fromObject(object: { [k: string]: any }): rwset.NsReadWriteSet; /** * Creates a plain object from a NsReadWriteSet message. Also converts values to other types if specified. * @param message NsReadWriteSet * @param [options] Conversion options * @returns Plain object */ public static toObject(message: rwset.NsReadWriteSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this NsReadWriteSet to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for NsReadWriteSet * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CollectionHashedReadWriteSet. */ interface ICollectionHashedReadWriteSet { /** CollectionHashedReadWriteSet collection_name */ collection_name?: (string|null); /** CollectionHashedReadWriteSet hashed_rwset */ hashed_rwset?: (Uint8Array|null); /** CollectionHashedReadWriteSet pvt_rwset_hash */ pvt_rwset_hash?: (Uint8Array|null); } /** Represents a CollectionHashedReadWriteSet. */ class CollectionHashedReadWriteSet implements ICollectionHashedReadWriteSet { /** * Constructs a new CollectionHashedReadWriteSet. * @param [properties] Properties to set */ constructor(properties?: rwset.ICollectionHashedReadWriteSet); /** CollectionHashedReadWriteSet collection_name. */ public collection_name: string; /** CollectionHashedReadWriteSet hashed_rwset. */ public hashed_rwset: Uint8Array; /** CollectionHashedReadWriteSet pvt_rwset_hash. */ public pvt_rwset_hash: Uint8Array; /** * Creates a new CollectionHashedReadWriteSet instance using the specified properties. * @param [properties] Properties to set * @returns CollectionHashedReadWriteSet instance */ public static create(properties?: rwset.ICollectionHashedReadWriteSet): rwset.CollectionHashedReadWriteSet; /** * Encodes the specified CollectionHashedReadWriteSet message. Does not implicitly {@link rwset.CollectionHashedReadWriteSet.verify|verify} messages. * @param message CollectionHashedReadWriteSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: rwset.ICollectionHashedReadWriteSet, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CollectionHashedReadWriteSet message, length delimited. Does not implicitly {@link rwset.CollectionHashedReadWriteSet.verify|verify} messages. * @param message CollectionHashedReadWriteSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: rwset.ICollectionHashedReadWriteSet, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CollectionHashedReadWriteSet message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CollectionHashedReadWriteSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): rwset.CollectionHashedReadWriteSet; /** * Decodes a CollectionHashedReadWriteSet message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CollectionHashedReadWriteSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): rwset.CollectionHashedReadWriteSet; /** * Verifies a CollectionHashedReadWriteSet message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a CollectionHashedReadWriteSet message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CollectionHashedReadWriteSet */ public static fromObject(object: { [k: string]: any }): rwset.CollectionHashedReadWriteSet; /** * Creates a plain object from a CollectionHashedReadWriteSet message. Also converts values to other types if specified. * @param message CollectionHashedReadWriteSet * @param [options] Conversion options * @returns Plain object */ public static toObject(message: rwset.CollectionHashedReadWriteSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CollectionHashedReadWriteSet to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for CollectionHashedReadWriteSet * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a TxPvtReadWriteSet. */ interface ITxPvtReadWriteSet { /** TxPvtReadWriteSet data_model */ data_model?: (rwset.TxReadWriteSet.DataModel|null); /** TxPvtReadWriteSet ns_pvt_rwset */ ns_pvt_rwset?: (rwset.INsPvtReadWriteSet[]|null); } /** Represents a TxPvtReadWriteSet. */ class TxPvtReadWriteSet implements ITxPvtReadWriteSet { /** * Constructs a new TxPvtReadWriteSet. * @param [properties] Properties to set */ constructor(properties?: rwset.ITxPvtReadWriteSet); /** TxPvtReadWriteSet data_model. */ public data_model: rwset.TxReadWriteSet.DataModel; /** TxPvtReadWriteSet ns_pvt_rwset. */ public ns_pvt_rwset: rwset.INsPvtReadWriteSet[]; /** * Creates a new TxPvtReadWriteSet instance using the specified properties. * @param [properties] Properties to set * @returns TxPvtReadWriteSet instance */ public static create(properties?: rwset.ITxPvtReadWriteSet): rwset.TxPvtReadWriteSet; /** * Encodes the specified TxPvtReadWriteSet message. Does not implicitly {@link rwset.TxPvtReadWriteSet.verify|verify} messages. * @param message TxPvtReadWriteSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: rwset.ITxPvtReadWriteSet, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified TxPvtReadWriteSet message, length delimited. Does not implicitly {@link rwset.TxPvtReadWriteSet.verify|verify} messages. * @param message TxPvtReadWriteSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: rwset.ITxPvtReadWriteSet, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a TxPvtReadWriteSet message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns TxPvtReadWriteSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): rwset.TxPvtReadWriteSet; /** * Decodes a TxPvtReadWriteSet message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns TxPvtReadWriteSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): rwset.TxPvtReadWriteSet; /** * Verifies a TxPvtReadWriteSet message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a TxPvtReadWriteSet message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns TxPvtReadWriteSet */ public static fromObject(object: { [k: string]: any }): rwset.TxPvtReadWriteSet; /** * Creates a plain object from a TxPvtReadWriteSet message. Also converts values to other types if specified. * @param message TxPvtReadWriteSet * @param [options] Conversion options * @returns Plain object */ public static toObject(message: rwset.TxPvtReadWriteSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this TxPvtReadWriteSet to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for TxPvtReadWriteSet * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NsPvtReadWriteSet. */ interface INsPvtReadWriteSet { /** NsPvtReadWriteSet namespace */ namespace?: (string|null); /** NsPvtReadWriteSet collection_pvt_rwset */ collection_pvt_rwset?: (rwset.ICollectionPvtReadWriteSet[]|null); } /** Represents a NsPvtReadWriteSet. */ class NsPvtReadWriteSet implements INsPvtReadWriteSet { /** * Constructs a new NsPvtReadWriteSet. * @param [properties] Properties to set */ constructor(properties?: rwset.INsPvtReadWriteSet); /** NsPvtReadWriteSet namespace. */ public namespace: string; /** NsPvtReadWriteSet collection_pvt_rwset. */ public collection_pvt_rwset: rwset.ICollectionPvtReadWriteSet[]; /** * Creates a new NsPvtReadWriteSet instance using the specified properties. * @param [properties] Properties to set * @returns NsPvtReadWriteSet instance */ public static create(properties?: rwset.INsPvtReadWriteSet): rwset.NsPvtReadWriteSet; /** * Encodes the specified NsPvtReadWriteSet message. Does not implicitly {@link rwset.NsPvtReadWriteSet.verify|verify} messages. * @param message NsPvtReadWriteSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: rwset.INsPvtReadWriteSet, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified NsPvtReadWriteSet message, length delimited. Does not implicitly {@link rwset.NsPvtReadWriteSet.verify|verify} messages. * @param message NsPvtReadWriteSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: rwset.INsPvtReadWriteSet, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a NsPvtReadWriteSet message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns NsPvtReadWriteSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): rwset.NsPvtReadWriteSet; /** * Decodes a NsPvtReadWriteSet message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns NsPvtReadWriteSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): rwset.NsPvtReadWriteSet; /** * Verifies a NsPvtReadWriteSet message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a NsPvtReadWriteSet message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns NsPvtReadWriteSet */ public static fromObject(object: { [k: string]: any }): rwset.NsPvtReadWriteSet; /** * Creates a plain object from a NsPvtReadWriteSet message. Also converts values to other types if specified. * @param message NsPvtReadWriteSet * @param [options] Conversion options * @returns Plain object */ public static toObject(message: rwset.NsPvtReadWriteSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this NsPvtReadWriteSet to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for NsPvtReadWriteSet * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CollectionPvtReadWriteSet. */ interface ICollectionPvtReadWriteSet { /** CollectionPvtReadWriteSet collection_name */ collection_name?: (string|null); /** CollectionPvtReadWriteSet rwset */ rwset?: (Uint8Array|null); } /** Represents a CollectionPvtReadWriteSet. */ class CollectionPvtReadWriteSet implements ICollectionPvtReadWriteSet { /** * Constructs a new CollectionPvtReadWriteSet. * @param [properties] Properties to set */ constructor(properties?: rwset.ICollectionPvtReadWriteSet); /** CollectionPvtReadWriteSet collection_name. */ public collection_name: string; /** CollectionPvtReadWriteSet rwset. */ public rwset: Uint8Array; /** * Creates a new CollectionPvtReadWriteSet instance using the specified properties. * @param [properties] Properties to set * @returns CollectionPvtReadWriteSet instance */ public static create(properties?: rwset.ICollectionPvtReadWriteSet): rwset.CollectionPvtReadWriteSet; /** * Encodes the specified CollectionPvtReadWriteSet message. Does not implicitly {@link rwset.CollectionPvtReadWriteSet.verify|verify} messages. * @param message CollectionPvtReadWriteSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: rwset.ICollectionPvtReadWriteSet, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CollectionPvtReadWriteSet message, length delimited. Does not implicitly {@link rwset.CollectionPvtReadWriteSet.verify|verify} messages. * @param message CollectionPvtReadWriteSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: rwset.ICollectionPvtReadWriteSet, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CollectionPvtReadWriteSet message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CollectionPvtReadWriteSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): rwset.CollectionPvtReadWriteSet; /** * Decodes a CollectionPvtReadWriteSet message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CollectionPvtReadWriteSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): rwset.CollectionPvtReadWriteSet; /** * Verifies a CollectionPvtReadWriteSet message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a CollectionPvtReadWriteSet message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CollectionPvtReadWriteSet */ public static fromObject(object: { [k: string]: any }): rwset.CollectionPvtReadWriteSet; /** * Creates a plain object from a CollectionPvtReadWriteSet message. Also converts values to other types if specified. * @param message CollectionPvtReadWriteSet * @param [options] Conversion options * @returns Plain object */ public static toObject(message: rwset.CollectionPvtReadWriteSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CollectionPvtReadWriteSet to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for CollectionPvtReadWriteSet * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } } /** Namespace protos. */ export namespace protos { /** Properties of a CollectionConfigPackage. */ interface ICollectionConfigPackage { /** CollectionConfigPackage config */ config?: (protos.ICollectionConfig[]|null); } /** Represents a CollectionConfigPackage. */ class CollectionConfigPackage implements ICollectionConfigPackage { /** * Constructs a new CollectionConfigPackage. * @param [properties] Properties to set */ constructor(properties?: protos.ICollectionConfigPackage); /** CollectionConfigPackage config. */ public config: protos.ICollectionConfig[]; /** * Creates a new CollectionConfigPackage instance using the specified properties. * @param [properties] Properties to set * @returns CollectionConfigPackage instance */ public static create(properties?: protos.ICollectionConfigPackage): protos.CollectionConfigPackage; /** * Encodes the specified CollectionConfigPackage message. Does not implicitly {@link protos.CollectionConfigPackage.verify|verify} messages. * @param message CollectionConfigPackage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: protos.ICollectionConfigPackage, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CollectionConfigPackage message, length delimited. Does not implicitly {@link protos.CollectionConfigPackage.verify|verify} messages. * @param message CollectionConfigPackage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: protos.ICollectionConfigPackage, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CollectionConfigPackage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CollectionConfigPackage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.CollectionConfigPackage; /** * Decodes a CollectionConfigPackage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CollectionConfigPackage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.CollectionConfigPackage; /** * Verifies a CollectionConfigPackage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a CollectionConfigPackage message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CollectionConfigPackage */ public static fromObject(object: { [k: string]: any }): protos.CollectionConfigPackage; /** * Creates a plain object from a CollectionConfigPackage message. Also converts values to other types if specified. * @param message CollectionConfigPackage * @param [options] Conversion options * @returns Plain object */ public static toObject(message: protos.CollectionConfigPackage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CollectionConfigPackage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for CollectionConfigPackage * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CollectionConfig. */ interface ICollectionConfig { /** CollectionConfig static_collection_config */ static_collection_config?: (protos.IStaticCollectionConfig|null); } /** Represents a CollectionConfig. */ class CollectionConfig implements ICollectionConfig { /** * Constructs a new CollectionConfig. * @param [properties] Properties to set */ constructor(properties?: protos.ICollectionConfig); /** CollectionConfig static_collection_config. */ public static_collection_config?: (protos.IStaticCollectionConfig|null); /** CollectionConfig payload. */ public payload?: "static_collection_config"; /** * Creates a new CollectionConfig instance using the specified properties. * @param [properties] Properties to set * @returns CollectionConfig instance */ public static create(properties?: protos.ICollectionConfig): protos.CollectionConfig; /** * Encodes the specified CollectionConfig message. Does not implicitly {@link protos.CollectionConfig.verify|verify} messages. * @param message CollectionConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: protos.ICollectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CollectionConfig message, length delimited. Does not implicitly {@link protos.CollectionConfig.verify|verify} messages. * @param message CollectionConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: protos.ICollectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CollectionConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CollectionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.CollectionConfig; /** * Decodes a CollectionConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CollectionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.CollectionConfig; /** * Verifies a CollectionConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a CollectionConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CollectionConfig */ public static fromObject(object: { [k: string]: any }): protos.CollectionConfig; /** * Creates a plain object from a CollectionConfig message. Also converts values to other types if specified. * @param message CollectionConfig * @param [options] Conversion options * @returns Plain object */ public static toObject(message: protos.CollectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CollectionConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for CollectionConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getType