oprot.writeI32(struct.op.getValue()); oprot.writeFieldEnd();
/** * Gets the operation. * * @param type the type * @return the operation */ private Operation getOperation(ChangeType type) { Operation operation = null; if (type != null) { try { operation = Operation.valueOf(type.name()); } catch (IllegalArgumentException ex) { LOG.info("Unsupported change type. Check Operation and ChangeType enums.", ex); } } return operation; }
case 11: // OP if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.op = org.kaaproject.kaa.server.common.thrift.gen.operations.Operation.findByValue(iprot.readI32()); struct.setOpIsSet(true); } else {
if (!(this_present_op && that_present_op)) return false; if (!this.op.equals(that.op)) return false;
struct.op = org.kaaproject.kaa.server.common.thrift.gen.operations.Operation.findByValue(iprot.readI32()); struct.setOpIsSet(true);
list.add(present_op); if (present_op) list.add(op.getValue());
oprot.writeI32(struct.op.getValue());