class_docstr: Wrapper class for interacting with per-group state data in `applyInPandasWithState`.
docstr: Set the timeout timestamp for this key as milliseconds in epoch time.
  This timestamp cannot be older than the current watermark.
  Event time timeout must be enabled.
docstr_tok: ["Set","the","timeout","timestamp","for","this","key","as","milliseconds","in","epoch","time",".","This","timestamp","can","not","be","older","than","the","current","watermark",".","Event","time","timeout","must","be","enabled","."]
code: def setTimeoutTimestamp(self, timestampMs: int) -> None:
      """
      Set the timeout timestamp for this key as milliseconds in epoch time.
      This timestamp cannot be older than the current watermark.
      Event time timeout must be enabled.
      """
      if self._timeout_conf != GroupStateTimeout.EventTimeTimeout:
          raise PySparkRuntimeError(
              error_class="CANNOT_WITHOUT",
              message_parameters={
                  "condition1": "set timeout duration",
                  "condition2": "enabling processing time timeout in applyInPandasWithState",
              },
          )
  
      if isinstance(timestampMs, datetime.datetime):
          timestampMs = DateType().toInternal(timestampMs)
  
      if timestampMs <= 0:
          raise PySparkValueError(
              error_class="VALUE_NOT_POSITIVE",
              message_parameters={
                  "arg_name": "timestampMs",
                  "arg_type": type(timestampMs).__name__,
              },
          )
  
      if (
          self._event_time_watermark_ms != GroupState.NO_TIMESTAMP
          and timestampMs < self._event_time_watermark_ms
      ):
          raise PySparkValueError(
              error_class="INVALID_TIMEOUT_TIMESTAMP",
              message_parameters={
                  "timestamp": str(timestampMs),
                  "watermark": str(self._event_time_watermark_ms),
              },
          )
  
      self._timeout_timestamp = timestampMs
  
imports: import datetime
  import json
  from typing import Tuple, Optional
  from pyspark.sql.types import DateType, Row, StructType
  from pyspark.sql.utils import has_numpy
  from pyspark.errors import PySparkTypeError, PySparkValueError, PySparkRuntimeError
label_desc: Use image node_id 10 for calling the GroupState obj's underlying member method code with example usage: obj.setTimeoutTimestamp(timestampMs) without return types