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

    Interface DurationRules

    DurationRules describe the rules applied exclusively to the google.protobuf.Duration well-known type.

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

    Indexable

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

      DurationRules describe the rules applied exclusively to the google.protobuf.Duration well-known type.

      • Uint8Array<ArrayBufferLike>
      • () => unknown
          • (): unknown
          • DurationRules describe the rules applied exclusively to the google.protobuf.Duration 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.DurationRules"

    Contains the fully qualified protobuf type name.

    const?: Duration

    const dictates that the field must match the specified value of the google.protobuf.Duration type exactly. If the field's value deviates from the specified value, an error message will be generated.

    message MyDuration {
    // value must equal 5s
    google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
    }
    example: Duration[]

    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 MyDuration {
    google.protobuf.Duration value = 1 [
    (buf.validate.field).duration.example = { seconds: 1 },
    (buf.validate.field).duration.example = { seconds: 2 },
    ];
    }
    greaterThan?: { $case: "gt"; gt: Duration } | { $case: "gte"; gte: Duration }

    Contains the selected value for the greater_than protobuf oneof.

    Type Declaration

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

        Contains the case.

      • gt: Duration

        Contains the gt.

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

        Contains the case.

      • gte: Duration

        Contains the gte.

    in: Duration[]

    in asserts that the field must be equal to one of the specified values of the google.protobuf.Duration type. If the field's value doesn't correspond to any of the specified values, an error message will be generated.

    message MyDuration {
    // value must be in list [1s, 2s, 3s]
    google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
    }
    lessThan?: { $case: "lt"; lt: Duration } | { $case: "lte"; lte: Duration }

    Contains the selected value for the less_than protobuf oneof.

    Type Declaration

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

        Contains the case.

      • lt: Duration

        Contains the lt.

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

        Contains the case.

      • lte: Duration

        Contains the lte.

    notIn: Duration[]

    not_in denotes that the field must not be equal to any of the specified values of the google.protobuf.Duration type. If the field's value matches any of these values, an error message will be generated.

    message MyDuration {
    // value must not be in list [1s, 2s, 3s]
    google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
    }