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: Sets the value to be used as detail string upon RPC completion.
  
  This method need not be called by method implementations if they have
  no details to transmit.
  
  Args:
    details: A UTF-8-encodable string to be sent to the client upon
    termination of the RPC.
docstr_tok: ["Sets","the","value","to","be","used","as","detail","string","upon","RPC","completion",".","This","method","need","not","be","called","by","method","implementations","if","they","have","no","details","to","transmit",".","Args",":","details",":","A","UTF-8-encodable","string","to","be","sent","to","the","client","upon","termination","of","the","RPC","."]
code: def set_details(self, details: str):
      """Sets the value to be used as detail string upon RPC completion.
  
      This method need not be called by method implementations if they have
      no details to transmit.
  
      Args:
        details: A UTF-8-encodable string to be sent to the client upon
        termination of the RPC.
      """
      self._details = details
  
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 12 for calling the RayServegRPCContext obj's underlying member method code with example usage: obj.set_details(details) without return types