org.openfeed.MarketSnapshot 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;
/**
*
* / Snapshot for a market
*
*
* Protobuf type {@code org.openfeed.MarketSnapshot}
*/
public final class MarketSnapshot extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:org.openfeed.MarketSnapshot)
MarketSnapshotOrBuilder {
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= */ "",
MarketSnapshot.class.getName());
}
// Use MarketSnapshot.newBuilder() to construct.
private MarketSnapshot(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private MarketSnapshot() {
symbol_ = "";
service_ = 0;
priceLevels_ = java.util.Collections.emptyList();
orders_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.Openfeed.internal_static_org_openfeed_MarketSnapshot_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.Openfeed.internal_static_org_openfeed_MarketSnapshot_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.MarketSnapshot.class, org.openfeed.MarketSnapshot.Builder.class);
}
private int bitField0_;
public static final int MARKETID_FIELD_NUMBER = 1;
private long marketId_ = 0L;
/**
*
* / Unique id identifying the market
*
*
* sint64 marketId = 1;
* @return The marketId.
*/
@java.lang.Override
public long getMarketId() {
return marketId_;
}
public static final int TRANSACTIONTIME_FIELD_NUMBER = 2;
private long transactionTime_ = 0L;
/**
*
* UTC Timestamp of transaction, nano seconds since Unix epoch
*
*
* sint64 transactionTime = 2;
* @return The transactionTime.
*/
@java.lang.Override
public long getTransactionTime() {
return transactionTime_;
}
public static final int MARKETSEQUENCE_FIELD_NUMBER = 3;
private long marketSequence_ = 0L;
/**
*
* Instrument level sequence number
*
*
* int64 marketSequence = 3;
* @return The marketSequence.
*/
@java.lang.Override
public long getMarketSequence() {
return marketSequence_;
}
public static final int TRADEDATE_FIELD_NUMBER = 4;
private int tradeDate_ = 0;
/**
*
* / Date only, format 2012-07-04 -> 20120704
*
*
* sint32 tradeDate = 4;
* @return The tradeDate.
*/
@java.lang.Override
public int getTradeDate() {
return tradeDate_;
}
public static final int TOTALCHUNKS_FIELD_NUMBER = 5;
private int totalChunks_ = 0;
/**
*
* / A snapshot with market depth may exceed the maximum message size.
* In that case, the snapshot will be broken up across multiple
* snapshot messages.
*
*
* sint32 totalChunks = 5;
* @return The totalChunks.
*/
@java.lang.Override
public int getTotalChunks() {
return totalChunks_;
}
public static final int CURRENTCHUNK_FIELD_NUMBER = 6;
private int currentChunk_ = 0;
/**
* sint32 currentChunk = 6;
* @return The currentChunk.
*/
@java.lang.Override
public int getCurrentChunk() {
return currentChunk_;
}
public static final int SYMBOL_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object symbol_ = "";
/**
*
* Optional symbol identifier
*
*
* string symbol = 7;
* @return The symbol.
*/
@java.lang.Override
public java.lang.String getSymbol() {
java.lang.Object ref = symbol_;
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();
symbol_ = s;
return s;
}
}
/**
*
* Optional symbol identifier
*
*
* string symbol = 7;
* @return The bytes for symbol.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRICEDENOMINATOR_FIELD_NUMBER = 8;
private int priceDenominator_ = 0;
/**
*
* / Divide prices by this value to get real price values. Optional, use value
* / from InstrumentDefinition if not set.
*
*
* sint32 priceDenominator = 8;
* @return The priceDenominator.
*/
@java.lang.Override
public int getPriceDenominator() {
return priceDenominator_;
}
public static final int SERVICE_FIELD_NUMBER = 9;
private int service_ = 0;
/**
*
*
*
*
* .org.openfeed.Service service = 9;
* @return The enum numeric value on the wire for service.
*/
@java.lang.Override public int getServiceValue() {
return service_;
}
/**
*
*
*
*
* .org.openfeed.Service service = 9;
* @return The service.
*/
@java.lang.Override public org.openfeed.Service getService() {
org.openfeed.Service result = org.openfeed.Service.forNumber(service_);
return result == null ? org.openfeed.Service.UNRECOGNIZED : result;
}
public static final int INSTRUMENTSTATUS_FIELD_NUMBER = 10;
private org.openfeed.InstrumentStatus instrumentStatus_;
/**
*
*
*
*
* .org.openfeed.InstrumentStatus instrumentStatus = 10;
* @return Whether the instrumentStatus field is set.
*/
@java.lang.Override
public boolean hasInstrumentStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
*
* .org.openfeed.InstrumentStatus instrumentStatus = 10;
* @return The instrumentStatus.
*/
@java.lang.Override
public org.openfeed.InstrumentStatus getInstrumentStatus() {
return instrumentStatus_ == null ? org.openfeed.InstrumentStatus.getDefaultInstance() : instrumentStatus_;
}
/**
*
*
*
*
* .org.openfeed.InstrumentStatus instrumentStatus = 10;
*/
@java.lang.Override
public org.openfeed.InstrumentStatusOrBuilder getInstrumentStatusOrBuilder() {
return instrumentStatus_ == null ? org.openfeed.InstrumentStatus.getDefaultInstance() : instrumentStatus_;
}
public static final int BBO_FIELD_NUMBER = 11;
private org.openfeed.BestBidOffer bbo_;
/**
*
* Best Bid Offer
*
*
* .org.openfeed.BestBidOffer bbo = 11;
* @return Whether the bbo field is set.
*/
@java.lang.Override
public boolean hasBbo() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Best Bid Offer
*
*
* .org.openfeed.BestBidOffer bbo = 11;
* @return The bbo.
*/
@java.lang.Override
public org.openfeed.BestBidOffer getBbo() {
return bbo_ == null ? org.openfeed.BestBidOffer.getDefaultInstance() : bbo_;
}
/**
*
* Best Bid Offer
*
*
* .org.openfeed.BestBidOffer bbo = 11;
*/
@java.lang.Override
public org.openfeed.BestBidOfferOrBuilder getBboOrBuilder() {
return bbo_ == null ? org.openfeed.BestBidOffer.getDefaultInstance() : bbo_;
}
public static final int INDEX_FIELD_NUMBER = 12;
private org.openfeed.IndexValue index_;
/**
*
* Index Value
*
*
* .org.openfeed.IndexValue index = 12;
* @return Whether the index field is set.
*/
@java.lang.Override
public boolean hasIndex() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Index Value
*
*
* .org.openfeed.IndexValue index = 12;
* @return The index.
*/
@java.lang.Override
public org.openfeed.IndexValue getIndex() {
return index_ == null ? org.openfeed.IndexValue.getDefaultInstance() : index_;
}
/**
*
* Index Value
*
*
* .org.openfeed.IndexValue index = 12;
*/
@java.lang.Override
public org.openfeed.IndexValueOrBuilder getIndexOrBuilder() {
return index_ == null ? org.openfeed.IndexValue.getDefaultInstance() : index_;
}
public static final int PRICELEVELS_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private java.util.List priceLevels_;
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
@java.lang.Override
public java.util.List getPriceLevelsList() {
return priceLevels_;
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
@java.lang.Override
public java.util.List extends org.openfeed.AddPriceLevelOrBuilder>
getPriceLevelsOrBuilderList() {
return priceLevels_;
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
@java.lang.Override
public int getPriceLevelsCount() {
return priceLevels_.size();
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
@java.lang.Override
public org.openfeed.AddPriceLevel getPriceLevels(int index) {
return priceLevels_.get(index);
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
@java.lang.Override
public org.openfeed.AddPriceLevelOrBuilder getPriceLevelsOrBuilder(
int index) {
return priceLevels_.get(index);
}
public static final int ORDERS_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private java.util.List orders_;
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
@java.lang.Override
public java.util.List getOrdersList() {
return orders_;
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
@java.lang.Override
public java.util.List extends org.openfeed.AddOrderOrBuilder>
getOrdersOrBuilderList() {
return orders_;
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
@java.lang.Override
public int getOrdersCount() {
return orders_.size();
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
@java.lang.Override
public org.openfeed.AddOrder getOrders(int index) {
return orders_.get(index);
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
@java.lang.Override
public org.openfeed.AddOrderOrBuilder getOrdersOrBuilder(
int index) {
return orders_.get(index);
}
public static final int NEWS_FIELD_NUMBER = 15;
private org.openfeed.News news_;
/**
* .org.openfeed.News news = 15;
* @return Whether the news field is set.
*/
@java.lang.Override
public boolean hasNews() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .org.openfeed.News news = 15;
* @return The news.
*/
@java.lang.Override
public org.openfeed.News getNews() {
return news_ == null ? org.openfeed.News.getDefaultInstance() : news_;
}
/**
* .org.openfeed.News news = 15;
*/
@java.lang.Override
public org.openfeed.NewsOrBuilder getNewsOrBuilder() {
return news_ == null ? org.openfeed.News.getDefaultInstance() : news_;
}
public static final int OPEN_FIELD_NUMBER = 30;
private org.openfeed.Open open_;
/**
*
* / Most recent opening price
*
*
* .org.openfeed.Open open = 30;
* @return Whether the open field is set.
*/
@java.lang.Override
public boolean hasOpen() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* / Most recent opening price
*
*
* .org.openfeed.Open open = 30;
* @return The open.
*/
@java.lang.Override
public org.openfeed.Open getOpen() {
return open_ == null ? org.openfeed.Open.getDefaultInstance() : open_;
}
/**
*
* / Most recent opening price
*
*
* .org.openfeed.Open open = 30;
*/
@java.lang.Override
public org.openfeed.OpenOrBuilder getOpenOrBuilder() {
return open_ == null ? org.openfeed.Open.getDefaultInstance() : open_;
}
public static final int HIGH_FIELD_NUMBER = 31;
private org.openfeed.High high_;
/**
*
* / High price for the trading session
*
*
* .org.openfeed.High high = 31;
* @return Whether the high field is set.
*/
@java.lang.Override
public boolean hasHigh() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* / High price for the trading session
*
*
* .org.openfeed.High high = 31;
* @return The high.
*/
@java.lang.Override
public org.openfeed.High getHigh() {
return high_ == null ? org.openfeed.High.getDefaultInstance() : high_;
}
/**
*
* / High price for the trading session
*
*
* .org.openfeed.High high = 31;
*/
@java.lang.Override
public org.openfeed.HighOrBuilder getHighOrBuilder() {
return high_ == null ? org.openfeed.High.getDefaultInstance() : high_;
}
public static final int LOW_FIELD_NUMBER = 32;
private org.openfeed.Low low_;
/**
*
* / Low price for the trading session
*
*
* .org.openfeed.Low low = 32;
* @return Whether the low field is set.
*/
@java.lang.Override
public boolean hasLow() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* / Low price for the trading session
*
*
* .org.openfeed.Low low = 32;
* @return The low.
*/
@java.lang.Override
public org.openfeed.Low getLow() {
return low_ == null ? org.openfeed.Low.getDefaultInstance() : low_;
}
/**
*
* / Low price for the trading session
*
*
* .org.openfeed.Low low = 32;
*/
@java.lang.Override
public org.openfeed.LowOrBuilder getLowOrBuilder() {
return low_ == null ? org.openfeed.Low.getDefaultInstance() : low_;
}
public static final int CLOSE_FIELD_NUMBER = 33;
private org.openfeed.Close close_;
/**
*
* / Most recent closing price
*
*
* .org.openfeed.Close close = 33;
* @return Whether the close field is set.
*/
@java.lang.Override
public boolean hasClose() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* / Most recent closing price
*
*
* .org.openfeed.Close close = 33;
* @return The close.
*/
@java.lang.Override
public org.openfeed.Close getClose() {
return close_ == null ? org.openfeed.Close.getDefaultInstance() : close_;
}
/**
*
* / Most recent closing price
*
*
* .org.openfeed.Close close = 33;
*/
@java.lang.Override
public org.openfeed.CloseOrBuilder getCloseOrBuilder() {
return close_ == null ? org.openfeed.Close.getDefaultInstance() : close_;
}
public static final int PREVCLOSE_FIELD_NUMBER = 34;
private org.openfeed.PrevClose prevClose_;
/**
*
* / Previous closing price
*
*
* .org.openfeed.PrevClose prevClose = 34;
* @return Whether the prevClose field is set.
*/
@java.lang.Override
public boolean hasPrevClose() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* / Previous closing price
*
*
* .org.openfeed.PrevClose prevClose = 34;
* @return The prevClose.
*/
@java.lang.Override
public org.openfeed.PrevClose getPrevClose() {
return prevClose_ == null ? org.openfeed.PrevClose.getDefaultInstance() : prevClose_;
}
/**
*
* / Previous closing price
*
*
* .org.openfeed.PrevClose prevClose = 34;
*/
@java.lang.Override
public org.openfeed.PrevCloseOrBuilder getPrevCloseOrBuilder() {
return prevClose_ == null ? org.openfeed.PrevClose.getDefaultInstance() : prevClose_;
}
public static final int LAST_FIELD_NUMBER = 35;
private org.openfeed.Last last_;
/**
*
* / Most recent traded price and quantity
*
*
* .org.openfeed.Last last = 35;
* @return Whether the last field is set.
*/
@java.lang.Override
public boolean hasLast() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* / Most recent traded price and quantity
*
*
* .org.openfeed.Last last = 35;
* @return The last.
*/
@java.lang.Override
public org.openfeed.Last getLast() {
return last_ == null ? org.openfeed.Last.getDefaultInstance() : last_;
}
/**
*
* / Most recent traded price and quantity
*
*
* .org.openfeed.Last last = 35;
*/
@java.lang.Override
public org.openfeed.LastOrBuilder getLastOrBuilder() {
return last_ == null ? org.openfeed.Last.getDefaultInstance() : last_;
}
public static final int YEARHIGH_FIELD_NUMBER = 36;
private org.openfeed.YearHigh yearHigh_;
/**
*
* / Year high price
*
*
* .org.openfeed.YearHigh yearHigh = 36;
* @return Whether the yearHigh field is set.
*/
@java.lang.Override
public boolean hasYearHigh() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* / Year high price
*
*
* .org.openfeed.YearHigh yearHigh = 36;
* @return The yearHigh.
*/
@java.lang.Override
public org.openfeed.YearHigh getYearHigh() {
return yearHigh_ == null ? org.openfeed.YearHigh.getDefaultInstance() : yearHigh_;
}
/**
*
* / Year high price
*
*
* .org.openfeed.YearHigh yearHigh = 36;
*/
@java.lang.Override
public org.openfeed.YearHighOrBuilder getYearHighOrBuilder() {
return yearHigh_ == null ? org.openfeed.YearHigh.getDefaultInstance() : yearHigh_;
}
public static final int YEARLOW_FIELD_NUMBER = 37;
private org.openfeed.YearLow yearLow_;
/**
*
* / Year low price
*
*
* .org.openfeed.YearLow yearLow = 37;
* @return Whether the yearLow field is set.
*/
@java.lang.Override
public boolean hasYearLow() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* / Year low price
*
*
* .org.openfeed.YearLow yearLow = 37;
* @return The yearLow.
*/
@java.lang.Override
public org.openfeed.YearLow getYearLow() {
return yearLow_ == null ? org.openfeed.YearLow.getDefaultInstance() : yearLow_;
}
/**
*
* / Year low price
*
*
* .org.openfeed.YearLow yearLow = 37;
*/
@java.lang.Override
public org.openfeed.YearLowOrBuilder getYearLowOrBuilder() {
return yearLow_ == null ? org.openfeed.YearLow.getDefaultInstance() : yearLow_;
}
public static final int VOLUME_FIELD_NUMBER = 38;
private org.openfeed.Volume volume_;
/**
*
* / Total traded volume
*
*
* .org.openfeed.Volume volume = 38;
* @return Whether the volume field is set.
*/
@java.lang.Override
public boolean hasVolume() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* / Total traded volume
*
*
* .org.openfeed.Volume volume = 38;
* @return The volume.
*/
@java.lang.Override
public org.openfeed.Volume getVolume() {
return volume_ == null ? org.openfeed.Volume.getDefaultInstance() : volume_;
}
/**
*
* / Total traded volume
*
*
* .org.openfeed.Volume volume = 38;
*/
@java.lang.Override
public org.openfeed.VolumeOrBuilder getVolumeOrBuilder() {
return volume_ == null ? org.openfeed.Volume.getDefaultInstance() : volume_;
}
public static final int SETTLEMENT_FIELD_NUMBER = 39;
private org.openfeed.Settlement settlement_;
/**
*
* / Most recent settlement price
*
*
* .org.openfeed.Settlement settlement = 39;
* @return Whether the settlement field is set.
*/
@java.lang.Override
public boolean hasSettlement() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* / Most recent settlement price
*
*
* .org.openfeed.Settlement settlement = 39;
* @return The settlement.
*/
@java.lang.Override
public org.openfeed.Settlement getSettlement() {
return settlement_ == null ? org.openfeed.Settlement.getDefaultInstance() : settlement_;
}
/**
*
* / Most recent settlement price
*
*
* .org.openfeed.Settlement settlement = 39;
*/
@java.lang.Override
public org.openfeed.SettlementOrBuilder getSettlementOrBuilder() {
return settlement_ == null ? org.openfeed.Settlement.getDefaultInstance() : settlement_;
}
public static final int OPENINTEREST_FIELD_NUMBER = 40;
private org.openfeed.OpenInterest openInterest_;
/**
*
* / Most recent open interest
*
*
* .org.openfeed.OpenInterest openInterest = 40;
* @return Whether the openInterest field is set.
*/
@java.lang.Override
public boolean hasOpenInterest() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
* / Most recent open interest
*
*
* .org.openfeed.OpenInterest openInterest = 40;
* @return The openInterest.
*/
@java.lang.Override
public org.openfeed.OpenInterest getOpenInterest() {
return openInterest_ == null ? org.openfeed.OpenInterest.getDefaultInstance() : openInterest_;
}
/**
*
* / Most recent open interest
*
*
* .org.openfeed.OpenInterest openInterest = 40;
*/
@java.lang.Override
public org.openfeed.OpenInterestOrBuilder getOpenInterestOrBuilder() {
return openInterest_ == null ? org.openfeed.OpenInterest.getDefaultInstance() : openInterest_;
}
public static final int VWAP_FIELD_NUMBER = 41;
private org.openfeed.Vwap vwap_;
/**
*
* / Most recent volume weighted average price
*
*
* .org.openfeed.Vwap vwap = 41;
* @return Whether the vwap field is set.
*/
@java.lang.Override
public boolean hasVwap() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
* / Most recent volume weighted average price
*
*
* .org.openfeed.Vwap vwap = 41;
* @return The vwap.
*/
@java.lang.Override
public org.openfeed.Vwap getVwap() {
return vwap_ == null ? org.openfeed.Vwap.getDefaultInstance() : vwap_;
}
/**
*
* / Most recent volume weighted average price
*
*
* .org.openfeed.Vwap vwap = 41;
*/
@java.lang.Override
public org.openfeed.VwapOrBuilder getVwapOrBuilder() {
return vwap_ == null ? org.openfeed.Vwap.getDefaultInstance() : vwap_;
}
public static final int DIVIDENDSINCOMEDISTRIBUTIONS_FIELD_NUMBER = 42;
private org.openfeed.DividendsIncomeDistributions dividendsIncomeDistributions_;
/**
* .org.openfeed.DividendsIncomeDistributions dividendsIncomeDistributions = 42;
* @return Whether the dividendsIncomeDistributions field is set.
*/
@java.lang.Override
public boolean hasDividendsIncomeDistributions() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* .org.openfeed.DividendsIncomeDistributions dividendsIncomeDistributions = 42;
* @return The dividendsIncomeDistributions.
*/
@java.lang.Override
public org.openfeed.DividendsIncomeDistributions getDividendsIncomeDistributions() {
return dividendsIncomeDistributions_ == null ? org.openfeed.DividendsIncomeDistributions.getDefaultInstance() : dividendsIncomeDistributions_;
}
/**
* .org.openfeed.DividendsIncomeDistributions dividendsIncomeDistributions = 42;
*/
@java.lang.Override
public org.openfeed.DividendsIncomeDistributionsOrBuilder getDividendsIncomeDistributionsOrBuilder() {
return dividendsIncomeDistributions_ == null ? org.openfeed.DividendsIncomeDistributions.getDefaultInstance() : dividendsIncomeDistributions_;
}
public static final int NUMBEROFTRADES_FIELD_NUMBER = 43;
private org.openfeed.NumberOfTrades numberOfTrades_;
/**
* .org.openfeed.NumberOfTrades numberOfTrades = 43;
* @return Whether the numberOfTrades field is set.
*/
@java.lang.Override
public boolean hasNumberOfTrades() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
* .org.openfeed.NumberOfTrades numberOfTrades = 43;
* @return The numberOfTrades.
*/
@java.lang.Override
public org.openfeed.NumberOfTrades getNumberOfTrades() {
return numberOfTrades_ == null ? org.openfeed.NumberOfTrades.getDefaultInstance() : numberOfTrades_;
}
/**
* .org.openfeed.NumberOfTrades numberOfTrades = 43;
*/
@java.lang.Override
public org.openfeed.NumberOfTradesOrBuilder getNumberOfTradesOrBuilder() {
return numberOfTrades_ == null ? org.openfeed.NumberOfTrades.getDefaultInstance() : numberOfTrades_;
}
public static final int MONETARYVALUE_FIELD_NUMBER = 44;
private org.openfeed.MonetaryValue monetaryValue_;
/**
* .org.openfeed.MonetaryValue monetaryValue = 44;
* @return Whether the monetaryValue field is set.
*/
@java.lang.Override
public boolean hasMonetaryValue() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
* .org.openfeed.MonetaryValue monetaryValue = 44;
* @return The monetaryValue.
*/
@java.lang.Override
public org.openfeed.MonetaryValue getMonetaryValue() {
return monetaryValue_ == null ? org.openfeed.MonetaryValue.getDefaultInstance() : monetaryValue_;
}
/**
* .org.openfeed.MonetaryValue monetaryValue = 44;
*/
@java.lang.Override
public org.openfeed.MonetaryValueOrBuilder getMonetaryValueOrBuilder() {
return monetaryValue_ == null ? org.openfeed.MonetaryValue.getDefaultInstance() : monetaryValue_;
}
public static final int CAPITALDISTRIBUTIONS_FIELD_NUMBER = 45;
private org.openfeed.CapitalDistributions capitalDistributions_;
/**
* .org.openfeed.CapitalDistributions capitalDistributions = 45;
* @return Whether the capitalDistributions field is set.
*/
@java.lang.Override
public boolean hasCapitalDistributions() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
* .org.openfeed.CapitalDistributions capitalDistributions = 45;
* @return The capitalDistributions.
*/
@java.lang.Override
public org.openfeed.CapitalDistributions getCapitalDistributions() {
return capitalDistributions_ == null ? org.openfeed.CapitalDistributions.getDefaultInstance() : capitalDistributions_;
}
/**
* .org.openfeed.CapitalDistributions capitalDistributions = 45;
*/
@java.lang.Override
public org.openfeed.CapitalDistributionsOrBuilder getCapitalDistributionsOrBuilder() {
return capitalDistributions_ == null ? org.openfeed.CapitalDistributions.getDefaultInstance() : capitalDistributions_;
}
public static final int SHARESOUTSTANDING_FIELD_NUMBER = 46;
private org.openfeed.SharesOutstanding sharesOutstanding_;
/**
* .org.openfeed.SharesOutstanding sharesOutstanding = 46;
* @return Whether the sharesOutstanding field is set.
*/
@java.lang.Override
public boolean hasSharesOutstanding() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
* .org.openfeed.SharesOutstanding sharesOutstanding = 46;
* @return The sharesOutstanding.
*/
@java.lang.Override
public org.openfeed.SharesOutstanding getSharesOutstanding() {
return sharesOutstanding_ == null ? org.openfeed.SharesOutstanding.getDefaultInstance() : sharesOutstanding_;
}
/**
* .org.openfeed.SharesOutstanding sharesOutstanding = 46;
*/
@java.lang.Override
public org.openfeed.SharesOutstandingOrBuilder getSharesOutstandingOrBuilder() {
return sharesOutstanding_ == null ? org.openfeed.SharesOutstanding.getDefaultInstance() : sharesOutstanding_;
}
public static final int NETASSETVALUE_FIELD_NUMBER = 47;
private org.openfeed.NetAssetValue netAssetValue_;
/**
* .org.openfeed.NetAssetValue netAssetValue = 47;
* @return Whether the netAssetValue field is set.
*/
@java.lang.Override
public boolean hasNetAssetValue() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
* .org.openfeed.NetAssetValue netAssetValue = 47;
* @return The netAssetValue.
*/
@java.lang.Override
public org.openfeed.NetAssetValue getNetAssetValue() {
return netAssetValue_ == null ? org.openfeed.NetAssetValue.getDefaultInstance() : netAssetValue_;
}
/**
* .org.openfeed.NetAssetValue netAssetValue = 47;
*/
@java.lang.Override
public org.openfeed.NetAssetValueOrBuilder getNetAssetValueOrBuilder() {
return netAssetValue_ == null ? org.openfeed.NetAssetValue.getDefaultInstance() : netAssetValue_;
}
public static final int PREVIOUSSESSION_FIELD_NUMBER = 48;
private org.openfeed.MarketSession previousSession_;
/**
*
* / Previous session.
*
*
* .org.openfeed.MarketSession previousSession = 48;
* @return Whether the previousSession field is set.
*/
@java.lang.Override
public boolean hasPreviousSession() {
return ((bitField0_ & 0x00400000) != 0);
}
/**
*
* / Previous session.
*
*
* .org.openfeed.MarketSession previousSession = 48;
* @return The previousSession.
*/
@java.lang.Override
public org.openfeed.MarketSession getPreviousSession() {
return previousSession_ == null ? org.openfeed.MarketSession.getDefaultInstance() : previousSession_;
}
/**
*
* / Previous session.
*
*
* .org.openfeed.MarketSession previousSession = 48;
*/
@java.lang.Override
public org.openfeed.MarketSessionOrBuilder getPreviousSessionOrBuilder() {
return previousSession_ == null ? org.openfeed.MarketSession.getDefaultInstance() : previousSession_;
}
public static final int TSESSION_FIELD_NUMBER = 49;
private org.openfeed.MarketSession tSession_;
/**
*
* / 'T' session.
*
*
* .org.openfeed.MarketSession tSession = 49;
* @return Whether the tSession field is set.
*/
@java.lang.Override
public boolean hasTSession() {
return ((bitField0_ & 0x00800000) != 0);
}
/**
*
* / 'T' session.
*
*
* .org.openfeed.MarketSession tSession = 49;
* @return The tSession.
*/
@java.lang.Override
public org.openfeed.MarketSession getTSession() {
return tSession_ == null ? org.openfeed.MarketSession.getDefaultInstance() : tSession_;
}
/**
*
* / 'T' session.
*
*
* .org.openfeed.MarketSession tSession = 49;
*/
@java.lang.Override
public org.openfeed.MarketSessionOrBuilder getTSessionOrBuilder() {
return tSession_ == null ? org.openfeed.MarketSession.getDefaultInstance() : tSession_;
}
public static final int VOLUMEATPRICE_FIELD_NUMBER = 50;
private org.openfeed.VolumeAtPrice volumeAtPrice_;
/**
*
* / Volume at price. Used by the market state/ JERQ.
*
*
* .org.openfeed.VolumeAtPrice volumeAtPrice = 50;
* @return Whether the volumeAtPrice field is set.
*/
@java.lang.Override
public boolean hasVolumeAtPrice() {
return ((bitField0_ & 0x01000000) != 0);
}
/**
*
* / Volume at price. Used by the market state/ JERQ.
*
*
* .org.openfeed.VolumeAtPrice volumeAtPrice = 50;
* @return The volumeAtPrice.
*/
@java.lang.Override
public org.openfeed.VolumeAtPrice getVolumeAtPrice() {
return volumeAtPrice_ == null ? org.openfeed.VolumeAtPrice.getDefaultInstance() : volumeAtPrice_;
}
/**
*
* / Volume at price. Used by the market state/ JERQ.
*
*
* .org.openfeed.VolumeAtPrice volumeAtPrice = 50;
*/
@java.lang.Override
public org.openfeed.VolumeAtPriceOrBuilder getVolumeAtPriceOrBuilder() {
return volumeAtPrice_ == null ? org.openfeed.VolumeAtPrice.getDefaultInstance() : volumeAtPrice_;
}
public static final int HIGHROLLING_FIELD_NUMBER = 51;
private org.openfeed.HighRolling highRolling_;
/**
* .org.openfeed.HighRolling highRolling = 51;
* @return Whether the highRolling field is set.
*/
@java.lang.Override
public boolean hasHighRolling() {
return ((bitField0_ & 0x02000000) != 0);
}
/**
* .org.openfeed.HighRolling highRolling = 51;
* @return The highRolling.
*/
@java.lang.Override
public org.openfeed.HighRolling getHighRolling() {
return highRolling_ == null ? org.openfeed.HighRolling.getDefaultInstance() : highRolling_;
}
/**
* .org.openfeed.HighRolling highRolling = 51;
*/
@java.lang.Override
public org.openfeed.HighRollingOrBuilder getHighRollingOrBuilder() {
return highRolling_ == null ? org.openfeed.HighRolling.getDefaultInstance() : highRolling_;
}
public static final int LOWROLLING_FIELD_NUMBER = 52;
private org.openfeed.LowRolling lowRolling_;
/**
* .org.openfeed.LowRolling lowRolling = 52;
* @return Whether the lowRolling field is set.
*/
@java.lang.Override
public boolean hasLowRolling() {
return ((bitField0_ & 0x04000000) != 0);
}
/**
* .org.openfeed.LowRolling lowRolling = 52;
* @return The lowRolling.
*/
@java.lang.Override
public org.openfeed.LowRolling getLowRolling() {
return lowRolling_ == null ? org.openfeed.LowRolling.getDefaultInstance() : lowRolling_;
}
/**
* .org.openfeed.LowRolling lowRolling = 52;
*/
@java.lang.Override
public org.openfeed.LowRollingOrBuilder getLowRollingOrBuilder() {
return lowRolling_ == null ? org.openfeed.LowRolling.getDefaultInstance() : lowRolling_;
}
public static final int ZSESSION_FIELD_NUMBER = 53;
private org.openfeed.MarketSession zSession_;
/**
*
* / 'Z' session. Includes all trades, even the ones that do not update Last.
*
*
* .org.openfeed.MarketSession zSession = 53;
* @return Whether the zSession field is set.
*/
@java.lang.Override
public boolean hasZSession() {
return ((bitField0_ & 0x08000000) != 0);
}
/**
*
* / 'Z' session. Includes all trades, even the ones that do not update Last.
*
*
* .org.openfeed.MarketSession zSession = 53;
* @return The zSession.
*/
@java.lang.Override
public org.openfeed.MarketSession getZSession() {
return zSession_ == null ? org.openfeed.MarketSession.getDefaultInstance() : zSession_;
}
/**
*
* / 'Z' session. Includes all trades, even the ones that do not update Last.
*
*
* .org.openfeed.MarketSession zSession = 53;
*/
@java.lang.Override
public org.openfeed.MarketSessionOrBuilder getZSessionOrBuilder() {
return zSession_ == null ? org.openfeed.MarketSession.getDefaultInstance() : zSession_;
}
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 (marketId_ != 0L) {
output.writeSInt64(1, marketId_);
}
if (transactionTime_ != 0L) {
output.writeSInt64(2, transactionTime_);
}
if (marketSequence_ != 0L) {
output.writeInt64(3, marketSequence_);
}
if (tradeDate_ != 0) {
output.writeSInt32(4, tradeDate_);
}
if (totalChunks_ != 0) {
output.writeSInt32(5, totalChunks_);
}
if (currentChunk_ != 0) {
output.writeSInt32(6, currentChunk_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(symbol_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 7, symbol_);
}
if (priceDenominator_ != 0) {
output.writeSInt32(8, priceDenominator_);
}
if (service_ != org.openfeed.Service.UNKNOWN_SERVICE.getNumber()) {
output.writeEnum(9, service_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(10, getInstrumentStatus());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(11, getBbo());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(12, getIndex());
}
for (int i = 0; i < priceLevels_.size(); i++) {
output.writeMessage(13, priceLevels_.get(i));
}
for (int i = 0; i < orders_.size(); i++) {
output.writeMessage(14, orders_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(15, getNews());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(30, getOpen());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(31, getHigh());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(32, getLow());
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(33, getClose());
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeMessage(34, getPrevClose());
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeMessage(35, getLast());
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(36, getYearHigh());
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(37, getYearLow());
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeMessage(38, getVolume());
}
if (((bitField0_ & 0x00002000) != 0)) {
output.writeMessage(39, getSettlement());
}
if (((bitField0_ & 0x00004000) != 0)) {
output.writeMessage(40, getOpenInterest());
}
if (((bitField0_ & 0x00008000) != 0)) {
output.writeMessage(41, getVwap());
}
if (((bitField0_ & 0x00010000) != 0)) {
output.writeMessage(42, getDividendsIncomeDistributions());
}
if (((bitField0_ & 0x00020000) != 0)) {
output.writeMessage(43, getNumberOfTrades());
}
if (((bitField0_ & 0x00040000) != 0)) {
output.writeMessage(44, getMonetaryValue());
}
if (((bitField0_ & 0x00080000) != 0)) {
output.writeMessage(45, getCapitalDistributions());
}
if (((bitField0_ & 0x00100000) != 0)) {
output.writeMessage(46, getSharesOutstanding());
}
if (((bitField0_ & 0x00200000) != 0)) {
output.writeMessage(47, getNetAssetValue());
}
if (((bitField0_ & 0x00400000) != 0)) {
output.writeMessage(48, getPreviousSession());
}
if (((bitField0_ & 0x00800000) != 0)) {
output.writeMessage(49, getTSession());
}
if (((bitField0_ & 0x01000000) != 0)) {
output.writeMessage(50, getVolumeAtPrice());
}
if (((bitField0_ & 0x02000000) != 0)) {
output.writeMessage(51, getHighRolling());
}
if (((bitField0_ & 0x04000000) != 0)) {
output.writeMessage(52, getLowRolling());
}
if (((bitField0_ & 0x08000000) != 0)) {
output.writeMessage(53, getZSession());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (marketId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(1, marketId_);
}
if (transactionTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(2, transactionTime_);
}
if (marketSequence_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, marketSequence_);
}
if (tradeDate_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(4, tradeDate_);
}
if (totalChunks_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(5, totalChunks_);
}
if (currentChunk_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(6, currentChunk_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(symbol_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(7, symbol_);
}
if (priceDenominator_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(8, priceDenominator_);
}
if (service_ != org.openfeed.Service.UNKNOWN_SERVICE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, service_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getInstrumentStatus());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getBbo());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getIndex());
}
for (int i = 0; i < priceLevels_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, priceLevels_.get(i));
}
for (int i = 0; i < orders_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, orders_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getNews());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(30, getOpen());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(31, getHigh());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(32, getLow());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(33, getClose());
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(34, getPrevClose());
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(35, getLast());
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(36, getYearHigh());
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(37, getYearLow());
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(38, getVolume());
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(39, getSettlement());
}
if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(40, getOpenInterest());
}
if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(41, getVwap());
}
if (((bitField0_ & 0x00010000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(42, getDividendsIncomeDistributions());
}
if (((bitField0_ & 0x00020000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(43, getNumberOfTrades());
}
if (((bitField0_ & 0x00040000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(44, getMonetaryValue());
}
if (((bitField0_ & 0x00080000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(45, getCapitalDistributions());
}
if (((bitField0_ & 0x00100000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(46, getSharesOutstanding());
}
if (((bitField0_ & 0x00200000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(47, getNetAssetValue());
}
if (((bitField0_ & 0x00400000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(48, getPreviousSession());
}
if (((bitField0_ & 0x00800000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(49, getTSession());
}
if (((bitField0_ & 0x01000000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(50, getVolumeAtPrice());
}
if (((bitField0_ & 0x02000000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(51, getHighRolling());
}
if (((bitField0_ & 0x04000000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(52, getLowRolling());
}
if (((bitField0_ & 0x08000000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(53, getZSession());
}
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.MarketSnapshot)) {
return super.equals(obj);
}
org.openfeed.MarketSnapshot other = (org.openfeed.MarketSnapshot) obj;
if (getMarketId()
!= other.getMarketId()) return false;
if (getTransactionTime()
!= other.getTransactionTime()) return false;
if (getMarketSequence()
!= other.getMarketSequence()) return false;
if (getTradeDate()
!= other.getTradeDate()) return false;
if (getTotalChunks()
!= other.getTotalChunks()) return false;
if (getCurrentChunk()
!= other.getCurrentChunk()) return false;
if (!getSymbol()
.equals(other.getSymbol())) return false;
if (getPriceDenominator()
!= other.getPriceDenominator()) return false;
if (service_ != other.service_) return false;
if (hasInstrumentStatus() != other.hasInstrumentStatus()) return false;
if (hasInstrumentStatus()) {
if (!getInstrumentStatus()
.equals(other.getInstrumentStatus())) return false;
}
if (hasBbo() != other.hasBbo()) return false;
if (hasBbo()) {
if (!getBbo()
.equals(other.getBbo())) return false;
}
if (hasIndex() != other.hasIndex()) return false;
if (hasIndex()) {
if (!getIndex()
.equals(other.getIndex())) return false;
}
if (!getPriceLevelsList()
.equals(other.getPriceLevelsList())) return false;
if (!getOrdersList()
.equals(other.getOrdersList())) return false;
if (hasNews() != other.hasNews()) return false;
if (hasNews()) {
if (!getNews()
.equals(other.getNews())) return false;
}
if (hasOpen() != other.hasOpen()) return false;
if (hasOpen()) {
if (!getOpen()
.equals(other.getOpen())) return false;
}
if (hasHigh() != other.hasHigh()) return false;
if (hasHigh()) {
if (!getHigh()
.equals(other.getHigh())) return false;
}
if (hasLow() != other.hasLow()) return false;
if (hasLow()) {
if (!getLow()
.equals(other.getLow())) return false;
}
if (hasClose() != other.hasClose()) return false;
if (hasClose()) {
if (!getClose()
.equals(other.getClose())) return false;
}
if (hasPrevClose() != other.hasPrevClose()) return false;
if (hasPrevClose()) {
if (!getPrevClose()
.equals(other.getPrevClose())) return false;
}
if (hasLast() != other.hasLast()) return false;
if (hasLast()) {
if (!getLast()
.equals(other.getLast())) return false;
}
if (hasYearHigh() != other.hasYearHigh()) return false;
if (hasYearHigh()) {
if (!getYearHigh()
.equals(other.getYearHigh())) return false;
}
if (hasYearLow() != other.hasYearLow()) return false;
if (hasYearLow()) {
if (!getYearLow()
.equals(other.getYearLow())) return false;
}
if (hasVolume() != other.hasVolume()) return false;
if (hasVolume()) {
if (!getVolume()
.equals(other.getVolume())) return false;
}
if (hasSettlement() != other.hasSettlement()) return false;
if (hasSettlement()) {
if (!getSettlement()
.equals(other.getSettlement())) return false;
}
if (hasOpenInterest() != other.hasOpenInterest()) return false;
if (hasOpenInterest()) {
if (!getOpenInterest()
.equals(other.getOpenInterest())) return false;
}
if (hasVwap() != other.hasVwap()) return false;
if (hasVwap()) {
if (!getVwap()
.equals(other.getVwap())) return false;
}
if (hasDividendsIncomeDistributions() != other.hasDividendsIncomeDistributions()) return false;
if (hasDividendsIncomeDistributions()) {
if (!getDividendsIncomeDistributions()
.equals(other.getDividendsIncomeDistributions())) return false;
}
if (hasNumberOfTrades() != other.hasNumberOfTrades()) return false;
if (hasNumberOfTrades()) {
if (!getNumberOfTrades()
.equals(other.getNumberOfTrades())) return false;
}
if (hasMonetaryValue() != other.hasMonetaryValue()) return false;
if (hasMonetaryValue()) {
if (!getMonetaryValue()
.equals(other.getMonetaryValue())) return false;
}
if (hasCapitalDistributions() != other.hasCapitalDistributions()) return false;
if (hasCapitalDistributions()) {
if (!getCapitalDistributions()
.equals(other.getCapitalDistributions())) return false;
}
if (hasSharesOutstanding() != other.hasSharesOutstanding()) return false;
if (hasSharesOutstanding()) {
if (!getSharesOutstanding()
.equals(other.getSharesOutstanding())) return false;
}
if (hasNetAssetValue() != other.hasNetAssetValue()) return false;
if (hasNetAssetValue()) {
if (!getNetAssetValue()
.equals(other.getNetAssetValue())) return false;
}
if (hasPreviousSession() != other.hasPreviousSession()) return false;
if (hasPreviousSession()) {
if (!getPreviousSession()
.equals(other.getPreviousSession())) return false;
}
if (hasTSession() != other.hasTSession()) return false;
if (hasTSession()) {
if (!getTSession()
.equals(other.getTSession())) return false;
}
if (hasVolumeAtPrice() != other.hasVolumeAtPrice()) return false;
if (hasVolumeAtPrice()) {
if (!getVolumeAtPrice()
.equals(other.getVolumeAtPrice())) return false;
}
if (hasHighRolling() != other.hasHighRolling()) return false;
if (hasHighRolling()) {
if (!getHighRolling()
.equals(other.getHighRolling())) return false;
}
if (hasLowRolling() != other.hasLowRolling()) return false;
if (hasLowRolling()) {
if (!getLowRolling()
.equals(other.getLowRolling())) return false;
}
if (hasZSession() != other.hasZSession()) return false;
if (hasZSession()) {
if (!getZSession()
.equals(other.getZSession())) 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) + MARKETID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMarketId());
hash = (37 * hash) + TRANSACTIONTIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTransactionTime());
hash = (37 * hash) + MARKETSEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMarketSequence());
hash = (37 * hash) + TRADEDATE_FIELD_NUMBER;
hash = (53 * hash) + getTradeDate();
hash = (37 * hash) + TOTALCHUNKS_FIELD_NUMBER;
hash = (53 * hash) + getTotalChunks();
hash = (37 * hash) + CURRENTCHUNK_FIELD_NUMBER;
hash = (53 * hash) + getCurrentChunk();
hash = (37 * hash) + SYMBOL_FIELD_NUMBER;
hash = (53 * hash) + getSymbol().hashCode();
hash = (37 * hash) + PRICEDENOMINATOR_FIELD_NUMBER;
hash = (53 * hash) + getPriceDenominator();
hash = (37 * hash) + SERVICE_FIELD_NUMBER;
hash = (53 * hash) + service_;
if (hasInstrumentStatus()) {
hash = (37 * hash) + INSTRUMENTSTATUS_FIELD_NUMBER;
hash = (53 * hash) + getInstrumentStatus().hashCode();
}
if (hasBbo()) {
hash = (37 * hash) + BBO_FIELD_NUMBER;
hash = (53 * hash) + getBbo().hashCode();
}
if (hasIndex()) {
hash = (37 * hash) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + getIndex().hashCode();
}
if (getPriceLevelsCount() > 0) {
hash = (37 * hash) + PRICELEVELS_FIELD_NUMBER;
hash = (53 * hash) + getPriceLevelsList().hashCode();
}
if (getOrdersCount() > 0) {
hash = (37 * hash) + ORDERS_FIELD_NUMBER;
hash = (53 * hash) + getOrdersList().hashCode();
}
if (hasNews()) {
hash = (37 * hash) + NEWS_FIELD_NUMBER;
hash = (53 * hash) + getNews().hashCode();
}
if (hasOpen()) {
hash = (37 * hash) + OPEN_FIELD_NUMBER;
hash = (53 * hash) + getOpen().hashCode();
}
if (hasHigh()) {
hash = (37 * hash) + HIGH_FIELD_NUMBER;
hash = (53 * hash) + getHigh().hashCode();
}
if (hasLow()) {
hash = (37 * hash) + LOW_FIELD_NUMBER;
hash = (53 * hash) + getLow().hashCode();
}
if (hasClose()) {
hash = (37 * hash) + CLOSE_FIELD_NUMBER;
hash = (53 * hash) + getClose().hashCode();
}
if (hasPrevClose()) {
hash = (37 * hash) + PREVCLOSE_FIELD_NUMBER;
hash = (53 * hash) + getPrevClose().hashCode();
}
if (hasLast()) {
hash = (37 * hash) + LAST_FIELD_NUMBER;
hash = (53 * hash) + getLast().hashCode();
}
if (hasYearHigh()) {
hash = (37 * hash) + YEARHIGH_FIELD_NUMBER;
hash = (53 * hash) + getYearHigh().hashCode();
}
if (hasYearLow()) {
hash = (37 * hash) + YEARLOW_FIELD_NUMBER;
hash = (53 * hash) + getYearLow().hashCode();
}
if (hasVolume()) {
hash = (37 * hash) + VOLUME_FIELD_NUMBER;
hash = (53 * hash) + getVolume().hashCode();
}
if (hasSettlement()) {
hash = (37 * hash) + SETTLEMENT_FIELD_NUMBER;
hash = (53 * hash) + getSettlement().hashCode();
}
if (hasOpenInterest()) {
hash = (37 * hash) + OPENINTEREST_FIELD_NUMBER;
hash = (53 * hash) + getOpenInterest().hashCode();
}
if (hasVwap()) {
hash = (37 * hash) + VWAP_FIELD_NUMBER;
hash = (53 * hash) + getVwap().hashCode();
}
if (hasDividendsIncomeDistributions()) {
hash = (37 * hash) + DIVIDENDSINCOMEDISTRIBUTIONS_FIELD_NUMBER;
hash = (53 * hash) + getDividendsIncomeDistributions().hashCode();
}
if (hasNumberOfTrades()) {
hash = (37 * hash) + NUMBEROFTRADES_FIELD_NUMBER;
hash = (53 * hash) + getNumberOfTrades().hashCode();
}
if (hasMonetaryValue()) {
hash = (37 * hash) + MONETARYVALUE_FIELD_NUMBER;
hash = (53 * hash) + getMonetaryValue().hashCode();
}
if (hasCapitalDistributions()) {
hash = (37 * hash) + CAPITALDISTRIBUTIONS_FIELD_NUMBER;
hash = (53 * hash) + getCapitalDistributions().hashCode();
}
if (hasSharesOutstanding()) {
hash = (37 * hash) + SHARESOUTSTANDING_FIELD_NUMBER;
hash = (53 * hash) + getSharesOutstanding().hashCode();
}
if (hasNetAssetValue()) {
hash = (37 * hash) + NETASSETVALUE_FIELD_NUMBER;
hash = (53 * hash) + getNetAssetValue().hashCode();
}
if (hasPreviousSession()) {
hash = (37 * hash) + PREVIOUSSESSION_FIELD_NUMBER;
hash = (53 * hash) + getPreviousSession().hashCode();
}
if (hasTSession()) {
hash = (37 * hash) + TSESSION_FIELD_NUMBER;
hash = (53 * hash) + getTSession().hashCode();
}
if (hasVolumeAtPrice()) {
hash = (37 * hash) + VOLUMEATPRICE_FIELD_NUMBER;
hash = (53 * hash) + getVolumeAtPrice().hashCode();
}
if (hasHighRolling()) {
hash = (37 * hash) + HIGHROLLING_FIELD_NUMBER;
hash = (53 * hash) + getHighRolling().hashCode();
}
if (hasLowRolling()) {
hash = (37 * hash) + LOWROLLING_FIELD_NUMBER;
hash = (53 * hash) + getLowRolling().hashCode();
}
if (hasZSession()) {
hash = (37 * hash) + ZSESSION_FIELD_NUMBER;
hash = (53 * hash) + getZSession().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openfeed.MarketSnapshot parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.MarketSnapshot parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.MarketSnapshot parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.MarketSnapshot 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.MarketSnapshot parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.MarketSnapshot parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.MarketSnapshot parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.MarketSnapshot 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.MarketSnapshot parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openfeed.MarketSnapshot 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.MarketSnapshot parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.MarketSnapshot 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.MarketSnapshot 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;
}
/**
*
* / Snapshot for a market
*
*
* Protobuf type {@code org.openfeed.MarketSnapshot}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:org.openfeed.MarketSnapshot)
org.openfeed.MarketSnapshotOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.Openfeed.internal_static_org_openfeed_MarketSnapshot_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.Openfeed.internal_static_org_openfeed_MarketSnapshot_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.MarketSnapshot.class, org.openfeed.MarketSnapshot.Builder.class);
}
// Construct using org.openfeed.MarketSnapshot.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getInstrumentStatusFieldBuilder();
getBboFieldBuilder();
getIndexFieldBuilder();
getPriceLevelsFieldBuilder();
getOrdersFieldBuilder();
getNewsFieldBuilder();
getOpenFieldBuilder();
getHighFieldBuilder();
getLowFieldBuilder();
getCloseFieldBuilder();
getPrevCloseFieldBuilder();
getLastFieldBuilder();
getYearHighFieldBuilder();
getYearLowFieldBuilder();
getVolumeFieldBuilder();
getSettlementFieldBuilder();
getOpenInterestFieldBuilder();
getVwapFieldBuilder();
getDividendsIncomeDistributionsFieldBuilder();
getNumberOfTradesFieldBuilder();
getMonetaryValueFieldBuilder();
getCapitalDistributionsFieldBuilder();
getSharesOutstandingFieldBuilder();
getNetAssetValueFieldBuilder();
getPreviousSessionFieldBuilder();
getTSessionFieldBuilder();
getVolumeAtPriceFieldBuilder();
getHighRollingFieldBuilder();
getLowRollingFieldBuilder();
getZSessionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
bitField1_ = 0;
marketId_ = 0L;
transactionTime_ = 0L;
marketSequence_ = 0L;
tradeDate_ = 0;
totalChunks_ = 0;
currentChunk_ = 0;
symbol_ = "";
priceDenominator_ = 0;
service_ = 0;
instrumentStatus_ = null;
if (instrumentStatusBuilder_ != null) {
instrumentStatusBuilder_.dispose();
instrumentStatusBuilder_ = null;
}
bbo_ = null;
if (bboBuilder_ != null) {
bboBuilder_.dispose();
bboBuilder_ = null;
}
index_ = null;
if (indexBuilder_ != null) {
indexBuilder_.dispose();
indexBuilder_ = null;
}
if (priceLevelsBuilder_ == null) {
priceLevels_ = java.util.Collections.emptyList();
} else {
priceLevels_ = null;
priceLevelsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
if (ordersBuilder_ == null) {
orders_ = java.util.Collections.emptyList();
} else {
orders_ = null;
ordersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00002000);
news_ = null;
if (newsBuilder_ != null) {
newsBuilder_.dispose();
newsBuilder_ = null;
}
open_ = null;
if (openBuilder_ != null) {
openBuilder_.dispose();
openBuilder_ = null;
}
high_ = null;
if (highBuilder_ != null) {
highBuilder_.dispose();
highBuilder_ = null;
}
low_ = null;
if (lowBuilder_ != null) {
lowBuilder_.dispose();
lowBuilder_ = null;
}
close_ = null;
if (closeBuilder_ != null) {
closeBuilder_.dispose();
closeBuilder_ = null;
}
prevClose_ = null;
if (prevCloseBuilder_ != null) {
prevCloseBuilder_.dispose();
prevCloseBuilder_ = null;
}
last_ = null;
if (lastBuilder_ != null) {
lastBuilder_.dispose();
lastBuilder_ = null;
}
yearHigh_ = null;
if (yearHighBuilder_ != null) {
yearHighBuilder_.dispose();
yearHighBuilder_ = null;
}
yearLow_ = null;
if (yearLowBuilder_ != null) {
yearLowBuilder_.dispose();
yearLowBuilder_ = null;
}
volume_ = null;
if (volumeBuilder_ != null) {
volumeBuilder_.dispose();
volumeBuilder_ = null;
}
settlement_ = null;
if (settlementBuilder_ != null) {
settlementBuilder_.dispose();
settlementBuilder_ = null;
}
openInterest_ = null;
if (openInterestBuilder_ != null) {
openInterestBuilder_.dispose();
openInterestBuilder_ = null;
}
vwap_ = null;
if (vwapBuilder_ != null) {
vwapBuilder_.dispose();
vwapBuilder_ = null;
}
dividendsIncomeDistributions_ = null;
if (dividendsIncomeDistributionsBuilder_ != null) {
dividendsIncomeDistributionsBuilder_.dispose();
dividendsIncomeDistributionsBuilder_ = null;
}
numberOfTrades_ = null;
if (numberOfTradesBuilder_ != null) {
numberOfTradesBuilder_.dispose();
numberOfTradesBuilder_ = null;
}
monetaryValue_ = null;
if (monetaryValueBuilder_ != null) {
monetaryValueBuilder_.dispose();
monetaryValueBuilder_ = null;
}
capitalDistributions_ = null;
if (capitalDistributionsBuilder_ != null) {
capitalDistributionsBuilder_.dispose();
capitalDistributionsBuilder_ = null;
}
sharesOutstanding_ = null;
if (sharesOutstandingBuilder_ != null) {
sharesOutstandingBuilder_.dispose();
sharesOutstandingBuilder_ = null;
}
netAssetValue_ = null;
if (netAssetValueBuilder_ != null) {
netAssetValueBuilder_.dispose();
netAssetValueBuilder_ = null;
}
previousSession_ = null;
if (previousSessionBuilder_ != null) {
previousSessionBuilder_.dispose();
previousSessionBuilder_ = null;
}
tSession_ = null;
if (tSessionBuilder_ != null) {
tSessionBuilder_.dispose();
tSessionBuilder_ = null;
}
volumeAtPrice_ = null;
if (volumeAtPriceBuilder_ != null) {
volumeAtPriceBuilder_.dispose();
volumeAtPriceBuilder_ = null;
}
highRolling_ = null;
if (highRollingBuilder_ != null) {
highRollingBuilder_.dispose();
highRollingBuilder_ = null;
}
lowRolling_ = null;
if (lowRollingBuilder_ != null) {
lowRollingBuilder_.dispose();
lowRollingBuilder_ = null;
}
zSession_ = null;
if (zSessionBuilder_ != null) {
zSessionBuilder_.dispose();
zSessionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openfeed.Openfeed.internal_static_org_openfeed_MarketSnapshot_descriptor;
}
@java.lang.Override
public org.openfeed.MarketSnapshot getDefaultInstanceForType() {
return org.openfeed.MarketSnapshot.getDefaultInstance();
}
@java.lang.Override
public org.openfeed.MarketSnapshot build() {
org.openfeed.MarketSnapshot result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openfeed.MarketSnapshot buildPartial() {
org.openfeed.MarketSnapshot result = new org.openfeed.MarketSnapshot(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
if (bitField1_ != 0) { buildPartial1(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.openfeed.MarketSnapshot result) {
if (priceLevelsBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0)) {
priceLevels_ = java.util.Collections.unmodifiableList(priceLevels_);
bitField0_ = (bitField0_ & ~0x00001000);
}
result.priceLevels_ = priceLevels_;
} else {
result.priceLevels_ = priceLevelsBuilder_.build();
}
if (ordersBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0)) {
orders_ = java.util.Collections.unmodifiableList(orders_);
bitField0_ = (bitField0_ & ~0x00002000);
}
result.orders_ = orders_;
} else {
result.orders_ = ordersBuilder_.build();
}
}
private void buildPartial0(org.openfeed.MarketSnapshot result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.marketId_ = marketId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.transactionTime_ = transactionTime_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.marketSequence_ = marketSequence_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.tradeDate_ = tradeDate_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.totalChunks_ = totalChunks_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.currentChunk_ = currentChunk_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.symbol_ = symbol_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.priceDenominator_ = priceDenominator_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.service_ = service_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000200) != 0)) {
result.instrumentStatus_ = instrumentStatusBuilder_ == null
? instrumentStatus_
: instrumentStatusBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.bbo_ = bboBuilder_ == null
? bbo_
: bboBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.index_ = indexBuilder_ == null
? index_
: indexBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.news_ = newsBuilder_ == null
? news_
: newsBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.open_ = openBuilder_ == null
? open_
: openBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.high_ = highBuilder_ == null
? high_
: highBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.low_ = lowBuilder_ == null
? low_
: lowBuilder_.build();
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.close_ = closeBuilder_ == null
? close_
: closeBuilder_.build();
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.prevClose_ = prevCloseBuilder_ == null
? prevClose_
: prevCloseBuilder_.build();
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.last_ = lastBuilder_ == null
? last_
: lastBuilder_.build();
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.yearHigh_ = yearHighBuilder_ == null
? yearHigh_
: yearHighBuilder_.build();
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00400000) != 0)) {
result.yearLow_ = yearLowBuilder_ == null
? yearLow_
: yearLowBuilder_.build();
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00800000) != 0)) {
result.volume_ = volumeBuilder_ == null
? volume_
: volumeBuilder_.build();
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x01000000) != 0)) {
result.settlement_ = settlementBuilder_ == null
? settlement_
: settlementBuilder_.build();
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x02000000) != 0)) {
result.openInterest_ = openInterestBuilder_ == null
? openInterest_
: openInterestBuilder_.build();
to_bitField0_ |= 0x00004000;
}
if (((from_bitField0_ & 0x04000000) != 0)) {
result.vwap_ = vwapBuilder_ == null
? vwap_
: vwapBuilder_.build();
to_bitField0_ |= 0x00008000;
}
if (((from_bitField0_ & 0x08000000) != 0)) {
result.dividendsIncomeDistributions_ = dividendsIncomeDistributionsBuilder_ == null
? dividendsIncomeDistributions_
: dividendsIncomeDistributionsBuilder_.build();
to_bitField0_ |= 0x00010000;
}
if (((from_bitField0_ & 0x10000000) != 0)) {
result.numberOfTrades_ = numberOfTradesBuilder_ == null
? numberOfTrades_
: numberOfTradesBuilder_.build();
to_bitField0_ |= 0x00020000;
}
if (((from_bitField0_ & 0x20000000) != 0)) {
result.monetaryValue_ = monetaryValueBuilder_ == null
? monetaryValue_
: monetaryValueBuilder_.build();
to_bitField0_ |= 0x00040000;
}
if (((from_bitField0_ & 0x40000000) != 0)) {
result.capitalDistributions_ = capitalDistributionsBuilder_ == null
? capitalDistributions_
: capitalDistributionsBuilder_.build();
to_bitField0_ |= 0x00080000;
}
if (((from_bitField0_ & 0x80000000) != 0)) {
result.sharesOutstanding_ = sharesOutstandingBuilder_ == null
? sharesOutstanding_
: sharesOutstandingBuilder_.build();
to_bitField0_ |= 0x00100000;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartial1(org.openfeed.MarketSnapshot result) {
int from_bitField1_ = bitField1_;
int to_bitField0_ = 0;
if (((from_bitField1_ & 0x00000001) != 0)) {
result.netAssetValue_ = netAssetValueBuilder_ == null
? netAssetValue_
: netAssetValueBuilder_.build();
to_bitField0_ |= 0x00200000;
}
if (((from_bitField1_ & 0x00000002) != 0)) {
result.previousSession_ = previousSessionBuilder_ == null
? previousSession_
: previousSessionBuilder_.build();
to_bitField0_ |= 0x00400000;
}
if (((from_bitField1_ & 0x00000004) != 0)) {
result.tSession_ = tSessionBuilder_ == null
? tSession_
: tSessionBuilder_.build();
to_bitField0_ |= 0x00800000;
}
if (((from_bitField1_ & 0x00000008) != 0)) {
result.volumeAtPrice_ = volumeAtPriceBuilder_ == null
? volumeAtPrice_
: volumeAtPriceBuilder_.build();
to_bitField0_ |= 0x01000000;
}
if (((from_bitField1_ & 0x00000010) != 0)) {
result.highRolling_ = highRollingBuilder_ == null
? highRolling_
: highRollingBuilder_.build();
to_bitField0_ |= 0x02000000;
}
if (((from_bitField1_ & 0x00000020) != 0)) {
result.lowRolling_ = lowRollingBuilder_ == null
? lowRolling_
: lowRollingBuilder_.build();
to_bitField0_ |= 0x04000000;
}
if (((from_bitField1_ & 0x00000040) != 0)) {
result.zSession_ = zSessionBuilder_ == null
? zSession_
: zSessionBuilder_.build();
to_bitField0_ |= 0x08000000;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openfeed.MarketSnapshot) {
return mergeFrom((org.openfeed.MarketSnapshot)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openfeed.MarketSnapshot other) {
if (other == org.openfeed.MarketSnapshot.getDefaultInstance()) return this;
if (other.getMarketId() != 0L) {
setMarketId(other.getMarketId());
}
if (other.getTransactionTime() != 0L) {
setTransactionTime(other.getTransactionTime());
}
if (other.getMarketSequence() != 0L) {
setMarketSequence(other.getMarketSequence());
}
if (other.getTradeDate() != 0) {
setTradeDate(other.getTradeDate());
}
if (other.getTotalChunks() != 0) {
setTotalChunks(other.getTotalChunks());
}
if (other.getCurrentChunk() != 0) {
setCurrentChunk(other.getCurrentChunk());
}
if (!other.getSymbol().isEmpty()) {
symbol_ = other.symbol_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.getPriceDenominator() != 0) {
setPriceDenominator(other.getPriceDenominator());
}
if (other.service_ != 0) {
setServiceValue(other.getServiceValue());
}
if (other.hasInstrumentStatus()) {
mergeInstrumentStatus(other.getInstrumentStatus());
}
if (other.hasBbo()) {
mergeBbo(other.getBbo());
}
if (other.hasIndex()) {
mergeIndex(other.getIndex());
}
if (priceLevelsBuilder_ == null) {
if (!other.priceLevels_.isEmpty()) {
if (priceLevels_.isEmpty()) {
priceLevels_ = other.priceLevels_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensurePriceLevelsIsMutable();
priceLevels_.addAll(other.priceLevels_);
}
onChanged();
}
} else {
if (!other.priceLevels_.isEmpty()) {
if (priceLevelsBuilder_.isEmpty()) {
priceLevelsBuilder_.dispose();
priceLevelsBuilder_ = null;
priceLevels_ = other.priceLevels_;
bitField0_ = (bitField0_ & ~0x00001000);
priceLevelsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getPriceLevelsFieldBuilder() : null;
} else {
priceLevelsBuilder_.addAllMessages(other.priceLevels_);
}
}
}
if (ordersBuilder_ == null) {
if (!other.orders_.isEmpty()) {
if (orders_.isEmpty()) {
orders_ = other.orders_;
bitField0_ = (bitField0_ & ~0x00002000);
} else {
ensureOrdersIsMutable();
orders_.addAll(other.orders_);
}
onChanged();
}
} else {
if (!other.orders_.isEmpty()) {
if (ordersBuilder_.isEmpty()) {
ordersBuilder_.dispose();
ordersBuilder_ = null;
orders_ = other.orders_;
bitField0_ = (bitField0_ & ~0x00002000);
ordersBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getOrdersFieldBuilder() : null;
} else {
ordersBuilder_.addAllMessages(other.orders_);
}
}
}
if (other.hasNews()) {
mergeNews(other.getNews());
}
if (other.hasOpen()) {
mergeOpen(other.getOpen());
}
if (other.hasHigh()) {
mergeHigh(other.getHigh());
}
if (other.hasLow()) {
mergeLow(other.getLow());
}
if (other.hasClose()) {
mergeClose(other.getClose());
}
if (other.hasPrevClose()) {
mergePrevClose(other.getPrevClose());
}
if (other.hasLast()) {
mergeLast(other.getLast());
}
if (other.hasYearHigh()) {
mergeYearHigh(other.getYearHigh());
}
if (other.hasYearLow()) {
mergeYearLow(other.getYearLow());
}
if (other.hasVolume()) {
mergeVolume(other.getVolume());
}
if (other.hasSettlement()) {
mergeSettlement(other.getSettlement());
}
if (other.hasOpenInterest()) {
mergeOpenInterest(other.getOpenInterest());
}
if (other.hasVwap()) {
mergeVwap(other.getVwap());
}
if (other.hasDividendsIncomeDistributions()) {
mergeDividendsIncomeDistributions(other.getDividendsIncomeDistributions());
}
if (other.hasNumberOfTrades()) {
mergeNumberOfTrades(other.getNumberOfTrades());
}
if (other.hasMonetaryValue()) {
mergeMonetaryValue(other.getMonetaryValue());
}
if (other.hasCapitalDistributions()) {
mergeCapitalDistributions(other.getCapitalDistributions());
}
if (other.hasSharesOutstanding()) {
mergeSharesOutstanding(other.getSharesOutstanding());
}
if (other.hasNetAssetValue()) {
mergeNetAssetValue(other.getNetAssetValue());
}
if (other.hasPreviousSession()) {
mergePreviousSession(other.getPreviousSession());
}
if (other.hasTSession()) {
mergeTSession(other.getTSession());
}
if (other.hasVolumeAtPrice()) {
mergeVolumeAtPrice(other.getVolumeAtPrice());
}
if (other.hasHighRolling()) {
mergeHighRolling(other.getHighRolling());
}
if (other.hasLowRolling()) {
mergeLowRolling(other.getLowRolling());
}
if (other.hasZSession()) {
mergeZSession(other.getZSession());
}
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 8: {
marketId_ = input.readSInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
transactionTime_ = input.readSInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
marketSequence_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
tradeDate_ = input.readSInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
totalChunks_ = input.readSInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
currentChunk_ = input.readSInt32();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
symbol_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 64: {
priceDenominator_ = input.readSInt32();
bitField0_ |= 0x00000080;
break;
} // case 64
case 72: {
service_ = input.readEnum();
bitField0_ |= 0x00000100;
break;
} // case 72
case 82: {
input.readMessage(
getInstrumentStatusFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 82
case 90: {
input.readMessage(
getBboFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 90
case 98: {
input.readMessage(
getIndexFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000800;
break;
} // case 98
case 106: {
org.openfeed.AddPriceLevel m =
input.readMessage(
org.openfeed.AddPriceLevel.parser(),
extensionRegistry);
if (priceLevelsBuilder_ == null) {
ensurePriceLevelsIsMutable();
priceLevels_.add(m);
} else {
priceLevelsBuilder_.addMessage(m);
}
break;
} // case 106
case 114: {
org.openfeed.AddOrder m =
input.readMessage(
org.openfeed.AddOrder.parser(),
extensionRegistry);
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.add(m);
} else {
ordersBuilder_.addMessage(m);
}
break;
} // case 114
case 122: {
input.readMessage(
getNewsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00004000;
break;
} // case 122
case 242: {
input.readMessage(
getOpenFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00008000;
break;
} // case 242
case 250: {
input.readMessage(
getHighFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00010000;
break;
} // case 250
case 258: {
input.readMessage(
getLowFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00020000;
break;
} // case 258
case 266: {
input.readMessage(
getCloseFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00040000;
break;
} // case 266
case 274: {
input.readMessage(
getPrevCloseFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00080000;
break;
} // case 274
case 282: {
input.readMessage(
getLastFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00100000;
break;
} // case 282
case 290: {
input.readMessage(
getYearHighFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00200000;
break;
} // case 290
case 298: {
input.readMessage(
getYearLowFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00400000;
break;
} // case 298
case 306: {
input.readMessage(
getVolumeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00800000;
break;
} // case 306
case 314: {
input.readMessage(
getSettlementFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x01000000;
break;
} // case 314
case 322: {
input.readMessage(
getOpenInterestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x02000000;
break;
} // case 322
case 330: {
input.readMessage(
getVwapFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x04000000;
break;
} // case 330
case 338: {
input.readMessage(
getDividendsIncomeDistributionsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x08000000;
break;
} // case 338
case 346: {
input.readMessage(
getNumberOfTradesFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x10000000;
break;
} // case 346
case 354: {
input.readMessage(
getMonetaryValueFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x20000000;
break;
} // case 354
case 362: {
input.readMessage(
getCapitalDistributionsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x40000000;
break;
} // case 362
case 370: {
input.readMessage(
getSharesOutstandingFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x80000000;
break;
} // case 370
case 378: {
input.readMessage(
getNetAssetValueFieldBuilder().getBuilder(),
extensionRegistry);
bitField1_ |= 0x00000001;
break;
} // case 378
case 386: {
input.readMessage(
getPreviousSessionFieldBuilder().getBuilder(),
extensionRegistry);
bitField1_ |= 0x00000002;
break;
} // case 386
case 394: {
input.readMessage(
getTSessionFieldBuilder().getBuilder(),
extensionRegistry);
bitField1_ |= 0x00000004;
break;
} // case 394
case 402: {
input.readMessage(
getVolumeAtPriceFieldBuilder().getBuilder(),
extensionRegistry);
bitField1_ |= 0x00000008;
break;
} // case 402
case 410: {
input.readMessage(
getHighRollingFieldBuilder().getBuilder(),
extensionRegistry);
bitField1_ |= 0x00000010;
break;
} // case 410
case 418: {
input.readMessage(
getLowRollingFieldBuilder().getBuilder(),
extensionRegistry);
bitField1_ |= 0x00000020;
break;
} // case 418
case 426: {
input.readMessage(
getZSessionFieldBuilder().getBuilder(),
extensionRegistry);
bitField1_ |= 0x00000040;
break;
} // case 426
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 int bitField1_;
private long marketId_ ;
/**
*
* / Unique id identifying the market
*
*
* sint64 marketId = 1;
* @return The marketId.
*/
@java.lang.Override
public long getMarketId() {
return marketId_;
}
/**
*
* / Unique id identifying the market
*
*
* sint64 marketId = 1;
* @param value The marketId to set.
* @return This builder for chaining.
*/
public Builder setMarketId(long value) {
marketId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* / Unique id identifying the market
*
*
* sint64 marketId = 1;
* @return This builder for chaining.
*/
public Builder clearMarketId() {
bitField0_ = (bitField0_ & ~0x00000001);
marketId_ = 0L;
onChanged();
return this;
}
private long transactionTime_ ;
/**
*
* UTC Timestamp of transaction, nano seconds since Unix epoch
*
*
* sint64 transactionTime = 2;
* @return The transactionTime.
*/
@java.lang.Override
public long getTransactionTime() {
return transactionTime_;
}
/**
*
* UTC Timestamp of transaction, nano seconds since Unix epoch
*
*
* sint64 transactionTime = 2;
* @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 of transaction, nano seconds since Unix epoch
*
*
* sint64 transactionTime = 2;
* @return This builder for chaining.
*/
public Builder clearTransactionTime() {
bitField0_ = (bitField0_ & ~0x00000002);
transactionTime_ = 0L;
onChanged();
return this;
}
private long marketSequence_ ;
/**
*
* Instrument level sequence number
*
*
* int64 marketSequence = 3;
* @return The marketSequence.
*/
@java.lang.Override
public long getMarketSequence() {
return marketSequence_;
}
/**
*
* Instrument level sequence number
*
*
* int64 marketSequence = 3;
* @param value The marketSequence to set.
* @return This builder for chaining.
*/
public Builder setMarketSequence(long value) {
marketSequence_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Instrument level sequence number
*
*
* int64 marketSequence = 3;
* @return This builder for chaining.
*/
public Builder clearMarketSequence() {
bitField0_ = (bitField0_ & ~0x00000004);
marketSequence_ = 0L;
onChanged();
return this;
}
private int tradeDate_ ;
/**
*
* / Date only, format 2012-07-04 -> 20120704
*
*
* sint32 tradeDate = 4;
* @return The tradeDate.
*/
@java.lang.Override
public int getTradeDate() {
return tradeDate_;
}
/**
*
* / Date only, format 2012-07-04 -> 20120704
*
*
* sint32 tradeDate = 4;
* @param value The tradeDate to set.
* @return This builder for chaining.
*/
public Builder setTradeDate(int value) {
tradeDate_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* / Date only, format 2012-07-04 -> 20120704
*
*
* sint32 tradeDate = 4;
* @return This builder for chaining.
*/
public Builder clearTradeDate() {
bitField0_ = (bitField0_ & ~0x00000008);
tradeDate_ = 0;
onChanged();
return this;
}
private int totalChunks_ ;
/**
*
* / A snapshot with market depth may exceed the maximum message size.
* In that case, the snapshot will be broken up across multiple
* snapshot messages.
*
*
* sint32 totalChunks = 5;
* @return The totalChunks.
*/
@java.lang.Override
public int getTotalChunks() {
return totalChunks_;
}
/**
*
* / A snapshot with market depth may exceed the maximum message size.
* In that case, the snapshot will be broken up across multiple
* snapshot messages.
*
*
* sint32 totalChunks = 5;
* @param value The totalChunks to set.
* @return This builder for chaining.
*/
public Builder setTotalChunks(int value) {
totalChunks_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* / A snapshot with market depth may exceed the maximum message size.
* In that case, the snapshot will be broken up across multiple
* snapshot messages.
*
*
* sint32 totalChunks = 5;
* @return This builder for chaining.
*/
public Builder clearTotalChunks() {
bitField0_ = (bitField0_ & ~0x00000010);
totalChunks_ = 0;
onChanged();
return this;
}
private int currentChunk_ ;
/**
* sint32 currentChunk = 6;
* @return The currentChunk.
*/
@java.lang.Override
public int getCurrentChunk() {
return currentChunk_;
}
/**
* sint32 currentChunk = 6;
* @param value The currentChunk to set.
* @return This builder for chaining.
*/
public Builder setCurrentChunk(int value) {
currentChunk_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* sint32 currentChunk = 6;
* @return This builder for chaining.
*/
public Builder clearCurrentChunk() {
bitField0_ = (bitField0_ & ~0x00000020);
currentChunk_ = 0;
onChanged();
return this;
}
private java.lang.Object symbol_ = "";
/**
*
* Optional symbol identifier
*
*
* string symbol = 7;
* @return The symbol.
*/
public java.lang.String getSymbol() {
java.lang.Object ref = symbol_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
symbol_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional symbol identifier
*
*
* string symbol = 7;
* @return The bytes for symbol.
*/
public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional symbol identifier
*
*
* string symbol = 7;
* @param value The symbol to set.
* @return This builder for chaining.
*/
public Builder setSymbol(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
symbol_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Optional symbol identifier
*
*
* string symbol = 7;
* @return This builder for chaining.
*/
public Builder clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* Optional symbol identifier
*
*
* string symbol = 7;
* @param value The bytes for symbol to set.
* @return This builder for chaining.
*/
public Builder setSymbolBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
symbol_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private int priceDenominator_ ;
/**
*
* / Divide prices by this value to get real price values. Optional, use value
* / from InstrumentDefinition if not set.
*
*
* sint32 priceDenominator = 8;
* @return The priceDenominator.
*/
@java.lang.Override
public int getPriceDenominator() {
return priceDenominator_;
}
/**
*
* / Divide prices by this value to get real price values. Optional, use value
* / from InstrumentDefinition if not set.
*
*
* sint32 priceDenominator = 8;
* @param value The priceDenominator to set.
* @return This builder for chaining.
*/
public Builder setPriceDenominator(int value) {
priceDenominator_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* / Divide prices by this value to get real price values. Optional, use value
* / from InstrumentDefinition if not set.
*
*
* sint32 priceDenominator = 8;
* @return This builder for chaining.
*/
public Builder clearPriceDenominator() {
bitField0_ = (bitField0_ & ~0x00000080);
priceDenominator_ = 0;
onChanged();
return this;
}
private int service_ = 0;
/**
*
*
*
*
* .org.openfeed.Service service = 9;
* @return The enum numeric value on the wire for service.
*/
@java.lang.Override public int getServiceValue() {
return service_;
}
/**
*
*
*
*
* .org.openfeed.Service service = 9;
* @param value The enum numeric value on the wire for service to set.
* @return This builder for chaining.
*/
public Builder setServiceValue(int value) {
service_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
*
* .org.openfeed.Service service = 9;
* @return The service.
*/
@java.lang.Override
public org.openfeed.Service getService() {
org.openfeed.Service result = org.openfeed.Service.forNumber(service_);
return result == null ? org.openfeed.Service.UNRECOGNIZED : result;
}
/**
*
*
*
*
* .org.openfeed.Service service = 9;
* @param value The service to set.
* @return This builder for chaining.
*/
public Builder setService(org.openfeed.Service value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
service_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
*
* .org.openfeed.Service service = 9;
* @return This builder for chaining.
*/
public Builder clearService() {
bitField0_ = (bitField0_ & ~0x00000100);
service_ = 0;
onChanged();
return this;
}
private org.openfeed.InstrumentStatus instrumentStatus_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentStatus, org.openfeed.InstrumentStatus.Builder, org.openfeed.InstrumentStatusOrBuilder> instrumentStatusBuilder_;
/**
*
*
*
*
* .org.openfeed.InstrumentStatus instrumentStatus = 10;
* @return Whether the instrumentStatus field is set.
*/
public boolean hasInstrumentStatus() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
*
*
*
* .org.openfeed.InstrumentStatus instrumentStatus = 10;
* @return The instrumentStatus.
*/
public org.openfeed.InstrumentStatus getInstrumentStatus() {
if (instrumentStatusBuilder_ == null) {
return instrumentStatus_ == null ? org.openfeed.InstrumentStatus.getDefaultInstance() : instrumentStatus_;
} else {
return instrumentStatusBuilder_.getMessage();
}
}
/**
*
*
*
*
* .org.openfeed.InstrumentStatus instrumentStatus = 10;
*/
public Builder setInstrumentStatus(org.openfeed.InstrumentStatus value) {
if (instrumentStatusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
instrumentStatus_ = value;
} else {
instrumentStatusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
*
* .org.openfeed.InstrumentStatus instrumentStatus = 10;
*/
public Builder setInstrumentStatus(
org.openfeed.InstrumentStatus.Builder builderForValue) {
if (instrumentStatusBuilder_ == null) {
instrumentStatus_ = builderForValue.build();
} else {
instrumentStatusBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
*
* .org.openfeed.InstrumentStatus instrumentStatus = 10;
*/
public Builder mergeInstrumentStatus(org.openfeed.InstrumentStatus value) {
if (instrumentStatusBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
instrumentStatus_ != null &&
instrumentStatus_ != org.openfeed.InstrumentStatus.getDefaultInstance()) {
getInstrumentStatusBuilder().mergeFrom(value);
} else {
instrumentStatus_ = value;
}
} else {
instrumentStatusBuilder_.mergeFrom(value);
}
if (instrumentStatus_ != null) {
bitField0_ |= 0x00000200;
onChanged();
}
return this;
}
/**
*
*
*
*
* .org.openfeed.InstrumentStatus instrumentStatus = 10;
*/
public Builder clearInstrumentStatus() {
bitField0_ = (bitField0_ & ~0x00000200);
instrumentStatus_ = null;
if (instrumentStatusBuilder_ != null) {
instrumentStatusBuilder_.dispose();
instrumentStatusBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
*
* .org.openfeed.InstrumentStatus instrumentStatus = 10;
*/
public org.openfeed.InstrumentStatus.Builder getInstrumentStatusBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getInstrumentStatusFieldBuilder().getBuilder();
}
/**
*
*
*
*
* .org.openfeed.InstrumentStatus instrumentStatus = 10;
*/
public org.openfeed.InstrumentStatusOrBuilder getInstrumentStatusOrBuilder() {
if (instrumentStatusBuilder_ != null) {
return instrumentStatusBuilder_.getMessageOrBuilder();
} else {
return instrumentStatus_ == null ?
org.openfeed.InstrumentStatus.getDefaultInstance() : instrumentStatus_;
}
}
/**
*
*
*
*
* .org.openfeed.InstrumentStatus instrumentStatus = 10;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentStatus, org.openfeed.InstrumentStatus.Builder, org.openfeed.InstrumentStatusOrBuilder>
getInstrumentStatusFieldBuilder() {
if (instrumentStatusBuilder_ == null) {
instrumentStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentStatus, org.openfeed.InstrumentStatus.Builder, org.openfeed.InstrumentStatusOrBuilder>(
getInstrumentStatus(),
getParentForChildren(),
isClean());
instrumentStatus_ = null;
}
return instrumentStatusBuilder_;
}
private org.openfeed.BestBidOffer bbo_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.BestBidOffer, org.openfeed.BestBidOffer.Builder, org.openfeed.BestBidOfferOrBuilder> bboBuilder_;
/**
*
* Best Bid Offer
*
*
* .org.openfeed.BestBidOffer bbo = 11;
* @return Whether the bbo field is set.
*/
public boolean hasBbo() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Best Bid Offer
*
*
* .org.openfeed.BestBidOffer bbo = 11;
* @return The bbo.
*/
public org.openfeed.BestBidOffer getBbo() {
if (bboBuilder_ == null) {
return bbo_ == null ? org.openfeed.BestBidOffer.getDefaultInstance() : bbo_;
} else {
return bboBuilder_.getMessage();
}
}
/**
*
* Best Bid Offer
*
*
* .org.openfeed.BestBidOffer bbo = 11;
*/
public Builder setBbo(org.openfeed.BestBidOffer value) {
if (bboBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bbo_ = value;
} else {
bboBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* Best Bid Offer
*
*
* .org.openfeed.BestBidOffer bbo = 11;
*/
public Builder setBbo(
org.openfeed.BestBidOffer.Builder builderForValue) {
if (bboBuilder_ == null) {
bbo_ = builderForValue.build();
} else {
bboBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* Best Bid Offer
*
*
* .org.openfeed.BestBidOffer bbo = 11;
*/
public Builder mergeBbo(org.openfeed.BestBidOffer value) {
if (bboBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0) &&
bbo_ != null &&
bbo_ != org.openfeed.BestBidOffer.getDefaultInstance()) {
getBboBuilder().mergeFrom(value);
} else {
bbo_ = value;
}
} else {
bboBuilder_.mergeFrom(value);
}
if (bbo_ != null) {
bitField0_ |= 0x00000400;
onChanged();
}
return this;
}
/**
*
* Best Bid Offer
*
*
* .org.openfeed.BestBidOffer bbo = 11;
*/
public Builder clearBbo() {
bitField0_ = (bitField0_ & ~0x00000400);
bbo_ = null;
if (bboBuilder_ != null) {
bboBuilder_.dispose();
bboBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Best Bid Offer
*
*
* .org.openfeed.BestBidOffer bbo = 11;
*/
public org.openfeed.BestBidOffer.Builder getBboBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getBboFieldBuilder().getBuilder();
}
/**
*
* Best Bid Offer
*
*
* .org.openfeed.BestBidOffer bbo = 11;
*/
public org.openfeed.BestBidOfferOrBuilder getBboOrBuilder() {
if (bboBuilder_ != null) {
return bboBuilder_.getMessageOrBuilder();
} else {
return bbo_ == null ?
org.openfeed.BestBidOffer.getDefaultInstance() : bbo_;
}
}
/**
*
* Best Bid Offer
*
*
* .org.openfeed.BestBidOffer bbo = 11;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.BestBidOffer, org.openfeed.BestBidOffer.Builder, org.openfeed.BestBidOfferOrBuilder>
getBboFieldBuilder() {
if (bboBuilder_ == null) {
bboBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.BestBidOffer, org.openfeed.BestBidOffer.Builder, org.openfeed.BestBidOfferOrBuilder>(
getBbo(),
getParentForChildren(),
isClean());
bbo_ = null;
}
return bboBuilder_;
}
private org.openfeed.IndexValue index_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.IndexValue, org.openfeed.IndexValue.Builder, org.openfeed.IndexValueOrBuilder> indexBuilder_;
/**
*
* Index Value
*
*
* .org.openfeed.IndexValue index = 12;
* @return Whether the index field is set.
*/
public boolean hasIndex() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* Index Value
*
*
* .org.openfeed.IndexValue index = 12;
* @return The index.
*/
public org.openfeed.IndexValue getIndex() {
if (indexBuilder_ == null) {
return index_ == null ? org.openfeed.IndexValue.getDefaultInstance() : index_;
} else {
return indexBuilder_.getMessage();
}
}
/**
*
* Index Value
*
*
* .org.openfeed.IndexValue index = 12;
*/
public Builder setIndex(org.openfeed.IndexValue value) {
if (indexBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
index_ = value;
} else {
indexBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* Index Value
*
*
* .org.openfeed.IndexValue index = 12;
*/
public Builder setIndex(
org.openfeed.IndexValue.Builder builderForValue) {
if (indexBuilder_ == null) {
index_ = builderForValue.build();
} else {
indexBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* Index Value
*
*
* .org.openfeed.IndexValue index = 12;
*/
public Builder mergeIndex(org.openfeed.IndexValue value) {
if (indexBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
index_ != null &&
index_ != org.openfeed.IndexValue.getDefaultInstance()) {
getIndexBuilder().mergeFrom(value);
} else {
index_ = value;
}
} else {
indexBuilder_.mergeFrom(value);
}
if (index_ != null) {
bitField0_ |= 0x00000800;
onChanged();
}
return this;
}
/**
*
* Index Value
*
*
* .org.openfeed.IndexValue index = 12;
*/
public Builder clearIndex() {
bitField0_ = (bitField0_ & ~0x00000800);
index_ = null;
if (indexBuilder_ != null) {
indexBuilder_.dispose();
indexBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Index Value
*
*
* .org.openfeed.IndexValue index = 12;
*/
public org.openfeed.IndexValue.Builder getIndexBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getIndexFieldBuilder().getBuilder();
}
/**
*
* Index Value
*
*
* .org.openfeed.IndexValue index = 12;
*/
public org.openfeed.IndexValueOrBuilder getIndexOrBuilder() {
if (indexBuilder_ != null) {
return indexBuilder_.getMessageOrBuilder();
} else {
return index_ == null ?
org.openfeed.IndexValue.getDefaultInstance() : index_;
}
}
/**
*
* Index Value
*
*
* .org.openfeed.IndexValue index = 12;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.IndexValue, org.openfeed.IndexValue.Builder, org.openfeed.IndexValueOrBuilder>
getIndexFieldBuilder() {
if (indexBuilder_ == null) {
indexBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.IndexValue, org.openfeed.IndexValue.Builder, org.openfeed.IndexValueOrBuilder>(
getIndex(),
getParentForChildren(),
isClean());
index_ = null;
}
return indexBuilder_;
}
private java.util.List priceLevels_ =
java.util.Collections.emptyList();
private void ensurePriceLevelsIsMutable() {
if (!((bitField0_ & 0x00001000) != 0)) {
priceLevels_ = new java.util.ArrayList(priceLevels_);
bitField0_ |= 0x00001000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.openfeed.AddPriceLevel, org.openfeed.AddPriceLevel.Builder, org.openfeed.AddPriceLevelOrBuilder> priceLevelsBuilder_;
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public java.util.List getPriceLevelsList() {
if (priceLevelsBuilder_ == null) {
return java.util.Collections.unmodifiableList(priceLevels_);
} else {
return priceLevelsBuilder_.getMessageList();
}
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public int getPriceLevelsCount() {
if (priceLevelsBuilder_ == null) {
return priceLevels_.size();
} else {
return priceLevelsBuilder_.getCount();
}
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public org.openfeed.AddPriceLevel getPriceLevels(int index) {
if (priceLevelsBuilder_ == null) {
return priceLevels_.get(index);
} else {
return priceLevelsBuilder_.getMessage(index);
}
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public Builder setPriceLevels(
int index, org.openfeed.AddPriceLevel value) {
if (priceLevelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePriceLevelsIsMutable();
priceLevels_.set(index, value);
onChanged();
} else {
priceLevelsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public Builder setPriceLevels(
int index, org.openfeed.AddPriceLevel.Builder builderForValue) {
if (priceLevelsBuilder_ == null) {
ensurePriceLevelsIsMutable();
priceLevels_.set(index, builderForValue.build());
onChanged();
} else {
priceLevelsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public Builder addPriceLevels(org.openfeed.AddPriceLevel value) {
if (priceLevelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePriceLevelsIsMutable();
priceLevels_.add(value);
onChanged();
} else {
priceLevelsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public Builder addPriceLevels(
int index, org.openfeed.AddPriceLevel value) {
if (priceLevelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePriceLevelsIsMutable();
priceLevels_.add(index, value);
onChanged();
} else {
priceLevelsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public Builder addPriceLevels(
org.openfeed.AddPriceLevel.Builder builderForValue) {
if (priceLevelsBuilder_ == null) {
ensurePriceLevelsIsMutable();
priceLevels_.add(builderForValue.build());
onChanged();
} else {
priceLevelsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public Builder addPriceLevels(
int index, org.openfeed.AddPriceLevel.Builder builderForValue) {
if (priceLevelsBuilder_ == null) {
ensurePriceLevelsIsMutable();
priceLevels_.add(index, builderForValue.build());
onChanged();
} else {
priceLevelsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public Builder addAllPriceLevels(
java.lang.Iterable extends org.openfeed.AddPriceLevel> values) {
if (priceLevelsBuilder_ == null) {
ensurePriceLevelsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, priceLevels_);
onChanged();
} else {
priceLevelsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public Builder clearPriceLevels() {
if (priceLevelsBuilder_ == null) {
priceLevels_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
} else {
priceLevelsBuilder_.clear();
}
return this;
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public Builder removePriceLevels(int index) {
if (priceLevelsBuilder_ == null) {
ensurePriceLevelsIsMutable();
priceLevels_.remove(index);
onChanged();
} else {
priceLevelsBuilder_.remove(index);
}
return this;
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public org.openfeed.AddPriceLevel.Builder getPriceLevelsBuilder(
int index) {
return getPriceLevelsFieldBuilder().getBuilder(index);
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public org.openfeed.AddPriceLevelOrBuilder getPriceLevelsOrBuilder(
int index) {
if (priceLevelsBuilder_ == null) {
return priceLevels_.get(index); } else {
return priceLevelsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public java.util.List extends org.openfeed.AddPriceLevelOrBuilder>
getPriceLevelsOrBuilderList() {
if (priceLevelsBuilder_ != null) {
return priceLevelsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(priceLevels_);
}
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public org.openfeed.AddPriceLevel.Builder addPriceLevelsBuilder() {
return getPriceLevelsFieldBuilder().addBuilder(
org.openfeed.AddPriceLevel.getDefaultInstance());
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public org.openfeed.AddPriceLevel.Builder addPriceLevelsBuilder(
int index) {
return getPriceLevelsFieldBuilder().addBuilder(
index, org.openfeed.AddPriceLevel.getDefaultInstance());
}
/**
*
* Price Level Book
*
*
* repeated .org.openfeed.AddPriceLevel priceLevels = 13;
*/
public java.util.List
getPriceLevelsBuilderList() {
return getPriceLevelsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.openfeed.AddPriceLevel, org.openfeed.AddPriceLevel.Builder, org.openfeed.AddPriceLevelOrBuilder>
getPriceLevelsFieldBuilder() {
if (priceLevelsBuilder_ == null) {
priceLevelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.openfeed.AddPriceLevel, org.openfeed.AddPriceLevel.Builder, org.openfeed.AddPriceLevelOrBuilder>(
priceLevels_,
((bitField0_ & 0x00001000) != 0),
getParentForChildren(),
isClean());
priceLevels_ = null;
}
return priceLevelsBuilder_;
}
private java.util.List orders_ =
java.util.Collections.emptyList();
private void ensureOrdersIsMutable() {
if (!((bitField0_ & 0x00002000) != 0)) {
orders_ = new java.util.ArrayList(orders_);
bitField0_ |= 0x00002000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.openfeed.AddOrder, org.openfeed.AddOrder.Builder, org.openfeed.AddOrderOrBuilder> ordersBuilder_;
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public java.util.List getOrdersList() {
if (ordersBuilder_ == null) {
return java.util.Collections.unmodifiableList(orders_);
} else {
return ordersBuilder_.getMessageList();
}
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public int getOrdersCount() {
if (ordersBuilder_ == null) {
return orders_.size();
} else {
return ordersBuilder_.getCount();
}
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public org.openfeed.AddOrder getOrders(int index) {
if (ordersBuilder_ == null) {
return orders_.get(index);
} else {
return ordersBuilder_.getMessage(index);
}
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public Builder setOrders(
int index, org.openfeed.AddOrder value) {
if (ordersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrdersIsMutable();
orders_.set(index, value);
onChanged();
} else {
ordersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public Builder setOrders(
int index, org.openfeed.AddOrder.Builder builderForValue) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.set(index, builderForValue.build());
onChanged();
} else {
ordersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public Builder addOrders(org.openfeed.AddOrder value) {
if (ordersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrdersIsMutable();
orders_.add(value);
onChanged();
} else {
ordersBuilder_.addMessage(value);
}
return this;
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public Builder addOrders(
int index, org.openfeed.AddOrder value) {
if (ordersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrdersIsMutable();
orders_.add(index, value);
onChanged();
} else {
ordersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public Builder addOrders(
org.openfeed.AddOrder.Builder builderForValue) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.add(builderForValue.build());
onChanged();
} else {
ordersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public Builder addOrders(
int index, org.openfeed.AddOrder.Builder builderForValue) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.add(index, builderForValue.build());
onChanged();
} else {
ordersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public Builder addAllOrders(
java.lang.Iterable extends org.openfeed.AddOrder> values) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, orders_);
onChanged();
} else {
ordersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public Builder clearOrders() {
if (ordersBuilder_ == null) {
orders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
} else {
ordersBuilder_.clear();
}
return this;
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public Builder removeOrders(int index) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.remove(index);
onChanged();
} else {
ordersBuilder_.remove(index);
}
return this;
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public org.openfeed.AddOrder.Builder getOrdersBuilder(
int index) {
return getOrdersFieldBuilder().getBuilder(index);
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public org.openfeed.AddOrderOrBuilder getOrdersOrBuilder(
int index) {
if (ordersBuilder_ == null) {
return orders_.get(index); } else {
return ordersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public java.util.List extends org.openfeed.AddOrderOrBuilder>
getOrdersOrBuilderList() {
if (ordersBuilder_ != null) {
return ordersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(orders_);
}
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public org.openfeed.AddOrder.Builder addOrdersBuilder() {
return getOrdersFieldBuilder().addBuilder(
org.openfeed.AddOrder.getDefaultInstance());
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public org.openfeed.AddOrder.Builder addOrdersBuilder(
int index) {
return getOrdersFieldBuilder().addBuilder(
index, org.openfeed.AddOrder.getDefaultInstance());
}
/**
*
* Order Book
*
*
* repeated .org.openfeed.AddOrder orders = 14;
*/
public java.util.List
getOrdersBuilderList() {
return getOrdersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.openfeed.AddOrder, org.openfeed.AddOrder.Builder, org.openfeed.AddOrderOrBuilder>
getOrdersFieldBuilder() {
if (ordersBuilder_ == null) {
ordersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.openfeed.AddOrder, org.openfeed.AddOrder.Builder, org.openfeed.AddOrderOrBuilder>(
orders_,
((bitField0_ & 0x00002000) != 0),
getParentForChildren(),
isClean());
orders_ = null;
}
return ordersBuilder_;
}
private org.openfeed.News news_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.News, org.openfeed.News.Builder, org.openfeed.NewsOrBuilder> newsBuilder_;
/**
* .org.openfeed.News news = 15;
* @return Whether the news field is set.
*/
public boolean hasNews() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* .org.openfeed.News news = 15;
* @return The news.
*/
public org.openfeed.News getNews() {
if (newsBuilder_ == null) {
return news_ == null ? org.openfeed.News.getDefaultInstance() : news_;
} else {
return newsBuilder_.getMessage();
}
}
/**
* .org.openfeed.News news = 15;
*/
public Builder setNews(org.openfeed.News value) {
if (newsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
news_ = value;
} else {
newsBuilder_.setMessage(value);
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
* .org.openfeed.News news = 15;
*/
public Builder setNews(
org.openfeed.News.Builder builderForValue) {
if (newsBuilder_ == null) {
news_ = builderForValue.build();
} else {
newsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
* .org.openfeed.News news = 15;
*/
public Builder mergeNews(org.openfeed.News value) {
if (newsBuilder_ == null) {
if (((bitField0_ & 0x00004000) != 0) &&
news_ != null &&
news_ != org.openfeed.News.getDefaultInstance()) {
getNewsBuilder().mergeFrom(value);
} else {
news_ = value;
}
} else {
newsBuilder_.mergeFrom(value);
}
if (news_ != null) {
bitField0_ |= 0x00004000;
onChanged();
}
return this;
}
/**
* .org.openfeed.News news = 15;
*/
public Builder clearNews() {
bitField0_ = (bitField0_ & ~0x00004000);
news_ = null;
if (newsBuilder_ != null) {
newsBuilder_.dispose();
newsBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.openfeed.News news = 15;
*/
public org.openfeed.News.Builder getNewsBuilder() {
bitField0_ |= 0x00004000;
onChanged();
return getNewsFieldBuilder().getBuilder();
}
/**
* .org.openfeed.News news = 15;
*/
public org.openfeed.NewsOrBuilder getNewsOrBuilder() {
if (newsBuilder_ != null) {
return newsBuilder_.getMessageOrBuilder();
} else {
return news_ == null ?
org.openfeed.News.getDefaultInstance() : news_;
}
}
/**
* .org.openfeed.News news = 15;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.News, org.openfeed.News.Builder, org.openfeed.NewsOrBuilder>
getNewsFieldBuilder() {
if (newsBuilder_ == null) {
newsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.News, org.openfeed.News.Builder, org.openfeed.NewsOrBuilder>(
getNews(),
getParentForChildren(),
isClean());
news_ = null;
}
return newsBuilder_;
}
private org.openfeed.Open open_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Open, org.openfeed.Open.Builder, org.openfeed.OpenOrBuilder> openBuilder_;
/**
*
* / Most recent opening price
*
*
* .org.openfeed.Open open = 30;
* @return Whether the open field is set.
*/
public boolean hasOpen() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
* / Most recent opening price
*
*
* .org.openfeed.Open open = 30;
* @return The open.
*/
public org.openfeed.Open getOpen() {
if (openBuilder_ == null) {
return open_ == null ? org.openfeed.Open.getDefaultInstance() : open_;
} else {
return openBuilder_.getMessage();
}
}
/**
*
* / Most recent opening price
*
*
* .org.openfeed.Open open = 30;
*/
public Builder setOpen(org.openfeed.Open value) {
if (openBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
open_ = value;
} else {
openBuilder_.setMessage(value);
}
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
* / Most recent opening price
*
*
* .org.openfeed.Open open = 30;
*/
public Builder setOpen(
org.openfeed.Open.Builder builderForValue) {
if (openBuilder_ == null) {
open_ = builderForValue.build();
} else {
openBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
* / Most recent opening price
*
*
* .org.openfeed.Open open = 30;
*/
public Builder mergeOpen(org.openfeed.Open value) {
if (openBuilder_ == null) {
if (((bitField0_ & 0x00008000) != 0) &&
open_ != null &&
open_ != org.openfeed.Open.getDefaultInstance()) {
getOpenBuilder().mergeFrom(value);
} else {
open_ = value;
}
} else {
openBuilder_.mergeFrom(value);
}
if (open_ != null) {
bitField0_ |= 0x00008000;
onChanged();
}
return this;
}
/**
*
* / Most recent opening price
*
*
* .org.openfeed.Open open = 30;
*/
public Builder clearOpen() {
bitField0_ = (bitField0_ & ~0x00008000);
open_ = null;
if (openBuilder_ != null) {
openBuilder_.dispose();
openBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / Most recent opening price
*
*
* .org.openfeed.Open open = 30;
*/
public org.openfeed.Open.Builder getOpenBuilder() {
bitField0_ |= 0x00008000;
onChanged();
return getOpenFieldBuilder().getBuilder();
}
/**
*
* / Most recent opening price
*
*
* .org.openfeed.Open open = 30;
*/
public org.openfeed.OpenOrBuilder getOpenOrBuilder() {
if (openBuilder_ != null) {
return openBuilder_.getMessageOrBuilder();
} else {
return open_ == null ?
org.openfeed.Open.getDefaultInstance() : open_;
}
}
/**
*
* / Most recent opening price
*
*
* .org.openfeed.Open open = 30;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Open, org.openfeed.Open.Builder, org.openfeed.OpenOrBuilder>
getOpenFieldBuilder() {
if (openBuilder_ == null) {
openBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.Open, org.openfeed.Open.Builder, org.openfeed.OpenOrBuilder>(
getOpen(),
getParentForChildren(),
isClean());
open_ = null;
}
return openBuilder_;
}
private org.openfeed.High high_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.High, org.openfeed.High.Builder, org.openfeed.HighOrBuilder> highBuilder_;
/**
*
* / High price for the trading session
*
*
* .org.openfeed.High high = 31;
* @return Whether the high field is set.
*/
public boolean hasHigh() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
*
* / High price for the trading session
*
*
* .org.openfeed.High high = 31;
* @return The high.
*/
public org.openfeed.High getHigh() {
if (highBuilder_ == null) {
return high_ == null ? org.openfeed.High.getDefaultInstance() : high_;
} else {
return highBuilder_.getMessage();
}
}
/**
*
* / High price for the trading session
*
*
* .org.openfeed.High high = 31;
*/
public Builder setHigh(org.openfeed.High value) {
if (highBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
high_ = value;
} else {
highBuilder_.setMessage(value);
}
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
* / High price for the trading session
*
*
* .org.openfeed.High high = 31;
*/
public Builder setHigh(
org.openfeed.High.Builder builderForValue) {
if (highBuilder_ == null) {
high_ = builderForValue.build();
} else {
highBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
* / High price for the trading session
*
*
* .org.openfeed.High high = 31;
*/
public Builder mergeHigh(org.openfeed.High value) {
if (highBuilder_ == null) {
if (((bitField0_ & 0x00010000) != 0) &&
high_ != null &&
high_ != org.openfeed.High.getDefaultInstance()) {
getHighBuilder().mergeFrom(value);
} else {
high_ = value;
}
} else {
highBuilder_.mergeFrom(value);
}
if (high_ != null) {
bitField0_ |= 0x00010000;
onChanged();
}
return this;
}
/**
*
* / High price for the trading session
*
*
* .org.openfeed.High high = 31;
*/
public Builder clearHigh() {
bitField0_ = (bitField0_ & ~0x00010000);
high_ = null;
if (highBuilder_ != null) {
highBuilder_.dispose();
highBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / High price for the trading session
*
*
* .org.openfeed.High high = 31;
*/
public org.openfeed.High.Builder getHighBuilder() {
bitField0_ |= 0x00010000;
onChanged();
return getHighFieldBuilder().getBuilder();
}
/**
*
* / High price for the trading session
*
*
* .org.openfeed.High high = 31;
*/
public org.openfeed.HighOrBuilder getHighOrBuilder() {
if (highBuilder_ != null) {
return highBuilder_.getMessageOrBuilder();
} else {
return high_ == null ?
org.openfeed.High.getDefaultInstance() : high_;
}
}
/**
*
* / High price for the trading session
*
*
* .org.openfeed.High high = 31;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.High, org.openfeed.High.Builder, org.openfeed.HighOrBuilder>
getHighFieldBuilder() {
if (highBuilder_ == null) {
highBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.High, org.openfeed.High.Builder, org.openfeed.HighOrBuilder>(
getHigh(),
getParentForChildren(),
isClean());
high_ = null;
}
return highBuilder_;
}
private org.openfeed.Low low_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Low, org.openfeed.Low.Builder, org.openfeed.LowOrBuilder> lowBuilder_;
/**
*
* / Low price for the trading session
*
*
* .org.openfeed.Low low = 32;
* @return Whether the low field is set.
*/
public boolean hasLow() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
* / Low price for the trading session
*
*
* .org.openfeed.Low low = 32;
* @return The low.
*/
public org.openfeed.Low getLow() {
if (lowBuilder_ == null) {
return low_ == null ? org.openfeed.Low.getDefaultInstance() : low_;
} else {
return lowBuilder_.getMessage();
}
}
/**
*
* / Low price for the trading session
*
*
* .org.openfeed.Low low = 32;
*/
public Builder setLow(org.openfeed.Low value) {
if (lowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
low_ = value;
} else {
lowBuilder_.setMessage(value);
}
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
* / Low price for the trading session
*
*
* .org.openfeed.Low low = 32;
*/
public Builder setLow(
org.openfeed.Low.Builder builderForValue) {
if (lowBuilder_ == null) {
low_ = builderForValue.build();
} else {
lowBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
* / Low price for the trading session
*
*
* .org.openfeed.Low low = 32;
*/
public Builder mergeLow(org.openfeed.Low value) {
if (lowBuilder_ == null) {
if (((bitField0_ & 0x00020000) != 0) &&
low_ != null &&
low_ != org.openfeed.Low.getDefaultInstance()) {
getLowBuilder().mergeFrom(value);
} else {
low_ = value;
}
} else {
lowBuilder_.mergeFrom(value);
}
if (low_ != null) {
bitField0_ |= 0x00020000;
onChanged();
}
return this;
}
/**
*
* / Low price for the trading session
*
*
* .org.openfeed.Low low = 32;
*/
public Builder clearLow() {
bitField0_ = (bitField0_ & ~0x00020000);
low_ = null;
if (lowBuilder_ != null) {
lowBuilder_.dispose();
lowBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / Low price for the trading session
*
*
* .org.openfeed.Low low = 32;
*/
public org.openfeed.Low.Builder getLowBuilder() {
bitField0_ |= 0x00020000;
onChanged();
return getLowFieldBuilder().getBuilder();
}
/**
*
* / Low price for the trading session
*
*
* .org.openfeed.Low low = 32;
*/
public org.openfeed.LowOrBuilder getLowOrBuilder() {
if (lowBuilder_ != null) {
return lowBuilder_.getMessageOrBuilder();
} else {
return low_ == null ?
org.openfeed.Low.getDefaultInstance() : low_;
}
}
/**
*
* / Low price for the trading session
*
*
* .org.openfeed.Low low = 32;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Low, org.openfeed.Low.Builder, org.openfeed.LowOrBuilder>
getLowFieldBuilder() {
if (lowBuilder_ == null) {
lowBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.Low, org.openfeed.Low.Builder, org.openfeed.LowOrBuilder>(
getLow(),
getParentForChildren(),
isClean());
low_ = null;
}
return lowBuilder_;
}
private org.openfeed.Close close_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Close, org.openfeed.Close.Builder, org.openfeed.CloseOrBuilder> closeBuilder_;
/**
*
* / Most recent closing price
*
*
* .org.openfeed.Close close = 33;
* @return Whether the close field is set.
*/
public boolean hasClose() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
*
* / Most recent closing price
*
*
* .org.openfeed.Close close = 33;
* @return The close.
*/
public org.openfeed.Close getClose() {
if (closeBuilder_ == null) {
return close_ == null ? org.openfeed.Close.getDefaultInstance() : close_;
} else {
return closeBuilder_.getMessage();
}
}
/**
*
* / Most recent closing price
*
*
* .org.openfeed.Close close = 33;
*/
public Builder setClose(org.openfeed.Close value) {
if (closeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
close_ = value;
} else {
closeBuilder_.setMessage(value);
}
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
* / Most recent closing price
*
*
* .org.openfeed.Close close = 33;
*/
public Builder setClose(
org.openfeed.Close.Builder builderForValue) {
if (closeBuilder_ == null) {
close_ = builderForValue.build();
} else {
closeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
* / Most recent closing price
*
*
* .org.openfeed.Close close = 33;
*/
public Builder mergeClose(org.openfeed.Close value) {
if (closeBuilder_ == null) {
if (((bitField0_ & 0x00040000) != 0) &&
close_ != null &&
close_ != org.openfeed.Close.getDefaultInstance()) {
getCloseBuilder().mergeFrom(value);
} else {
close_ = value;
}
} else {
closeBuilder_.mergeFrom(value);
}
if (close_ != null) {
bitField0_ |= 0x00040000;
onChanged();
}
return this;
}
/**
*
* / Most recent closing price
*
*
* .org.openfeed.Close close = 33;
*/
public Builder clearClose() {
bitField0_ = (bitField0_ & ~0x00040000);
close_ = null;
if (closeBuilder_ != null) {
closeBuilder_.dispose();
closeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / Most recent closing price
*
*
* .org.openfeed.Close close = 33;
*/
public org.openfeed.Close.Builder getCloseBuilder() {
bitField0_ |= 0x00040000;
onChanged();
return getCloseFieldBuilder().getBuilder();
}
/**
*
* / Most recent closing price
*
*
* .org.openfeed.Close close = 33;
*/
public org.openfeed.CloseOrBuilder getCloseOrBuilder() {
if (closeBuilder_ != null) {
return closeBuilder_.getMessageOrBuilder();
} else {
return close_ == null ?
org.openfeed.Close.getDefaultInstance() : close_;
}
}
/**
*
* / Most recent closing price
*
*
* .org.openfeed.Close close = 33;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Close, org.openfeed.Close.Builder, org.openfeed.CloseOrBuilder>
getCloseFieldBuilder() {
if (closeBuilder_ == null) {
closeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.Close, org.openfeed.Close.Builder, org.openfeed.CloseOrBuilder>(
getClose(),
getParentForChildren(),
isClean());
close_ = null;
}
return closeBuilder_;
}
private org.openfeed.PrevClose prevClose_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.PrevClose, org.openfeed.PrevClose.Builder, org.openfeed.PrevCloseOrBuilder> prevCloseBuilder_;
/**
*
* / Previous closing price
*
*
* .org.openfeed.PrevClose prevClose = 34;
* @return Whether the prevClose field is set.
*/
public boolean hasPrevClose() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
*
* / Previous closing price
*
*
* .org.openfeed.PrevClose prevClose = 34;
* @return The prevClose.
*/
public org.openfeed.PrevClose getPrevClose() {
if (prevCloseBuilder_ == null) {
return prevClose_ == null ? org.openfeed.PrevClose.getDefaultInstance() : prevClose_;
} else {
return prevCloseBuilder_.getMessage();
}
}
/**
*
* / Previous closing price
*
*
* .org.openfeed.PrevClose prevClose = 34;
*/
public Builder setPrevClose(org.openfeed.PrevClose value) {
if (prevCloseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
prevClose_ = value;
} else {
prevCloseBuilder_.setMessage(value);
}
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
* / Previous closing price
*
*
* .org.openfeed.PrevClose prevClose = 34;
*/
public Builder setPrevClose(
org.openfeed.PrevClose.Builder builderForValue) {
if (prevCloseBuilder_ == null) {
prevClose_ = builderForValue.build();
} else {
prevCloseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
* / Previous closing price
*
*
* .org.openfeed.PrevClose prevClose = 34;
*/
public Builder mergePrevClose(org.openfeed.PrevClose value) {
if (prevCloseBuilder_ == null) {
if (((bitField0_ & 0x00080000) != 0) &&
prevClose_ != null &&
prevClose_ != org.openfeed.PrevClose.getDefaultInstance()) {
getPrevCloseBuilder().mergeFrom(value);
} else {
prevClose_ = value;
}
} else {
prevCloseBuilder_.mergeFrom(value);
}
if (prevClose_ != null) {
bitField0_ |= 0x00080000;
onChanged();
}
return this;
}
/**
*
* / Previous closing price
*
*
* .org.openfeed.PrevClose prevClose = 34;
*/
public Builder clearPrevClose() {
bitField0_ = (bitField0_ & ~0x00080000);
prevClose_ = null;
if (prevCloseBuilder_ != null) {
prevCloseBuilder_.dispose();
prevCloseBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / Previous closing price
*
*
* .org.openfeed.PrevClose prevClose = 34;
*/
public org.openfeed.PrevClose.Builder getPrevCloseBuilder() {
bitField0_ |= 0x00080000;
onChanged();
return getPrevCloseFieldBuilder().getBuilder();
}
/**
*
* / Previous closing price
*
*
* .org.openfeed.PrevClose prevClose = 34;
*/
public org.openfeed.PrevCloseOrBuilder getPrevCloseOrBuilder() {
if (prevCloseBuilder_ != null) {
return prevCloseBuilder_.getMessageOrBuilder();
} else {
return prevClose_ == null ?
org.openfeed.PrevClose.getDefaultInstance() : prevClose_;
}
}
/**
*
* / Previous closing price
*
*
* .org.openfeed.PrevClose prevClose = 34;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.PrevClose, org.openfeed.PrevClose.Builder, org.openfeed.PrevCloseOrBuilder>
getPrevCloseFieldBuilder() {
if (prevCloseBuilder_ == null) {
prevCloseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.PrevClose, org.openfeed.PrevClose.Builder, org.openfeed.PrevCloseOrBuilder>(
getPrevClose(),
getParentForChildren(),
isClean());
prevClose_ = null;
}
return prevCloseBuilder_;
}
private org.openfeed.Last last_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Last, org.openfeed.Last.Builder, org.openfeed.LastOrBuilder> lastBuilder_;
/**
*
* / Most recent traded price and quantity
*
*
* .org.openfeed.Last last = 35;
* @return Whether the last field is set.
*/
public boolean hasLast() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
*
* / Most recent traded price and quantity
*
*
* .org.openfeed.Last last = 35;
* @return The last.
*/
public org.openfeed.Last getLast() {
if (lastBuilder_ == null) {
return last_ == null ? org.openfeed.Last.getDefaultInstance() : last_;
} else {
return lastBuilder_.getMessage();
}
}
/**
*
* / Most recent traded price and quantity
*
*
* .org.openfeed.Last last = 35;
*/
public Builder setLast(org.openfeed.Last value) {
if (lastBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
last_ = value;
} else {
lastBuilder_.setMessage(value);
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
* / Most recent traded price and quantity
*
*
* .org.openfeed.Last last = 35;
*/
public Builder setLast(
org.openfeed.Last.Builder builderForValue) {
if (lastBuilder_ == null) {
last_ = builderForValue.build();
} else {
lastBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
* / Most recent traded price and quantity
*
*
* .org.openfeed.Last last = 35;
*/
public Builder mergeLast(org.openfeed.Last value) {
if (lastBuilder_ == null) {
if (((bitField0_ & 0x00100000) != 0) &&
last_ != null &&
last_ != org.openfeed.Last.getDefaultInstance()) {
getLastBuilder().mergeFrom(value);
} else {
last_ = value;
}
} else {
lastBuilder_.mergeFrom(value);
}
if (last_ != null) {
bitField0_ |= 0x00100000;
onChanged();
}
return this;
}
/**
*
* / Most recent traded price and quantity
*
*
* .org.openfeed.Last last = 35;
*/
public Builder clearLast() {
bitField0_ = (bitField0_ & ~0x00100000);
last_ = null;
if (lastBuilder_ != null) {
lastBuilder_.dispose();
lastBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / Most recent traded price and quantity
*
*
* .org.openfeed.Last last = 35;
*/
public org.openfeed.Last.Builder getLastBuilder() {
bitField0_ |= 0x00100000;
onChanged();
return getLastFieldBuilder().getBuilder();
}
/**
*
* / Most recent traded price and quantity
*
*
* .org.openfeed.Last last = 35;
*/
public org.openfeed.LastOrBuilder getLastOrBuilder() {
if (lastBuilder_ != null) {
return lastBuilder_.getMessageOrBuilder();
} else {
return last_ == null ?
org.openfeed.Last.getDefaultInstance() : last_;
}
}
/**
*
* / Most recent traded price and quantity
*
*
* .org.openfeed.Last last = 35;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Last, org.openfeed.Last.Builder, org.openfeed.LastOrBuilder>
getLastFieldBuilder() {
if (lastBuilder_ == null) {
lastBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.Last, org.openfeed.Last.Builder, org.openfeed.LastOrBuilder>(
getLast(),
getParentForChildren(),
isClean());
last_ = null;
}
return lastBuilder_;
}
private org.openfeed.YearHigh yearHigh_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.YearHigh, org.openfeed.YearHigh.Builder, org.openfeed.YearHighOrBuilder> yearHighBuilder_;
/**
*
* / Year high price
*
*
* .org.openfeed.YearHigh yearHigh = 36;
* @return Whether the yearHigh field is set.
*/
public boolean hasYearHigh() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
*
* / Year high price
*
*
* .org.openfeed.YearHigh yearHigh = 36;
* @return The yearHigh.
*/
public org.openfeed.YearHigh getYearHigh() {
if (yearHighBuilder_ == null) {
return yearHigh_ == null ? org.openfeed.YearHigh.getDefaultInstance() : yearHigh_;
} else {
return yearHighBuilder_.getMessage();
}
}
/**
*
* / Year high price
*
*
* .org.openfeed.YearHigh yearHigh = 36;
*/
public Builder setYearHigh(org.openfeed.YearHigh value) {
if (yearHighBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
yearHigh_ = value;
} else {
yearHighBuilder_.setMessage(value);
}
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
* / Year high price
*
*
* .org.openfeed.YearHigh yearHigh = 36;
*/
public Builder setYearHigh(
org.openfeed.YearHigh.Builder builderForValue) {
if (yearHighBuilder_ == null) {
yearHigh_ = builderForValue.build();
} else {
yearHighBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
* / Year high price
*
*
* .org.openfeed.YearHigh yearHigh = 36;
*/
public Builder mergeYearHigh(org.openfeed.YearHigh value) {
if (yearHighBuilder_ == null) {
if (((bitField0_ & 0x00200000) != 0) &&
yearHigh_ != null &&
yearHigh_ != org.openfeed.YearHigh.getDefaultInstance()) {
getYearHighBuilder().mergeFrom(value);
} else {
yearHigh_ = value;
}
} else {
yearHighBuilder_.mergeFrom(value);
}
if (yearHigh_ != null) {
bitField0_ |= 0x00200000;
onChanged();
}
return this;
}
/**
*
* / Year high price
*
*
* .org.openfeed.YearHigh yearHigh = 36;
*/
public Builder clearYearHigh() {
bitField0_ = (bitField0_ & ~0x00200000);
yearHigh_ = null;
if (yearHighBuilder_ != null) {
yearHighBuilder_.dispose();
yearHighBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / Year high price
*
*
* .org.openfeed.YearHigh yearHigh = 36;
*/
public org.openfeed.YearHigh.Builder getYearHighBuilder() {
bitField0_ |= 0x00200000;
onChanged();
return getYearHighFieldBuilder().getBuilder();
}
/**
*
* / Year high price
*
*
* .org.openfeed.YearHigh yearHigh = 36;
*/
public org.openfeed.YearHighOrBuilder getYearHighOrBuilder() {
if (yearHighBuilder_ != null) {
return yearHighBuilder_.getMessageOrBuilder();
} else {
return yearHigh_ == null ?
org.openfeed.YearHigh.getDefaultInstance() : yearHigh_;
}
}
/**
*
* / Year high price
*
*
* .org.openfeed.YearHigh yearHigh = 36;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.YearHigh, org.openfeed.YearHigh.Builder, org.openfeed.YearHighOrBuilder>
getYearHighFieldBuilder() {
if (yearHighBuilder_ == null) {
yearHighBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.YearHigh, org.openfeed.YearHigh.Builder, org.openfeed.YearHighOrBuilder>(
getYearHigh(),
getParentForChildren(),
isClean());
yearHigh_ = null;
}
return yearHighBuilder_;
}
private org.openfeed.YearLow yearLow_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.YearLow, org.openfeed.YearLow.Builder, org.openfeed.YearLowOrBuilder> yearLowBuilder_;
/**
*
* / Year low price
*
*
* .org.openfeed.YearLow yearLow = 37;
* @return Whether the yearLow field is set.
*/
public boolean hasYearLow() {
return ((bitField0_ & 0x00400000) != 0);
}
/**
*
* / Year low price
*
*
* .org.openfeed.YearLow yearLow = 37;
* @return The yearLow.
*/
public org.openfeed.YearLow getYearLow() {
if (yearLowBuilder_ == null) {
return yearLow_ == null ? org.openfeed.YearLow.getDefaultInstance() : yearLow_;
} else {
return yearLowBuilder_.getMessage();
}
}
/**
*
* / Year low price
*
*
* .org.openfeed.YearLow yearLow = 37;
*/
public Builder setYearLow(org.openfeed.YearLow value) {
if (yearLowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
yearLow_ = value;
} else {
yearLowBuilder_.setMessage(value);
}
bitField0_ |= 0x00400000;
onChanged();
return this;
}
/**
*
* / Year low price
*
*
* .org.openfeed.YearLow yearLow = 37;
*/
public Builder setYearLow(
org.openfeed.YearLow.Builder builderForValue) {
if (yearLowBuilder_ == null) {
yearLow_ = builderForValue.build();
} else {
yearLowBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00400000;
onChanged();
return this;
}
/**
*
* / Year low price
*
*
* .org.openfeed.YearLow yearLow = 37;
*/
public Builder mergeYearLow(org.openfeed.YearLow value) {
if (yearLowBuilder_ == null) {
if (((bitField0_ & 0x00400000) != 0) &&
yearLow_ != null &&
yearLow_ != org.openfeed.YearLow.getDefaultInstance()) {
getYearLowBuilder().mergeFrom(value);
} else {
yearLow_ = value;
}
} else {
yearLowBuilder_.mergeFrom(value);
}
if (yearLow_ != null) {
bitField0_ |= 0x00400000;
onChanged();
}
return this;
}
/**
*
* / Year low price
*
*
* .org.openfeed.YearLow yearLow = 37;
*/
public Builder clearYearLow() {
bitField0_ = (bitField0_ & ~0x00400000);
yearLow_ = null;
if (yearLowBuilder_ != null) {
yearLowBuilder_.dispose();
yearLowBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / Year low price
*
*
* .org.openfeed.YearLow yearLow = 37;
*/
public org.openfeed.YearLow.Builder getYearLowBuilder() {
bitField0_ |= 0x00400000;
onChanged();
return getYearLowFieldBuilder().getBuilder();
}
/**
*
* / Year low price
*
*
* .org.openfeed.YearLow yearLow = 37;
*/
public org.openfeed.YearLowOrBuilder getYearLowOrBuilder() {
if (yearLowBuilder_ != null) {
return yearLowBuilder_.getMessageOrBuilder();
} else {
return yearLow_ == null ?
org.openfeed.YearLow.getDefaultInstance() : yearLow_;
}
}
/**
*
* / Year low price
*
*
* .org.openfeed.YearLow yearLow = 37;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.YearLow, org.openfeed.YearLow.Builder, org.openfeed.YearLowOrBuilder>
getYearLowFieldBuilder() {
if (yearLowBuilder_ == null) {
yearLowBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.YearLow, org.openfeed.YearLow.Builder, org.openfeed.YearLowOrBuilder>(
getYearLow(),
getParentForChildren(),
isClean());
yearLow_ = null;
}
return yearLowBuilder_;
}
private org.openfeed.Volume volume_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Volume, org.openfeed.Volume.Builder, org.openfeed.VolumeOrBuilder> volumeBuilder_;
/**
*
* / Total traded volume
*
*
* .org.openfeed.Volume volume = 38;
* @return Whether the volume field is set.
*/
public boolean hasVolume() {
return ((bitField0_ & 0x00800000) != 0);
}
/**
*
* / Total traded volume
*
*
* .org.openfeed.Volume volume = 38;
* @return The volume.
*/
public org.openfeed.Volume getVolume() {
if (volumeBuilder_ == null) {
return volume_ == null ? org.openfeed.Volume.getDefaultInstance() : volume_;
} else {
return volumeBuilder_.getMessage();
}
}
/**
*
* / Total traded volume
*
*
* .org.openfeed.Volume volume = 38;
*/
public Builder setVolume(org.openfeed.Volume value) {
if (volumeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
volume_ = value;
} else {
volumeBuilder_.setMessage(value);
}
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
* / Total traded volume
*
*
* .org.openfeed.Volume volume = 38;
*/
public Builder setVolume(
org.openfeed.Volume.Builder builderForValue) {
if (volumeBuilder_ == null) {
volume_ = builderForValue.build();
} else {
volumeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
* / Total traded volume
*
*
* .org.openfeed.Volume volume = 38;
*/
public Builder mergeVolume(org.openfeed.Volume value) {
if (volumeBuilder_ == null) {
if (((bitField0_ & 0x00800000) != 0) &&
volume_ != null &&
volume_ != org.openfeed.Volume.getDefaultInstance()) {
getVolumeBuilder().mergeFrom(value);
} else {
volume_ = value;
}
} else {
volumeBuilder_.mergeFrom(value);
}
if (volume_ != null) {
bitField0_ |= 0x00800000;
onChanged();
}
return this;
}
/**
*
* / Total traded volume
*
*
* .org.openfeed.Volume volume = 38;
*/
public Builder clearVolume() {
bitField0_ = (bitField0_ & ~0x00800000);
volume_ = null;
if (volumeBuilder_ != null) {
volumeBuilder_.dispose();
volumeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / Total traded volume
*
*
* .org.openfeed.Volume volume = 38;
*/
public org.openfeed.Volume.Builder getVolumeBuilder() {
bitField0_ |= 0x00800000;
onChanged();
return getVolumeFieldBuilder().getBuilder();
}
/**
*
* / Total traded volume
*
*
* .org.openfeed.Volume volume = 38;
*/
public org.openfeed.VolumeOrBuilder getVolumeOrBuilder() {
if (volumeBuilder_ != null) {
return volumeBuilder_.getMessageOrBuilder();
} else {
return volume_ == null ?
org.openfeed.Volume.getDefaultInstance() : volume_;
}
}
/**
*
* / Total traded volume
*
*
* .org.openfeed.Volume volume = 38;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Volume, org.openfeed.Volume.Builder, org.openfeed.VolumeOrBuilder>
getVolumeFieldBuilder() {
if (volumeBuilder_ == null) {
volumeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.Volume, org.openfeed.Volume.Builder, org.openfeed.VolumeOrBuilder>(
getVolume(),
getParentForChildren(),
isClean());
volume_ = null;
}
return volumeBuilder_;
}
private org.openfeed.Settlement settlement_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Settlement, org.openfeed.Settlement.Builder, org.openfeed.SettlementOrBuilder> settlementBuilder_;
/**
*
* / Most recent settlement price
*
*
* .org.openfeed.Settlement settlement = 39;
* @return Whether the settlement field is set.
*/
public boolean hasSettlement() {
return ((bitField0_ & 0x01000000) != 0);
}
/**
*
* / Most recent settlement price
*
*
* .org.openfeed.Settlement settlement = 39;
* @return The settlement.
*/
public org.openfeed.Settlement getSettlement() {
if (settlementBuilder_ == null) {
return settlement_ == null ? org.openfeed.Settlement.getDefaultInstance() : settlement_;
} else {
return settlementBuilder_.getMessage();
}
}
/**
*
* / Most recent settlement price
*
*
* .org.openfeed.Settlement settlement = 39;
*/
public Builder setSettlement(org.openfeed.Settlement value) {
if (settlementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
settlement_ = value;
} else {
settlementBuilder_.setMessage(value);
}
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
* / Most recent settlement price
*
*
* .org.openfeed.Settlement settlement = 39;
*/
public Builder setSettlement(
org.openfeed.Settlement.Builder builderForValue) {
if (settlementBuilder_ == null) {
settlement_ = builderForValue.build();
} else {
settlementBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
* / Most recent settlement price
*
*
* .org.openfeed.Settlement settlement = 39;
*/
public Builder mergeSettlement(org.openfeed.Settlement value) {
if (settlementBuilder_ == null) {
if (((bitField0_ & 0x01000000) != 0) &&
settlement_ != null &&
settlement_ != org.openfeed.Settlement.getDefaultInstance()) {
getSettlementBuilder().mergeFrom(value);
} else {
settlement_ = value;
}
} else {
settlementBuilder_.mergeFrom(value);
}
if (settlement_ != null) {
bitField0_ |= 0x01000000;
onChanged();
}
return this;
}
/**
*
* / Most recent settlement price
*
*
* .org.openfeed.Settlement settlement = 39;
*/
public Builder clearSettlement() {
bitField0_ = (bitField0_ & ~0x01000000);
settlement_ = null;
if (settlementBuilder_ != null) {
settlementBuilder_.dispose();
settlementBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / Most recent settlement price
*
*
* .org.openfeed.Settlement settlement = 39;
*/
public org.openfeed.Settlement.Builder getSettlementBuilder() {
bitField0_ |= 0x01000000;
onChanged();
return getSettlementFieldBuilder().getBuilder();
}
/**
*
* / Most recent settlement price
*
*
* .org.openfeed.Settlement settlement = 39;
*/
public org.openfeed.SettlementOrBuilder getSettlementOrBuilder() {
if (settlementBuilder_ != null) {
return settlementBuilder_.getMessageOrBuilder();
} else {
return settlement_ == null ?
org.openfeed.Settlement.getDefaultInstance() : settlement_;
}
}
/**
*
* / Most recent settlement price
*
*
* .org.openfeed.Settlement settlement = 39;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Settlement, org.openfeed.Settlement.Builder, org.openfeed.SettlementOrBuilder>
getSettlementFieldBuilder() {
if (settlementBuilder_ == null) {
settlementBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.Settlement, org.openfeed.Settlement.Builder, org.openfeed.SettlementOrBuilder>(
getSettlement(),
getParentForChildren(),
isClean());
settlement_ = null;
}
return settlementBuilder_;
}
private org.openfeed.OpenInterest openInterest_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.OpenInterest, org.openfeed.OpenInterest.Builder, org.openfeed.OpenInterestOrBuilder> openInterestBuilder_;
/**
*
* / Most recent open interest
*
*
* .org.openfeed.OpenInterest openInterest = 40;
* @return Whether the openInterest field is set.
*/
public boolean hasOpenInterest() {
return ((bitField0_ & 0x02000000) != 0);
}
/**
*
* / Most recent open interest
*
*
* .org.openfeed.OpenInterest openInterest = 40;
* @return The openInterest.
*/
public org.openfeed.OpenInterest getOpenInterest() {
if (openInterestBuilder_ == null) {
return openInterest_ == null ? org.openfeed.OpenInterest.getDefaultInstance() : openInterest_;
} else {
return openInterestBuilder_.getMessage();
}
}
/**
*
* / Most recent open interest
*
*
* .org.openfeed.OpenInterest openInterest = 40;
*/
public Builder setOpenInterest(org.openfeed.OpenInterest value) {
if (openInterestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
openInterest_ = value;
} else {
openInterestBuilder_.setMessage(value);
}
bitField0_ |= 0x02000000;
onChanged();
return this;
}
/**
*
* / Most recent open interest
*
*
* .org.openfeed.OpenInterest openInterest = 40;
*/
public Builder setOpenInterest(
org.openfeed.OpenInterest.Builder builderForValue) {
if (openInterestBuilder_ == null) {
openInterest_ = builderForValue.build();
} else {
openInterestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x02000000;
onChanged();
return this;
}
/**
*
* / Most recent open interest
*
*
* .org.openfeed.OpenInterest openInterest = 40;
*/
public Builder mergeOpenInterest(org.openfeed.OpenInterest value) {
if (openInterestBuilder_ == null) {
if (((bitField0_ & 0x02000000) != 0) &&
openInterest_ != null &&
openInterest_ != org.openfeed.OpenInterest.getDefaultInstance()) {
getOpenInterestBuilder().mergeFrom(value);
} else {
openInterest_ = value;
}
} else {
openInterestBuilder_.mergeFrom(value);
}
if (openInterest_ != null) {
bitField0_ |= 0x02000000;
onChanged();
}
return this;
}
/**
*
* / Most recent open interest
*
*
* .org.openfeed.OpenInterest openInterest = 40;
*/
public Builder clearOpenInterest() {
bitField0_ = (bitField0_ & ~0x02000000);
openInterest_ = null;
if (openInterestBuilder_ != null) {
openInterestBuilder_.dispose();
openInterestBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / Most recent open interest
*
*
* .org.openfeed.OpenInterest openInterest = 40;
*/
public org.openfeed.OpenInterest.Builder getOpenInterestBuilder() {
bitField0_ |= 0x02000000;
onChanged();
return getOpenInterestFieldBuilder().getBuilder();
}
/**
*
* / Most recent open interest
*
*
* .org.openfeed.OpenInterest openInterest = 40;
*/
public org.openfeed.OpenInterestOrBuilder getOpenInterestOrBuilder() {
if (openInterestBuilder_ != null) {
return openInterestBuilder_.getMessageOrBuilder();
} else {
return openInterest_ == null ?
org.openfeed.OpenInterest.getDefaultInstance() : openInterest_;
}
}
/**
*
* / Most recent open interest
*
*
* .org.openfeed.OpenInterest openInterest = 40;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.OpenInterest, org.openfeed.OpenInterest.Builder, org.openfeed.OpenInterestOrBuilder>
getOpenInterestFieldBuilder() {
if (openInterestBuilder_ == null) {
openInterestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.OpenInterest, org.openfeed.OpenInterest.Builder, org.openfeed.OpenInterestOrBuilder>(
getOpenInterest(),
getParentForChildren(),
isClean());
openInterest_ = null;
}
return openInterestBuilder_;
}
private org.openfeed.Vwap vwap_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Vwap, org.openfeed.Vwap.Builder, org.openfeed.VwapOrBuilder> vwapBuilder_;
/**
*
* / Most recent volume weighted average price
*
*
* .org.openfeed.Vwap vwap = 41;
* @return Whether the vwap field is set.
*/
public boolean hasVwap() {
return ((bitField0_ & 0x04000000) != 0);
}
/**
*
* / Most recent volume weighted average price
*
*
* .org.openfeed.Vwap vwap = 41;
* @return The vwap.
*/
public org.openfeed.Vwap getVwap() {
if (vwapBuilder_ == null) {
return vwap_ == null ? org.openfeed.Vwap.getDefaultInstance() : vwap_;
} else {
return vwapBuilder_.getMessage();
}
}
/**
*
* / Most recent volume weighted average price
*
*
* .org.openfeed.Vwap vwap = 41;
*/
public Builder setVwap(org.openfeed.Vwap value) {
if (vwapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
vwap_ = value;
} else {
vwapBuilder_.setMessage(value);
}
bitField0_ |= 0x04000000;
onChanged();
return this;
}
/**
*
* / Most recent volume weighted average price
*
*
* .org.openfeed.Vwap vwap = 41;
*/
public Builder setVwap(
org.openfeed.Vwap.Builder builderForValue) {
if (vwapBuilder_ == null) {
vwap_ = builderForValue.build();
} else {
vwapBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x04000000;
onChanged();
return this;
}
/**
*
* / Most recent volume weighted average price
*
*
* .org.openfeed.Vwap vwap = 41;
*/
public Builder mergeVwap(org.openfeed.Vwap value) {
if (vwapBuilder_ == null) {
if (((bitField0_ & 0x04000000) != 0) &&
vwap_ != null &&
vwap_ != org.openfeed.Vwap.getDefaultInstance()) {
getVwapBuilder().mergeFrom(value);
} else {
vwap_ = value;
}
} else {
vwapBuilder_.mergeFrom(value);
}
if (vwap_ != null) {
bitField0_ |= 0x04000000;
onChanged();
}
return this;
}
/**
*
* / Most recent volume weighted average price
*
*
* .org.openfeed.Vwap vwap = 41;
*/
public Builder clearVwap() {
bitField0_ = (bitField0_ & ~0x04000000);
vwap_ = null;
if (vwapBuilder_ != null) {
vwapBuilder_.dispose();
vwapBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / Most recent volume weighted average price
*
*
* .org.openfeed.Vwap vwap = 41;
*/
public org.openfeed.Vwap.Builder getVwapBuilder() {
bitField0_ |= 0x04000000;
onChanged();
return getVwapFieldBuilder().getBuilder();
}
/**
*
* / Most recent volume weighted average price
*
*
* .org.openfeed.Vwap vwap = 41;
*/
public org.openfeed.VwapOrBuilder getVwapOrBuilder() {
if (vwapBuilder_ != null) {
return vwapBuilder_.getMessageOrBuilder();
} else {
return vwap_ == null ?
org.openfeed.Vwap.getDefaultInstance() : vwap_;
}
}
/**
*
* / Most recent volume weighted average price
*
*
* .org.openfeed.Vwap vwap = 41;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Vwap, org.openfeed.Vwap.Builder, org.openfeed.VwapOrBuilder>
getVwapFieldBuilder() {
if (vwapBuilder_ == null) {
vwapBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.Vwap, org.openfeed.Vwap.Builder, org.openfeed.VwapOrBuilder>(
getVwap(),
getParentForChildren(),
isClean());
vwap_ = null;
}
return vwapBuilder_;
}
private org.openfeed.DividendsIncomeDistributions dividendsIncomeDistributions_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.DividendsIncomeDistributions, org.openfeed.DividendsIncomeDistributions.Builder, org.openfeed.DividendsIncomeDistributionsOrBuilder> dividendsIncomeDistributionsBuilder_;
/**
* .org.openfeed.DividendsIncomeDistributions dividendsIncomeDistributions = 42;
* @return Whether the dividendsIncomeDistributions field is set.
*/
public boolean hasDividendsIncomeDistributions() {
return ((bitField0_ & 0x08000000) != 0);
}
/**
* .org.openfeed.DividendsIncomeDistributions dividendsIncomeDistributions = 42;
* @return The dividendsIncomeDistributions.
*/
public org.openfeed.DividendsIncomeDistributions getDividendsIncomeDistributions() {
if (dividendsIncomeDistributionsBuilder_ == null) {
return dividendsIncomeDistributions_ == null ? org.openfeed.DividendsIncomeDistributions.getDefaultInstance() : dividendsIncomeDistributions_;
} else {
return dividendsIncomeDistributionsBuilder_.getMessage();
}
}
/**
* .org.openfeed.DividendsIncomeDistributions dividendsIncomeDistributions = 42;
*/
public Builder setDividendsIncomeDistributions(org.openfeed.DividendsIncomeDistributions value) {
if (dividendsIncomeDistributionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dividendsIncomeDistributions_ = value;
} else {
dividendsIncomeDistributionsBuilder_.setMessage(value);
}
bitField0_ |= 0x08000000;
onChanged();
return this;
}
/**
* .org.openfeed.DividendsIncomeDistributions dividendsIncomeDistributions = 42;
*/
public Builder setDividendsIncomeDistributions(
org.openfeed.DividendsIncomeDistributions.Builder builderForValue) {
if (dividendsIncomeDistributionsBuilder_ == null) {
dividendsIncomeDistributions_ = builderForValue.build();
} else {
dividendsIncomeDistributionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x08000000;
onChanged();
return this;
}
/**
* .org.openfeed.DividendsIncomeDistributions dividendsIncomeDistributions = 42;
*/
public Builder mergeDividendsIncomeDistributions(org.openfeed.DividendsIncomeDistributions value) {
if (dividendsIncomeDistributionsBuilder_ == null) {
if (((bitField0_ & 0x08000000) != 0) &&
dividendsIncomeDistributions_ != null &&
dividendsIncomeDistributions_ != org.openfeed.DividendsIncomeDistributions.getDefaultInstance()) {
getDividendsIncomeDistributionsBuilder().mergeFrom(value);
} else {
dividendsIncomeDistributions_ = value;
}
} else {
dividendsIncomeDistributionsBuilder_.mergeFrom(value);
}
if (dividendsIncomeDistributions_ != null) {
bitField0_ |= 0x08000000;
onChanged();
}
return this;
}
/**
* .org.openfeed.DividendsIncomeDistributions dividendsIncomeDistributions = 42;
*/
public Builder clearDividendsIncomeDistributions() {
bitField0_ = (bitField0_ & ~0x08000000);
dividendsIncomeDistributions_ = null;
if (dividendsIncomeDistributionsBuilder_ != null) {
dividendsIncomeDistributionsBuilder_.dispose();
dividendsIncomeDistributionsBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.openfeed.DividendsIncomeDistributions dividendsIncomeDistributions = 42;
*/
public org.openfeed.DividendsIncomeDistributions.Builder getDividendsIncomeDistributionsBuilder() {
bitField0_ |= 0x08000000;
onChanged();
return getDividendsIncomeDistributionsFieldBuilder().getBuilder();
}
/**
* .org.openfeed.DividendsIncomeDistributions dividendsIncomeDistributions = 42;
*/
public org.openfeed.DividendsIncomeDistributionsOrBuilder getDividendsIncomeDistributionsOrBuilder() {
if (dividendsIncomeDistributionsBuilder_ != null) {
return dividendsIncomeDistributionsBuilder_.getMessageOrBuilder();
} else {
return dividendsIncomeDistributions_ == null ?
org.openfeed.DividendsIncomeDistributions.getDefaultInstance() : dividendsIncomeDistributions_;
}
}
/**
* .org.openfeed.DividendsIncomeDistributions dividendsIncomeDistributions = 42;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.DividendsIncomeDistributions, org.openfeed.DividendsIncomeDistributions.Builder, org.openfeed.DividendsIncomeDistributionsOrBuilder>
getDividendsIncomeDistributionsFieldBuilder() {
if (dividendsIncomeDistributionsBuilder_ == null) {
dividendsIncomeDistributionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.DividendsIncomeDistributions, org.openfeed.DividendsIncomeDistributions.Builder, org.openfeed.DividendsIncomeDistributionsOrBuilder>(
getDividendsIncomeDistributions(),
getParentForChildren(),
isClean());
dividendsIncomeDistributions_ = null;
}
return dividendsIncomeDistributionsBuilder_;
}
private org.openfeed.NumberOfTrades numberOfTrades_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.NumberOfTrades, org.openfeed.NumberOfTrades.Builder, org.openfeed.NumberOfTradesOrBuilder> numberOfTradesBuilder_;
/**
* .org.openfeed.NumberOfTrades numberOfTrades = 43;
* @return Whether the numberOfTrades field is set.
*/
public boolean hasNumberOfTrades() {
return ((bitField0_ & 0x10000000) != 0);
}
/**
* .org.openfeed.NumberOfTrades numberOfTrades = 43;
* @return The numberOfTrades.
*/
public org.openfeed.NumberOfTrades getNumberOfTrades() {
if (numberOfTradesBuilder_ == null) {
return numberOfTrades_ == null ? org.openfeed.NumberOfTrades.getDefaultInstance() : numberOfTrades_;
} else {
return numberOfTradesBuilder_.getMessage();
}
}
/**
* .org.openfeed.NumberOfTrades numberOfTrades = 43;
*/
public Builder setNumberOfTrades(org.openfeed.NumberOfTrades value) {
if (numberOfTradesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
numberOfTrades_ = value;
} else {
numberOfTradesBuilder_.setMessage(value);
}
bitField0_ |= 0x10000000;
onChanged();
return this;
}
/**
* .org.openfeed.NumberOfTrades numberOfTrades = 43;
*/
public Builder setNumberOfTrades(
org.openfeed.NumberOfTrades.Builder builderForValue) {
if (numberOfTradesBuilder_ == null) {
numberOfTrades_ = builderForValue.build();
} else {
numberOfTradesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x10000000;
onChanged();
return this;
}
/**
* .org.openfeed.NumberOfTrades numberOfTrades = 43;
*/
public Builder mergeNumberOfTrades(org.openfeed.NumberOfTrades value) {
if (numberOfTradesBuilder_ == null) {
if (((bitField0_ & 0x10000000) != 0) &&
numberOfTrades_ != null &&
numberOfTrades_ != org.openfeed.NumberOfTrades.getDefaultInstance()) {
getNumberOfTradesBuilder().mergeFrom(value);
} else {
numberOfTrades_ = value;
}
} else {
numberOfTradesBuilder_.mergeFrom(value);
}
if (numberOfTrades_ != null) {
bitField0_ |= 0x10000000;
onChanged();
}
return this;
}
/**
* .org.openfeed.NumberOfTrades numberOfTrades = 43;
*/
public Builder clearNumberOfTrades() {
bitField0_ = (bitField0_ & ~0x10000000);
numberOfTrades_ = null;
if (numberOfTradesBuilder_ != null) {
numberOfTradesBuilder_.dispose();
numberOfTradesBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.openfeed.NumberOfTrades numberOfTrades = 43;
*/
public org.openfeed.NumberOfTrades.Builder getNumberOfTradesBuilder() {
bitField0_ |= 0x10000000;
onChanged();
return getNumberOfTradesFieldBuilder().getBuilder();
}
/**
* .org.openfeed.NumberOfTrades numberOfTrades = 43;
*/
public org.openfeed.NumberOfTradesOrBuilder getNumberOfTradesOrBuilder() {
if (numberOfTradesBuilder_ != null) {
return numberOfTradesBuilder_.getMessageOrBuilder();
} else {
return numberOfTrades_ == null ?
org.openfeed.NumberOfTrades.getDefaultInstance() : numberOfTrades_;
}
}
/**
* .org.openfeed.NumberOfTrades numberOfTrades = 43;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.NumberOfTrades, org.openfeed.NumberOfTrades.Builder, org.openfeed.NumberOfTradesOrBuilder>
getNumberOfTradesFieldBuilder() {
if (numberOfTradesBuilder_ == null) {
numberOfTradesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.NumberOfTrades, org.openfeed.NumberOfTrades.Builder, org.openfeed.NumberOfTradesOrBuilder>(
getNumberOfTrades(),
getParentForChildren(),
isClean());
numberOfTrades_ = null;
}
return numberOfTradesBuilder_;
}
private org.openfeed.MonetaryValue monetaryValue_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.MonetaryValue, org.openfeed.MonetaryValue.Builder, org.openfeed.MonetaryValueOrBuilder> monetaryValueBuilder_;
/**
* .org.openfeed.MonetaryValue monetaryValue = 44;
* @return Whether the monetaryValue field is set.
*/
public boolean hasMonetaryValue() {
return ((bitField0_ & 0x20000000) != 0);
}
/**
* .org.openfeed.MonetaryValue monetaryValue = 44;
* @return The monetaryValue.
*/
public org.openfeed.MonetaryValue getMonetaryValue() {
if (monetaryValueBuilder_ == null) {
return monetaryValue_ == null ? org.openfeed.MonetaryValue.getDefaultInstance() : monetaryValue_;
} else {
return monetaryValueBuilder_.getMessage();
}
}
/**
* .org.openfeed.MonetaryValue monetaryValue = 44;
*/
public Builder setMonetaryValue(org.openfeed.MonetaryValue value) {
if (monetaryValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
monetaryValue_ = value;
} else {
monetaryValueBuilder_.setMessage(value);
}
bitField0_ |= 0x20000000;
onChanged();
return this;
}
/**
* .org.openfeed.MonetaryValue monetaryValue = 44;
*/
public Builder setMonetaryValue(
org.openfeed.MonetaryValue.Builder builderForValue) {
if (monetaryValueBuilder_ == null) {
monetaryValue_ = builderForValue.build();
} else {
monetaryValueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x20000000;
onChanged();
return this;
}
/**
* .org.openfeed.MonetaryValue monetaryValue = 44;
*/
public Builder mergeMonetaryValue(org.openfeed.MonetaryValue value) {
if (monetaryValueBuilder_ == null) {
if (((bitField0_ & 0x20000000) != 0) &&
monetaryValue_ != null &&
monetaryValue_ != org.openfeed.MonetaryValue.getDefaultInstance()) {
getMonetaryValueBuilder().mergeFrom(value);
} else {
monetaryValue_ = value;
}
} else {
monetaryValueBuilder_.mergeFrom(value);
}
if (monetaryValue_ != null) {
bitField0_ |= 0x20000000;
onChanged();
}
return this;
}
/**
* .org.openfeed.MonetaryValue monetaryValue = 44;
*/
public Builder clearMonetaryValue() {
bitField0_ = (bitField0_ & ~0x20000000);
monetaryValue_ = null;
if (monetaryValueBuilder_ != null) {
monetaryValueBuilder_.dispose();
monetaryValueBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.openfeed.MonetaryValue monetaryValue = 44;
*/
public org.openfeed.MonetaryValue.Builder getMonetaryValueBuilder() {
bitField0_ |= 0x20000000;
onChanged();
return getMonetaryValueFieldBuilder().getBuilder();
}
/**
* .org.openfeed.MonetaryValue monetaryValue = 44;
*/
public org.openfeed.MonetaryValueOrBuilder getMonetaryValueOrBuilder() {
if (monetaryValueBuilder_ != null) {
return monetaryValueBuilder_.getMessageOrBuilder();
} else {
return monetaryValue_ == null ?
org.openfeed.MonetaryValue.getDefaultInstance() : monetaryValue_;
}
}
/**
* .org.openfeed.MonetaryValue monetaryValue = 44;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.MonetaryValue, org.openfeed.MonetaryValue.Builder, org.openfeed.MonetaryValueOrBuilder>
getMonetaryValueFieldBuilder() {
if (monetaryValueBuilder_ == null) {
monetaryValueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.MonetaryValue, org.openfeed.MonetaryValue.Builder, org.openfeed.MonetaryValueOrBuilder>(
getMonetaryValue(),
getParentForChildren(),
isClean());
monetaryValue_ = null;
}
return monetaryValueBuilder_;
}
private org.openfeed.CapitalDistributions capitalDistributions_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.CapitalDistributions, org.openfeed.CapitalDistributions.Builder, org.openfeed.CapitalDistributionsOrBuilder> capitalDistributionsBuilder_;
/**
* .org.openfeed.CapitalDistributions capitalDistributions = 45;
* @return Whether the capitalDistributions field is set.
*/
public boolean hasCapitalDistributions() {
return ((bitField0_ & 0x40000000) != 0);
}
/**
* .org.openfeed.CapitalDistributions capitalDistributions = 45;
* @return The capitalDistributions.
*/
public org.openfeed.CapitalDistributions getCapitalDistributions() {
if (capitalDistributionsBuilder_ == null) {
return capitalDistributions_ == null ? org.openfeed.CapitalDistributions.getDefaultInstance() : capitalDistributions_;
} else {
return capitalDistributionsBuilder_.getMessage();
}
}
/**
* .org.openfeed.CapitalDistributions capitalDistributions = 45;
*/
public Builder setCapitalDistributions(org.openfeed.CapitalDistributions value) {
if (capitalDistributionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
capitalDistributions_ = value;
} else {
capitalDistributionsBuilder_.setMessage(value);
}
bitField0_ |= 0x40000000;
onChanged();
return this;
}
/**
* .org.openfeed.CapitalDistributions capitalDistributions = 45;
*/
public Builder setCapitalDistributions(
org.openfeed.CapitalDistributions.Builder builderForValue) {
if (capitalDistributionsBuilder_ == null) {
capitalDistributions_ = builderForValue.build();
} else {
capitalDistributionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x40000000;
onChanged();
return this;
}
/**
* .org.openfeed.CapitalDistributions capitalDistributions = 45;
*/
public Builder mergeCapitalDistributions(org.openfeed.CapitalDistributions value) {
if (capitalDistributionsBuilder_ == null) {
if (((bitField0_ & 0x40000000) != 0) &&
capitalDistributions_ != null &&
capitalDistributions_ != org.openfeed.CapitalDistributions.getDefaultInstance()) {
getCapitalDistributionsBuilder().mergeFrom(value);
} else {
capitalDistributions_ = value;
}
} else {
capitalDistributionsBuilder_.mergeFrom(value);
}
if (capitalDistributions_ != null) {
bitField0_ |= 0x40000000;
onChanged();
}
return this;
}
/**
* .org.openfeed.CapitalDistributions capitalDistributions = 45;
*/
public Builder clearCapitalDistributions() {
bitField0_ = (bitField0_ & ~0x40000000);
capitalDistributions_ = null;
if (capitalDistributionsBuilder_ != null) {
capitalDistributionsBuilder_.dispose();
capitalDistributionsBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.openfeed.CapitalDistributions capitalDistributions = 45;
*/
public org.openfeed.CapitalDistributions.Builder getCapitalDistributionsBuilder() {
bitField0_ |= 0x40000000;
onChanged();
return getCapitalDistributionsFieldBuilder().getBuilder();
}
/**
* .org.openfeed.CapitalDistributions capitalDistributions = 45;
*/
public org.openfeed.CapitalDistributionsOrBuilder getCapitalDistributionsOrBuilder() {
if (capitalDistributionsBuilder_ != null) {
return capitalDistributionsBuilder_.getMessageOrBuilder();
} else {
return capitalDistributions_ == null ?
org.openfeed.CapitalDistributions.getDefaultInstance() : capitalDistributions_;
}
}
/**
* .org.openfeed.CapitalDistributions capitalDistributions = 45;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.CapitalDistributions, org.openfeed.CapitalDistributions.Builder, org.openfeed.CapitalDistributionsOrBuilder>
getCapitalDistributionsFieldBuilder() {
if (capitalDistributionsBuilder_ == null) {
capitalDistributionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.CapitalDistributions, org.openfeed.CapitalDistributions.Builder, org.openfeed.CapitalDistributionsOrBuilder>(
getCapitalDistributions(),
getParentForChildren(),
isClean());
capitalDistributions_ = null;
}
return capitalDistributionsBuilder_;
}
private org.openfeed.SharesOutstanding sharesOutstanding_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.SharesOutstanding, org.openfeed.SharesOutstanding.Builder, org.openfeed.SharesOutstandingOrBuilder> sharesOutstandingBuilder_;
/**
* .org.openfeed.SharesOutstanding sharesOutstanding = 46;
* @return Whether the sharesOutstanding field is set.
*/
public boolean hasSharesOutstanding() {
return ((bitField0_ & 0x80000000) != 0);
}
/**
* .org.openfeed.SharesOutstanding sharesOutstanding = 46;
* @return The sharesOutstanding.
*/
public org.openfeed.SharesOutstanding getSharesOutstanding() {
if (sharesOutstandingBuilder_ == null) {
return sharesOutstanding_ == null ? org.openfeed.SharesOutstanding.getDefaultInstance() : sharesOutstanding_;
} else {
return sharesOutstandingBuilder_.getMessage();
}
}
/**
* .org.openfeed.SharesOutstanding sharesOutstanding = 46;
*/
public Builder setSharesOutstanding(org.openfeed.SharesOutstanding value) {
if (sharesOutstandingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sharesOutstanding_ = value;
} else {
sharesOutstandingBuilder_.setMessage(value);
}
bitField0_ |= 0x80000000;
onChanged();
return this;
}
/**
* .org.openfeed.SharesOutstanding sharesOutstanding = 46;
*/
public Builder setSharesOutstanding(
org.openfeed.SharesOutstanding.Builder builderForValue) {
if (sharesOutstandingBuilder_ == null) {
sharesOutstanding_ = builderForValue.build();
} else {
sharesOutstandingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x80000000;
onChanged();
return this;
}
/**
* .org.openfeed.SharesOutstanding sharesOutstanding = 46;
*/
public Builder mergeSharesOutstanding(org.openfeed.SharesOutstanding value) {
if (sharesOutstandingBuilder_ == null) {
if (((bitField0_ & 0x80000000) != 0) &&
sharesOutstanding_ != null &&
sharesOutstanding_ != org.openfeed.SharesOutstanding.getDefaultInstance()) {
getSharesOutstandingBuilder().mergeFrom(value);
} else {
sharesOutstanding_ = value;
}
} else {
sharesOutstandingBuilder_.mergeFrom(value);
}
if (sharesOutstanding_ != null) {
bitField0_ |= 0x80000000;
onChanged();
}
return this;
}
/**
* .org.openfeed.SharesOutstanding sharesOutstanding = 46;
*/
public Builder clearSharesOutstanding() {
bitField0_ = (bitField0_ & ~0x80000000);
sharesOutstanding_ = null;
if (sharesOutstandingBuilder_ != null) {
sharesOutstandingBuilder_.dispose();
sharesOutstandingBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.openfeed.SharesOutstanding sharesOutstanding = 46;
*/
public org.openfeed.SharesOutstanding.Builder getSharesOutstandingBuilder() {
bitField0_ |= 0x80000000;
onChanged();
return getSharesOutstandingFieldBuilder().getBuilder();
}
/**
* .org.openfeed.SharesOutstanding sharesOutstanding = 46;
*/
public org.openfeed.SharesOutstandingOrBuilder getSharesOutstandingOrBuilder() {
if (sharesOutstandingBuilder_ != null) {
return sharesOutstandingBuilder_.getMessageOrBuilder();
} else {
return sharesOutstanding_ == null ?
org.openfeed.SharesOutstanding.getDefaultInstance() : sharesOutstanding_;
}
}
/**
* .org.openfeed.SharesOutstanding sharesOutstanding = 46;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.SharesOutstanding, org.openfeed.SharesOutstanding.Builder, org.openfeed.SharesOutstandingOrBuilder>
getSharesOutstandingFieldBuilder() {
if (sharesOutstandingBuilder_ == null) {
sharesOutstandingBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.SharesOutstanding, org.openfeed.SharesOutstanding.Builder, org.openfeed.SharesOutstandingOrBuilder>(
getSharesOutstanding(),
getParentForChildren(),
isClean());
sharesOutstanding_ = null;
}
return sharesOutstandingBuilder_;
}
private org.openfeed.NetAssetValue netAssetValue_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.NetAssetValue, org.openfeed.NetAssetValue.Builder, org.openfeed.NetAssetValueOrBuilder> netAssetValueBuilder_;
/**
* .org.openfeed.NetAssetValue netAssetValue = 47;
* @return Whether the netAssetValue field is set.
*/
public boolean hasNetAssetValue() {
return ((bitField1_ & 0x00000001) != 0);
}
/**
* .org.openfeed.NetAssetValue netAssetValue = 47;
* @return The netAssetValue.
*/
public org.openfeed.NetAssetValue getNetAssetValue() {
if (netAssetValueBuilder_ == null) {
return netAssetValue_ == null ? org.openfeed.NetAssetValue.getDefaultInstance() : netAssetValue_;
} else {
return netAssetValueBuilder_.getMessage();
}
}
/**
* .org.openfeed.NetAssetValue netAssetValue = 47;
*/
public Builder setNetAssetValue(org.openfeed.NetAssetValue value) {
if (netAssetValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
netAssetValue_ = value;
} else {
netAssetValueBuilder_.setMessage(value);
}
bitField1_ |= 0x00000001;
onChanged();
return this;
}
/**
* .org.openfeed.NetAssetValue netAssetValue = 47;
*/
public Builder setNetAssetValue(
org.openfeed.NetAssetValue.Builder builderForValue) {
if (netAssetValueBuilder_ == null) {
netAssetValue_ = builderForValue.build();
} else {
netAssetValueBuilder_.setMessage(builderForValue.build());
}
bitField1_ |= 0x00000001;
onChanged();
return this;
}
/**
* .org.openfeed.NetAssetValue netAssetValue = 47;
*/
public Builder mergeNetAssetValue(org.openfeed.NetAssetValue value) {
if (netAssetValueBuilder_ == null) {
if (((bitField1_ & 0x00000001) != 0) &&
netAssetValue_ != null &&
netAssetValue_ != org.openfeed.NetAssetValue.getDefaultInstance()) {
getNetAssetValueBuilder().mergeFrom(value);
} else {
netAssetValue_ = value;
}
} else {
netAssetValueBuilder_.mergeFrom(value);
}
if (netAssetValue_ != null) {
bitField1_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .org.openfeed.NetAssetValue netAssetValue = 47;
*/
public Builder clearNetAssetValue() {
bitField1_ = (bitField1_ & ~0x00000001);
netAssetValue_ = null;
if (netAssetValueBuilder_ != null) {
netAssetValueBuilder_.dispose();
netAssetValueBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.openfeed.NetAssetValue netAssetValue = 47;
*/
public org.openfeed.NetAssetValue.Builder getNetAssetValueBuilder() {
bitField1_ |= 0x00000001;
onChanged();
return getNetAssetValueFieldBuilder().getBuilder();
}
/**
* .org.openfeed.NetAssetValue netAssetValue = 47;
*/
public org.openfeed.NetAssetValueOrBuilder getNetAssetValueOrBuilder() {
if (netAssetValueBuilder_ != null) {
return netAssetValueBuilder_.getMessageOrBuilder();
} else {
return netAssetValue_ == null ?
org.openfeed.NetAssetValue.getDefaultInstance() : netAssetValue_;
}
}
/**
* .org.openfeed.NetAssetValue netAssetValue = 47;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.NetAssetValue, org.openfeed.NetAssetValue.Builder, org.openfeed.NetAssetValueOrBuilder>
getNetAssetValueFieldBuilder() {
if (netAssetValueBuilder_ == null) {
netAssetValueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.NetAssetValue, org.openfeed.NetAssetValue.Builder, org.openfeed.NetAssetValueOrBuilder>(
getNetAssetValue(),
getParentForChildren(),
isClean());
netAssetValue_ = null;
}
return netAssetValueBuilder_;
}
private org.openfeed.MarketSession previousSession_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.MarketSession, org.openfeed.MarketSession.Builder, org.openfeed.MarketSessionOrBuilder> previousSessionBuilder_;
/**
*
* / Previous session.
*
*
* .org.openfeed.MarketSession previousSession = 48;
* @return Whether the previousSession field is set.
*/
public boolean hasPreviousSession() {
return ((bitField1_ & 0x00000002) != 0);
}
/**
*
* / Previous session.
*
*
* .org.openfeed.MarketSession previousSession = 48;
* @return The previousSession.
*/
public org.openfeed.MarketSession getPreviousSession() {
if (previousSessionBuilder_ == null) {
return previousSession_ == null ? org.openfeed.MarketSession.getDefaultInstance() : previousSession_;
} else {
return previousSessionBuilder_.getMessage();
}
}
/**
*
* / Previous session.
*
*
* .org.openfeed.MarketSession previousSession = 48;
*/
public Builder setPreviousSession(org.openfeed.MarketSession value) {
if (previousSessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
previousSession_ = value;
} else {
previousSessionBuilder_.setMessage(value);
}
bitField1_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* / Previous session.
*
*
* .org.openfeed.MarketSession previousSession = 48;
*/
public Builder setPreviousSession(
org.openfeed.MarketSession.Builder builderForValue) {
if (previousSessionBuilder_ == null) {
previousSession_ = builderForValue.build();
} else {
previousSessionBuilder_.setMessage(builderForValue.build());
}
bitField1_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* / Previous session.
*
*
* .org.openfeed.MarketSession previousSession = 48;
*/
public Builder mergePreviousSession(org.openfeed.MarketSession value) {
if (previousSessionBuilder_ == null) {
if (((bitField1_ & 0x00000002) != 0) &&
previousSession_ != null &&
previousSession_ != org.openfeed.MarketSession.getDefaultInstance()) {
getPreviousSessionBuilder().mergeFrom(value);
} else {
previousSession_ = value;
}
} else {
previousSessionBuilder_.mergeFrom(value);
}
if (previousSession_ != null) {
bitField1_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* / Previous session.
*
*
* .org.openfeed.MarketSession previousSession = 48;
*/
public Builder clearPreviousSession() {
bitField1_ = (bitField1_ & ~0x00000002);
previousSession_ = null;
if (previousSessionBuilder_ != null) {
previousSessionBuilder_.dispose();
previousSessionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / Previous session.
*
*
* .org.openfeed.MarketSession previousSession = 48;
*/
public org.openfeed.MarketSession.Builder getPreviousSessionBuilder() {
bitField1_ |= 0x00000002;
onChanged();
return getPreviousSessionFieldBuilder().getBuilder();
}
/**
*
* / Previous session.
*
*
* .org.openfeed.MarketSession previousSession = 48;
*/
public org.openfeed.MarketSessionOrBuilder getPreviousSessionOrBuilder() {
if (previousSessionBuilder_ != null) {
return previousSessionBuilder_.getMessageOrBuilder();
} else {
return previousSession_ == null ?
org.openfeed.MarketSession.getDefaultInstance() : previousSession_;
}
}
/**
*
* / Previous session.
*
*
* .org.openfeed.MarketSession previousSession = 48;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.MarketSession, org.openfeed.MarketSession.Builder, org.openfeed.MarketSessionOrBuilder>
getPreviousSessionFieldBuilder() {
if (previousSessionBuilder_ == null) {
previousSessionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.MarketSession, org.openfeed.MarketSession.Builder, org.openfeed.MarketSessionOrBuilder>(
getPreviousSession(),
getParentForChildren(),
isClean());
previousSession_ = null;
}
return previousSessionBuilder_;
}
private org.openfeed.MarketSession tSession_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.MarketSession, org.openfeed.MarketSession.Builder, org.openfeed.MarketSessionOrBuilder> tSessionBuilder_;
/**
*
* / 'T' session.
*
*
* .org.openfeed.MarketSession tSession = 49;
* @return Whether the tSession field is set.
*/
public boolean hasTSession() {
return ((bitField1_ & 0x00000004) != 0);
}
/**
*
* / 'T' session.
*
*
* .org.openfeed.MarketSession tSession = 49;
* @return The tSession.
*/
public org.openfeed.MarketSession getTSession() {
if (tSessionBuilder_ == null) {
return tSession_ == null ? org.openfeed.MarketSession.getDefaultInstance() : tSession_;
} else {
return tSessionBuilder_.getMessage();
}
}
/**
*
* / 'T' session.
*
*
* .org.openfeed.MarketSession tSession = 49;
*/
public Builder setTSession(org.openfeed.MarketSession value) {
if (tSessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tSession_ = value;
} else {
tSessionBuilder_.setMessage(value);
}
bitField1_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* / 'T' session.
*
*
* .org.openfeed.MarketSession tSession = 49;
*/
public Builder setTSession(
org.openfeed.MarketSession.Builder builderForValue) {
if (tSessionBuilder_ == null) {
tSession_ = builderForValue.build();
} else {
tSessionBuilder_.setMessage(builderForValue.build());
}
bitField1_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* / 'T' session.
*
*
* .org.openfeed.MarketSession tSession = 49;
*/
public Builder mergeTSession(org.openfeed.MarketSession value) {
if (tSessionBuilder_ == null) {
if (((bitField1_ & 0x00000004) != 0) &&
tSession_ != null &&
tSession_ != org.openfeed.MarketSession.getDefaultInstance()) {
getTSessionBuilder().mergeFrom(value);
} else {
tSession_ = value;
}
} else {
tSessionBuilder_.mergeFrom(value);
}
if (tSession_ != null) {
bitField1_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* / 'T' session.
*
*
* .org.openfeed.MarketSession tSession = 49;
*/
public Builder clearTSession() {
bitField1_ = (bitField1_ & ~0x00000004);
tSession_ = null;
if (tSessionBuilder_ != null) {
tSessionBuilder_.dispose();
tSessionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / 'T' session.
*
*
* .org.openfeed.MarketSession tSession = 49;
*/
public org.openfeed.MarketSession.Builder getTSessionBuilder() {
bitField1_ |= 0x00000004;
onChanged();
return getTSessionFieldBuilder().getBuilder();
}
/**
*
* / 'T' session.
*
*
* .org.openfeed.MarketSession tSession = 49;
*/
public org.openfeed.MarketSessionOrBuilder getTSessionOrBuilder() {
if (tSessionBuilder_ != null) {
return tSessionBuilder_.getMessageOrBuilder();
} else {
return tSession_ == null ?
org.openfeed.MarketSession.getDefaultInstance() : tSession_;
}
}
/**
*
* / 'T' session.
*
*
* .org.openfeed.MarketSession tSession = 49;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.MarketSession, org.openfeed.MarketSession.Builder, org.openfeed.MarketSessionOrBuilder>
getTSessionFieldBuilder() {
if (tSessionBuilder_ == null) {
tSessionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.MarketSession, org.openfeed.MarketSession.Builder, org.openfeed.MarketSessionOrBuilder>(
getTSession(),
getParentForChildren(),
isClean());
tSession_ = null;
}
return tSessionBuilder_;
}
private org.openfeed.VolumeAtPrice volumeAtPrice_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.VolumeAtPrice, org.openfeed.VolumeAtPrice.Builder, org.openfeed.VolumeAtPriceOrBuilder> volumeAtPriceBuilder_;
/**
*
* / Volume at price. Used by the market state/ JERQ.
*
*
* .org.openfeed.VolumeAtPrice volumeAtPrice = 50;
* @return Whether the volumeAtPrice field is set.
*/
public boolean hasVolumeAtPrice() {
return ((bitField1_ & 0x00000008) != 0);
}
/**
*
* / Volume at price. Used by the market state/ JERQ.
*
*
* .org.openfeed.VolumeAtPrice volumeAtPrice = 50;
* @return The volumeAtPrice.
*/
public org.openfeed.VolumeAtPrice getVolumeAtPrice() {
if (volumeAtPriceBuilder_ == null) {
return volumeAtPrice_ == null ? org.openfeed.VolumeAtPrice.getDefaultInstance() : volumeAtPrice_;
} else {
return volumeAtPriceBuilder_.getMessage();
}
}
/**
*
* / Volume at price. Used by the market state/ JERQ.
*
*
* .org.openfeed.VolumeAtPrice volumeAtPrice = 50;
*/
public Builder setVolumeAtPrice(org.openfeed.VolumeAtPrice value) {
if (volumeAtPriceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
volumeAtPrice_ = value;
} else {
volumeAtPriceBuilder_.setMessage(value);
}
bitField1_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* / Volume at price. Used by the market state/ JERQ.
*
*
* .org.openfeed.VolumeAtPrice volumeAtPrice = 50;
*/
public Builder setVolumeAtPrice(
org.openfeed.VolumeAtPrice.Builder builderForValue) {
if (volumeAtPriceBuilder_ == null) {
volumeAtPrice_ = builderForValue.build();
} else {
volumeAtPriceBuilder_.setMessage(builderForValue.build());
}
bitField1_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* / Volume at price. Used by the market state/ JERQ.
*
*
* .org.openfeed.VolumeAtPrice volumeAtPrice = 50;
*/
public Builder mergeVolumeAtPrice(org.openfeed.VolumeAtPrice value) {
if (volumeAtPriceBuilder_ == null) {
if (((bitField1_ & 0x00000008) != 0) &&
volumeAtPrice_ != null &&
volumeAtPrice_ != org.openfeed.VolumeAtPrice.getDefaultInstance()) {
getVolumeAtPriceBuilder().mergeFrom(value);
} else {
volumeAtPrice_ = value;
}
} else {
volumeAtPriceBuilder_.mergeFrom(value);
}
if (volumeAtPrice_ != null) {
bitField1_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* / Volume at price. Used by the market state/ JERQ.
*
*
* .org.openfeed.VolumeAtPrice volumeAtPrice = 50;
*/
public Builder clearVolumeAtPrice() {
bitField1_ = (bitField1_ & ~0x00000008);
volumeAtPrice_ = null;
if (volumeAtPriceBuilder_ != null) {
volumeAtPriceBuilder_.dispose();
volumeAtPriceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / Volume at price. Used by the market state/ JERQ.
*
*
* .org.openfeed.VolumeAtPrice volumeAtPrice = 50;
*/
public org.openfeed.VolumeAtPrice.Builder getVolumeAtPriceBuilder() {
bitField1_ |= 0x00000008;
onChanged();
return getVolumeAtPriceFieldBuilder().getBuilder();
}
/**
*
* / Volume at price. Used by the market state/ JERQ.
*
*
* .org.openfeed.VolumeAtPrice volumeAtPrice = 50;
*/
public org.openfeed.VolumeAtPriceOrBuilder getVolumeAtPriceOrBuilder() {
if (volumeAtPriceBuilder_ != null) {
return volumeAtPriceBuilder_.getMessageOrBuilder();
} else {
return volumeAtPrice_ == null ?
org.openfeed.VolumeAtPrice.getDefaultInstance() : volumeAtPrice_;
}
}
/**
*
* / Volume at price. Used by the market state/ JERQ.
*
*
* .org.openfeed.VolumeAtPrice volumeAtPrice = 50;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.VolumeAtPrice, org.openfeed.VolumeAtPrice.Builder, org.openfeed.VolumeAtPriceOrBuilder>
getVolumeAtPriceFieldBuilder() {
if (volumeAtPriceBuilder_ == null) {
volumeAtPriceBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.VolumeAtPrice, org.openfeed.VolumeAtPrice.Builder, org.openfeed.VolumeAtPriceOrBuilder>(
getVolumeAtPrice(),
getParentForChildren(),
isClean());
volumeAtPrice_ = null;
}
return volumeAtPriceBuilder_;
}
private org.openfeed.HighRolling highRolling_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.HighRolling, org.openfeed.HighRolling.Builder, org.openfeed.HighRollingOrBuilder> highRollingBuilder_;
/**
* .org.openfeed.HighRolling highRolling = 51;
* @return Whether the highRolling field is set.
*/
public boolean hasHighRolling() {
return ((bitField1_ & 0x00000010) != 0);
}
/**
* .org.openfeed.HighRolling highRolling = 51;
* @return The highRolling.
*/
public org.openfeed.HighRolling getHighRolling() {
if (highRollingBuilder_ == null) {
return highRolling_ == null ? org.openfeed.HighRolling.getDefaultInstance() : highRolling_;
} else {
return highRollingBuilder_.getMessage();
}
}
/**
* .org.openfeed.HighRolling highRolling = 51;
*/
public Builder setHighRolling(org.openfeed.HighRolling value) {
if (highRollingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
highRolling_ = value;
} else {
highRollingBuilder_.setMessage(value);
}
bitField1_ |= 0x00000010;
onChanged();
return this;
}
/**
* .org.openfeed.HighRolling highRolling = 51;
*/
public Builder setHighRolling(
org.openfeed.HighRolling.Builder builderForValue) {
if (highRollingBuilder_ == null) {
highRolling_ = builderForValue.build();
} else {
highRollingBuilder_.setMessage(builderForValue.build());
}
bitField1_ |= 0x00000010;
onChanged();
return this;
}
/**
* .org.openfeed.HighRolling highRolling = 51;
*/
public Builder mergeHighRolling(org.openfeed.HighRolling value) {
if (highRollingBuilder_ == null) {
if (((bitField1_ & 0x00000010) != 0) &&
highRolling_ != null &&
highRolling_ != org.openfeed.HighRolling.getDefaultInstance()) {
getHighRollingBuilder().mergeFrom(value);
} else {
highRolling_ = value;
}
} else {
highRollingBuilder_.mergeFrom(value);
}
if (highRolling_ != null) {
bitField1_ |= 0x00000010;
onChanged();
}
return this;
}
/**
* .org.openfeed.HighRolling highRolling = 51;
*/
public Builder clearHighRolling() {
bitField1_ = (bitField1_ & ~0x00000010);
highRolling_ = null;
if (highRollingBuilder_ != null) {
highRollingBuilder_.dispose();
highRollingBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.openfeed.HighRolling highRolling = 51;
*/
public org.openfeed.HighRolling.Builder getHighRollingBuilder() {
bitField1_ |= 0x00000010;
onChanged();
return getHighRollingFieldBuilder().getBuilder();
}
/**
* .org.openfeed.HighRolling highRolling = 51;
*/
public org.openfeed.HighRollingOrBuilder getHighRollingOrBuilder() {
if (highRollingBuilder_ != null) {
return highRollingBuilder_.getMessageOrBuilder();
} else {
return highRolling_ == null ?
org.openfeed.HighRolling.getDefaultInstance() : highRolling_;
}
}
/**
* .org.openfeed.HighRolling highRolling = 51;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.HighRolling, org.openfeed.HighRolling.Builder, org.openfeed.HighRollingOrBuilder>
getHighRollingFieldBuilder() {
if (highRollingBuilder_ == null) {
highRollingBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.HighRolling, org.openfeed.HighRolling.Builder, org.openfeed.HighRollingOrBuilder>(
getHighRolling(),
getParentForChildren(),
isClean());
highRolling_ = null;
}
return highRollingBuilder_;
}
private org.openfeed.LowRolling lowRolling_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.LowRolling, org.openfeed.LowRolling.Builder, org.openfeed.LowRollingOrBuilder> lowRollingBuilder_;
/**
* .org.openfeed.LowRolling lowRolling = 52;
* @return Whether the lowRolling field is set.
*/
public boolean hasLowRolling() {
return ((bitField1_ & 0x00000020) != 0);
}
/**
* .org.openfeed.LowRolling lowRolling = 52;
* @return The lowRolling.
*/
public org.openfeed.LowRolling getLowRolling() {
if (lowRollingBuilder_ == null) {
return lowRolling_ == null ? org.openfeed.LowRolling.getDefaultInstance() : lowRolling_;
} else {
return lowRollingBuilder_.getMessage();
}
}
/**
* .org.openfeed.LowRolling lowRolling = 52;
*/
public Builder setLowRolling(org.openfeed.LowRolling value) {
if (lowRollingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lowRolling_ = value;
} else {
lowRollingBuilder_.setMessage(value);
}
bitField1_ |= 0x00000020;
onChanged();
return this;
}
/**
* .org.openfeed.LowRolling lowRolling = 52;
*/
public Builder setLowRolling(
org.openfeed.LowRolling.Builder builderForValue) {
if (lowRollingBuilder_ == null) {
lowRolling_ = builderForValue.build();
} else {
lowRollingBuilder_.setMessage(builderForValue.build());
}
bitField1_ |= 0x00000020;
onChanged();
return this;
}
/**
* .org.openfeed.LowRolling lowRolling = 52;
*/
public Builder mergeLowRolling(org.openfeed.LowRolling value) {
if (lowRollingBuilder_ == null) {
if (((bitField1_ & 0x00000020) != 0) &&
lowRolling_ != null &&
lowRolling_ != org.openfeed.LowRolling.getDefaultInstance()) {
getLowRollingBuilder().mergeFrom(value);
} else {
lowRolling_ = value;
}
} else {
lowRollingBuilder_.mergeFrom(value);
}
if (lowRolling_ != null) {
bitField1_ |= 0x00000020;
onChanged();
}
return this;
}
/**
* .org.openfeed.LowRolling lowRolling = 52;
*/
public Builder clearLowRolling() {
bitField1_ = (bitField1_ & ~0x00000020);
lowRolling_ = null;
if (lowRollingBuilder_ != null) {
lowRollingBuilder_.dispose();
lowRollingBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.openfeed.LowRolling lowRolling = 52;
*/
public org.openfeed.LowRolling.Builder getLowRollingBuilder() {
bitField1_ |= 0x00000020;
onChanged();
return getLowRollingFieldBuilder().getBuilder();
}
/**
* .org.openfeed.LowRolling lowRolling = 52;
*/
public org.openfeed.LowRollingOrBuilder getLowRollingOrBuilder() {
if (lowRollingBuilder_ != null) {
return lowRollingBuilder_.getMessageOrBuilder();
} else {
return lowRolling_ == null ?
org.openfeed.LowRolling.getDefaultInstance() : lowRolling_;
}
}
/**
* .org.openfeed.LowRolling lowRolling = 52;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.LowRolling, org.openfeed.LowRolling.Builder, org.openfeed.LowRollingOrBuilder>
getLowRollingFieldBuilder() {
if (lowRollingBuilder_ == null) {
lowRollingBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.LowRolling, org.openfeed.LowRolling.Builder, org.openfeed.LowRollingOrBuilder>(
getLowRolling(),
getParentForChildren(),
isClean());
lowRolling_ = null;
}
return lowRollingBuilder_;
}
private org.openfeed.MarketSession zSession_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.MarketSession, org.openfeed.MarketSession.Builder, org.openfeed.MarketSessionOrBuilder> zSessionBuilder_;
/**
*
* / 'Z' session. Includes all trades, even the ones that do not update Last.
*
*
* .org.openfeed.MarketSession zSession = 53;
* @return Whether the zSession field is set.
*/
public boolean hasZSession() {
return ((bitField1_ & 0x00000040) != 0);
}
/**
*
* / 'Z' session. Includes all trades, even the ones that do not update Last.
*
*
* .org.openfeed.MarketSession zSession = 53;
* @return The zSession.
*/
public org.openfeed.MarketSession getZSession() {
if (zSessionBuilder_ == null) {
return zSession_ == null ? org.openfeed.MarketSession.getDefaultInstance() : zSession_;
} else {
return zSessionBuilder_.getMessage();
}
}
/**
*
* / 'Z' session. Includes all trades, even the ones that do not update Last.
*
*
* .org.openfeed.MarketSession zSession = 53;
*/
public Builder setZSession(org.openfeed.MarketSession value) {
if (zSessionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
zSession_ = value;
} else {
zSessionBuilder_.setMessage(value);
}
bitField1_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* / 'Z' session. Includes all trades, even the ones that do not update Last.
*
*
* .org.openfeed.MarketSession zSession = 53;
*/
public Builder setZSession(
org.openfeed.MarketSession.Builder builderForValue) {
if (zSessionBuilder_ == null) {
zSession_ = builderForValue.build();
} else {
zSessionBuilder_.setMessage(builderForValue.build());
}
bitField1_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* / 'Z' session. Includes all trades, even the ones that do not update Last.
*
*
* .org.openfeed.MarketSession zSession = 53;
*/
public Builder mergeZSession(org.openfeed.MarketSession value) {
if (zSessionBuilder_ == null) {
if (((bitField1_ & 0x00000040) != 0) &&
zSession_ != null &&
zSession_ != org.openfeed.MarketSession.getDefaultInstance()) {
getZSessionBuilder().mergeFrom(value);
} else {
zSession_ = value;
}
} else {
zSessionBuilder_.mergeFrom(value);
}
if (zSession_ != null) {
bitField1_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
* / 'Z' session. Includes all trades, even the ones that do not update Last.
*
*
* .org.openfeed.MarketSession zSession = 53;
*/
public Builder clearZSession() {
bitField1_ = (bitField1_ & ~0x00000040);
zSession_ = null;
if (zSessionBuilder_ != null) {
zSessionBuilder_.dispose();
zSessionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* / 'Z' session. Includes all trades, even the ones that do not update Last.
*
*
* .org.openfeed.MarketSession zSession = 53;
*/
public org.openfeed.MarketSession.Builder getZSessionBuilder() {
bitField1_ |= 0x00000040;
onChanged();
return getZSessionFieldBuilder().getBuilder();
}
/**
*
* / 'Z' session. Includes all trades, even the ones that do not update Last.
*
*
* .org.openfeed.MarketSession zSession = 53;
*/
public org.openfeed.MarketSessionOrBuilder getZSessionOrBuilder() {
if (zSessionBuilder_ != null) {
return zSessionBuilder_.getMessageOrBuilder();
} else {
return zSession_ == null ?
org.openfeed.MarketSession.getDefaultInstance() : zSession_;
}
}
/**
*
* / 'Z' session. Includes all trades, even the ones that do not update Last.
*
*
* .org.openfeed.MarketSession zSession = 53;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.MarketSession, org.openfeed.MarketSession.Builder, org.openfeed.MarketSessionOrBuilder>
getZSessionFieldBuilder() {
if (zSessionBuilder_ == null) {
zSessionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.MarketSession, org.openfeed.MarketSession.Builder, org.openfeed.MarketSessionOrBuilder>(
getZSession(),
getParentForChildren(),
isClean());
zSession_ = null;
}
return zSessionBuilder_;
}
// @@protoc_insertion_point(builder_scope:org.openfeed.MarketSnapshot)
}
// @@protoc_insertion_point(class_scope:org.openfeed.MarketSnapshot)
private static final org.openfeed.MarketSnapshot DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openfeed.MarketSnapshot();
}
public static org.openfeed.MarketSnapshot getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MarketSnapshot 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.MarketSnapshot getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy