docstr: 0 for CreateTime; 1 for LogAppendTime; None if unsupported.
  
  Value is determined by broker; produced messages should always set to 0
  Requires Kafka >= 0.10 / message version >= 1
docstr_tok: ["0","for","CreateTime",";","1","for","LogAppendTime",";","None","if","unsupported",".","Value","is","determined","by","broker",";","produced","messages","should","always","set","to","0","Requires","Kafka",">","=","0.10","\/","message","version",">","=","1"]
code: def timestamp_type(self):
      """0 for CreateTime; 1 for LogAppendTime; None if unsupported.
  
      Value is determined by broker; produced messages should always set to 0
      Requires Kafka >= 0.10 / message version >= 1
      """
      if self.magic == 0:
          return None
      elif self.attributes & self.TIMESTAMP_TYPE_MASK:
          return 1
      else:
          return 0
  
imports: from __future__ import absolute_import
  import io
  import time
  from kafka.codec import has_gzip, has_snappy, has_lz4, has_zstd, gzip_decode, snappy_decode, zstd_decode, lz4_decode, lz4_decode_old_kafka
  from kafka.protocol.frame import KafkaBytes
  from kafka.protocol.struct import Struct
  from kafka.protocol.types import Int8, Int32, Int64, Bytes, Schema, AbstractType
  from kafka.util import crc32, WeakMethod
label_desc: Use image node_id 2 for calling the Message obj's underlying member method code with example usage: obj.timestamp_type() and returns: None, int, int