public void read(org.apache.thrift.protocol.TProtocol iprot, PrincipalPrivilegeSet struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TField schemeField;
      iprot.readStructBegin();
      while (true)
      {
        schemeField = iprot.readFieldBegin();
        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
          break;
        }
        switch (schemeField.id) {
          case 1: // USER_PRIVILEGES
            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
              {
                org.apache.thrift.protocol.TMap _map120 = iprot.readMapBegin();
                struct.userPrivileges = new java.util.HashMap<java.lang.String,java.util.List<PrivilegeGrantInfo>>(2*_map120.size);
                @org.apache.thrift.annotation.Nullable java.lang.String _key121;
                @org.apache.thrift.annotation.Nullable java.util.List<PrivilegeGrantInfo> _val122;
                for (int _i123 = 0; _i123 < _map120.size; ++_i123)
                {
                  _key121 = iprot.readString();
                  {
                    org.apache.thrift.protocol.TList _list124 = iprot.readListBegin();
                    _val122 = new java.util.ArrayList<PrivilegeGrantInfo>(_list124.size);
                    @org.apache.thrift.annotation.Nullable PrivilegeGrantInfo _elem125;
                    for (int _i126 = 0; _i126 < _list124.size; ++_i126)
                    {
                      _elem125 = new PrivilegeGrantInfo();
                      _elem125.read(iprot);
                      _val122.add(_elem125);
                    }
                    iprot.readListEnd();
                  }
                  struct.userPrivileges.put(_key121, _val122);
                }
                iprot.readMapEnd();
              }
              struct.setUserPrivilegesIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 2: // GROUP_PRIVILEGES
            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
              {
                org.apache.thrift.protocol.TMap _map127 = iprot.readMapBegin();
                struct.groupPrivileges = new java.util.HashMap<java.lang.String,java.util.List<PrivilegeGrantInfo>>(2*_map127.size);
                @org.apache.thrift.annotation.Nullable java.lang.String _key128;
                @org.apache.thrift.annotation.Nullable java.util.List<PrivilegeGrantInfo> _val129;
                for (int _i130 = 0; _i130 < _map127.size; ++_i130)
                {
                  _key128 = iprot.readString();
                  {
                    org.apache.thrift.protocol.TList _list131 = iprot.readListBegin();
                    _val129 = new java.util.ArrayList<PrivilegeGrantInfo>(_list131.size);
                    @org.apache.thrift.annotation.Nullable PrivilegeGrantInfo _elem132;
                    for (int _i133 = 0; _i133 < _list131.size; ++_i133)
                    {
                      _elem132 = new PrivilegeGrantInfo();
                      _elem132.read(iprot);
                      _val129.add(_elem132);
                    }
                    iprot.readListEnd();
                  }
                  struct.groupPrivileges.put(_key128, _val129);
                }
                iprot.readMapEnd();
              }
              struct.setGroupPrivilegesIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 3: // ROLE_PRIVILEGES
            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
              {
                org.apache.thrift.protocol.TMap _map134 = iprot.readMapBegin();
                struct.rolePrivileges = new java.util.HashMap<java.lang.String,java.util.List<PrivilegeGrantInfo>>(2*_map134.size);
                @org.apache.thrift.annotation.Nullable java.lang.String _key135;
                @org.apache.thrift.annotation.Nullable java.util.List<PrivilegeGrantInfo> _val136;
                for (int _i137 = 0; _i137 < _map134.size; ++_i137)
                {
                  _key135 = iprot.readString();
                  {
                    org.apache.thrift.protocol.TList _list138 = iprot.readListBegin();
                    _val136 = new java.util.ArrayList<PrivilegeGrantInfo>(_list138.size);
                    @org.apache.thrift.annotation.Nullable PrivilegeGrantInfo _elem139;
                    for (int _i140 = 0; _i140 < _list138.size; ++_i140)
                    {
                      _elem139 = new PrivilegeGrantInfo();
                      _elem139.read(iprot);
                      _val136.add(_elem139);
                    }
                    iprot.readListEnd();
                  }
                  struct.rolePrivileges.put(_key135, _val136);
                }
                iprot.readMapEnd();
              }
              struct.setRolePrivilegesIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          default:
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
        }
        iprot.readFieldEnd();
      }
      iprot.readStructEnd();
      struct.validate();
    }
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