public void write(org.apache.thrift.protocol.TProtocol oprot, LockRequest struct) throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.component != null) {
        oprot.writeFieldBegin(COMPONENT_FIELD_DESC);
        {
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.component.size()));
          for (LockComponent _iter895 : struct.component)
          {
            _iter895.write(oprot);
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      if (struct.isSetTxnid()) {
        oprot.writeFieldBegin(TXNID_FIELD_DESC);
        oprot.writeI64(struct.txnid);
        oprot.writeFieldEnd();
      }
      if (struct.user != null) {
        oprot.writeFieldBegin(USER_FIELD_DESC);
        oprot.writeString(struct.user);
        oprot.writeFieldEnd();
      }
      if (struct.hostname != null) {
        oprot.writeFieldBegin(HOSTNAME_FIELD_DESC);
        oprot.writeString(struct.hostname);
        oprot.writeFieldEnd();
      }
      if (struct.agentInfo != null) {
        if (struct.isSetAgentInfo()) {
          oprot.writeFieldBegin(AGENT_INFO_FIELD_DESC);
          oprot.writeString(struct.agentInfo);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetZeroWaitReadEnabled()) {
        oprot.writeFieldBegin(ZERO_WAIT_READ_ENABLED_FIELD_DESC);
        oprot.writeBool(struct.zeroWaitReadEnabled);
        oprot.writeFieldEnd();
      }
      if (struct.isSetExclusiveCTAS()) {
        oprot.writeFieldBegin(EXCLUSIVE_CTAS_FIELD_DESC);
        oprot.writeBool(struct.exclusiveCTAS);
        oprot.writeFieldEnd();
      }
      if (struct.isSetLocklessReadsEnabled()) {
        oprot.writeFieldBegin(LOCKLESS_READS_ENABLED_FIELD_DESC);
        oprot.writeBool(struct.locklessReadsEnabled);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }
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/LockRequest.java