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

    Interface DoubleRules

    DoubleRules describes the rules applied to double values. These rules may also be applied to the google.protobuf.DoubleValue Well-Known-Type.

    interface DoubleRules {
        "[customJson]"?: () => unknown;
        "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>;
        $type: "buf.validate.DoubleRules";
        const?: number;
        example: number[];
        finite?: boolean;
        greaterThan?: { $case: "gt"; gt: number } | { $case: "gte"; gte: number };
        in: number[];
        lessThan?: { $case: "lt"; lt: number } | { $case: "lte"; lte: number };
        notIn: number[];
        [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined;
    }

    Indexable

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

      DoubleRules describes the rules applied to double values. These rules may also be applied to the google.protobuf.DoubleValue Well-Known-Type.

      • Uint8Array<ArrayBufferLike>
      • () => unknown
          • (): unknown
          • DoubleRules describes the rules applied to double values. These rules may also be applied to the google.protobuf.DoubleValue 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.DoubleRules"

    Contains the fully qualified protobuf type name.

    const?: number

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

    message MyDouble {
    // value must equal 42.0
    double value = 1 [(buf.validate.field).double.const = 42.0];
    }
    example: number[]

    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 MyDouble {
    double value = 1 [
    (buf.validate.field).double.example = 1.0,
    (buf.validate.field).double.example = inf
    ];
    }
    finite?: boolean

    finite requires the field value to be finite. If the field value is infinite or NaN, an error message is generated.

    greaterThan?: { $case: "gt"; gt: number } | { $case: "gte"; gte: number }

    Contains the selected value for the greater_than protobuf oneof.

    Type Declaration

    • { $case: "gt"; gt: number }
      • $case: "gt"

        Contains the case.

      • gt: number

        Contains the gt.

    • { $case: "gte"; gte: number }
      • $case: "gte"

        Contains the case.

      • gte: number

        Contains the gte.

    in: number[]

    in requires the field value to be equal to one of the specified values. If the field value isn't one of the specified values, an error message is generated.

    message MyDouble {
    // value must be in list [1.0, 2.0, 3.0]
    double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
    }
    lessThan?: { $case: "lt"; lt: number } | { $case: "lte"; lte: number }

    Contains the selected value for the less_than protobuf oneof.

    Type Declaration

    • { $case: "lt"; lt: number }
      • $case: "lt"

        Contains the case.

      • lt: number

        Contains the lt.

    • { $case: "lte"; lte: number }
      • $case: "lte"

        Contains the case.

      • lte: number

        Contains the lte.

    notIn: number[]

    not_in requires the field value to not be equal to any of the specified values. If the field value is one of the specified values, an error message is generated.

    message MyDouble {
    // value must not be in list [1.0, 2.0, 3.0]
    double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
    }