@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventRequest struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      oprot.writeI64(struct.lastEvent);
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetMaxEvents()) {
        optionals.set(0);
      }
      if (struct.isSetEventTypeSkipList()) {
        optionals.set(1);
      }
      if (struct.isSetCatName()) {
        optionals.set(2);
      }
      if (struct.isSetDbName()) {
        optionals.set(3);
      }
      if (struct.isSetTableNames()) {
        optionals.set(4);
      }
      if (struct.isSetEventTypeList()) {
        optionals.set(5);
      }
      oprot.writeBitSet(optionals, 6);
      if (struct.isSetMaxEvents()) {
        oprot.writeI32(struct.maxEvents);
      }
      if (struct.isSetEventTypeSkipList()) {
        {
          oprot.writeI32(struct.eventTypeSkipList.size());
          for (java.lang.String _iter996 : struct.eventTypeSkipList)
          {
            oprot.writeString(_iter996);
          }
        }
      }
      if (struct.isSetCatName()) {
        oprot.writeString(struct.catName);
      }
      if (struct.isSetDbName()) {
        oprot.writeString(struct.dbName);
      }
      if (struct.isSetTableNames()) {
        {
          oprot.writeI32(struct.tableNames.size());
          for (java.lang.String _iter997 : struct.tableNames)
          {
            oprot.writeString(_iter997);
          }
        }
      }
      if (struct.isSetEventTypeList()) {
        {
          oprot.writeI32(struct.eventTypeList.size());
          for (java.lang.String _iter998 : struct.eventTypeList)
          {
            oprot.writeString(_iter998);
          }
        }
      }
    }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java