code: def to_json(self):
      
  
      params = dict(self.__params)  # Shallow copy.
      if self._PROTOTYPE_REQUEST_PARAM in params:
        prototype_request = params[self._PROTOTYPE_REQUEST_PARAM]
        params[self._PROTOTYPE_REQUEST_PARAM] = prototype_request.Encode()
      if self._OFFSET_PARAM in params:
        params[self._OFFSET_PARAM] = base64.b64encode(params[self._OFFSET_PARAM])
      return params
docs: Returns an input shard state for the remaining inputs.
  
      Returns:
        A JSON serializable version of the remaining input to read.