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

    Interface BoolRules

    BoolRules describes the rules applied to bool values. These rules may also be applied to the google.protobuf.BoolValue Well-Known-Type.

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

    Indexable

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

      BoolRules describes the rules applied to bool values. These rules may also be applied to the google.protobuf.BoolValue Well-Known-Type.

      • Uint8Array<ArrayBufferLike>
      • () => unknown
          • (): unknown
          • BoolRules describes the rules applied to bool values. These rules may also be applied to the google.protobuf.BoolValue Well-Known-Type.

            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.BoolRules"

    Contains the fully qualified protobuf type name.

    const?: boolean

    const requires the field value to exactly match the specified boolean value. If the field value doesn't match, an error message is generated.

    message MyBool {
    // value must equal true
    bool value = 1 [(buf.validate.field).bool.const = true];
    }
    example: boolean[]

    example specifies values that the field may have. These values SHOULD conform to other rules. example values will not impact validation but may be used as helpful guidance on how to populate the given field.

    message MyBool {
    bool value = 1 [
    (buf.validate.field).bool.example = 1,
    (buf.validate.field).bool.example = 2
    ];
    }