All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openfeed.Trade Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: openfeed.proto
// Protobuf Java Version: 4.28.3

package org.openfeed;

/**
 * 
 * / A live trade.  When received, update the "last" field
 * 
* * Protobuf type {@code org.openfeed.Trade} */ public final class Trade extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.openfeed.Trade) TradeOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", Trade.class.getName()); } // Use Trade.newBuilder() to construct. private Trade(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Trade() { originatorId_ = com.google.protobuf.ByteString.EMPTY; tradeId_ = com.google.protobuf.ByteString.EMPTY; side_ = 0; buyerId_ = com.google.protobuf.ByteString.EMPTY; sellerId_ = com.google.protobuf.ByteString.EMPTY; settlementTerms_ = 0; crossType_ = 0; saleCondition_ = com.google.protobuf.ByteString.EMPTY; currency_ = ""; session_ = ""; consolidatedPriceIndicator_ = ""; indexShortName_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_Trade_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_Trade_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.Trade.class, org.openfeed.Trade.Builder.class); } public static final int ORIGINATORID_FIELD_NUMBER = 8; private com.google.protobuf.ByteString originatorId_ = com.google.protobuf.ByteString.EMPTY; /** *
   * Market participant/originator
   * 
* * bytes originatorId = 8; * @return The originatorId. */ @java.lang.Override public com.google.protobuf.ByteString getOriginatorId() { return originatorId_; } public static final int TRANSACTIONTIME_FIELD_NUMBER = 9; private long transactionTime_ = 0L; /** *
   * UTC Timestamp, nano seconds since Unix epoch
   * 
* * sint64 transactionTime = 9; * @return The transactionTime. */ @java.lang.Override public long getTransactionTime() { return transactionTime_; } public static final int PRICE_FIELD_NUMBER = 10; private long price_ = 0L; /** *
   * / Divide by priceDenominator
   * 
* * sint64 price = 10; * @return The price. */ @java.lang.Override public long getPrice() { return price_; } public static final int QUANTITY_FIELD_NUMBER = 11; private long quantity_ = 0L; /** *
   * / Divide by quantityDenominator
   * 
* * sint64 quantity = 11; * @return The quantity. */ @java.lang.Override public long getQuantity() { return quantity_; } public static final int TRADEID_FIELD_NUMBER = 12; private com.google.protobuf.ByteString tradeId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes tradeId = 12; * @return The tradeId. */ @java.lang.Override public com.google.protobuf.ByteString getTradeId() { return tradeId_; } public static final int SIDE_FIELD_NUMBER = 13; private int side_ = 0; /** *
   * / The side of the aggressing order that caused the trade
   * 
* * .org.openfeed.BookSide side = 13; * @return The enum numeric value on the wire for side. */ @java.lang.Override public int getSideValue() { return side_; } /** *
   * / The side of the aggressing order that caused the trade
   * 
* * .org.openfeed.BookSide side = 13; * @return The side. */ @java.lang.Override public org.openfeed.BookSide getSide() { org.openfeed.BookSide result = org.openfeed.BookSide.forNumber(side_); return result == null ? org.openfeed.BookSide.UNRECOGNIZED : result; } public static final int TRADEDATE_FIELD_NUMBER = 14; private int tradeDate_ = 0; /** *
   * / Date only, format 2012-07-04 -> 20120704
   * 
* * sint32 tradeDate = 14; * @return The tradeDate. */ @java.lang.Override public int getTradeDate() { return tradeDate_; } public static final int BUYERID_FIELD_NUMBER = 15; private com.google.protobuf.ByteString buyerId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes buyerId = 15; * @return The buyerId. */ @java.lang.Override public com.google.protobuf.ByteString getBuyerId() { return buyerId_; } public static final int SELLERID_FIELD_NUMBER = 16; private com.google.protobuf.ByteString sellerId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sellerId = 16; * @return The sellerId. */ @java.lang.Override public com.google.protobuf.ByteString getSellerId() { return sellerId_; } public static final int OPENINGTRADE_FIELD_NUMBER = 17; private boolean openingTrade_ = false; /** * bool openingTrade = 17; * @return The openingTrade. */ @java.lang.Override public boolean getOpeningTrade() { return openingTrade_; } public static final int SYSTEMPRICED_FIELD_NUMBER = 18; private boolean systemPriced_ = false; /** * bool systemPriced = 18; * @return The systemPriced. */ @java.lang.Override public boolean getSystemPriced() { return systemPriced_; } public static final int MARKETONCLOSE_FIELD_NUMBER = 19; private boolean marketOnClose_ = false; /** * bool marketOnClose = 19; * @return The marketOnClose. */ @java.lang.Override public boolean getMarketOnClose() { return marketOnClose_; } public static final int ODDLOT_FIELD_NUMBER = 20; private boolean oddLot_ = false; /** * bool oddLot = 20; * @return The oddLot. */ @java.lang.Override public boolean getOddLot() { return oddLot_; } public static final int SETTLEMENTTERMS_FIELD_NUMBER = 21; private int settlementTerms_ = 0; /** * .org.openfeed.SettlementTerms settlementTerms = 21; * @return The enum numeric value on the wire for settlementTerms. */ @java.lang.Override public int getSettlementTermsValue() { return settlementTerms_; } /** * .org.openfeed.SettlementTerms settlementTerms = 21; * @return The settlementTerms. */ @java.lang.Override public org.openfeed.SettlementTerms getSettlementTerms() { org.openfeed.SettlementTerms result = org.openfeed.SettlementTerms.forNumber(settlementTerms_); return result == null ? org.openfeed.SettlementTerms.UNRECOGNIZED : result; } public static final int CROSSTYPE_FIELD_NUMBER = 22; private int crossType_ = 0; /** * .org.openfeed.CrossType crossType = 22; * @return The enum numeric value on the wire for crossType. */ @java.lang.Override public int getCrossTypeValue() { return crossType_; } /** * .org.openfeed.CrossType crossType = 22; * @return The crossType. */ @java.lang.Override public org.openfeed.CrossType getCrossType() { org.openfeed.CrossType result = org.openfeed.CrossType.forNumber(crossType_); return result == null ? org.openfeed.CrossType.UNRECOGNIZED : result; } public static final int BYPASS_FIELD_NUMBER = 23; private boolean byPass_ = false; /** * bool byPass = 23; * @return The byPass. */ @java.lang.Override public boolean getByPass() { return byPass_; } public static final int LASTPRICE_FIELD_NUMBER = 24; private long lastPrice_ = 0L; /** * sint64 lastPrice = 24; * @return The lastPrice. */ @java.lang.Override public long getLastPrice() { return lastPrice_; } public static final int SALECONDITION_FIELD_NUMBER = 25; private com.google.protobuf.ByteString saleCondition_ = com.google.protobuf.ByteString.EMPTY; /** * bytes saleCondition = 25; * @return The saleCondition. */ @java.lang.Override public com.google.protobuf.ByteString getSaleCondition() { return saleCondition_; } public static final int CURRENCY_FIELD_NUMBER = 26; @SuppressWarnings("serial") private volatile java.lang.Object currency_ = ""; /** * string currency = 26; * @return The currency. */ @java.lang.Override public java.lang.String getCurrency() { java.lang.Object ref = currency_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currency_ = s; return s; } } /** * string currency = 26; * @return The bytes for currency. */ @java.lang.Override public com.google.protobuf.ByteString getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currency_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOESNOTUPDATELAST_FIELD_NUMBER = 27; private boolean doesNotUpdateLast_ = false; /** *
   * Does not update Last
   * 
* * bool doesNotUpdateLast = 27; * @return The doesNotUpdateLast. */ @java.lang.Override public boolean getDoesNotUpdateLast() { return doesNotUpdateLast_; } public static final int DOESNOTUPDATEVOLUME_FIELD_NUMBER = 28; private boolean doesNotUpdateVolume_ = false; /** *
   * Does not update Volume
   * 
* * bool doesNotUpdateVolume = 28; * @return The doesNotUpdateVolume. */ @java.lang.Override public boolean getDoesNotUpdateVolume() { return doesNotUpdateVolume_; } public static final int SESSION_FIELD_NUMBER = 30; @SuppressWarnings("serial") private volatile java.lang.Object session_ = ""; /** * string session = 30; * @return The session. */ @java.lang.Override public java.lang.String getSession() { java.lang.Object ref = session_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); session_ = s; return s; } } /** * string session = 30; * @return The bytes for session. */ @java.lang.Override public com.google.protobuf.ByteString getSessionBytes() { java.lang.Object ref = session_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); session_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BLOCKTRADE_FIELD_NUMBER = 31; private boolean blockTrade_ = false; /** *
   * Is this a block trade.
   * 
* * bool blockTrade = 31; * @return The blockTrade. */ @java.lang.Override public boolean getBlockTrade() { return blockTrade_; } public static final int DISTRIBUTIONTIME_FIELD_NUMBER = 32; private long distributionTime_ = 0L; /** *
   * / Distribution time in nano seconds since epoch.
   * 
* * sint64 distributionTime = 32; * @return The distributionTime. */ @java.lang.Override public long getDistributionTime() { return distributionTime_; } public static final int TRANSACTIONTIME2_FIELD_NUMBER = 33; private long transactionTime2_ = 0L; /** *
   * / time in nano seconds since epoch.
   * 
* * sint64 transactionTime2 = 33; * @return The transactionTime2. */ @java.lang.Override public long getTransactionTime2() { return transactionTime2_; } public static final int CONSOLIDATEDPRICEINDICATOR_FIELD_NUMBER = 34; @SuppressWarnings("serial") private volatile java.lang.Object consolidatedPriceIndicator_ = ""; /** * string consolidatedPriceIndicator = 34; * @return The consolidatedPriceIndicator. */ @java.lang.Override public java.lang.String getConsolidatedPriceIndicator() { java.lang.Object ref = consolidatedPriceIndicator_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); consolidatedPriceIndicator_ = s; return s; } } /** * string consolidatedPriceIndicator = 34; * @return The bytes for consolidatedPriceIndicator. */ @java.lang.Override public com.google.protobuf.ByteString getConsolidatedPriceIndicatorBytes() { java.lang.Object ref = consolidatedPriceIndicator_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consolidatedPriceIndicator_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRANSIENT_FIELD_NUMBER = 35; private boolean transient_ = false; /** *
   * / True if not persisted in the EOD database.
   * 
* * bool transient = 35; * @return The transient. */ @java.lang.Override public boolean getTransient() { return transient_; } public static final int INDEXSHORTNAME_FIELD_NUMBER = 36; @SuppressWarnings("serial") private volatile java.lang.Object indexShortName_ = ""; /** *
   * / Index short name used to identify index.
   * 
* * string indexShortName = 36; * @return The indexShortName. */ @java.lang.Override public java.lang.String getIndexShortName() { java.lang.Object ref = indexShortName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexShortName_ = s; return s; } } /** *
   * / Index short name used to identify index.
   * 
* * string indexShortName = 36; * @return The bytes for indexShortName. */ @java.lang.Override public com.google.protobuf.ByteString getIndexShortNameBytes() { java.lang.Object ref = indexShortName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); indexShortName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!originatorId_.isEmpty()) { output.writeBytes(8, originatorId_); } if (transactionTime_ != 0L) { output.writeSInt64(9, transactionTime_); } if (price_ != 0L) { output.writeSInt64(10, price_); } if (quantity_ != 0L) { output.writeSInt64(11, quantity_); } if (!tradeId_.isEmpty()) { output.writeBytes(12, tradeId_); } if (side_ != org.openfeed.BookSide.UNKNOWN_BOOK_SIDE.getNumber()) { output.writeEnum(13, side_); } if (tradeDate_ != 0) { output.writeSInt32(14, tradeDate_); } if (!buyerId_.isEmpty()) { output.writeBytes(15, buyerId_); } if (!sellerId_.isEmpty()) { output.writeBytes(16, sellerId_); } if (openingTrade_ != false) { output.writeBool(17, openingTrade_); } if (systemPriced_ != false) { output.writeBool(18, systemPriced_); } if (marketOnClose_ != false) { output.writeBool(19, marketOnClose_); } if (oddLot_ != false) { output.writeBool(20, oddLot_); } if (settlementTerms_ != org.openfeed.SettlementTerms.UNKNOWN_SETTLEMENT_TERMS.getNumber()) { output.writeEnum(21, settlementTerms_); } if (crossType_ != org.openfeed.CrossType.UNKNOWN_CROSS_TYPE.getNumber()) { output.writeEnum(22, crossType_); } if (byPass_ != false) { output.writeBool(23, byPass_); } if (lastPrice_ != 0L) { output.writeSInt64(24, lastPrice_); } if (!saleCondition_.isEmpty()) { output.writeBytes(25, saleCondition_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(currency_)) { com.google.protobuf.GeneratedMessage.writeString(output, 26, currency_); } if (doesNotUpdateLast_ != false) { output.writeBool(27, doesNotUpdateLast_); } if (doesNotUpdateVolume_ != false) { output.writeBool(28, doesNotUpdateVolume_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { com.google.protobuf.GeneratedMessage.writeString(output, 30, session_); } if (blockTrade_ != false) { output.writeBool(31, blockTrade_); } if (distributionTime_ != 0L) { output.writeSInt64(32, distributionTime_); } if (transactionTime2_ != 0L) { output.writeSInt64(33, transactionTime2_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(consolidatedPriceIndicator_)) { com.google.protobuf.GeneratedMessage.writeString(output, 34, consolidatedPriceIndicator_); } if (transient_ != false) { output.writeBool(35, transient_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(indexShortName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 36, indexShortName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!originatorId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, originatorId_); } if (transactionTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(9, transactionTime_); } if (price_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(10, price_); } if (quantity_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(11, quantity_); } if (!tradeId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, tradeId_); } if (side_ != org.openfeed.BookSide.UNKNOWN_BOOK_SIDE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(13, side_); } if (tradeDate_ != 0) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(14, tradeDate_); } if (!buyerId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, buyerId_); } if (!sellerId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(16, sellerId_); } if (openingTrade_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(17, openingTrade_); } if (systemPriced_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(18, systemPriced_); } if (marketOnClose_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(19, marketOnClose_); } if (oddLot_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(20, oddLot_); } if (settlementTerms_ != org.openfeed.SettlementTerms.UNKNOWN_SETTLEMENT_TERMS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(21, settlementTerms_); } if (crossType_ != org.openfeed.CrossType.UNKNOWN_CROSS_TYPE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(22, crossType_); } if (byPass_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(23, byPass_); } if (lastPrice_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(24, lastPrice_); } if (!saleCondition_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(25, saleCondition_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(currency_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(26, currency_); } if (doesNotUpdateLast_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(27, doesNotUpdateLast_); } if (doesNotUpdateVolume_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(28, doesNotUpdateVolume_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(30, session_); } if (blockTrade_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(31, blockTrade_); } if (distributionTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(32, distributionTime_); } if (transactionTime2_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(33, transactionTime2_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(consolidatedPriceIndicator_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(34, consolidatedPriceIndicator_); } if (transient_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(35, transient_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(indexShortName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(36, indexShortName_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.openfeed.Trade)) { return super.equals(obj); } org.openfeed.Trade other = (org.openfeed.Trade) obj; if (!getOriginatorId() .equals(other.getOriginatorId())) return false; if (getTransactionTime() != other.getTransactionTime()) return false; if (getPrice() != other.getPrice()) return false; if (getQuantity() != other.getQuantity()) return false; if (!getTradeId() .equals(other.getTradeId())) return false; if (side_ != other.side_) return false; if (getTradeDate() != other.getTradeDate()) return false; if (!getBuyerId() .equals(other.getBuyerId())) return false; if (!getSellerId() .equals(other.getSellerId())) return false; if (getOpeningTrade() != other.getOpeningTrade()) return false; if (getSystemPriced() != other.getSystemPriced()) return false; if (getMarketOnClose() != other.getMarketOnClose()) return false; if (getOddLot() != other.getOddLot()) return false; if (settlementTerms_ != other.settlementTerms_) return false; if (crossType_ != other.crossType_) return false; if (getByPass() != other.getByPass()) return false; if (getLastPrice() != other.getLastPrice()) return false; if (!getSaleCondition() .equals(other.getSaleCondition())) return false; if (!getCurrency() .equals(other.getCurrency())) return false; if (getDoesNotUpdateLast() != other.getDoesNotUpdateLast()) return false; if (getDoesNotUpdateVolume() != other.getDoesNotUpdateVolume()) return false; if (!getSession() .equals(other.getSession())) return false; if (getBlockTrade() != other.getBlockTrade()) return false; if (getDistributionTime() != other.getDistributionTime()) return false; if (getTransactionTime2() != other.getTransactionTime2()) return false; if (!getConsolidatedPriceIndicator() .equals(other.getConsolidatedPriceIndicator())) return false; if (getTransient() != other.getTransient()) return false; if (!getIndexShortName() .equals(other.getIndexShortName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ORIGINATORID_FIELD_NUMBER; hash = (53 * hash) + getOriginatorId().hashCode(); hash = (37 * hash) + TRANSACTIONTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTransactionTime()); hash = (37 * hash) + PRICE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPrice()); hash = (37 * hash) + QUANTITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getQuantity()); hash = (37 * hash) + TRADEID_FIELD_NUMBER; hash = (53 * hash) + getTradeId().hashCode(); hash = (37 * hash) + SIDE_FIELD_NUMBER; hash = (53 * hash) + side_; hash = (37 * hash) + TRADEDATE_FIELD_NUMBER; hash = (53 * hash) + getTradeDate(); hash = (37 * hash) + BUYERID_FIELD_NUMBER; hash = (53 * hash) + getBuyerId().hashCode(); hash = (37 * hash) + SELLERID_FIELD_NUMBER; hash = (53 * hash) + getSellerId().hashCode(); hash = (37 * hash) + OPENINGTRADE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getOpeningTrade()); hash = (37 * hash) + SYSTEMPRICED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSystemPriced()); hash = (37 * hash) + MARKETONCLOSE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMarketOnClose()); hash = (37 * hash) + ODDLOT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getOddLot()); hash = (37 * hash) + SETTLEMENTTERMS_FIELD_NUMBER; hash = (53 * hash) + settlementTerms_; hash = (37 * hash) + CROSSTYPE_FIELD_NUMBER; hash = (53 * hash) + crossType_; hash = (37 * hash) + BYPASS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getByPass()); hash = (37 * hash) + LASTPRICE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLastPrice()); hash = (37 * hash) + SALECONDITION_FIELD_NUMBER; hash = (53 * hash) + getSaleCondition().hashCode(); hash = (37 * hash) + CURRENCY_FIELD_NUMBER; hash = (53 * hash) + getCurrency().hashCode(); hash = (37 * hash) + DOESNOTUPDATELAST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDoesNotUpdateLast()); hash = (37 * hash) + DOESNOTUPDATEVOLUME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDoesNotUpdateVolume()); hash = (37 * hash) + SESSION_FIELD_NUMBER; hash = (53 * hash) + getSession().hashCode(); hash = (37 * hash) + BLOCKTRADE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBlockTrade()); hash = (37 * hash) + DISTRIBUTIONTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDistributionTime()); hash = (37 * hash) + TRANSACTIONTIME2_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTransactionTime2()); hash = (37 * hash) + CONSOLIDATEDPRICEINDICATOR_FIELD_NUMBER; hash = (53 * hash) + getConsolidatedPriceIndicator().hashCode(); hash = (37 * hash) + TRANSIENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTransient()); hash = (37 * hash) + INDEXSHORTNAME_FIELD_NUMBER; hash = (53 * hash) + getIndexShortName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.openfeed.Trade parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.Trade parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.Trade parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.Trade parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.Trade parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.Trade parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.Trade parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.Trade parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.openfeed.Trade parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.openfeed.Trade parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.openfeed.Trade parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.Trade parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.openfeed.Trade prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * / A live trade.  When received, update the "last" field
   * 
