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

org.openfeed.MarketSession 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;

/**
 * 
 * / Session used in snapshot.
 * 
* * Protobuf type {@code org.openfeed.MarketSession} */ public final class MarketSession extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.openfeed.MarketSession) MarketSessionOrBuilder { 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= */ "", MarketSession.class.getName()); } // Use MarketSession.newBuilder() to construct. private MarketSession(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MarketSession() { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_MarketSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_MarketSession_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.MarketSession.class, org.openfeed.MarketSession.Builder.class); } private int bitField0_; 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 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_ & 0x00000001) != 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_ & 0x00000002) != 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_ & 0x00000004) != 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 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_ & 0x00000008) != 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 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_ & 0x00000010) != 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_ & 0x00000020) != 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 PREVSETTLEMENT_FIELD_NUMBER = 44; private org.openfeed.Settlement prevSettlement_; /** *
   * / Most recent settlement price
   * 
* * .org.openfeed.Settlement prevSettlement = 44; * @return Whether the prevSettlement field is set. */ @java.lang.Override public boolean hasPrevSettlement() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * / Most recent settlement price
   * 
* * .org.openfeed.Settlement prevSettlement = 44; * @return The prevSettlement. */ @java.lang.Override public org.openfeed.Settlement getPrevSettlement() { return prevSettlement_ == null ? org.openfeed.Settlement.getDefaultInstance() : prevSettlement_; } /** *
   * / Most recent settlement price
   * 
* * .org.openfeed.Settlement prevSettlement = 44; */ @java.lang.Override public org.openfeed.SettlementOrBuilder getPrevSettlementOrBuilder() { return prevSettlement_ == null ? org.openfeed.Settlement.getDefaultInstance() : prevSettlement_; } 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_ & 0x00000080) != 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 NUMBEROFTRADES_FIELD_NUMBER = 41; private org.openfeed.NumberOfTrades numberOfTrades_; /** *
   * / Number of trades
   * 
* * .org.openfeed.NumberOfTrades numberOfTrades = 41; * @return Whether the numberOfTrades field is set. */ @java.lang.Override public boolean hasNumberOfTrades() { return ((bitField0_ & 0x00000100) != 0); } /** *
   * / Number of trades
   * 
* * .org.openfeed.NumberOfTrades numberOfTrades = 41; * @return The numberOfTrades. */ @java.lang.Override public org.openfeed.NumberOfTrades getNumberOfTrades() { return numberOfTrades_ == null ? org.openfeed.NumberOfTrades.getDefaultInstance() : numberOfTrades_; } /** *
   * / Number of trades
   * 
* * .org.openfeed.NumberOfTrades numberOfTrades = 41; */ @java.lang.Override public org.openfeed.NumberOfTradesOrBuilder getNumberOfTradesOrBuilder() { return numberOfTrades_ == null ? org.openfeed.NumberOfTrades.getDefaultInstance() : numberOfTrades_; } public static final int MONETARYVALUE_FIELD_NUMBER = 42; private org.openfeed.MonetaryValue monetaryValue_; /** *
   * / Monetary value
   * 
* * .org.openfeed.MonetaryValue monetaryValue = 42; * @return Whether the monetaryValue field is set. */ @java.lang.Override public boolean hasMonetaryValue() { return ((bitField0_ & 0x00000200) != 0); } /** *
   * / Monetary value
   * 
* * .org.openfeed.MonetaryValue monetaryValue = 42; * @return The monetaryValue. */ @java.lang.Override public org.openfeed.MonetaryValue getMonetaryValue() { return monetaryValue_ == null ? org.openfeed.MonetaryValue.getDefaultInstance() : monetaryValue_; } /** *
   * / Monetary value
   * 
* * .org.openfeed.MonetaryValue monetaryValue = 42; */ @java.lang.Override public org.openfeed.MonetaryValueOrBuilder getMonetaryValueOrBuilder() { return monetaryValue_ == null ? org.openfeed.MonetaryValue.getDefaultInstance() : monetaryValue_; } public static final int TRANSACTIONTIME_FIELD_NUMBER = 43; private long transactionTime_ = 0L; /** *
   * UTC Timestamp, nano seconds since Unix epoch
   * 
* * sint64 transactionTime = 43; * @return The transactionTime. */ @java.lang.Override public long getTransactionTime() { return transactionTime_; } 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 (tradeDate_ != 0) { output.writeSInt32(4, tradeDate_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(30, getOpen()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(31, getHigh()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(32, getLow()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(35, getLast()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(38, getVolume()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(39, getSettlement()); } if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(40, getOpenInterest()); } if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(41, getNumberOfTrades()); } if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(42, getMonetaryValue()); } if (transactionTime_ != 0L) { output.writeSInt64(43, transactionTime_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(44, getPrevSettlement()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tradeDate_ != 0) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(4, tradeDate_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, getOpen()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, getHigh()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, getLow()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(35, getLast()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(38, getVolume()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(39, getSettlement()); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(40, getOpenInterest()); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(41, getNumberOfTrades()); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(42, getMonetaryValue()); } if (transactionTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(43, transactionTime_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(44, getPrevSettlement()); } 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.MarketSession)) { return super.equals(obj); } org.openfeed.MarketSession other = (org.openfeed.MarketSession) obj; if (getTradeDate() != other.getTradeDate()) 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 (hasLast() != other.hasLast()) return false; if (hasLast()) { if (!getLast() .equals(other.getLast())) 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 (hasPrevSettlement() != other.hasPrevSettlement()) return false; if (hasPrevSettlement()) { if (!getPrevSettlement() .equals(other.getPrevSettlement())) return false; } if (hasOpenInterest() != other.hasOpenInterest()) return false; if (hasOpenInterest()) { if (!getOpenInterest() .equals(other.getOpenInterest())) 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 (getTransactionTime() != other.getTransactionTime()) 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) + TRADEDATE_FIELD_NUMBER; hash = (53 * hash) + getTradeDate(); 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 (hasLast()) { hash = (37 * hash) + LAST_FIELD_NUMBER; hash = (53 * hash) + getLast().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 (hasPrevSettlement()) { hash = (37 * hash) + PREVSETTLEMENT_FIELD_NUMBER; hash = (53 * hash) + getPrevSettlement().hashCode(); } if (hasOpenInterest()) { hash = (37 * hash) + OPENINTEREST_FIELD_NUMBER; hash = (53 * hash) + getOpenInterest().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(); } hash = (37 * hash) + TRANSACTIONTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTransactionTime()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.openfeed.MarketSession parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.MarketSession parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.MarketSession parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.MarketSession 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.MarketSession parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.MarketSession parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.MarketSession parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.MarketSession 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.MarketSession parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.openfeed.MarketSession 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.MarketSession parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.MarketSession 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.MarketSession 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; } /** *
   * / Session used in snapshot.
   * 
* * Protobuf type {@code org.openfeed.MarketSession} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.openfeed.MarketSession) org.openfeed.MarketSessionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_MarketSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_MarketSession_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.MarketSession.class, org.openfeed.MarketSession.Builder.class); } // Construct using org.openfeed.MarketSession.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getOpenFieldBuilder(); getHighFieldBuilder(); getLowFieldBuilder(); getLastFieldBuilder(); getVolumeFieldBuilder(); getSettlementFieldBuilder(); getPrevSettlementFieldBuilder(); getOpenInterestFieldBuilder(); getNumberOfTradesFieldBuilder(); getMonetaryValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tradeDate_ = 0; 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; } last_ = null; if (lastBuilder_ != null) { lastBuilder_.dispose(); lastBuilder_ = null; } volume_ = null; if (volumeBuilder_ != null) { volumeBuilder_.dispose(); volumeBuilder_ = null; } settlement_ = null; if (settlementBuilder_ != null) { settlementBuilder_.dispose(); settlementBuilder_ = null; } prevSettlement_ = null; if (prevSettlementBuilder_ != null) { prevSettlementBuilder_.dispose(); prevSettlementBuilder_ = null; } openInterest_ = null; if (openInterestBuilder_ != null) { openInterestBuilder_.dispose(); openInterestBuilder_ = null; } numberOfTrades_ = null; if (numberOfTradesBuilder_ != null) { numberOfTradesBuilder_.dispose(); numberOfTradesBuilder_ = null; } monetaryValue_ = null; if (monetaryValueBuilder_ != null) { monetaryValueBuilder_.dispose(); monetaryValueBuilder_ = null; } transactionTime_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openfeed.Openfeed.internal_static_org_openfeed_MarketSession_descriptor; } @java.lang.Override public org.openfeed.MarketSession getDefaultInstanceForType() { return org.openfeed.MarketSession.getDefaultInstance(); } @java.lang.Override public org.openfeed.MarketSession build() { org.openfeed.MarketSession result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openfeed.MarketSession buildPartial() { org.openfeed.MarketSession result = new org.openfeed.MarketSession(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.openfeed.MarketSession result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.tradeDate_ = tradeDate_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.open_ = openBuilder_ == null ? open_ : openBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.high_ = highBuilder_ == null ? high_ : highBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.low_ = lowBuilder_ == null ? low_ : lowBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.last_ = lastBuilder_ == null ? last_ : lastBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.volume_ = volumeBuilder_ == null ? volume_ : volumeBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.settlement_ = settlementBuilder_ == null ? settlement_ : settlementBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { result.prevSettlement_ = prevSettlementBuilder_ == null ? prevSettlement_ : prevSettlementBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000100) != 0)) { result.openInterest_ = openInterestBuilder_ == null ? openInterest_ : openInterestBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000200) != 0)) { result.numberOfTrades_ = numberOfTradesBuilder_ == null ? numberOfTrades_ : numberOfTradesBuilder_.build(); to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000400) != 0)) { result.monetaryValue_ = monetaryValueBuilder_ == null ? monetaryValue_ : monetaryValueBuilder_.build(); to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000800) != 0)) { result.transactionTime_ = transactionTime_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openfeed.MarketSession) { return mergeFrom((org.openfeed.MarketSession)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openfeed.MarketSession other) { if (other == org.openfeed.MarketSession.getDefaultInstance()) return this; if (other.getTradeDate() != 0) { setTradeDate(other.getTradeDate()); } if (other.hasOpen()) { mergeOpen(other.getOpen()); } if (other.hasHigh()) { mergeHigh(other.getHigh()); } if (other.hasLow()) { mergeLow(other.getLow()); } if (other.hasLast()) { mergeLast(other.getLast()); } if (other.hasVolume()) { mergeVolume(other.getVolume()); } if (other.hasSettlement()) { mergeSettlement(other.getSettlement()); } if (other.hasPrevSettlement()) { mergePrevSettlement(other.getPrevSettlement()); } if (other.hasOpenInterest()) { mergeOpenInterest(other.getOpenInterest()); } if (other.hasNumberOfTrades()) { mergeNumberOfTrades(other.getNumberOfTrades()); } if (other.hasMonetaryValue()) { mergeMonetaryValue(other.getMonetaryValue()); } if (other.getTransactionTime() != 0L) { setTransactionTime(other.getTransactionTime()); } 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 32: { tradeDate_ = input.readSInt32(); bitField0_ |= 0x00000001; break; } // case 32 case 242: { input.readMessage( getOpenFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 242 case 250: { input.readMessage( getHighFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 250 case 258: { input.readMessage( getLowFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 258 case 282: { input.readMessage( getLastFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 282 case 306: { input.readMessage( getVolumeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 306 case 314: { input.readMessage( getSettlementFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 314 case 322: { input.readMessage( getOpenInterestFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 322 case 330: { input.readMessage( getNumberOfTradesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 330 case 338: { input.readMessage( getMonetaryValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 338 case 344: { transactionTime_ = input.readSInt64(); bitField0_ |= 0x00000800; break; } // case 344 case 354: { input.readMessage( getPrevSettlementFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 354 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 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_ |= 0x00000001; onChanged(); return this; } /** *
     * / Date only, format 2012-07-04 -> 20120704
     * 
* * sint32 tradeDate = 4; * @return This builder for chaining. */ public Builder clearTradeDate() { bitField0_ = (bitField0_ & ~0x00000001); tradeDate_ = 0; onChanged(); return this; } 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_ & 0x00000002) != 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_ |= 0x00000002; 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_ |= 0x00000002; onChanged(); return this; } /** *
     * / Most recent opening price
     * 
* * .org.openfeed.Open open = 30; */ public Builder mergeOpen(org.openfeed.Open value) { if (openBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && open_ != null && open_ != org.openfeed.Open.getDefaultInstance()) { getOpenBuilder().mergeFrom(value); } else { open_ = value; } } else { openBuilder_.mergeFrom(value); } if (open_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * / Most recent opening price
     * 
* * .org.openfeed.Open open = 30; */ public Builder clearOpen() { bitField0_ = (bitField0_ & ~0x00000002); 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_ |= 0x00000002; 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_ & 0x00000004) != 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_ |= 0x00000004; 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_ |= 0x00000004; 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_ & 0x00000004) != 0) && high_ != null && high_ != org.openfeed.High.getDefaultInstance()) { getHighBuilder().mergeFrom(value); } else { high_ = value; } } else { highBuilder_.mergeFrom(value); } if (high_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * / High price for the trading session
     * 
* * .org.openfeed.High high = 31; */ public Builder clearHigh() { bitField0_ = (bitField0_ & ~0x00000004); 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_ |= 0x00000004; 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_ & 0x00000008) != 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_ |= 0x00000008; 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_ |= 0x00000008; 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_ & 0x00000008) != 0) && low_ != null && low_ != org.openfeed.Low.getDefaultInstance()) { getLowBuilder().mergeFrom(value); } else { low_ = value; } } else { lowBuilder_.mergeFrom(value); } if (low_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * / Low price for the trading session
     * 
* * .org.openfeed.Low low = 32; */ public Builder clearLow() { bitField0_ = (bitField0_ & ~0x00000008); 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_ |= 0x00000008; 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.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_ & 0x00000010) != 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_ |= 0x00000010; 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_ |= 0x00000010; 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_ & 0x00000010) != 0) && last_ != null && last_ != org.openfeed.Last.getDefaultInstance()) { getLastBuilder().mergeFrom(value); } else { last_ = value; } } else { lastBuilder_.mergeFrom(value); } if (last_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
     * / Most recent traded price and quantity
     * 
* * .org.openfeed.Last last = 35; */ public Builder clearLast() { bitField0_ = (bitField0_ & ~0x00000010); 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_ |= 0x00000010; 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.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_ & 0x00000020) != 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_ |= 0x00000020; 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_ |= 0x00000020; onChanged(); return this; } /** *
     * / Total traded volume
     * 
* * .org.openfeed.Volume volume = 38; */ public Builder mergeVolume(org.openfeed.Volume value) { if (volumeBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && volume_ != null && volume_ != org.openfeed.Volume.getDefaultInstance()) { getVolumeBuilder().mergeFrom(value); } else { volume_ = value; } } else { volumeBuilder_.mergeFrom(value); } if (volume_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     * / Total traded volume
     * 
* * .org.openfeed.Volume volume = 38; */ public Builder clearVolume() { bitField0_ = (bitField0_ & ~0x00000020); 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_ |= 0x00000020; 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_ & 0x00000040) != 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_ |= 0x00000040; 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_ |= 0x00000040; onChanged(); return this; } /** *
     * / Most recent settlement price
     * 
* * .org.openfeed.Settlement settlement = 39; */ public Builder mergeSettlement(org.openfeed.Settlement value) { if (settlementBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && settlement_ != null && settlement_ != org.openfeed.Settlement.getDefaultInstance()) { getSettlementBuilder().mergeFrom(value); } else { settlement_ = value; } } else { settlementBuilder_.mergeFrom(value); } if (settlement_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
     * / Most recent settlement price
     * 
* * .org.openfeed.Settlement settlement = 39; */ public Builder clearSettlement() { bitField0_ = (bitField0_ & ~0x00000040); 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_ |= 0x00000040; 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.Settlement prevSettlement_; private com.google.protobuf.SingleFieldBuilder< org.openfeed.Settlement, org.openfeed.Settlement.Builder, org.openfeed.SettlementOrBuilder> prevSettlementBuilder_; /** *
     * / Most recent settlement price
     * 
* * .org.openfeed.Settlement prevSettlement = 44; * @return Whether the prevSettlement field is set. */ public boolean hasPrevSettlement() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * / Most recent settlement price
     * 
* * .org.openfeed.Settlement prevSettlement = 44; * @return The prevSettlement. */ public org.openfeed.Settlement getPrevSettlement() { if (prevSettlementBuilder_ == null) { return prevSettlement_ == null ? org.openfeed.Settlement.getDefaultInstance() : prevSettlement_; } else { return prevSettlementBuilder_.getMessage(); } } /** *
     * / Most recent settlement price
     * 
* * .org.openfeed.Settlement prevSettlement = 44; */ public Builder setPrevSettlement(org.openfeed.Settlement value) { if (prevSettlementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } prevSettlement_ = value; } else { prevSettlementBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * / Most recent settlement price
     * 
* * .org.openfeed.Settlement prevSettlement = 44; */ public Builder setPrevSettlement( org.openfeed.Settlement.Builder builderForValue) { if (prevSettlementBuilder_ == null) { prevSettlement_ = builderForValue.build(); } else { prevSettlementBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * / Most recent settlement price
     * 
* * .org.openfeed.Settlement prevSettlement = 44; */ public Builder mergePrevSettlement(org.openfeed.Settlement value) { if (prevSettlementBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && prevSettlement_ != null && prevSettlement_ != org.openfeed.Settlement.getDefaultInstance()) { getPrevSettlementBuilder().mergeFrom(value); } else { prevSettlement_ = value; } } else { prevSettlementBuilder_.mergeFrom(value); } if (prevSettlement_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** *
     * / Most recent settlement price
     * 
* * .org.openfeed.Settlement prevSettlement = 44; */ public Builder clearPrevSettlement() { bitField0_ = (bitField0_ & ~0x00000080); prevSettlement_ = null; if (prevSettlementBuilder_ != null) { prevSettlementBuilder_.dispose(); prevSettlementBuilder_ = null; } onChanged(); return this; } /** *
     * / Most recent settlement price
     * 
* * .org.openfeed.Settlement prevSettlement = 44; */ public org.openfeed.Settlement.Builder getPrevSettlementBuilder() { bitField0_ |= 0x00000080; onChanged(); return getPrevSettlementFieldBuilder().getBuilder(); } /** *
     * / Most recent settlement price
     * 
* * .org.openfeed.Settlement prevSettlement = 44; */ public org.openfeed.SettlementOrBuilder getPrevSettlementOrBuilder() { if (prevSettlementBuilder_ != null) { return prevSettlementBuilder_.getMessageOrBuilder(); } else { return prevSettlement_ == null ? org.openfeed.Settlement.getDefaultInstance() : prevSettlement_; } } /** *
     * / Most recent settlement price
     * 
* * .org.openfeed.Settlement prevSettlement = 44; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.Settlement, org.openfeed.Settlement.Builder, org.openfeed.SettlementOrBuilder> getPrevSettlementFieldBuilder() { if (prevSettlementBuilder_ == null) { prevSettlementBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.Settlement, org.openfeed.Settlement.Builder, org.openfeed.SettlementOrBuilder>( getPrevSettlement(), getParentForChildren(), isClean()); prevSettlement_ = null; } return prevSettlementBuilder_; } 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_ & 0x00000100) != 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_ |= 0x00000100; 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_ |= 0x00000100; onChanged(); return this; } /** *
     * / Most recent open interest
     * 
* * .org.openfeed.OpenInterest openInterest = 40; */ public Builder mergeOpenInterest(org.openfeed.OpenInterest value) { if (openInterestBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && openInterest_ != null && openInterest_ != org.openfeed.OpenInterest.getDefaultInstance()) { getOpenInterestBuilder().mergeFrom(value); } else { openInterest_ = value; } } else { openInterestBuilder_.mergeFrom(value); } if (openInterest_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** *
     * / Most recent open interest
     * 
* * .org.openfeed.OpenInterest openInterest = 40; */ public Builder clearOpenInterest() { bitField0_ = (bitField0_ & ~0x00000100); 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_ |= 0x00000100; 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.NumberOfTrades numberOfTrades_; private com.google.protobuf.SingleFieldBuilder< org.openfeed.NumberOfTrades, org.openfeed.NumberOfTrades.Builder, org.openfeed.NumberOfTradesOrBuilder> numberOfTradesBuilder_; /** *
     * / Number of trades
     * 
* * .org.openfeed.NumberOfTrades numberOfTrades = 41; * @return Whether the numberOfTrades field is set. */ public boolean hasNumberOfTrades() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * / Number of trades
     * 
* * .org.openfeed.NumberOfTrades numberOfTrades = 41; * @return The numberOfTrades. */ public org.openfeed.NumberOfTrades getNumberOfTrades() { if (numberOfTradesBuilder_ == null) { return numberOfTrades_ == null ? org.openfeed.NumberOfTrades.getDefaultInstance() : numberOfTrades_; } else { return numberOfTradesBuilder_.getMessage(); } } /** *
     * / Number of trades
     * 
* * .org.openfeed.NumberOfTrades numberOfTrades = 41; */ public Builder setNumberOfTrades(org.openfeed.NumberOfTrades value) { if (numberOfTradesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } numberOfTrades_ = value; } else { numberOfTradesBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * / Number of trades
     * 
* * .org.openfeed.NumberOfTrades numberOfTrades = 41; */ public Builder setNumberOfTrades( org.openfeed.NumberOfTrades.Builder builderForValue) { if (numberOfTradesBuilder_ == null) { numberOfTrades_ = builderForValue.build(); } else { numberOfTradesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * / Number of trades
     * 
* * .org.openfeed.NumberOfTrades numberOfTrades = 41; */ public Builder mergeNumberOfTrades(org.openfeed.NumberOfTrades value) { if (numberOfTradesBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && numberOfTrades_ != null && numberOfTrades_ != org.openfeed.NumberOfTrades.getDefaultInstance()) { getNumberOfTradesBuilder().mergeFrom(value); } else { numberOfTrades_ = value; } } else { numberOfTradesBuilder_.mergeFrom(value); } if (numberOfTrades_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** *
     * / Number of trades
     * 
* * .org.openfeed.NumberOfTrades numberOfTrades = 41; */ public Builder clearNumberOfTrades() { bitField0_ = (bitField0_ & ~0x00000200); numberOfTrades_ = null; if (numberOfTradesBuilder_ != null) { numberOfTradesBuilder_.dispose(); numberOfTradesBuilder_ = null; } onChanged(); return this; } /** *
     * / Number of trades
     * 
* * .org.openfeed.NumberOfTrades numberOfTrades = 41; */ public org.openfeed.NumberOfTrades.Builder getNumberOfTradesBuilder() { bitField0_ |= 0x00000200; onChanged(); return getNumberOfTradesFieldBuilder().getBuilder(); } /** *
     * / Number of trades
     * 
* * .org.openfeed.NumberOfTrades numberOfTrades = 41; */ public org.openfeed.NumberOfTradesOrBuilder getNumberOfTradesOrBuilder() { if (numberOfTradesBuilder_ != null) { return numberOfTradesBuilder_.getMessageOrBuilder(); } else { return numberOfTrades_ == null ? org.openfeed.NumberOfTrades.getDefaultInstance() : numberOfTrades_; } } /** *
     * / Number of trades
     * 
* * .org.openfeed.NumberOfTrades numberOfTrades = 41; */ 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_; /** *
     * / Monetary value
     * 
* * .org.openfeed.MonetaryValue monetaryValue = 42; * @return Whether the monetaryValue field is set. */ public boolean hasMonetaryValue() { return ((bitField0_ & 0x00000400) != 0); } /** *
     * / Monetary value
     * 
* * .org.openfeed.MonetaryValue monetaryValue = 42; * @return The monetaryValue. */ public org.openfeed.MonetaryValue getMonetaryValue() { if (monetaryValueBuilder_ == null) { return monetaryValue_ == null ? org.openfeed.MonetaryValue.getDefaultInstance() : monetaryValue_; } else { return monetaryValueBuilder_.getMessage(); } } /** *
     * / Monetary value
     * 
* * .org.openfeed.MonetaryValue monetaryValue = 42; */ public Builder setMonetaryValue(org.openfeed.MonetaryValue value) { if (monetaryValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } monetaryValue_ = value; } else { monetaryValueBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * / Monetary value
     * 
* * .org.openfeed.MonetaryValue monetaryValue = 42; */ public Builder setMonetaryValue( org.openfeed.MonetaryValue.Builder builderForValue) { if (monetaryValueBuilder_ == null) { monetaryValue_ = builderForValue.build(); } else { monetaryValueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * / Monetary value
     * 
* * .org.openfeed.MonetaryValue monetaryValue = 42; */ public Builder mergeMonetaryValue(org.openfeed.MonetaryValue value) { if (monetaryValueBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && monetaryValue_ != null && monetaryValue_ != org.openfeed.MonetaryValue.getDefaultInstance()) { getMonetaryValueBuilder().mergeFrom(value); } else { monetaryValue_ = value; } } else { monetaryValueBuilder_.mergeFrom(value); } if (monetaryValue_ != null) { bitField0_ |= 0x00000400; onChanged(); } return this; } /** *
     * / Monetary value
     * 
* * .org.openfeed.MonetaryValue monetaryValue = 42; */ public Builder clearMonetaryValue() { bitField0_ = (bitField0_ & ~0x00000400); monetaryValue_ = null; if (monetaryValueBuilder_ != null) { monetaryValueBuilder_.dispose(); monetaryValueBuilder_ = null; } onChanged(); return this; } /** *
     * / Monetary value
     * 
* * .org.openfeed.MonetaryValue monetaryValue = 42; */ public org.openfeed.MonetaryValue.Builder getMonetaryValueBuilder() { bitField0_ |= 0x00000400; onChanged(); return getMonetaryValueFieldBuilder().getBuilder(); } /** *
     * / Monetary value
     * 
* * .org.openfeed.MonetaryValue monetaryValue = 42; */ public org.openfeed.MonetaryValueOrBuilder getMonetaryValueOrBuilder() { if (monetaryValueBuilder_ != null) { return monetaryValueBuilder_.getMessageOrBuilder(); } else { return monetaryValue_ == null ? org.openfeed.MonetaryValue.getDefaultInstance() : monetaryValue_; } } /** *
     * / Monetary value
     * 
* * .org.openfeed.MonetaryValue monetaryValue = 42; */ 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 long transactionTime_ ; /** *
     * UTC Timestamp, nano seconds since Unix epoch
     * 
* * sint64 transactionTime = 43; * @return The transactionTime. */ @java.lang.Override public long getTransactionTime() { return transactionTime_; } /** *
     * UTC Timestamp, nano seconds since Unix epoch
     * 
* * sint64 transactionTime = 43; * @param value The transactionTime to set. * @return This builder for chaining. */ public Builder setTransactionTime(long value) { transactionTime_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     * UTC Timestamp, nano seconds since Unix epoch
     * 
* * sint64 transactionTime = 43; * @return This builder for chaining. */ public Builder clearTransactionTime() { bitField0_ = (bitField0_ & ~0x00000800); transactionTime_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:org.openfeed.MarketSession) } // @@protoc_insertion_point(class_scope:org.openfeed.MarketSession) private static final org.openfeed.MarketSession DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openfeed.MarketSession(); } public static org.openfeed.MarketSession getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MarketSession 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.MarketSession getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy