public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, timestamp_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getMdiIdBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, price_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, quantity_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, tickDirection_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, timestamp_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getMdiIdBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeDouble(3, price_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeDouble(4, quantity_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, tickDirection_); } getUnknownFields().writeTo(output); }
public com.activequant.messages.AQMessages.Tick buildPartial() { com.activequant.messages.AQMessages.Tick result = new com.activequant.messages.AQMessages.Tick(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.timestamp_ = timestamp_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.mdiId_ = mdiId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.price_ = price_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.quantity_ = quantity_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.tickDirection_ = tickDirection_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(com.activequant.messages.AQMessages.Tick other) { if (other == com.activequant.messages.AQMessages.Tick.getDefaultInstance()) return this; if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } if (other.hasMdiId()) { setMdiId(other.getMdiId()); } if (other.hasPrice()) { setPrice(other.getPrice()); } if (other.hasQuantity()) { setQuantity(other.getQuantity()); } if (other.hasTickDirection()) { setTickDirection(other.getTickDirection()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public com.activequant.messages.AQMessages.Tick getDefaultInstanceForType() { return com.activequant.messages.AQMessages.Tick.getDefaultInstance(); }
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.activequant.messages.AQMessages.Tick.getDescriptor(); }
public Tick demarshall(AQMessages.Tick tick) { Tick ret = new Tick(tick.getMdiId(), new TimeStamp(tick.getTimestamp()), tick.getPrice(), tick.getQuantity(), tick.getTickDirection()); return ret; }
public Builder clearMdiId() { bitField0_ = (bitField0_ & ~0x00000002); mdiId_ = getDefaultInstance().getMdiId(); onChanged(); return this; } void setMdiId(com.google.protobuf.ByteString value) {