if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getTradInstIdBytes()); .computeBytesSize(2, getClOrdIdBytes()); .computeBytesSize(3, getOrgClOrdIdBytes()); .computeBytesSize(5, getTransactTimeBytes()); .computeBytesSize(19, getCommentBytes()); .computeInt32Size(20, resend_); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size;
} else if (bm.getType().equals(CommandType.NEW_ORDER)) { if (((AQMessages.NewOrder) bm .getExtension(AQMessages.NewOrder.cmd)).getResend() == 1) {
public com.activequant.messages.AQMessages.NewOrder buildPartial() { com.activequant.messages.AQMessages.NewOrder result = new com.activequant.messages.AQMessages.NewOrder(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
switch (newOrder.getOrdType()) { case 1: { slo.setOrderId(newOrder.getClOrdId()); slo.setTradInstId(newOrder.getTradInstId()); slo.setOrderSide(newOrder.getSide() == 1 ? OrderSide.BUY : OrderSide.SELL); slo.setQuantity(newOrder.getOrderQty()); slo.setOpenQuantity(newOrder.getOrderQty()); break; slo.setOrderId(newOrder.getClOrdId()); slo.setTradInstId(newOrder.getTradInstId()); slo.setOrderSide(newOrder.getSide() == 1 ? OrderSide.BUY : OrderSide.SELL); slo.setQuantity(newOrder.getOrderQty()); slo.setOpenQuantity(newOrder.getOrderQty()); ((LimitOrder) slo).setLimitPrice(newOrder.getPrice()); break; slo.setOrderId(newOrder.getClOrdId()); slo.setTradInstId(newOrder.getTradInstId()); slo.setOrderSide(newOrder.getSide() == 1 ? OrderSide.BUY : OrderSide.SELL); slo.setQuantity(newOrder.getOrderQty()); slo.setOpenQuantity(newOrder.getOrderQty()); ((StopOrder) slo).setStopPrice(newOrder.getPrice()); break;
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getTradInstIdBytes()); output.writeBytes(2, getClOrdIdBytes()); output.writeBytes(3, getOrgClOrdIdBytes()); output.writeBytes(5, getTransactTimeBytes()); output.writeBytes(19, getCommentBytes()); getUnknownFields().writeTo(output);
public Builder mergeFrom(com.activequant.messages.AQMessages.NewOrder other) { if (other == com.activequant.messages.AQMessages.NewOrder.getDefaultInstance()) return this; if (other.hasTradInstId()) { setTradInstId(other.getTradInstId()); if (other.hasClOrdId()) { setClOrdId(other.getClOrdId()); if (other.hasOrgClOrdId()) { setOrgClOrdId(other.getOrgClOrdId()); if (other.hasSide()) { setSide(other.getSide()); if (other.hasTransactTime()) { setTransactTime(other.getTransactTime()); if (other.hasOrderQty()) { setOrderQty(other.getOrderQty()); if (other.hasOrdType()) { setOrdType(other.getOrdType()); if (other.hasPrice()) { setPrice(other.getPrice()); if (other.hasTimeInForce()) { setTimeInForce(other.getTimeInForce()); if (other.hasComment()) {
public com.activequant.messages.AQMessages.NewOrder getDefaultInstanceForType() { return com.activequant.messages.AQMessages.NewOrder.getDefaultInstance(); }
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.activequant.messages.AQMessages.NewOrder.getDescriptor(); }
public Builder clearOrgClOrdId() { bitField0_ = (bitField0_ & ~0x00000004); orgClOrdId_ = getDefaultInstance().getOrgClOrdId(); onChanged(); return this; } void setOrgClOrdId(com.google.protobuf.ByteString value) {
public Builder clearClOrdId() { bitField0_ = (bitField0_ & ~0x00000002); clOrdId_ = getDefaultInstance().getClOrdId(); onChanged(); return this; } void setClOrdId(com.google.protobuf.ByteString value) {
public Builder clearComment() { bitField0_ = (bitField0_ & ~0x00000200); comment_ = getDefaultInstance().getComment(); onChanged(); return this; } void setComment(com.google.protobuf.ByteString value) {
public Builder clearTransactTime() { bitField0_ = (bitField0_ & ~0x00000010); transactTime_ = getDefaultInstance().getTransactTime(); onChanged(); return this; } void setTransactTime(com.google.protobuf.ByteString value) {
public Builder clearTradInstId() { bitField0_ = (bitField0_ & ~0x00000001); tradInstId_ = getDefaultInstance().getTradInstId(); onChanged(); return this; } void setTradInstId(com.google.protobuf.ByteString value) {