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

    Interface TimestampRules

    TimestampRules describe the rules applied exclusively to the google.protobuf.Timestamp well-known type.

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

    Indexable

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

      TimestampRules describe the rules applied exclusively to the google.protobuf.Timestamp well-known type.

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

    Contains the fully qualified protobuf type name.

    const?: Dayjs

    const dictates that this field, of the google.protobuf.Timestamp type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.

    message MyTimestamp {
    // value must equal 2023-05-03T10:00:00Z
    google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
    }
    example: Dayjs[]

    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 MyTimestamp {
    google.protobuf.Timestamp value = 1 [
    (buf.validate.field).timestamp.example = { seconds: 1672444800 },
    (buf.validate.field).timestamp.example = { seconds: 1672531200 },
    ];
    }
    greaterThan?:
        | { $case: "gt"; gt: Dayjs }
        | { $case: "gte"; gte: Dayjs }
        | { $case: "gtNow"; gtNow: boolean }

    Contains the selected value for the greater_than protobuf oneof.

    Type Declaration

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

        Contains the case.

      • gt: Dayjs

        Contains the gt.

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

        Contains the case.

      • gte: Dayjs

        Contains the gte.

    • { $case: "gtNow"; gtNow: boolean }
      • $case: "gtNow"

        Contains the case.

      • gtNow: boolean

        Contains the gt now.

    lessThan?:
        | { $case: "lt"; lt: Dayjs }
        | { $case: "lte"; lte: Dayjs }
        | { $case: "ltNow"; ltNow: boolean }

    Contains the selected value for the less_than protobuf oneof.

    Type Declaration

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

        Contains the case.

      • lt: Dayjs

        Contains the lt.

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

        Contains the case.

      • lte: Dayjs

        Contains the lte.

    • { $case: "ltNow"; ltNow: boolean }
      • $case: "ltNow"

        Contains the case.

      • ltNow: boolean

        Contains the lt now.

    within?: Duration

    within specifies that this field, of the google.protobuf.Timestamp type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.

    message MyTimestamp {
    // value must be within 1 hour of now
    google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
    }