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

    Interface MessageDescriptor

    Describes the fields and optional value adapter for one generated message.

    interface MessageDescriptor {
        fields: Record<string, MessageFieldDescriptor>;
        reflect?: (value: unknown) => Record<string, unknown> | undefined;
    }
    Index
    fields: Record<string, MessageFieldDescriptor>

    Maps generated TypeScript field names to their descriptors.

    reflect?: (value: unknown) => Record<string, unknown> | undefined

    Converts a runtime value to its descriptor-shaped object.

    Well-known types use this adapter because their TypeScript values do not have the same shape as their protobuf fields.

    Type Declaration

      • (value: unknown): Record<string, unknown> | undefined
      • Converts a runtime value to its descriptor-shaped object.

        Well-known types use this adapter because their TypeScript values do not have the same shape as their protobuf fields.

        Parameters

        • value: unknown

        Returns Record<string, unknown> | undefined