code: def DeserializeMessage(self, response_type, data):
          
          try:
              message = encoding.JsonToMessage(response_type, data)
          except (exceptions.InvalidDataFromServerError,
                  messages.ValidationError, ValueError) as e:
              raise exceptions.InvalidDataFromServerError(
                  'Error decoding response "%s" as type %s: %s' % (
                      data, response_type.__name__, e))
          return message
docs: Deserialize the given data as method_config.response_type.