@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, PrincipalPrivilegeSet struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetUserPrivileges()) {
        optionals.set(0);
      }
      if (struct.isSetGroupPrivileges()) {
        optionals.set(1);
      }
      if (struct.isSetRolePrivileges()) {
        optionals.set(2);
      }
      oprot.writeBitSet(optionals, 3);
      if (struct.isSetUserPrivileges()) {
        {
          oprot.writeI32(struct.userPrivileges.size());
          for (java.util.Map.Entry<java.lang.String, java.util.List<PrivilegeGrantInfo>> _iter147 : struct.userPrivileges.entrySet())
          {
            oprot.writeString(_iter147.getKey());
            {
              oprot.writeI32(_iter147.getValue().size());
              for (PrivilegeGrantInfo _iter148 : _iter147.getValue())
              {
                _iter148.write(oprot);
              }
            }
          }
        }
      }
      if (struct.isSetGroupPrivileges()) {
        {
          oprot.writeI32(struct.groupPrivileges.size());
          for (java.util.Map.Entry<java.lang.String, java.util.List<PrivilegeGrantInfo>> _iter149 : struct.groupPrivileges.entrySet())
          {
            oprot.writeString(_iter149.getKey());
            {
              oprot.writeI32(_iter149.getValue().size());
              for (PrivilegeGrantInfo _iter150 : _iter149.getValue())
              {
                _iter150.write(oprot);
              }
            }
          }
        }
      }
      if (struct.isSetRolePrivileges()) {
        {
          oprot.writeI32(struct.rolePrivileges.size());
          for (java.util.Map.Entry<java.lang.String, java.util.List<PrivilegeGrantInfo>> _iter151 : struct.rolePrivileges.entrySet())
          {
            oprot.writeString(_iter151.getKey());
            {
              oprot.writeI32(_iter151.getValue().size());
              for (PrivilegeGrantInfo _iter152 : _iter151.getValue())
              {
                _iter152.write(oprot);
              }
            }
          }
        }
      }
    }
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/PrincipalPrivilegeSet.java