class_docstr: Represents options for dataset threading.
  
  You can set the threading options of a dataset through the
  `threading` property of `tf.data.Options`; the property is
  an instance of `tf.data.ThreadingOptions`.
  
  ```python
  options = tf.data.Options()
  options.threading.private_threadpool_size = 10
  dataset = dataset.with_options(options)
  ```
class_docstr_tok: ["Represents","options","for","dataset","threading",".","You","can","set","the","threading","options","of","a","dataset","through","the","`","threading","`","property","of","`","tf.data.Options","`",";","the","property","is","an","instance","of","`","tf.data.ThreadingOptions","`",".","``","`","python","options","=","tf.data.Options","(",")","options.threading.private_threadpool_size","=","10","dataset","=","dataset.with_options","(","options",")","``","`"]
code: def _from_proto(self, pb):
      if pb.WhichOneof("optional_max_intra_op_parallelism") is not None:
          self.max_intra_op_parallelism = pb.max_intra_op_parallelism
      if pb.WhichOneof("optional_private_threadpool_size") is not None:
          self.private_threadpool_size = pb.private_threadpool_size
  
imports: import enum
  import platform
  from absl import logging
  from tensorflow.core.framework import dataset_options_pb2
  from tensorflow.core.framework import model_pb2
  from tensorflow.python.data.ops import test_mode
  from tensorflow.python.data.util import options
  from tensorflow.python.util import deprecation
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 2 for calling the ThreadingOptions obj's underlying member method code with example usage: obj._from_proto(pb) without return types