def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def grpc_channel(self) -> grpc.Channel:
        """Return the channel designed to connect to this service.
        """
        return self._grpc_channel