* * Protobuf type {@code org.openfeed.Trade} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.openfeed.Trade) org.openfeed.TradeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_Trade_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_Trade_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.Trade.class, org.openfeed.Trade.Builder.class); } // Construct using org.openfeed.Trade.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; originatorId_ = com.google.protobuf.ByteString.EMPTY; transactionTime_ = 0L; price_ = 0L; quantity_ = 0L; tradeId_ = com.google.protobuf.ByteString.EMPTY; side_ = 0; tradeDate_ = 0; buyerId_ = com.google.protobuf.ByteString.EMPTY; sellerId_ = com.google.protobuf.ByteString.EMPTY; openingTrade_ = false; systemPriced_ = false; marketOnClose_ = false; oddLot_ = false; settlementTerms_ = 0; crossType_ = 0; byPass_ = false; lastPrice_ = 0L; saleCondition_ = com.google.protobuf.ByteString.EMPTY; currency_ = ""; doesNotUpdateLast_ = false; doesNotUpdateVolume_ = false; session_ = ""; blockTrade_ = false; distributionTime_ = 0L; transactionTime2_ = 0L; consolidatedPriceIndicator_ = ""; transient_ = false; indexShortName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openfeed.Openfeed.internal_static_org_openfeed_Trade_descriptor; } @java.lang.Override public org.openfeed.Trade getDefaultInstanceForType() { return org.openfeed.Trade.getDefaultInstance(); } @java.lang.Override public org.openfeed.Trade build() { org.openfeed.Trade result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openfeed.Trade buildPartial() { org.openfeed.Trade result = new org.openfeed.Trade(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.openfeed.Trade result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.originatorId_ = originatorId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.transactionTime_ = transactionTime_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.price_ = price_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.quantity_ = quantity_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.tradeId_ = tradeId_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.side_ = side_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.tradeDate_ = tradeDate_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.buyerId_ = buyerId_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.sellerId_ = sellerId_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.openingTrade_ = openingTrade_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.systemPriced_ = systemPriced_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.marketOnClose_ = marketOnClose_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.oddLot_ = oddLot_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.settlementTerms_ = settlementTerms_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.crossType_ = crossType_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.byPass_ = byPass_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.lastPrice_ = lastPrice_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.saleCondition_ = saleCondition_; } if (((from_bitField0_ & 0x00040000) != 0)) { result.currency_ = currency_; } if (((from_bitField0_ & 0x00080000) != 0)) { result.doesNotUpdateLast_ = doesNotUpdateLast_; } if (((from_bitField0_ & 0x00100000) != 0)) { result.doesNotUpdateVolume_ = doesNotUpdateVolume_; } if (((from_bitField0_ & 0x00200000) != 0)) { result.session_ = session_; } if (((from_bitField0_ & 0x00400000) != 0)) { result.blockTrade_ = blockTrade_; } if (((from_bitField0_ & 0x00800000) != 0)) { result.distributionTime_ = distributionTime_; } if (((from_bitField0_ & 0x01000000) != 0)) { result.transactionTime2_ = transactionTime2_; } if (((from_bitField0_ & 0x02000000) != 0)) { result.consolidatedPriceIndicator_ = consolidatedPriceIndicator_; } if (((from_bitField0_ & 0x04000000) != 0)) { result.transient_ = transient_; } if (((from_bitField0_ & 0x08000000) != 0)) { result.indexShortName_ = indexShortName_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openfeed.Trade) { return mergeFrom((org.openfeed.Trade)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openfeed.Trade other) { if (other == org.openfeed.Trade.getDefaultInstance()) return this; if (other.getOriginatorId() != com.google.protobuf.ByteString.EMPTY) { setOriginatorId(other.getOriginatorId()); } if (other.getTransactionTime() != 0L) { setTransactionTime(other.getTransactionTime()); } if (other.getPrice() != 0L) { setPrice(other.getPrice()); } if (other.getQuantity() != 0L) { setQuantity(other.getQuantity()); } if (other.getTradeId() != com.google.protobuf.ByteString.EMPTY) { setTradeId(other.getTradeId()); } if (other.side_ != 0) { setSideValue(other.getSideValue()); } if (other.getTradeDate() != 0) { setTradeDate(other.getTradeDate()); } if (other.getBuyerId() != com.google.protobuf.ByteString.EMPTY) { setBuyerId(other.getBuyerId()); } if (other.getSellerId() != com.google.protobuf.ByteString.EMPTY) { setSellerId(other.getSellerId()); } if (other.getOpeningTrade() != false) { setOpeningTrade(other.getOpeningTrade()); } if (other.getSystemPriced() != false) { setSystemPriced(other.getSystemPriced()); } if (other.getMarketOnClose() != false) { setMarketOnClose(other.getMarketOnClose()); } if (other.getOddLot() != false) { setOddLot(other.getOddLot()); } if (other.settlementTerms_ != 0) { setSettlementTermsValue(other.getSettlementTermsValue()); } if (other.crossType_ != 0) { setCrossTypeValue(other.getCrossTypeValue()); } if (other.getByPass() != false) { setByPass(other.getByPass()); } if (other.getLastPrice() != 0L) { setLastPrice(other.getLastPrice()); } if (other.getSaleCondition() != com.google.protobuf.ByteString.EMPTY) { setSaleCondition(other.getSaleCondition()); } if (!other.getCurrency().isEmpty()) { currency_ = other.currency_; bitField0_ |= 0x00040000; onChanged(); } if (other.getDoesNotUpdateLast() != false) { setDoesNotUpdateLast(other.getDoesNotUpdateLast()); } if (other.getDoesNotUpdateVolume() != false) { setDoesNotUpdateVolume(other.getDoesNotUpdateVolume()); } if (!other.getSession().isEmpty()) { session_ = other.session_; bitField0_ |= 0x00200000; onChanged(); } if (other.getBlockTrade() != false) { setBlockTrade(other.getBlockTrade()); } if (other.getDistributionTime() != 0L) { setDistributionTime(other.getDistributionTime()); } if (other.getTransactionTime2() != 0L) { setTransactionTime2(other.getTransactionTime2()); } if (!other.getConsolidatedPriceIndicator().isEmpty()) { consolidatedPriceIndicator_ = other.consolidatedPriceIndicator_; bitField0_ |= 0x02000000; onChanged(); } if (other.getTransient() != false) { setTransient(other.getTransient()); } if (!other.getIndexShortName().isEmpty()) { indexShortName_ = other.indexShortName_; bitField0_ |= 0x08000000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 66: { originatorId_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 66 case 72: { transactionTime_ = input.readSInt64(); bitField0_ |= 0x00000002; break; } // case 72 case 80: { price_ = input.readSInt64(); bitField0_ |= 0x00000004; break; } // case 80 case 88: { quantity_ = input.readSInt64(); bitField0_ |= 0x00000008; break; } // case 88 case 98: { tradeId_ = input.readBytes(); bitField0_ |= 0x00000010; break; } // case 98 case 104: { side_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 104 case 112: { tradeDate_ = input.readSInt32(); bitField0_ |= 0x00000040; break; } // case 112 case 122: { buyerId_ = input.readBytes(); bitField0_ |= 0x00000080; break; } // case 122 case 130: { sellerId_ = input.readBytes(); bitField0_ |= 0x00000100; break; } // case 130 case 136: { openingTrade_ = input.readBool(); bitField0_ |= 0x00000200; break; } // case 136 case 144: { systemPriced_ = input.readBool(); bitField0_ |= 0x00000400; break; } // case 144 case 152: { marketOnClose_ = input.readBool(); bitField0_ |= 0x00000800; break; } // case 152 case 160: { oddLot_ = input.readBool(); bitField0_ |= 0x00001000; break; } // case 160 case 168: { settlementTerms_ = input.readEnum(); bitField0_ |= 0x00002000; break; } // case 168 case 176: { crossType_ = input.readEnum(); bitField0_ |= 0x00004000; break; } // case 176 case 184: { byPass_ = input.readBool(); bitField0_ |= 0x00008000; break; } // case 184 case 192: { lastPrice_ = input.readSInt64(); bitField0_ |= 0x00010000; break; } // case 192 case 202: { saleCondition_ = input.readBytes(); bitField0_ |= 0x00020000; break; } // case 202 case 210: { currency_ = input.readStringRequireUtf8(); bitField0_ |= 0x00040000; break; } // case 210 case 216: { doesNotUpdateLast_ = input.readBool(); bitField0_ |= 0x00080000; break; } // case 216 case 224: { doesNotUpdateVolume_ = input.readBool(); bitField0_ |= 0x00100000; break; } // case 224 case 242: { session_ = input.readStringRequireUtf8(); bitField0_ |= 0x00200000; break; } // case 242 case 248: { blockTrade_ = input.readBool(); bitField0_ |= 0x00400000; break; } // case 248 case 256: { distributionTime_ = input.readSInt64(); bitField0_ |= 0x00800000; break; } // case 256 case 264: { transactionTime2_ = input.readSInt64(); bitField0_ |= 0x01000000; break; } // case 264 case 274: { consolidatedPriceIndicator_ = input.readStringRequireUtf8(); bitField0_ |= 0x02000000; break; } // case 274 case 280: { transient_ = input.readBool(); bitField0_ |= 0x04000000; break; } // case 280 case 290: { indexShortName_ = input.readStringRequireUtf8(); bitField0_ |= 0x08000000; break; } // case 290 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString originatorId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Market participant/originator
     * 
