public Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); case TYPE: return getType(); case COMMENT: return getComment(); } throw new IllegalStateException(); }
public PluginOperationParamDef deepCopy() { return new PluginOperationParamDef(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof PluginOperationParamDef) return this.equals((PluginOperationParamDef)that); return false; }
public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; case TYPE: if (value == null) { unsetType(); } else { setType((PluginOperationDataType)value); } break; case COMMENT: if (value == null) { unsetComment(); } else { setComment((Comment)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 NAME: return isSetName(); case TYPE: return isSetType(); case COMMENT: return isSetComment(); } throw new IllegalStateException(); }
for (int _i26 = 0; _i26 < _list24.size; ++_i26) _elem25 = new PluginOperationParamDef(); _elem25.read(iprot); struct.paramDefs.add(_elem25);
public void write(org.apache.thrift.protocol.TProtocol oprot, PluginOperationParamDef struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd(); } if (struct.comment != null) { if (struct.isSetComment()) { oprot.writeFieldBegin(COMMENT_FIELD_DESC); struct.comment.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
if (isSetComment()) { if (!first) sb.append(", "); sb.append("comment:");
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); } }
/** * Performs a deep copy on <i>other</i>. */ public PluginOperationParamDef(PluginOperationParamDef other) { if (other.isSetName()) { this.name = other.name; } if (other.isSetType()) { this.type = other.type; } if (other.isSetComment()) { this.comment = new Comment(other.comment); } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; case TYPE: if (value == null) { unsetType(); } else { setType((PluginOperationDataType)value); } break; case COMMENT: if (value == null) { unsetComment(); } else { setComment((Comment)value); } break; } }
for (int _i34 = 0; _i34 < _list32.size; ++_i34) _elem33 = new PluginOperationParamDef(); _elem33.read(iprot); struct.paramDefs.add(_elem33);
public void write(org.apache.thrift.protocol.TProtocol oprot, PluginOperationParamDef struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd(); } if (struct.comment != null) { if (struct.isSetComment()) { oprot.writeFieldBegin(COMMENT_FIELD_DESC); struct.comment.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
if (isSetComment()) { if (!first) sb.append(", "); sb.append("comment:");
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 Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); case TYPE: return getType(); case COMMENT: return getComment(); } throw new IllegalStateException(); }
/** 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 NAME: return isSetName(); case TYPE: return isSetType(); case COMMENT: return isSetComment(); } throw new IllegalStateException(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, PluginOperation struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.pluginName = iprot.readString(); struct.setPluginNameIsSet(true); struct.operationName = iprot.readString(); struct.setOperationNameIsSet(true); { org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.paramDefs = new ArrayList<PluginOperationParamDef>(_list37.size); PluginOperationParamDef _elem38; for (int _i39 = 0; _i39 < _list37.size; ++_i39) { _elem38 = new PluginOperationParamDef(); _elem38.read(iprot); struct.paramDefs.add(_elem38); } } struct.setParamDefsIsSet(true); struct.returnDef = new PluginOperationReturnDef(); struct.returnDef.read(iprot); struct.setReturnDefIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.comment = new Comment(); struct.comment.read(iprot); struct.setCommentIsSet(true); } } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, PluginOperationParamDef struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.name); oprot.writeI32(struct.type.getValue()); BitSet optionals = new BitSet(); if (struct.isSetComment()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetComment()) { struct.comment.write(oprot); } }
public PluginOperationParamDef deepCopy() { return new PluginOperationParamDef(this); }