public Object getFieldValue(_Fields field) { switch (field) { case COMMAND_LINE: return getCommandLine(); } throw new IllegalStateException(); }
@Override public int compareTo(executeCommand_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCommandLine()).compareTo(other.isSetCommandLine()); if (lastComparison != 0) { return lastComparison; } if (isSetCommandLine()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commandLine, other.commandLine); if (lastComparison != 0) { return lastComparison; } } return 0; }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
public void read(org.apache.thrift.protocol.TProtocol iprot, executeCommand_args 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: // COMMAND_LINE if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.commandLine = iprot.readString(); struct.setCommandLineIsSet(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(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); }
public executeCommand_args deepCopy() { return new executeCommand_args(this); }
public executeCommand_args getEmptyArgsInstance() { return new executeCommand_args(); }
public executeCommand_args getEmptyArgsInstance() { return new executeCommand_args(); }
public boolean equals(executeCommand_args that) { if (that == null) return false; boolean this_present_commandLine = true && this.isSetCommandLine(); boolean that_present_commandLine = true && that.isSetCommandLine(); if (this_present_commandLine || that_present_commandLine) { if (!(this_present_commandLine && that_present_commandLine)) return false; if (!this.commandLine.equals(that.commandLine)) return false; } return true; }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, executeCommand_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.commandLine = iprot.readString(); struct.setCommandLineIsSet(true); } } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_commandLine = true && (isSetCommandLine()); list.add(present_commandLine); if (present_commandLine) list.add(commandLine); return list.hashCode(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof executeCommand_args) return this.equals((executeCommand_args)that); return false; }
public void send_executeCommand(String commandLine) throws org.apache.thrift.TException { executeCommand_args args = new executeCommand_args(); args.setCommandLine(commandLine); sendBase("executeCommand", args); }
public void setFieldValue(_Fields field, Object value) { switch (field) { case COMMAND_LINE: if (value == null) { unsetCommandLine(); } else { setCommandLine((String)value); } break; } }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case COMMAND_LINE: return isSetCommandLine(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public executeCommand_args(executeCommand_args other) { if (other.isSetCommandLine()) { this.commandLine = other.commandLine; } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, executeCommand_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCommandLine()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetCommandLine()) { oprot.writeString(struct.commandLine); } }
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, executeCommand_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.commandLine != null) { oprot.writeFieldBegin(COMMAND_LINE_FIELD_DESC); oprot.writeString(struct.commandLine); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("executeCommand", org.apache.thrift.protocol.TMessageType.CALL, 0)); executeCommand_args args = new executeCommand_args(); args.setCommandLine(commandLine); args.write(prot); prot.writeMessageEnd(); }