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

    Interface Int64Rules

    Int64Rules describes the rules applied to int64 values. These rules may also be applied to the google.protobuf.Int64Value Well-Known-Type.

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

    Indexable

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

      Int64Rules describes the rules applied to int64 values. These rules may also be applied to the google.protobuf.Int64Value Well-Known-Type.

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

    Contains the fully qualified protobuf type name.

    const?: Long

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

    message MyInt64 {
    // value must equal 42
    int64 value = 1 [(buf.validate.field).int64.const = 42];
    }
    example: Long[]

    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 MyInt64 {
    int64 value = 1 [
    (buf.validate.field).int64.example = 1,
    (buf.validate.field).int64.example = -10
    ];
    }
    greaterThan?: { $case: "gt"; gt: Long } | { $case: "gte"; gte: Long }

    Contains the selected value for the greater_than protobuf oneof.

    Type Declaration

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

        Contains the case.

      • gt: Long

        Contains the gt.

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

        Contains the case.

      • gte: Long

        Contains the gte.

    in: Long[]

    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 MyInt64 {
    // value must be in list [1, 2, 3]
    int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
    }
    lessThan?: { $case: "lt"; lt: Long } | { $case: "lte"; lte: Long }

    Contains the selected value for the less_than protobuf oneof.

    Type Declaration

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

        Contains the case.

      • lt: Long

        Contains the lt.

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

        Contains the case.

      • lte: Long

        Contains the lte.

    notIn: Long[]

    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 MyInt64 {
    // value must not be in list [1, 2, 3]
    int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
    }