class_docstr: Context manager to set and get gRPC context.
  
  This class implements most of the methods from ServicerContext
  (see: https://grpc.github.io/grpc/python/grpc.html#grpc.ServicerContext). It's
  serializable and can be passed with the request to be used on the deployment.
class_docstr_tok: ["Context","manager","to","set","and","get","gRPC","context",".","This","class","implements","most","of","the","methods","from","ServicerContext","(","see",":","https",":","\/\/grpc.github.io\/grpc\/python\/grpc.html","#","grpc.ServicerContext",")",".","It's","serializable","and","can","be","passed","with","the","request","to","be","used","on","the","deployment","."]
docstr: Set the compression algorithm to be used for the entire call.
  
  Args:
    compression: An element of grpc.compression, e.g.
      grpc.compression.Gzip.
docstr_tok: ["Set","the","compression","algorithm","to","be","used","for","the","entire","call",".","Args",":","compression",":","An","element","of","grpc.compression",",","e.g",".","grpc.compression.Gzip","."]
code: def set_compression(self, compression: grpc.Compression):
      """Set the compression algorithm to be used for the entire call.
  
      Args:
        compression: An element of grpc.compression, e.g.
          grpc.compression.Gzip.
      """
      self._compression = compression
  
file_path: ray/python/ray/serve/grpc_util.py
imports: from typing import Any, Dict, List, Optional, Tuple
  import grpc
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 11 for calling the RayServegRPCContext obj's underlying member method code with example usage: obj.set_compression(compression) without return types