+
    i                     >   R t ^ RIt^ RIt^ RIHt ^ RIt^RIHt ^RIHt  ! R R]P                  ! RR4      ]P                  4      tR tR tR	R
.t]P                  ^ ,          ^8  d4   ]P                  ^,          ^8  d   ^RIHt ]P'                  R4       R# R# R# )z;Reference implementation for status mapping in gRPC Python.N)
status_pb2)GRPC_DETAILS_METADATA_KEY)code_to_grpc_status_codec                       ] tR t^tRtR# )_Status N)__name__
__module____qualname____firstlineno____static_attributes__r       i/Users/igloo/.openclaw/workspace/scratch/fb_ad_env/lib/python3.14/site-packages/grpc_status/rpc_status.pyr   r      s     	r   r   c                   V P                  4       f   R# V P                  4        F  w  rV\        8X  g   K  \        P                  P	                  V4      pV P                  4       P                  ^ ,          VP
                  8w  d6   \        R\        VP
                  4      : RV P                  4       : R24      hV P                  4       VP                  8w  d-   \        RVP                  : RV P                  4       : R24      hVu # 	  R# )a}  Returns a google.rpc.status.Status message corresponding to a given grpc.Call.

This is an EXPERIMENTAL API.

Args:
  call: A grpc.Call instance.

Returns:
  A google.rpc.status.Status message representing the status of the RPC.

Raises:
  ValueError: If the gRPC call's code or details are inconsistent with the
    status code and message inside of the google.rpc.status.Status.
NzCode in Status proto (z) doesn't match status code ()zMessage in Status proto (z ) doesn't match status details ()trailing_metadatar   r   Status
FromStringcodevalue
ValueErrorr   detailsmessage)callkeyr   rich_statuss   &   r   	from_callr   !   s     ',,.
++$++66u=Kyy{  #{'7'77 /0@0@A499;P  ||~!4!44 *22DLLND   / r   c                    \        \        V P                  4      V P                  \        V P                  4       33R7      # )aH  Convert a google.rpc.status.Status message to grpc.Status.

This is an EXPERIMENTAL API.

Args:
  status: a google.rpc.status.Status message representing the non-OK status
    to terminate the RPC with and communicate it to the client.

Returns:
  A grpc.Status instance representing the input google.rpc.status.Status message.
r   r   r   )r   r   r   r   r   SerializeToString)statuss   &r   	to_statusr!   C   s:     %fkk2&(@(@(BC
 r   r   r!   )_asyncaior   )__doc__collectionssys
google.rpcr   grpc_commonr   r   
namedtupler   r   r   r!   __all__version_info r"   r#   appendr   r   r   <module>r/      s    B  
 !  . -	9&NOKK	D, 
 A! 0 0 3q 8NN5 !9r   