* * bytes originatorId = 8; * @return The originatorId. */ @java.lang.Override public com.google.protobuf.ByteString getOriginatorId() { return originatorId_; } /** *
     * Market participant/originator
     * 
* * bytes originatorId = 8; * @param value The originatorId to set. * @return This builder for chaining. */ public Builder setOriginatorId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } originatorId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Market participant/originator
     * 
* * bytes originatorId = 8; * @return This builder for chaining. */ public Builder clearOriginatorId() { bitField0_ = (bitField0_ & ~0x00000001); originatorId_ = getDefaultInstance().getOriginatorId(); onChanged(); return this; } private long transactionTime_ ; /** *
     * UTC Timestamp, nano seconds since Unix epoch
     * 
* * sint64 transactionTime = 9; * @return The transactionTime. */ @java.lang.Override public long getTransactionTime() { return transactionTime_; } /** *
     * UTC Timestamp, nano seconds since Unix epoch
     * 
* * sint64 transactionTime = 9; * @param value The transactionTime to set. * @return This builder for chaining. */ public Builder setTransactionTime(long value) { transactionTime_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * UTC Timestamp, nano seconds since Unix epoch
     * 
* * sint64 transactionTime = 9; * @return This builder for chaining. */ public Builder clearTransactionTime() { bitField0_ = (bitField0_ & ~0x00000002); transactionTime_ = 0L; onChanged(); return this; } private long price_ ; /** *
     * / Divide by priceDenominator
     * 
* * sint64 price = 10; * @return The price. */ @java.lang.Override public long getPrice() { return price_; } /** *
     * / Divide by priceDenominator
     * 
* * sint64 price = 10; * @param value The price to set. * @return This builder for chaining. */ public Builder setPrice(long value) { price_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * / Divide by priceDenominator
     * 
* * sint64 price = 10; * @return This builder for chaining. */ public Builder clearPrice() { bitField0_ = (bitField0_ & ~0x00000004); price_ = 0L; onChanged(); return this; } private long quantity_ ; /** *
     * / Divide by quantityDenominator
     * 
* * sint64 quantity = 11; * @return The quantity. */ @java.lang.Override public long getQuantity() { return quantity_; } /** *
     * / Divide by quantityDenominator
     * 
* * sint64 quantity = 11; * @param value The quantity to set. * @return This builder for chaining. */ public Builder setQuantity(long value) { quantity_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * / Divide by quantityDenominator
     * 
* * sint64 quantity = 11; * @return This builder for chaining. */ public Builder clearQuantity() { bitField0_ = (bitField0_ & ~0x00000008); quantity_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString tradeId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes tradeId = 12; * @return The tradeId. */ @java.lang.Override public com.google.protobuf.ByteString getTradeId() { return tradeId_; } /** * bytes tradeId = 12; * @param value The tradeId to set. * @return This builder for chaining. */ public Builder setTradeId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } tradeId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * bytes tradeId = 12; * @return This builder for chaining. */ public Builder clearTradeId() { bitField0_ = (bitField0_ & ~0x00000010); tradeId_ = getDefaultInstance().getTradeId(); onChanged(); return this; } private int side_ = 0; /** *
     * / The side of the aggressing order that caused the trade
     * 
* * .org.openfeed.BookSide side = 13; * @return The enum numeric value on the wire for side. */ @java.lang.Override public int getSideValue() { return side_; } /** *
     * / The side of the aggressing order that caused the trade
     * 
* * .org.openfeed.BookSide side = 13; * @param value The enum numeric value on the wire for side to set. * @return This builder for chaining. */ public Builder setSideValue(int value) { side_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * / The side of the aggressing order that caused the trade
     * 
* * .org.openfeed.BookSide side = 13; * @return The side. */ @java.lang.Override public org.openfeed.BookSide getSide() { org.openfeed.BookSide result = org.openfeed.BookSide.forNumber(side_); return result == null ? org.openfeed.BookSide.UNRECOGNIZED : result; } /** *
     * / The side of the aggressing order that caused the trade
     * 
* * .org.openfeed.BookSide side = 13; * @param value The side to set. * @return This builder for chaining. */ public Builder setSide(org.openfeed.BookSide value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; side_ = value.getNumber(); onChanged(); return this; } /** *
     * / The side of the aggressing order that caused the trade
     * 
* * .org.openfeed.BookSide side = 13; * @return This builder for chaining. */ public Builder clearSide() { bitField0_ = (bitField0_ & ~0x00000020); side_ = 0; onChanged(); return this; } private int tradeDate_ ; /** *
     * / Date only, format 2012-07-04 -> 20120704
     * 
* * sint32 tradeDate = 14; * @return The tradeDate. */ @java.lang.Override public int getTradeDate() { return tradeDate_; } /** *
     * / Date only, format 2012-07-04 -> 20120704
     * 
* * sint32 tradeDate = 14; * @param value The tradeDate to set. * @return This builder for chaining. */ public Builder setTradeDate(int value) { tradeDate_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * / Date only, format 2012-07-04 -> 20120704
     * 
* * sint32 tradeDate = 14; * @return This builder for chaining. */ public Builder clearTradeDate() { bitField0_ = (bitField0_ & ~0x00000040); tradeDate_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString buyerId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes buyerId = 15; * @return The buyerId. */ @java.lang.Override public com.google.protobuf.ByteString getBuyerId() { return buyerId_; } /** * bytes buyerId = 15; * @param value The buyerId to set. * @return This builder for chaining. */ public Builder setBuyerId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } buyerId_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * bytes buyerId = 15; * @return This builder for chaining. */ public Builder clearBuyerId() { bitField0_ = (bitField0_ & ~0x00000080); buyerId_ = getDefaultInstance().getBuyerId(); onChanged(); return this; } private com.google.protobuf.ByteString sellerId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sellerId = 16; * @return The sellerId. */ @java.lang.Override public com.google.protobuf.ByteString getSellerId() { return sellerId_; } /** * bytes sellerId = 16; * @param value The sellerId to set. * @return This builder for chaining. */ public Builder setSellerId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } sellerId_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * bytes sellerId = 16; * @return This builder for chaining. */ public Builder clearSellerId() { bitField0_ = (bitField0_ & ~0x00000100); sellerId_ = getDefaultInstance().getSellerId(); onChanged(); return this; } private boolean openingTrade_ ; /** * bool openingTrade = 17; * @return The openingTrade. */ @java.lang.Override public boolean getOpeningTrade() { return openingTrade_; } /** * bool openingTrade = 17; * @param value The openingTrade to set. * @return This builder for chaining. */ public Builder setOpeningTrade(boolean value) { openingTrade_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * bool openingTrade = 17; * @return This builder for chaining. */ public Builder clearOpeningTrade() { bitField0_ = (bitField0_ & ~0x00000200); openingTrade_ = false; onChanged(); return this; } private boolean systemPriced_ ; /** * bool systemPriced = 18; * @return The systemPriced. */ @java.lang.Override public boolean getSystemPriced() { return systemPriced_; } /** * bool systemPriced = 18; * @param value The systemPriced to set. * @return This builder for chaining. */ public Builder setSystemPriced(boolean value) { systemPriced_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * bool systemPriced = 18; * @return This builder for chaining. */ public Builder clearSystemPriced() { bitField0_ = (bitField0_ & ~0x00000400); systemPriced_ = false; onChanged(); return this; } private boolean marketOnClose_ ; /** * bool marketOnClose = 19; * @return The marketOnClose. */ @java.lang.Override public boolean getMarketOnClose() { return marketOnClose_; } /** * bool marketOnClose = 19; * @param value The marketOnClose to set. * @return This builder for chaining. */ public Builder setMarketOnClose(boolean value) { marketOnClose_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * bool marketOnClose = 19; * @return This builder for chaining. */ public Builder clearMarketOnClose() { bitField0_ = (bitField0_ & ~0x00000800); marketOnClose_ = false; onChanged(); return this; } private boolean oddLot_ ; /** * bool oddLot = 20; * @return The oddLot. */ @java.lang.Override public boolean getOddLot() { return oddLot_; } /** * bool oddLot = 20; * @param value The oddLot to set. * @return This builder for chaining. */ public Builder setOddLot(boolean value) { oddLot_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * bool oddLot = 20; * @return This builder for chaining. */ public Builder clearOddLot() { bitField0_ = (bitField0_ & ~0x00001000); oddLot_ = false; onChanged(); return this; } private int settlementTerms_ = 0; /** * .org.openfeed.SettlementTerms settlementTerms = 21; * @return The enum numeric value on the wire for settlementTerms. */ @java.lang.Override public int getSettlementTermsValue() { return settlementTerms_; } /** * .org.openfeed.SettlementTerms settlementTerms = 21; * @param value The enum numeric value on the wire for settlementTerms to set. * @return This builder for chaining. */ public Builder setSettlementTermsValue(int value) { settlementTerms_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** * .org.openfeed.SettlementTerms settlementTerms = 21; * @return The settlementTerms. */ @java.lang.Override public org.openfeed.SettlementTerms getSettlementTerms() { org.openfeed.SettlementTerms result = org.openfeed.SettlementTerms.forNumber(settlementTerms_); return result == null ? org.openfeed.SettlementTerms.UNRECOGNIZED : result; } /** * .org.openfeed.SettlementTerms settlementTerms = 21; * @param value The settlementTerms to set. * @return This builder for chaining. */ public Builder setSettlementTerms(org.openfeed.SettlementTerms value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; settlementTerms_ = value.getNumber(); onChanged(); return this; } /** * .org.openfeed.SettlementTerms settlementTerms = 21; * @return This builder for chaining. */ public Builder clearSettlementTerms() { bitField0_ = (bitField0_ & ~0x00002000); settlementTerms_ = 0; onChanged(); return this; } private int crossType_ = 0; /** * .org.openfeed.CrossType crossType = 22; * @return The enum numeric value on the wire for crossType. */ @java.lang.Override public int getCrossTypeValue() { return crossType_; } /** * .org.openfeed.CrossType crossType = 22; * @param value The enum numeric value on the wire for crossType to set. * @return This builder for chaining. */ public Builder setCrossTypeValue(int value) { crossType_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** * .org.openfeed.CrossType crossType = 22; * @return The crossType. */ @java.lang.Override public org.openfeed.CrossType getCrossType() { org.openfeed.CrossType result = org.openfeed.CrossType.forNumber(crossType_); return result == null ? org.openfeed.CrossType.UNRECOGNIZED : result; } /** * .org.openfeed.CrossType crossType = 22; * @param value The crossType to set. * @return This builder for chaining. */ public Builder setCrossType(org.openfeed.CrossType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; crossType_ = value.getNumber(); onChanged(); return this; } /** * .org.openfeed.CrossType crossType = 22; * @return This builder for chaining. */ public Builder clearCrossType() { bitField0_ = (bitField0_ & ~0x00004000); crossType_ = 0; onChanged(); return this; } private boolean byPass_ ; /** * bool byPass = 23; * @return The byPass. */ @java.lang.Override public boolean getByPass() { return byPass_; } /** * bool byPass = 23; * @param value The byPass to set. * @return This builder for chaining. */ public Builder setByPass(boolean value) { byPass_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** * bool byPass = 23; * @return This builder for chaining. */ public Builder clearByPass() { bitField0_ = (bitField0_ & ~0x00008000); byPass_ = false; onChanged(); return this; } private long lastPrice_ ; /** * sint64 lastPrice = 24; * @return The lastPrice. */ @java.lang.Override public long getLastPrice() { return lastPrice_; } /** * sint64 lastPrice = 24; * @param value The lastPrice to set. * @return This builder for chaining. */ public Builder setLastPrice(long value) { lastPrice_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** * sint64 lastPrice = 24; * @return This builder for chaining. */ public Builder clearLastPrice() { bitField0_ = (bitField0_ & ~0x00010000); lastPrice_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString saleCondition_ = com.google.protobuf.ByteString.EMPTY; /** * bytes saleCondition = 25; * @return The saleCondition. */ @java.lang.Override public com.google.protobuf.ByteString getSaleCondition() { return saleCondition_; } /** * bytes saleCondition = 25; * @param value The saleCondition to set. * @return This builder for chaining. */ public Builder setSaleCondition(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } saleCondition_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } /** * bytes saleCondition = 25; * @return This builder for chaining. */ public Builder clearSaleCondition() { bitField0_ = (bitField0_ & ~0x00020000); saleCondition_ = getDefaultInstance().getSaleCondition(); onChanged(); return this; } private java.lang.Object currency_ = ""; /** * string currency = 26; * @return The currency. */ public java.lang.String getCurrency() { java.lang.Object ref = currency_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currency_ = s; return s; } else { return (java.lang.String) ref; } } /** * string currency = 26; * @return The bytes for currency. */ public com.google.protobuf.ByteString getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currency_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string currency = 26; * @param value The currency to set. * @return This builder for chaining. */ public Builder setCurrency( java.lang.String value) { if (value == null) { throw new NullPointerException(); } currency_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** * string currency = 26; * @return This builder for chaining. */ public Builder clearCurrency() { currency_ = getDefaultInstance().getCurrency(); bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } /** * string currency = 26; * @param value The bytes for currency to set. * @return This builder for chaining. */ public Builder setCurrencyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currency_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } private boolean doesNotUpdateLast_ ; /** *
     * Does not update Last
     * 
* * bool doesNotUpdateLast = 27; * @return The doesNotUpdateLast. */ @java.lang.Override public boolean getDoesNotUpdateLast() { return doesNotUpdateLast_; } /** *
     * Does not update Last
     * 
* * bool doesNotUpdateLast = 27; * @param value The doesNotUpdateLast to set. * @return This builder for chaining. */ public Builder setDoesNotUpdateLast(boolean value) { doesNotUpdateLast_ = value; bitField0_ |= 0x00080000; onChanged(); return this; } /** *
     * Does not update Last
     * 
* * bool doesNotUpdateLast = 27; * @return This builder for chaining. */ public Builder clearDoesNotUpdateLast() { bitField0_ = (bitField0_ & ~0x00080000); doesNotUpdateLast_ = false; onChanged(); return this; } private boolean doesNotUpdateVolume_ ; /** *
     * Does not update Volume
     * 
* * bool doesNotUpdateVolume = 28; * @return The doesNotUpdateVolume. */ @java.lang.Override public boolean getDoesNotUpdateVolume() { return doesNotUpdateVolume_; } /** *
     * Does not update Volume
     * 
* * bool doesNotUpdateVolume = 28; * @param value The doesNotUpdateVolume to set. * @return This builder for chaining. */ public Builder setDoesNotUpdateVolume(boolean value) { doesNotUpdateVolume_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** *
     * Does not update Volume
     * 
* * bool doesNotUpdateVolume = 28; * @return This builder for chaining. */ public Builder clearDoesNotUpdateVolume() { bitField0_ = (bitField0_ & ~0x00100000); doesNotUpdateVolume_ = false; onChanged(); return this; } private java.lang.Object session_ = ""; /** * string session = 30; * @return The session. */ public java.lang.String getSession() { java.lang.Object ref = session_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); session_ = s; return s; } else { return (java.lang.String) ref; } } /** * string session = 30; * @return The bytes for session. */ public com.google.protobuf.ByteString getSessionBytes() { java.lang.Object ref = session_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); session_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string session = 30; * @param value The session to set. * @return This builder for chaining. */ public Builder setSession( java.lang.String value) { if (value == null) { throw new NullPointerException(); } session_ = value; bitField0_ |= 0x00200000; onChanged(); return this; } /** * string session = 30; * @return This builder for chaining. */ public Builder clearSession() { session_ = getDefaultInstance().getSession(); bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } /** * string session = 30; * @param value The bytes for session to set. * @return This builder for chaining. */ public Builder setSessionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); session_ = value; bitField0_ |= 0x00200000; onChanged(); return this; } private boolean blockTrade_ ; /** *
     * Is this a block trade.
     * 
* * bool blockTrade = 31; * @return The blockTrade. */ @java.lang.Override public boolean getBlockTrade() { return blockTrade_; } /** *
     * Is this a block trade.
     * 
* * bool blockTrade = 31; * @param value The blockTrade to set. * @return This builder for chaining. */ public Builder setBlockTrade(boolean value) { blockTrade_ = value; bitField0_ |= 0x00400000; onChanged(); return this; } /** *
     * Is this a block trade.
     * 
* * bool blockTrade = 31; * @return This builder for chaining. */ public Builder clearBlockTrade() { bitField0_ = (bitField0_ & ~0x00400000); blockTrade_ = false; onChanged(); return this; } private long distributionTime_ ; /** *
     * / Distribution time in nano seconds since epoch.
     * 
* * sint64 distributionTime = 32; * @return The distributionTime. */ @java.lang.Override public long getDistributionTime() { return distributionTime_; } /** *
     * / Distribution time in nano seconds since epoch.
     * 
* * sint64 distributionTime = 32; * @param value The distributionTime to set. * @return This builder for chaining. */ public Builder setDistributionTime(long value) { distributionTime_ = value; bitField0_ |= 0x00800000; onChanged(); return this; } /** *
     * / Distribution time in nano seconds since epoch.
     * 
* * sint64 distributionTime = 32; * @return This builder for chaining. */ public Builder clearDistributionTime() { bitField0_ = (bitField0_ & ~0x00800000); distributionTime_ = 0L; onChanged(); return this; } private long transactionTime2_ ; /** *
     * / time in nano seconds since epoch.
     * 
* * sint64 transactionTime2 = 33; * @return The transactionTime2. */ @java.lang.Override public long getTransactionTime2() { return transactionTime2_; } /** *
     * / time in nano seconds since epoch.
     * 
* * sint64 transactionTime2 = 33; * @param value The transactionTime2 to set. * @return This builder for chaining. */ public Builder setTransactionTime2(long value) { transactionTime2_ = value; bitField0_ |= 0x01000000; onChanged(); return this; } /** *
     * / time in nano seconds since epoch.
     * 
* * sint64 transactionTime2 = 33; * @return This builder for chaining. */ public Builder clearTransactionTime2() { bitField0_ = (bitField0_ & ~0x01000000); transactionTime2_ = 0L; onChanged(); return this; } private java.lang.Object consolidatedPriceIndicator_ = ""; /** * string consolidatedPriceIndicator = 34; * @return The consolidatedPriceIndicator. */ public java.lang.String getConsolidatedPriceIndicator() { java.lang.Object ref = consolidatedPriceIndicator_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); consolidatedPriceIndicator_ = s; return s; } else { return (java.lang.String) ref; } } /** * string consolidatedPriceIndicator = 34; * @return The bytes for consolidatedPriceIndicator. */ public com.google.protobuf.ByteString getConsolidatedPriceIndicatorBytes() { java.lang.Object ref = consolidatedPriceIndicator_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consolidatedPriceIndicator_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string consolidatedPriceIndicator = 34; * @param value The consolidatedPriceIndicator to set. * @return This builder for chaining. */ public Builder setConsolidatedPriceIndicator( java.lang.String value) { if (value == null) { throw new NullPointerException(); } consolidatedPriceIndicator_ = value; bitField0_ |= 0x02000000; onChanged(); return this; } /** * string consolidatedPriceIndicator = 34; * @return This builder for chaining. */ public Builder clearConsolidatedPriceIndicator() { consolidatedPriceIndicator_ = getDefaultInstance().getConsolidatedPriceIndicator(); bitField0_ = (bitField0_ & ~0x02000000); onChanged(); return this; } /** * string consolidatedPriceIndicator = 34; * @param value The bytes for consolidatedPriceIndicator to set. * @return This builder for chaining. */ public Builder setConsolidatedPriceIndicatorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); consolidatedPriceIndicator_ = value; bitField0_ |= 0x02000000; onChanged(); return this; } private boolean transient_ ; /** *
     * / True if not persisted in the EOD database.
     * 
* * bool transient = 35; * @return The transient. */ @java.lang.Override public boolean getTransient() { return transient_; } /** *
     * / True if not persisted in the EOD database.
     * 
* * bool transient = 35; * @param value The transient to set. * @return This builder for chaining. */ public Builder setTransient(boolean value) { transient_ = value; bitField0_ |= 0x04000000; onChanged(); return this; } /** *
     * / True if not persisted in the EOD database.
     * 
* * bool transient = 35; * @return This builder for chaining. */ public Builder clearTransient() { bitField0_ = (bitField0_ & ~0x04000000); transient_ = false; onChanged(); return this; } private java.lang.Object indexShortName_ = ""; /** *
     * / Index short name used to identify index.
     * 
* * string indexShortName = 36; * @return The indexShortName. */ public java.lang.String getIndexShortName() { java.lang.Object ref = indexShortName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexShortName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * / Index short name used to identify index.
     * 
* * string indexShortName = 36; * @return The bytes for indexShortName. */ public com.google.protobuf.ByteString getIndexShortNameBytes() { java.lang.Object ref = indexShortName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); indexShortName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * / Index short name used to identify index.
     * 
* * string indexShortName = 36; * @param value The indexShortName to set. * @return This builder for chaining. */ public Builder setIndexShortName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } indexShortName_ = value; bitField0_ |= 0x08000000; onChanged(); return this; } /** *
     * / Index short name used to identify index.
     * 
* * string indexShortName = 36; * @return This builder for chaining. */ public Builder clearIndexShortName() { indexShortName_ = getDefaultInstance().getIndexShortName(); bitField0_ = (bitField0_ & ~0x08000000); onChanged(); return this; } /** *
     * / Index short name used to identify index.
     * 
* * string indexShortName = 36; * @param value The bytes for indexShortName to set. * @return This builder for chaining. */ public Builder setIndexShortNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); indexShortName_ = value; bitField0_ |= 0x08000000; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:org.openfeed.Trade) } // @@protoc_insertion_point(class_scope:org.openfeed.Trade) private static final org.openfeed.Trade DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openfeed.Trade(); } public static org.openfeed.Trade getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Trade parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.openfeed.Trade getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy