public Object getFieldValue(_Fields field) { switch (field) { case TYPE: return getType(); case COMMENT: return getComment(); } throw new IllegalStateException(); }
public PluginOperationReturnDef deepCopy() { return new PluginOperationReturnDef(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof PluginOperationReturnDef) return this.equals((PluginOperationReturnDef)that); return false; }
public void setFieldValue(_Fields field, Object value) { switch (field) { 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 TYPE: return isSetType(); case COMMENT: return isSetComment(); } throw new IllegalStateException(); }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.type = com.linecorp.centraldogma.internal.thrift.PluginOperationDataType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.comment = new Comment(); struct.comment.read(iprot); struct.setCommentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
case 4: // RETURN_DEF if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.returnDef = new PluginOperationReturnDef(); struct.returnDef.read(iprot); struct.setReturnDefIsSet(true); } else {
@Override public void read(org.apache.thrift.protocol.TProtocol prot, PluginOperationReturnDef struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.type = com.linecorp.centraldogma.internal.thrift.PluginOperationDataType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.comment = new Comment(); struct.comment.read(iprot); struct.setCommentIsSet(true); } } }
public void write(org.apache.thrift.protocol.TProtocol oprot, PluginOperationReturnDef struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); 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(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("PluginOperationReturnDef("); boolean first = true; sb.append("type:"); if (this.type == null) { sb.append("null"); } else { sb.append(this.type); } first = false; if (isSetComment()) { if (!first) sb.append(", "); sb.append("comment:"); if (this.comment == null) { sb.append("null"); } else { sb.append(this.comment); } first = false; } sb.append(")"); return sb.toString(); }
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); } }
/** 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 TYPE: return isSetType(); case COMMENT: return isSetComment(); } throw new IllegalStateException(); }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TYPE: if (value == null) { unsetType(); } else { setType((PluginOperationDataType)value); } break; case COMMENT: if (value == null) { unsetComment(); } else { setComment((Comment)value); } break; } }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.type = com.linecorp.centraldogma.internal.thrift.PluginOperationDataType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.comment = new Comment(); struct.comment.read(iprot); struct.setCommentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
case 4: // RETURN_DEF if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.returnDef = new PluginOperationReturnDef(); struct.returnDef.read(iprot); struct.setReturnDefIsSet(true); } else {
@Override public void read(org.apache.thrift.protocol.TProtocol prot, PluginOperationReturnDef struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.type = com.linecorp.centraldogma.internal.thrift.PluginOperationDataType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.comment = new Comment(); struct.comment.read(iprot); struct.setCommentIsSet(true); } } }
public void write(org.apache.thrift.protocol.TProtocol oprot, PluginOperationReturnDef struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); 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(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("PluginOperationReturnDef("); boolean first = true; sb.append("type:"); if (this.type == null) { sb.append("null"); } else { sb.append(this.type); } first = false; if (isSetComment()) { if (!first) sb.append(", "); sb.append("comment:"); if (this.comment == null) { sb.append("null"); } else { sb.append(this.comment); } first = false; } sb.append(")"); return sb.toString(); }
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 TYPE: return getType(); case COMMENT: return getComment(); } throw new IllegalStateException(); }