class_docstr: A class used to store the configurations of a job.
  
  Examples:
      .. testcode::
          :hide:
  
          import ray
          ray.shutdown()
  
      .. testcode::
  
          import ray
          from ray.job_config import JobConfig
  
          ray.init(job_config=JobConfig(default_actor_lifetime="non_detached"))
  
  Args:
      jvm_options: The jvm options for java workers of the job.
      code_search_path: A list of directories or jar files that
          specify the search path for user code. This will be used as
          `CLASSPATH` in Java and `PYTHONPATH` in Python.
          See :ref:`Ray cross-language programming <cross_language>` for more details.
      runtime_env: A :ref:`runtime environment <runtime-environments>` dictionary.
      metadata: An opaque metadata dictionary.
      ray_namespace: A :ref:`namespace <namespaces-guide>`
          is a logical grouping of jobs and named actors.
      default_actor_lifetime: The default value of actor lifetime,
          can be "detached" or "non_detached".
          See :ref:`actor lifetimes <actor-lifetimes>` for more details.
class_docstr_tok: ["A","class","used","to","store","the","configurations","of","a","job",".","Examples",":","..","testcode",":",":",":","hide",":","import","ray","ray.shutdown","(",")","..","testcode",":",":","import","ray","from","ray.job_config","import","JobConfig","ray.init","(","job_config=JobConfig","(","default_actor_lifetime=","''","non_detached","''",")",")","Args",":","jvm_options",":","The","jvm","options","for","java","workers","of","the","job",".","code_search_path",":","A","list","of","directories","or","jar","files","that","specify","the","search","path","for","user","code",".","This","will","be","used","as","`","CLASSPATH","`","in","Java","and","`","PYTHONPATH","`","in","Python",".","See",":","ref",":","`","Ray","cross-language","programming","<","cross_language",">","`","for","more","details",".","runtime_env",":","A",":","ref",":","`","runtime","environment","<","runtime-environments",">","`","dictionary",".","metadata",":","An","opaque","metadata","dictionary",".","ray_namespace",":","A",":","ref",":","`","namespace","<","namespaces-guide",">","`","is","a","logical","grouping","of","jobs","and","named","actors",".","default_actor_lifetime",":","The","default","value","of","actor","lifetime",",","can","be","``","detached","''","or","``","non_detached","''",".","See",":","ref",":","`","actor","lifetimes","<","actor-lifetimes",">","`","for","more","details","."]
docstr: Serialize the struct into protobuf string
docstr_tok: ["Serialize","the","struct","into","protobuf","string"]
code: def _serialize(self) -> str:
      """Serialize the struct into protobuf string"""
      return self._get_proto_job_config().SerializeToString()
  
file_path: ray/python/ray/job_config.py
imports: import uuid
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 3 for calling the JobConfig obj's underlying member method code with example usage: obj._serialize() and returns: self