def TryMerge(self, d):
    while d.avail() > 0:
      tt = d.getVarInt32()
      if tt == 8:
        self.set_is_available(d.getBoolean())
        continue
      if tt == 16:
        self.set_presence(d.getVarInt32())
        continue
      if tt == 24:
        self.set_valid(d.getBoolean())
        continue


      if (tt == 0): raise ProtocolBuffer.ProtocolBufferDecodeError
      d.skipData(tt)
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/xmpp/xmpp_service_pb.py/PresenceResponse.TryMerge/original