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

    Interface MessageDescriptor

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

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

    Creates a descriptor-shaped value with protobuf defaults.

    Type Declaration

      • (): Record<string, unknown>
      • Creates a descriptor-shaped value with protobuf defaults.

        Returns Record<string, unknown>

    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

    type?: string

    Contains the protobuf type name.

    unreflect?: (value: Record<string, unknown>) => unknown

    Restores a native runtime value after reflection.

    Type Declaration

      • (value: Record<string, unknown>): unknown
      • Restores a native runtime value after reflection.

        Parameters

        • value: Record<string, unknown>

        Returns unknown