示例#1
0
  def __init__(self, server_address: str):
    """Constructor of Client.

    Args:
      server_address: Address to the Reverb ReverbService.
    """
    self._server_address = server_address
    self._client = pybind.Client(server_address)
    self._signature_cache = {}
示例#2
0
    def __init__(self, server_address: str, client: pybind.Client = None):
        """Constructor of Client.

    Args:
      server_address: Address to the Reverb ReverbService.
      client: Optional pre-existing Client. For internal use only.
    """
        self._server_address = server_address
        self._client = client if client else pybind.Client(server_address)