com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this;
/** * converts a position report to google protocol buffers. * * @param pe * @return */ public BaseMessage convert(PositionEvent pe) { // AQMessages.PositionReport l = AQMessages.PositionReport.newBuilder() .setEntryPrice(pe.getPrice()).setOpenDate("") .setQuantity(pe.getQuantity()) .setTradInstId(pe.getTradInstId()).build(); return wrap(BaseMessage.CommandType.POSITION_REPORT, AQMessages.PositionReport.cmd, l); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
private static Builder create() { return new Builder(); }
public final boolean isInitialized() { if (!hasOpenDate()) { return false; } if (!hasEntryPrice()) { return false; } if (!hasQuantity()) { return false; } if (!hasTradInstId()) { return false; } return true; }
private Builder() { maybeForceBuilderInitialization(); }
private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
public BaseMessage OrderCancelRejected(String mdiId, String entryDate, Double entryPrice, Double quantity) { AQMessages.PositionReport l = AQMessages.PositionReport.newBuilder() .setTradInstId(mdiId).setOpenDate(entryDate) .setEntryPrice(entryPrice).setQuantity(quantity).build(); return wrap(BaseMessage.CommandType.POSITION_REPORT, AQMessages.PositionReport.cmd, l); }
public BaseMessage buildPositionReport(String mdiId, String entryDate, Double entryPrice, Double quantity) { AQMessages.PositionReport l = AQMessages.PositionReport.newBuilder() .setTradInstId(mdiId).setOpenDate(entryDate) .setEntryPrice(entryPrice).setQuantity(quantity).build(); return wrap(BaseMessage.CommandType.POSITION_REPORT, AQMessages.PositionReport.cmd, l); }
public BaseMessage OrderCancelReplaceReq(String mdiId, String entryDate, Double entryPrice, Double quantity) { AQMessages.PositionReport l = AQMessages.PositionReport.newBuilder() .setTradInstId(mdiId).setOpenDate(entryDate) .setEntryPrice(entryPrice).setQuantity(quantity).build(); return wrap(BaseMessage.CommandType.POSITION_REPORT, AQMessages.PositionReport.cmd, l); }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends
private com.activequant.messages.AQMessages.PositionReport buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.activequant.messages.AQMessages.PositionReport result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; }
public com.activequant.messages.AQMessages.PositionReport build() { com.activequant.messages.AQMessages.PositionReport result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }