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

    Interface PredefinedRules

    PredefinedRules are custom rules that can be re-used with multiple fields.

    interface PredefinedRules {
        "[customJson]"?: () => unknown;
        "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>;
        $type: "buf.validate.PredefinedRules";
        cel: Rule[];
        [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined;
    }

    Indexable

    • [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined

      PredefinedRules are custom rules that can be re-used with multiple fields.

      • Uint8Array<ArrayBufferLike>
      • () => unknown
          • (): unknown
          • PredefinedRules are custom rules that can be re-used with multiple fields.

            Returns unknown

      • undefined
    Index
    "[customJson]"?: () => unknown

    Returns a safe value for JSON logs.

    Type Declaration

      • (): unknown
      • Returns a safe value for JSON logs.

        Returns unknown

    "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>

    Preserves protobuf fields that this SDK version does not recognize.

    $type: "buf.validate.PredefinedRules"

    Contains the fully qualified protobuf type name.

    cel: Rule[]

    cel is a repeated field used to represent a textual expression in the Common Expression Language (CEL) syntax. For more information, see our documentation.

    message MyMessage {
    // The field `value` must be greater than 42.
    optional int32 value = 1 [(buf.validate.predefined).cel = {
    id: "my_message.value",
    message: "value must be greater than 42",
    expression: "this > 42",
    }];
    }