@nebius/js-sdk - v0.1.4
    Preparing search index...

    Interface ExtensionDescriptor

    interface ExtensionDescriptor {
        decode?: (message: any, reader: BinaryReader, tag: number) => boolean;
        encode?: (message: any, writer: BinaryWriter) => void;
        enumType?: string;
        extendee: string;
        fieldNo: number;
        fromJSON?: (message: any, object: any) => void;
        fullName: string;
        kind:
            | "message"
            | "scalar"
            | "enum"
            | "repeated_scalar"
            | "repeated_enum"
            | "repeated_message";
        messageType?: string;
        name: string;
        scalarType?: number;
        toJSON?: (message: any, obj: any, use: "json" | "pb") => void;
    }
    Index

    Properties

    decode?: (message: any, reader: BinaryReader, tag: number) => boolean

    Generated decoder for this extension field. Implementation receives the raw tag already read. It must verify the tag/field number matches, decode the value, assign it to the message, and return true if it consumed the field, false otherwise.

    encode?: (message: any, writer: BinaryWriter) => void

    Generated encoder for this extension field. Implementation is responsible for checking field presence on the provided message and writing the field if set.

    enumType?: string
    extendee: string
    fieldNo: number
    fromJSON?: (message: any, object: any) => void

    JSON deserializer hook for this extension. Invoked by generated *Options.fromJSON implementations after the core fields are populated, allowing the extension value (if present) to be assigned onto the target message instance. Implementations MUST NOT throw – they should simply no-op if the JSON value is absent or invalid.

    fullName: string
    kind:
        | "message"
        | "scalar"
        | "enum"
        | "repeated_scalar"
        | "repeated_enum"
        | "repeated_message"
    messageType?: string
    name: string
    scalarType?: number
    toJSON?: (message: any, obj: any, use: "json" | "pb") => void

    JSON serializer hook for this extension. Invoked by generated *Options.toJSON implementations after core fields are emitted. Responsible for adding the JSON representation (if present) onto the provided output object.