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

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.resourcePlanName != null) {
        oprot.writeFieldBegin(RESOURCE_PLAN_NAME_FIELD_DESC);
        oprot.writeString(struct.resourcePlanName);
        oprot.writeFieldEnd();
      }
      if (struct.triggerName != null) {
        oprot.writeFieldBegin(TRIGGER_NAME_FIELD_DESC);
        oprot.writeString(struct.triggerName);
        oprot.writeFieldEnd();
      }
      if (struct.triggerExpression != null) {
        if (struct.isSetTriggerExpression()) {
          oprot.writeFieldBegin(TRIGGER_EXPRESSION_FIELD_DESC);
          oprot.writeString(struct.triggerExpression);
          oprot.writeFieldEnd();
        }
      }
      if (struct.actionExpression != null) {
        if (struct.isSetActionExpression()) {
          oprot.writeFieldBegin(ACTION_EXPRESSION_FIELD_DESC);
          oprot.writeString(struct.actionExpression);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetIsInUnmanaged()) {
        oprot.writeFieldBegin(IS_IN_UNMANAGED_FIELD_DESC);
        oprot.writeBool(struct.isInUnmanaged);
        oprot.writeFieldEnd();
      }
      if (struct.ns != null) {
        if (struct.isSetNs()) {
          oprot.writeFieldBegin(NS_FIELD_DESC);
          oprot.writeString(struct.ns);
          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/WMTrigger.java