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

org.openfeed.OpenfeedMessage Maven / Gradle / Ivy

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

package org.openfeed;

/**
 * 
 * / A wrapper for Openfeed data.  Will contain exactly one of the supported
 * message types
 * 
* * Protobuf type {@code org.openfeed.OpenfeedMessage} */ public final class OpenfeedMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.openfeed.OpenfeedMessage) OpenfeedMessageOrBuilder { 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= */ "", OpenfeedMessage.class.getName()); } // Use OpenfeedMessage.newBuilder() to construct. private OpenfeedMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private OpenfeedMessage() { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_OpenfeedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_OpenfeedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.OpenfeedMessage.class, org.openfeed.OpenfeedMessage.Builder.class); } private int bitField0_; private int dataCase_ = 0; @SuppressWarnings("serial") private java.lang.Object data_; public enum DataCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CHANNELRESET(10), HEARTBEAT(11), ADMINMESSAGE(12), INSTRUMENTDEFINITION(13), INSTRUMENTGROUPSTATUS(14), MARKETSNAPSHOT(15), MARKETUPDATE(16), MARKETSTATUS(17), EODCOMMODITYSUMMARY(18), INSTRUMENTACTION(19), DATA_NOT_SET(0); private final int value; private DataCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DataCase valueOf(int value) { return forNumber(value); } public static DataCase forNumber(int value) { switch (value) { case 10: return CHANNELRESET; case 11: return HEARTBEAT; case 12: return ADMINMESSAGE; case 13: return INSTRUMENTDEFINITION; case 14: return INSTRUMENTGROUPSTATUS; case 15: return MARKETSNAPSHOT; case 16: return MARKETUPDATE; case 17: return MARKETSTATUS; case 18: return EODCOMMODITYSUMMARY; case 19: return INSTRUMENTACTION; case 0: return DATA_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public DataCase getDataCase() { return DataCase.forNumber( dataCase_); } public static final int SENDINGTIME_FIELD_NUMBER = 1; private long sendingTime_ = 0L; /** *
   * / Nano second unix epoch at time of message transmission (UTC)
   * 
* * sint64 sendingTime = 1; * @return The sendingTime. */ @java.lang.Override public long getSendingTime() { return sendingTime_; } public static final int TOTALCOUNT_FIELD_NUMBER = 2; private int totalCount_ = 0; /** *
   * / The total number of markets available on this channel
   * at the time the message was sent.  For UDP snapshot and definition feeds.
   * 
* * sint32 totalCount = 2; * @return The totalCount. */ @java.lang.Override public int getTotalCount() { return totalCount_; } public static final int SYNCSEQUENCE_FIELD_NUMBER = 3; private long syncSequence_ = 0L; /** *
   * / The most recent packet sequence number sent on the incremental feed
   * at the time this message was sent.  For UDP snapshot and definition feeds.
   * 
* * int64 syncSequence = 3; * @return The syncSequence. */ @java.lang.Override public long getSyncSequence() { return syncSequence_; } public static final int CONTEXT_FIELD_NUMBER = 4; private org.openfeed.Context context_; /** *
   * Feed specific context data
   * 
* * .org.openfeed.Context context = 4; * @return Whether the context field is set. */ @java.lang.Override public boolean hasContext() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Feed specific context data
   * 
* * .org.openfeed.Context context = 4; * @return The context. */ @java.lang.Override public org.openfeed.Context getContext() { return context_ == null ? org.openfeed.Context.getDefaultInstance() : context_; } /** *
   * Feed specific context data
   * 
* * .org.openfeed.Context context = 4; */ @java.lang.Override public org.openfeed.ContextOrBuilder getContextOrBuilder() { return context_ == null ? org.openfeed.Context.getDefaultInstance() : context_; } public static final int CHANNELRESET_FIELD_NUMBER = 10; /** * .org.openfeed.ChannelReset channelReset = 10; * @return Whether the channelReset field is set. */ @java.lang.Override public boolean hasChannelReset() { return dataCase_ == 10; } /** * .org.openfeed.ChannelReset channelReset = 10; * @return The channelReset. */ @java.lang.Override public org.openfeed.ChannelReset getChannelReset() { if (dataCase_ == 10) { return (org.openfeed.ChannelReset) data_; } return org.openfeed.ChannelReset.getDefaultInstance(); } /** * .org.openfeed.ChannelReset channelReset = 10; */ @java.lang.Override public org.openfeed.ChannelResetOrBuilder getChannelResetOrBuilder() { if (dataCase_ == 10) { return (org.openfeed.ChannelReset) data_; } return org.openfeed.ChannelReset.getDefaultInstance(); } public static final int HEARTBEAT_FIELD_NUMBER = 11; /** * .org.openfeed.HeartBeat heartBeat = 11; * @return Whether the heartBeat field is set. */ @java.lang.Override public boolean hasHeartBeat() { return dataCase_ == 11; } /** * .org.openfeed.HeartBeat heartBeat = 11; * @return The heartBeat. */ @java.lang.Override public org.openfeed.HeartBeat getHeartBeat() { if (dataCase_ == 11) { return (org.openfeed.HeartBeat) data_; } return org.openfeed.HeartBeat.getDefaultInstance(); } /** * .org.openfeed.HeartBeat heartBeat = 11; */ @java.lang.Override public org.openfeed.HeartBeatOrBuilder getHeartBeatOrBuilder() { if (dataCase_ == 11) { return (org.openfeed.HeartBeat) data_; } return org.openfeed.HeartBeat.getDefaultInstance(); } public static final int ADMINMESSAGE_FIELD_NUMBER = 12; /** * .org.openfeed.AdminMessage adminMessage = 12; * @return Whether the adminMessage field is set. */ @java.lang.Override public boolean hasAdminMessage() { return dataCase_ == 12; } /** * .org.openfeed.AdminMessage adminMessage = 12; * @return The adminMessage. */ @java.lang.Override public org.openfeed.AdminMessage getAdminMessage() { if (dataCase_ == 12) { return (org.openfeed.AdminMessage) data_; } return org.openfeed.AdminMessage.getDefaultInstance(); } /** * .org.openfeed.AdminMessage adminMessage = 12; */ @java.lang.Override public org.openfeed.AdminMessageOrBuilder getAdminMessageOrBuilder() { if (dataCase_ == 12) { return (org.openfeed.AdminMessage) data_; } return org.openfeed.AdminMessage.getDefaultInstance(); } public static final int INSTRUMENTDEFINITION_FIELD_NUMBER = 13; /** * .org.openfeed.InstrumentDefinition instrumentDefinition = 13; * @return Whether the instrumentDefinition field is set. */ @java.lang.Override public boolean hasInstrumentDefinition() { return dataCase_ == 13; } /** * .org.openfeed.InstrumentDefinition instrumentDefinition = 13; * @return The instrumentDefinition. */ @java.lang.Override public org.openfeed.InstrumentDefinition getInstrumentDefinition() { if (dataCase_ == 13) { return (org.openfeed.InstrumentDefinition) data_; } return org.openfeed.InstrumentDefinition.getDefaultInstance(); } /** * .org.openfeed.InstrumentDefinition instrumentDefinition = 13; */ @java.lang.Override public org.openfeed.InstrumentDefinitionOrBuilder getInstrumentDefinitionOrBuilder() { if (dataCase_ == 13) { return (org.openfeed.InstrumentDefinition) data_; } return org.openfeed.InstrumentDefinition.getDefaultInstance(); } public static final int INSTRUMENTGROUPSTATUS_FIELD_NUMBER = 14; /** * .org.openfeed.InstrumentGroupStatus instrumentGroupStatus = 14; * @return Whether the instrumentGroupStatus field is set. */ @java.lang.Override public boolean hasInstrumentGroupStatus() { return dataCase_ == 14; } /** * .org.openfeed.InstrumentGroupStatus instrumentGroupStatus = 14; * @return The instrumentGroupStatus. */ @java.lang.Override public org.openfeed.InstrumentGroupStatus getInstrumentGroupStatus() { if (dataCase_ == 14) { return (org.openfeed.InstrumentGroupStatus) data_; } return org.openfeed.InstrumentGroupStatus.getDefaultInstance(); } /** * .org.openfeed.InstrumentGroupStatus instrumentGroupStatus = 14; */ @java.lang.Override public org.openfeed.InstrumentGroupStatusOrBuilder getInstrumentGroupStatusOrBuilder() { if (dataCase_ == 14) { return (org.openfeed.InstrumentGroupStatus) data_; } return org.openfeed.InstrumentGroupStatus.getDefaultInstance(); } public static final int MARKETSNAPSHOT_FIELD_NUMBER = 15; /** * .org.openfeed.MarketSnapshot marketSnapshot = 15; * @return Whether the marketSnapshot field is set. */ @java.lang.Override public boolean hasMarketSnapshot() { return dataCase_ == 15; } /** * .org.openfeed.MarketSnapshot marketSnapshot = 15; * @return The marketSnapshot. */ @java.lang.Override public org.openfeed.MarketSnapshot getMarketSnapshot() { if (dataCase_ == 15) { return (org.openfeed.MarketSnapshot) data_; } return org.openfeed.MarketSnapshot.getDefaultInstance(); } /** * .org.openfeed.MarketSnapshot marketSnapshot = 15; */ @java.lang.Override public org.openfeed.MarketSnapshotOrBuilder getMarketSnapshotOrBuilder() { if (dataCase_ == 15) { return (org.openfeed.MarketSnapshot) data_; } return org.openfeed.MarketSnapshot.getDefaultInstance(); } public static final int MARKETUPDATE_FIELD_NUMBER = 16; /** * .org.openfeed.MarketUpdate marketUpdate = 16; * @return Whether the marketUpdate field is set. */ @java.lang.Override public boolean hasMarketUpdate() { return dataCase_ == 16; } /** * .org.openfeed.MarketUpdate marketUpdate = 16; * @return The marketUpdate. */ @java.lang.Override public org.openfeed.MarketUpdate getMarketUpdate() { if (dataCase_ == 16) { return (org.openfeed.MarketUpdate) data_; } return org.openfeed.MarketUpdate.getDefaultInstance(); } /** * .org.openfeed.MarketUpdate marketUpdate = 16; */ @java.lang.Override public org.openfeed.MarketUpdateOrBuilder getMarketUpdateOrBuilder() { if (dataCase_ == 16) { return (org.openfeed.MarketUpdate) data_; } return org.openfeed.MarketUpdate.getDefaultInstance(); } public static final int MARKETSTATUS_FIELD_NUMBER = 17; /** * .org.openfeed.MarketStatus marketStatus = 17; * @return Whether the marketStatus field is set. */ @java.lang.Override public boolean hasMarketStatus() { return dataCase_ == 17; } /** * .org.openfeed.MarketStatus marketStatus = 17; * @return The marketStatus. */ @java.lang.Override public org.openfeed.MarketStatus getMarketStatus() { if (dataCase_ == 17) { return (org.openfeed.MarketStatus) data_; } return org.openfeed.MarketStatus.getDefaultInstance(); } /** * .org.openfeed.MarketStatus marketStatus = 17; */ @java.lang.Override public org.openfeed.MarketStatusOrBuilder getMarketStatusOrBuilder() { if (dataCase_ == 17) { return (org.openfeed.MarketStatus) data_; } return org.openfeed.MarketStatus.getDefaultInstance(); } public static final int EODCOMMODITYSUMMARY_FIELD_NUMBER = 18; /** * .org.openfeed.EODCommoditySummary eodCommoditySummary = 18; * @return Whether the eodCommoditySummary field is set. */ @java.lang.Override public boolean hasEodCommoditySummary() { return dataCase_ == 18; } /** * .org.openfeed.EODCommoditySummary eodCommoditySummary = 18; * @return The eodCommoditySummary. */ @java.lang.Override public org.openfeed.EODCommoditySummary getEodCommoditySummary() { if (dataCase_ == 18) { return (org.openfeed.EODCommoditySummary) data_; } return org.openfeed.EODCommoditySummary.getDefaultInstance(); } /** * .org.openfeed.EODCommoditySummary eodCommoditySummary = 18; */ @java.lang.Override public org.openfeed.EODCommoditySummaryOrBuilder getEodCommoditySummaryOrBuilder() { if (dataCase_ == 18) { return (org.openfeed.EODCommoditySummary) data_; } return org.openfeed.EODCommoditySummary.getDefaultInstance(); } public static final int INSTRUMENTACTION_FIELD_NUMBER = 19; /** * .org.openfeed.InstrumentAction instrumentAction = 19; * @return Whether the instrumentAction field is set. */ @java.lang.Override public boolean hasInstrumentAction() { return dataCase_ == 19; } /** * .org.openfeed.InstrumentAction instrumentAction = 19; * @return The instrumentAction. */ @java.lang.Override public org.openfeed.InstrumentAction getInstrumentAction() { if (dataCase_ == 19) { return (org.openfeed.InstrumentAction) data_; } return org.openfeed.InstrumentAction.getDefaultInstance(); } /** * .org.openfeed.InstrumentAction instrumentAction = 19; */ @java.lang.Override public org.openfeed.InstrumentActionOrBuilder getInstrumentActionOrBuilder() { if (dataCase_ == 19) { return (org.openfeed.InstrumentAction) data_; } return org.openfeed.InstrumentAction.getDefaultInstance(); } 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 (sendingTime_ != 0L) { output.writeSInt64(1, sendingTime_); } if (totalCount_ != 0) { output.writeSInt32(2, totalCount_); } if (syncSequence_ != 0L) { output.writeInt64(3, syncSequence_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getContext()); } if (dataCase_ == 10) { output.writeMessage(10, (org.openfeed.ChannelReset) data_); } if (dataCase_ == 11) { output.writeMessage(11, (org.openfeed.HeartBeat) data_); } if (dataCase_ == 12) { output.writeMessage(12, (org.openfeed.AdminMessage) data_); } if (dataCase_ == 13) { output.writeMessage(13, (org.openfeed.InstrumentDefinition) data_); } if (dataCase_ == 14) { output.writeMessage(14, (org.openfeed.InstrumentGroupStatus) data_); } if (dataCase_ == 15) { output.writeMessage(15, (org.openfeed.MarketSnapshot) data_); } if (dataCase_ == 16) { output.writeMessage(16, (org.openfeed.MarketUpdate) data_); } if (dataCase_ == 17) { output.writeMessage(17, (org.openfeed.MarketStatus) data_); } if (dataCase_ == 18) { output.writeMessage(18, (org.openfeed.EODCommoditySummary) data_); } if (dataCase_ == 19) { output.writeMessage(19, (org.openfeed.InstrumentAction) data_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sendingTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(1, sendingTime_); } if (totalCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(2, totalCount_); } if (syncSequence_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, syncSequence_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getContext()); } if (dataCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (org.openfeed.ChannelReset) data_); } if (dataCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (org.openfeed.HeartBeat) data_); } if (dataCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (org.openfeed.AdminMessage) data_); } if (dataCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (org.openfeed.InstrumentDefinition) data_); } if (dataCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (org.openfeed.InstrumentGroupStatus) data_); } if (dataCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (org.openfeed.MarketSnapshot) data_); } if (dataCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (org.openfeed.MarketUpdate) data_); } if (dataCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (org.openfeed.MarketStatus) data_); } if (dataCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (org.openfeed.EODCommoditySummary) data_); } if (dataCase_ == 19) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, (org.openfeed.InstrumentAction) data_); } 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.OpenfeedMessage)) { return super.equals(obj); } org.openfeed.OpenfeedMessage other = (org.openfeed.OpenfeedMessage) obj; if (getSendingTime() != other.getSendingTime()) return false; if (getTotalCount() != other.getTotalCount()) return false; if (getSyncSequence() != other.getSyncSequence()) return false; if (hasContext() != other.hasContext()) return false; if (hasContext()) { if (!getContext() .equals(other.getContext())) return false; } if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 10: if (!getChannelReset() .equals(other.getChannelReset())) return false; break; case 11: if (!getHeartBeat() .equals(other.getHeartBeat())) return false; break; case 12: if (!getAdminMessage() .equals(other.getAdminMessage())) return false; break; case 13: if (!getInstrumentDefinition() .equals(other.getInstrumentDefinition())) return false; break; case 14: if (!getInstrumentGroupStatus() .equals(other.getInstrumentGroupStatus())) return false; break; case 15: if (!getMarketSnapshot() .equals(other.getMarketSnapshot())) return false; break; case 16: if (!getMarketUpdate() .equals(other.getMarketUpdate())) return false; break; case 17: if (!getMarketStatus() .equals(other.getMarketStatus())) return false; break; case 18: if (!getEodCommoditySummary() .equals(other.getEodCommoditySummary())) return false; break; case 19: if (!getInstrumentAction() .equals(other.getInstrumentAction())) return false; break; case 0: default: } 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) + SENDINGTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSendingTime()); hash = (37 * hash) + TOTALCOUNT_FIELD_NUMBER; hash = (53 * hash) + getTotalCount(); hash = (37 * hash) + SYNCSEQUENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSyncSequence()); if (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } switch (dataCase_) { case 10: hash = (37 * hash) + CHANNELRESET_FIELD_NUMBER; hash = (53 * hash) + getChannelReset().hashCode(); break; case 11: hash = (37 * hash) + HEARTBEAT_FIELD_NUMBER; hash = (53 * hash) + getHeartBeat().hashCode(); break; case 12: hash = (37 * hash) + ADMINMESSAGE_FIELD_NUMBER; hash = (53 * hash) + getAdminMessage().hashCode(); break; case 13: hash = (37 * hash) + INSTRUMENTDEFINITION_FIELD_NUMBER; hash = (53 * hash) + getInstrumentDefinition().hashCode(); break; case 14: hash = (37 * hash) + INSTRUMENTGROUPSTATUS_FIELD_NUMBER; hash = (53 * hash) + getInstrumentGroupStatus().hashCode(); break; case 15: hash = (37 * hash) + MARKETSNAPSHOT_FIELD_NUMBER; hash = (53 * hash) + getMarketSnapshot().hashCode(); break; case 16: hash = (37 * hash) + MARKETUPDATE_FIELD_NUMBER; hash = (53 * hash) + getMarketUpdate().hashCode(); break; case 17: hash = (37 * hash) + MARKETSTATUS_FIELD_NUMBER; hash = (53 * hash) + getMarketStatus().hashCode(); break; case 18: hash = (37 * hash) + EODCOMMODITYSUMMARY_FIELD_NUMBER; hash = (53 * hash) + getEodCommoditySummary().hashCode(); break; case 19: hash = (37 * hash) + INSTRUMENTACTION_FIELD_NUMBER; hash = (53 * hash) + getInstrumentAction().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.openfeed.OpenfeedMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.OpenfeedMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.OpenfeedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.OpenfeedMessage 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.OpenfeedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.OpenfeedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.OpenfeedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.OpenfeedMessage 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.OpenfeedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.openfeed.OpenfeedMessage 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.OpenfeedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.OpenfeedMessage 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.OpenfeedMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * / A wrapper for Openfeed data.  Will contain exactly one of the supported
   * message types
   * 
* * Protobuf type {@code org.openfeed.OpenfeedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.openfeed.OpenfeedMessage) org.openfeed.OpenfeedMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_OpenfeedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_OpenfeedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.OpenfeedMessage.class, org.openfeed.OpenfeedMessage.Builder.class); } // Construct using org.openfeed.OpenfeedMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getContextFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; sendingTime_ = 0L; totalCount_ = 0; syncSequence_ = 0L; context_ = null; if (contextBuilder_ != null) { contextBuilder_.dispose(); contextBuilder_ = null; } if (channelResetBuilder_ != null) { channelResetBuilder_.clear(); } if (heartBeatBuilder_ != null) { heartBeatBuilder_.clear(); } if (adminMessageBuilder_ != null) { adminMessageBuilder_.clear(); } if (instrumentDefinitionBuilder_ != null) { instrumentDefinitionBuilder_.clear(); } if (instrumentGroupStatusBuilder_ != null) { instrumentGroupStatusBuilder_.clear(); } if (marketSnapshotBuilder_ != null) { marketSnapshotBuilder_.clear(); } if (marketUpdateBuilder_ != null) { marketUpdateBuilder_.clear(); } if (marketStatusBuilder_ != null) { marketStatusBuilder_.clear(); } if (eodCommoditySummaryBuilder_ != null) { eodCommoditySummaryBuilder_.clear(); } if (instrumentActionBuilder_ != null) { instrumentActionBuilder_.clear(); } dataCase_ = 0; data_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openfeed.Openfeed.internal_static_org_openfeed_OpenfeedMessage_descriptor; } @java.lang.Override public org.openfeed.OpenfeedMessage getDefaultInstanceForType() { return org.openfeed.OpenfeedMessage.getDefaultInstance(); } @java.lang.Override public org.openfeed.OpenfeedMessage build() { org.openfeed.OpenfeedMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openfeed.OpenfeedMessage buildPartial() { org.openfeed.OpenfeedMessage result = new org.openfeed.OpenfeedMessage(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(org.openfeed.OpenfeedMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sendingTime_ = sendingTime_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.totalCount_ = totalCount_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.syncSequence_ = syncSequence_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.context_ = contextBuilder_ == null ? context_ : contextBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(org.openfeed.OpenfeedMessage result) { result.dataCase_ = dataCase_; result.data_ = this.data_; if (dataCase_ == 10 && channelResetBuilder_ != null) { result.data_ = channelResetBuilder_.build(); } if (dataCase_ == 11 && heartBeatBuilder_ != null) { result.data_ = heartBeatBuilder_.build(); } if (dataCase_ == 12 && adminMessageBuilder_ != null) { result.data_ = adminMessageBuilder_.build(); } if (dataCase_ == 13 && instrumentDefinitionBuilder_ != null) { result.data_ = instrumentDefinitionBuilder_.build(); } if (dataCase_ == 14 && instrumentGroupStatusBuilder_ != null) { result.data_ = instrumentGroupStatusBuilder_.build(); } if (dataCase_ == 15 && marketSnapshotBuilder_ != null) { result.data_ = marketSnapshotBuilder_.build(); } if (dataCase_ == 16 && marketUpdateBuilder_ != null) { result.data_ = marketUpdateBuilder_.build(); } if (dataCase_ == 17 && marketStatusBuilder_ != null) { result.data_ = marketStatusBuilder_.build(); } if (dataCase_ == 18 && eodCommoditySummaryBuilder_ != null) { result.data_ = eodCommoditySummaryBuilder_.build(); } if (dataCase_ == 19 && instrumentActionBuilder_ != null) { result.data_ = instrumentActionBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openfeed.OpenfeedMessage) { return mergeFrom((org.openfeed.OpenfeedMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openfeed.OpenfeedMessage other) { if (other == org.openfeed.OpenfeedMessage.getDefaultInstance()) return this; if (other.getSendingTime() != 0L) { setSendingTime(other.getSendingTime()); } if (other.getTotalCount() != 0) { setTotalCount(other.getTotalCount()); } if (other.getSyncSequence() != 0L) { setSyncSequence(other.getSyncSequence()); } if (other.hasContext()) { mergeContext(other.getContext()); } switch (other.getDataCase()) { case CHANNELRESET: { mergeChannelReset(other.getChannelReset()); break; } case HEARTBEAT: { mergeHeartBeat(other.getHeartBeat()); break; } case ADMINMESSAGE: { mergeAdminMessage(other.getAdminMessage()); break; } case INSTRUMENTDEFINITION: { mergeInstrumentDefinition(other.getInstrumentDefinition()); break; } case INSTRUMENTGROUPSTATUS: { mergeInstrumentGroupStatus(other.getInstrumentGroupStatus()); break; } case MARKETSNAPSHOT: { mergeMarketSnapshot(other.getMarketSnapshot()); break; } case MARKETUPDATE: { mergeMarketUpdate(other.getMarketUpdate()); break; } case MARKETSTATUS: { mergeMarketStatus(other.getMarketStatus()); break; } case EODCOMMODITYSUMMARY: { mergeEodCommoditySummary(other.getEodCommoditySummary()); break; } case INSTRUMENTACTION: { mergeInstrumentAction(other.getInstrumentAction()); break; } case DATA_NOT_SET: { break; } } 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: { sendingTime_ = input.readSInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { totalCount_ = input.readSInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { syncSequence_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage( getContextFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 82: { input.readMessage( getChannelResetFieldBuilder().getBuilder(), extensionRegistry); dataCase_ = 10; break; } // case 82 case 90: { input.readMessage( getHeartBeatFieldBuilder().getBuilder(), extensionRegistry); dataCase_ = 11; break; } // case 90 case 98: { input.readMessage( getAdminMessageFieldBuilder().getBuilder(), extensionRegistry); dataCase_ = 12; break; } // case 98 case 106: { input.readMessage( getInstrumentDefinitionFieldBuilder().getBuilder(), extensionRegistry); dataCase_ = 13; break; } // case 106 case 114: { input.readMessage( getInstrumentGroupStatusFieldBuilder().getBuilder(), extensionRegistry); dataCase_ = 14; break; } // case 114 case 122: { input.readMessage( getMarketSnapshotFieldBuilder().getBuilder(), extensionRegistry); dataCase_ = 15; break; } // case 122 case 130: { input.readMessage( getMarketUpdateFieldBuilder().getBuilder(), extensionRegistry); dataCase_ = 16; break; } // case 130 case 138: { input.readMessage( getMarketStatusFieldBuilder().getBuilder(), extensionRegistry); dataCase_ = 17; break; } // case 138 case 146: { input.readMessage( getEodCommoditySummaryFieldBuilder().getBuilder(), extensionRegistry); dataCase_ = 18; break; } // case 146 case 154: { input.readMessage( getInstrumentActionFieldBuilder().getBuilder(), extensionRegistry); dataCase_ = 19; break; } // case 154 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 dataCase_ = 0; private java.lang.Object data_; public DataCase getDataCase() { return DataCase.forNumber( dataCase_); } public Builder clearData() { dataCase_ = 0; data_ = null; onChanged(); return this; } private int bitField0_; private long sendingTime_ ; /** *
     * / Nano second unix epoch at time of message transmission (UTC)
     * 
* * sint64 sendingTime = 1; * @return The sendingTime. */ @java.lang.Override public long getSendingTime() { return sendingTime_; } /** *
     * / Nano second unix epoch at time of message transmission (UTC)
     * 
* * sint64 sendingTime = 1; * @param value The sendingTime to set. * @return This builder for chaining. */ public Builder setSendingTime(long value) { sendingTime_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * / Nano second unix epoch at time of message transmission (UTC)
     * 
* * sint64 sendingTime = 1; * @return This builder for chaining. */ public Builder clearSendingTime() { bitField0_ = (bitField0_ & ~0x00000001); sendingTime_ = 0L; onChanged(); return this; } private int totalCount_ ; /** *
     * / The total number of markets available on this channel
     * at the time the message was sent.  For UDP snapshot and definition feeds.
     * 
* * sint32 totalCount = 2; * @return The totalCount. */ @java.lang.Override public int getTotalCount() { return totalCount_; } /** *
     * / The total number of markets available on this channel
     * at the time the message was sent.  For UDP snapshot and definition feeds.
     * 
* * sint32 totalCount = 2; * @param value The totalCount to set. * @return This builder for chaining. */ public Builder setTotalCount(int value) { totalCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * / The total number of markets available on this channel
     * at the time the message was sent.  For UDP snapshot and definition feeds.
     * 
* * sint32 totalCount = 2; * @return This builder for chaining. */ public Builder clearTotalCount() { bitField0_ = (bitField0_ & ~0x00000002); totalCount_ = 0; onChanged(); return this; } private long syncSequence_ ; /** *
     * / The most recent packet sequence number sent on the incremental feed
     * at the time this message was sent.  For UDP snapshot and definition feeds.
     * 
* * int64 syncSequence = 3; * @return The syncSequence. */ @java.lang.Override public long getSyncSequence() { return syncSequence_; } /** *
     * / The most recent packet sequence number sent on the incremental feed
     * at the time this message was sent.  For UDP snapshot and definition feeds.
     * 
* * int64 syncSequence = 3; * @param value The syncSequence to set. * @return This builder for chaining. */ public Builder setSyncSequence(long value) { syncSequence_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * / The most recent packet sequence number sent on the incremental feed
     * at the time this message was sent.  For UDP snapshot and definition feeds.
     * 
* * int64 syncSequence = 3; * @return This builder for chaining. */ public Builder clearSyncSequence() { bitField0_ = (bitField0_ & ~0x00000004); syncSequence_ = 0L; onChanged(); return this; } private org.openfeed.Context context_; private com.google.protobuf.SingleFieldBuilder< org.openfeed.Context, org.openfeed.Context.Builder, org.openfeed.ContextOrBuilder> contextBuilder_; /** *
     * Feed specific context data
     * 
* * .org.openfeed.Context context = 4; * @return Whether the context field is set. */ public boolean hasContext() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Feed specific context data
     * 
* * .org.openfeed.Context context = 4; * @return The context. */ public org.openfeed.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.openfeed.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** *
     * Feed specific context data
     * 
* * .org.openfeed.Context context = 4; */ public Builder setContext(org.openfeed.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; } else { contextBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Feed specific context data
     * 
* * .org.openfeed.Context context = 4; */ public Builder setContext( org.openfeed.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); } else { contextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Feed specific context data
     * 
* * .org.openfeed.Context context = 4; */ public Builder mergeContext(org.openfeed.Context value) { if (contextBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && context_ != null && context_ != org.openfeed.Context.getDefaultInstance()) { getContextBuilder().mergeFrom(value); } else { context_ = value; } } else { contextBuilder_.mergeFrom(value); } if (context_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * Feed specific context data
     * 
* * .org.openfeed.Context context = 4; */ public Builder clearContext() { bitField0_ = (bitField0_ & ~0x00000008); context_ = null; if (contextBuilder_ != null) { contextBuilder_.dispose(); contextBuilder_ = null; } onChanged(); return this; } /** *
     * Feed specific context data
     * 
* * .org.openfeed.Context context = 4; */ public org.openfeed.Context.Builder getContextBuilder() { bitField0_ |= 0x00000008; onChanged(); return getContextFieldBuilder().getBuilder(); } /** *
     * Feed specific context data
     * 
* * .org.openfeed.Context context = 4; */ public org.openfeed.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.openfeed.Context.getDefaultInstance() : context_; } } /** *
     * Feed specific context data
     * 
* * .org.openfeed.Context context = 4; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.Context, org.openfeed.Context.Builder, org.openfeed.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.Context, org.openfeed.Context.Builder, org.openfeed.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.openfeed.ChannelReset, org.openfeed.ChannelReset.Builder, org.openfeed.ChannelResetOrBuilder> channelResetBuilder_; /** * .org.openfeed.ChannelReset channelReset = 10; * @return Whether the channelReset field is set. */ @java.lang.Override public boolean hasChannelReset() { return dataCase_ == 10; } /** * .org.openfeed.ChannelReset channelReset = 10; * @return The channelReset. */ @java.lang.Override public org.openfeed.ChannelReset getChannelReset() { if (channelResetBuilder_ == null) { if (dataCase_ == 10) { return (org.openfeed.ChannelReset) data_; } return org.openfeed.ChannelReset.getDefaultInstance(); } else { if (dataCase_ == 10) { return channelResetBuilder_.getMessage(); } return org.openfeed.ChannelReset.getDefaultInstance(); } } /** * .org.openfeed.ChannelReset channelReset = 10; */ public Builder setChannelReset(org.openfeed.ChannelReset value) { if (channelResetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { channelResetBuilder_.setMessage(value); } dataCase_ = 10; return this; } /** * .org.openfeed.ChannelReset channelReset = 10; */ public Builder setChannelReset( org.openfeed.ChannelReset.Builder builderForValue) { if (channelResetBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { channelResetBuilder_.setMessage(builderForValue.build()); } dataCase_ = 10; return this; } /** * .org.openfeed.ChannelReset channelReset = 10; */ public Builder mergeChannelReset(org.openfeed.ChannelReset value) { if (channelResetBuilder_ == null) { if (dataCase_ == 10 && data_ != org.openfeed.ChannelReset.getDefaultInstance()) { data_ = org.openfeed.ChannelReset.newBuilder((org.openfeed.ChannelReset) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 10) { channelResetBuilder_.mergeFrom(value); } else { channelResetBuilder_.setMessage(value); } } dataCase_ = 10; return this; } /** * .org.openfeed.ChannelReset channelReset = 10; */ public Builder clearChannelReset() { if (channelResetBuilder_ == null) { if (dataCase_ == 10) { dataCase_ = 0; data_ = null; onChanged(); } } else { if (dataCase_ == 10) { dataCase_ = 0; data_ = null; } channelResetBuilder_.clear(); } return this; } /** * .org.openfeed.ChannelReset channelReset = 10; */ public org.openfeed.ChannelReset.Builder getChannelResetBuilder() { return getChannelResetFieldBuilder().getBuilder(); } /** * .org.openfeed.ChannelReset channelReset = 10; */ @java.lang.Override public org.openfeed.ChannelResetOrBuilder getChannelResetOrBuilder() { if ((dataCase_ == 10) && (channelResetBuilder_ != null)) { return channelResetBuilder_.getMessageOrBuilder(); } else { if (dataCase_ == 10) { return (org.openfeed.ChannelReset) data_; } return org.openfeed.ChannelReset.getDefaultInstance(); } } /** * .org.openfeed.ChannelReset channelReset = 10; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.ChannelReset, org.openfeed.ChannelReset.Builder, org.openfeed.ChannelResetOrBuilder> getChannelResetFieldBuilder() { if (channelResetBuilder_ == null) { if (!(dataCase_ == 10)) { data_ = org.openfeed.ChannelReset.getDefaultInstance(); } channelResetBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.ChannelReset, org.openfeed.ChannelReset.Builder, org.openfeed.ChannelResetOrBuilder>( (org.openfeed.ChannelReset) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 10; onChanged(); return channelResetBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.openfeed.HeartBeat, org.openfeed.HeartBeat.Builder, org.openfeed.HeartBeatOrBuilder> heartBeatBuilder_; /** * .org.openfeed.HeartBeat heartBeat = 11; * @return Whether the heartBeat field is set. */ @java.lang.Override public boolean hasHeartBeat() { return dataCase_ == 11; } /** * .org.openfeed.HeartBeat heartBeat = 11; * @return The heartBeat. */ @java.lang.Override public org.openfeed.HeartBeat getHeartBeat() { if (heartBeatBuilder_ == null) { if (dataCase_ == 11) { return (org.openfeed.HeartBeat) data_; } return org.openfeed.HeartBeat.getDefaultInstance(); } else { if (dataCase_ == 11) { return heartBeatBuilder_.getMessage(); } return org.openfeed.HeartBeat.getDefaultInstance(); } } /** * .org.openfeed.HeartBeat heartBeat = 11; */ public Builder setHeartBeat(org.openfeed.HeartBeat value) { if (heartBeatBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { heartBeatBuilder_.setMessage(value); } dataCase_ = 11; return this; } /** * .org.openfeed.HeartBeat heartBeat = 11; */ public Builder setHeartBeat( org.openfeed.HeartBeat.Builder builderForValue) { if (heartBeatBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { heartBeatBuilder_.setMessage(builderForValue.build()); } dataCase_ = 11; return this; } /** * .org.openfeed.HeartBeat heartBeat = 11; */ public Builder mergeHeartBeat(org.openfeed.HeartBeat value) { if (heartBeatBuilder_ == null) { if (dataCase_ == 11 && data_ != org.openfeed.HeartBeat.getDefaultInstance()) { data_ = org.openfeed.HeartBeat.newBuilder((org.openfeed.HeartBeat) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 11) { heartBeatBuilder_.mergeFrom(value); } else { heartBeatBuilder_.setMessage(value); } } dataCase_ = 11; return this; } /** * .org.openfeed.HeartBeat heartBeat = 11; */ public Builder clearHeartBeat() { if (heartBeatBuilder_ == null) { if (dataCase_ == 11) { dataCase_ = 0; data_ = null; onChanged(); } } else { if (dataCase_ == 11) { dataCase_ = 0; data_ = null; } heartBeatBuilder_.clear(); } return this; } /** * .org.openfeed.HeartBeat heartBeat = 11; */ public org.openfeed.HeartBeat.Builder getHeartBeatBuilder() { return getHeartBeatFieldBuilder().getBuilder(); } /** * .org.openfeed.HeartBeat heartBeat = 11; */ @java.lang.Override public org.openfeed.HeartBeatOrBuilder getHeartBeatOrBuilder() { if ((dataCase_ == 11) && (heartBeatBuilder_ != null)) { return heartBeatBuilder_.getMessageOrBuilder(); } else { if (dataCase_ == 11) { return (org.openfeed.HeartBeat) data_; } return org.openfeed.HeartBeat.getDefaultInstance(); } } /** * .org.openfeed.HeartBeat heartBeat = 11; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.HeartBeat, org.openfeed.HeartBeat.Builder, org.openfeed.HeartBeatOrBuilder> getHeartBeatFieldBuilder() { if (heartBeatBuilder_ == null) { if (!(dataCase_ == 11)) { data_ = org.openfeed.HeartBeat.getDefaultInstance(); } heartBeatBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.HeartBeat, org.openfeed.HeartBeat.Builder, org.openfeed.HeartBeatOrBuilder>( (org.openfeed.HeartBeat) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 11; onChanged(); return heartBeatBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.openfeed.AdminMessage, org.openfeed.AdminMessage.Builder, org.openfeed.AdminMessageOrBuilder> adminMessageBuilder_; /** * .org.openfeed.AdminMessage adminMessage = 12; * @return Whether the adminMessage field is set. */ @java.lang.Override public boolean hasAdminMessage() { return dataCase_ == 12; } /** * .org.openfeed.AdminMessage adminMessage = 12; * @return The adminMessage. */ @java.lang.Override public org.openfeed.AdminMessage getAdminMessage() { if (adminMessageBuilder_ == null) { if (dataCase_ == 12) { return (org.openfeed.AdminMessage) data_; } return org.openfeed.AdminMessage.getDefaultInstance(); } else { if (dataCase_ == 12) { return adminMessageBuilder_.getMessage(); } return org.openfeed.AdminMessage.getDefaultInstance(); } } /** * .org.openfeed.AdminMessage adminMessage = 12; */ public Builder setAdminMessage(org.openfeed.AdminMessage value) { if (adminMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { adminMessageBuilder_.setMessage(value); } dataCase_ = 12; return this; } /** * .org.openfeed.AdminMessage adminMessage = 12; */ public Builder setAdminMessage( org.openfeed.AdminMessage.Builder builderForValue) { if (adminMessageBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { adminMessageBuilder_.setMessage(builderForValue.build()); } dataCase_ = 12; return this; } /** * .org.openfeed.AdminMessage adminMessage = 12; */ public Builder mergeAdminMessage(org.openfeed.AdminMessage value) { if (adminMessageBuilder_ == null) { if (dataCase_ == 12 && data_ != org.openfeed.AdminMessage.getDefaultInstance()) { data_ = org.openfeed.AdminMessage.newBuilder((org.openfeed.AdminMessage) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 12) { adminMessageBuilder_.mergeFrom(value); } else { adminMessageBuilder_.setMessage(value); } } dataCase_ = 12; return this; } /** * .org.openfeed.AdminMessage adminMessage = 12; */ public Builder clearAdminMessage() { if (adminMessageBuilder_ == null) { if (dataCase_ == 12) { dataCase_ = 0; data_ = null; onChanged(); } } else { if (dataCase_ == 12) { dataCase_ = 0; data_ = null; } adminMessageBuilder_.clear(); } return this; } /** * .org.openfeed.AdminMessage adminMessage = 12; */ public org.openfeed.AdminMessage.Builder getAdminMessageBuilder() { return getAdminMessageFieldBuilder().getBuilder(); } /** * .org.openfeed.AdminMessage adminMessage = 12; */ @java.lang.Override public org.openfeed.AdminMessageOrBuilder getAdminMessageOrBuilder() { if ((dataCase_ == 12) && (adminMessageBuilder_ != null)) { return adminMessageBuilder_.getMessageOrBuilder(); } else { if (dataCase_ == 12) { return (org.openfeed.AdminMessage) data_; } return org.openfeed.AdminMessage.getDefaultInstance(); } } /** * .org.openfeed.AdminMessage adminMessage = 12; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.AdminMessage, org.openfeed.AdminMessage.Builder, org.openfeed.AdminMessageOrBuilder> getAdminMessageFieldBuilder() { if (adminMessageBuilder_ == null) { if (!(dataCase_ == 12)) { data_ = org.openfeed.AdminMessage.getDefaultInstance(); } adminMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.AdminMessage, org.openfeed.AdminMessage.Builder, org.openfeed.AdminMessageOrBuilder>( (org.openfeed.AdminMessage) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 12; onChanged(); return adminMessageBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.openfeed.InstrumentDefinition, org.openfeed.InstrumentDefinition.Builder, org.openfeed.InstrumentDefinitionOrBuilder> instrumentDefinitionBuilder_; /** * .org.openfeed.InstrumentDefinition instrumentDefinition = 13; * @return Whether the instrumentDefinition field is set. */ @java.lang.Override public boolean hasInstrumentDefinition() { return dataCase_ == 13; } /** * .org.openfeed.InstrumentDefinition instrumentDefinition = 13; * @return The instrumentDefinition. */ @java.lang.Override public org.openfeed.InstrumentDefinition getInstrumentDefinition() { if (instrumentDefinitionBuilder_ == null) { if (dataCase_ == 13) { return (org.openfeed.InstrumentDefinition) data_; } return org.openfeed.InstrumentDefinition.getDefaultInstance(); } else { if (dataCase_ == 13) { return instrumentDefinitionBuilder_.getMessage(); } return org.openfeed.InstrumentDefinition.getDefaultInstance(); } } /** * .org.openfeed.InstrumentDefinition instrumentDefinition = 13; */ public Builder setInstrumentDefinition(org.openfeed.InstrumentDefinition value) { if (instrumentDefinitionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { instrumentDefinitionBuilder_.setMessage(value); } dataCase_ = 13; return this; } /** * .org.openfeed.InstrumentDefinition instrumentDefinition = 13; */ public Builder setInstrumentDefinition( org.openfeed.InstrumentDefinition.Builder builderForValue) { if (instrumentDefinitionBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { instrumentDefinitionBuilder_.setMessage(builderForValue.build()); } dataCase_ = 13; return this; } /** * .org.openfeed.InstrumentDefinition instrumentDefinition = 13; */ public Builder mergeInstrumentDefinition(org.openfeed.InstrumentDefinition value) { if (instrumentDefinitionBuilder_ == null) { if (dataCase_ == 13 && data_ != org.openfeed.InstrumentDefinition.getDefaultInstance()) { data_ = org.openfeed.InstrumentDefinition.newBuilder((org.openfeed.InstrumentDefinition) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 13) { instrumentDefinitionBuilder_.mergeFrom(value); } else { instrumentDefinitionBuilder_.setMessage(value); } } dataCase_ = 13; return this; } /** * .org.openfeed.InstrumentDefinition instrumentDefinition = 13; */ public Builder clearInstrumentDefinition() { if (instrumentDefinitionBuilder_ == null) { if (dataCase_ == 13) { dataCase_ = 0; data_ = null; onChanged(); } } else { if (dataCase_ == 13) { dataCase_ = 0; data_ = null; } instrumentDefinitionBuilder_.clear(); } return this; } /** * .org.openfeed.InstrumentDefinition instrumentDefinition = 13; */ public org.openfeed.InstrumentDefinition.Builder getInstrumentDefinitionBuilder() { return getInstrumentDefinitionFieldBuilder().getBuilder(); } /** * .org.openfeed.InstrumentDefinition instrumentDefinition = 13; */ @java.lang.Override public org.openfeed.InstrumentDefinitionOrBuilder getInstrumentDefinitionOrBuilder() { if ((dataCase_ == 13) && (instrumentDefinitionBuilder_ != null)) { return instrumentDefinitionBuilder_.getMessageOrBuilder(); } else { if (dataCase_ == 13) { return (org.openfeed.InstrumentDefinition) data_; } return org.openfeed.InstrumentDefinition.getDefaultInstance(); } } /** * .org.openfeed.InstrumentDefinition instrumentDefinition = 13; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.InstrumentDefinition, org.openfeed.InstrumentDefinition.Builder, org.openfeed.InstrumentDefinitionOrBuilder> getInstrumentDefinitionFieldBuilder() { if (instrumentDefinitionBuilder_ == null) { if (!(dataCase_ == 13)) { data_ = org.openfeed.InstrumentDefinition.getDefaultInstance(); } instrumentDefinitionBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.InstrumentDefinition, org.openfeed.InstrumentDefinition.Builder, org.openfeed.InstrumentDefinitionOrBuilder>( (org.openfeed.InstrumentDefinition) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 13; onChanged(); return instrumentDefinitionBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.openfeed.InstrumentGroupStatus, org.openfeed.InstrumentGroupStatus.Builder, org.openfeed.InstrumentGroupStatusOrBuilder> instrumentGroupStatusBuilder_; /** * .org.openfeed.InstrumentGroupStatus instrumentGroupStatus = 14; * @return Whether the instrumentGroupStatus field is set. */ @java.lang.Override public boolean hasInstrumentGroupStatus() { return dataCase_ == 14; } /** * .org.openfeed.InstrumentGroupStatus instrumentGroupStatus = 14; * @return The instrumentGroupStatus. */ @java.lang.Override public org.openfeed.InstrumentGroupStatus getInstrumentGroupStatus() { if (instrumentGroupStatusBuilder_ == null) { if (dataCase_ == 14) { return (org.openfeed.InstrumentGroupStatus) data_; } return org.openfeed.InstrumentGroupStatus.getDefaultInstance(); } else { if (dataCase_ == 14) { return instrumentGroupStatusBuilder_.getMessage(); } return org.openfeed.InstrumentGroupStatus.getDefaultInstance(); } } /** * .org.openfeed.InstrumentGroupStatus instrumentGroupStatus = 14; */ public Builder setInstrumentGroupStatus(org.openfeed.InstrumentGroupStatus value) { if (instrumentGroupStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { instrumentGroupStatusBuilder_.setMessage(value); } dataCase_ = 14; return this; } /** * .org.openfeed.InstrumentGroupStatus instrumentGroupStatus = 14; */ public Builder setInstrumentGroupStatus( org.openfeed.InstrumentGroupStatus.Builder builderForValue) { if (instrumentGroupStatusBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { instrumentGroupStatusBuilder_.setMessage(builderForValue.build()); } dataCase_ = 14; return this; } /** * .org.openfeed.InstrumentGroupStatus instrumentGroupStatus = 14; */ public Builder mergeInstrumentGroupStatus(org.openfeed.InstrumentGroupStatus value) { if (instrumentGroupStatusBuilder_ == null) { if (dataCase_ == 14 && data_ != org.openfeed.InstrumentGroupStatus.getDefaultInstance()) { data_ = org.openfeed.InstrumentGroupStatus.newBuilder((org.openfeed.InstrumentGroupStatus) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 14) { instrumentGroupStatusBuilder_.mergeFrom(value); } else { instrumentGroupStatusBuilder_.setMessage(value); } } dataCase_ = 14; return this; } /** * .org.openfeed.InstrumentGroupStatus instrumentGroupStatus = 14; */ public Builder clearInstrumentGroupStatus() { if (instrumentGroupStatusBuilder_ == null) { if (dataCase_ == 14) { dataCase_ = 0; data_ = null; onChanged(); } } else { if (dataCase_ == 14) { dataCase_ = 0; data_ = null; } instrumentGroupStatusBuilder_.clear(); } return this; } /** * .org.openfeed.InstrumentGroupStatus instrumentGroupStatus = 14; */ public org.openfeed.InstrumentGroupStatus.Builder getInstrumentGroupStatusBuilder() { return getInstrumentGroupStatusFieldBuilder().getBuilder(); } /** * .org.openfeed.InstrumentGroupStatus instrumentGroupStatus = 14; */ @java.lang.Override public org.openfeed.InstrumentGroupStatusOrBuilder getInstrumentGroupStatusOrBuilder() { if ((dataCase_ == 14) && (instrumentGroupStatusBuilder_ != null)) { return instrumentGroupStatusBuilder_.getMessageOrBuilder(); } else { if (dataCase_ == 14) { return (org.openfeed.InstrumentGroupStatus) data_; } return org.openfeed.InstrumentGroupStatus.getDefaultInstance(); } } /** * .org.openfeed.InstrumentGroupStatus instrumentGroupStatus = 14; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.InstrumentGroupStatus, org.openfeed.InstrumentGroupStatus.Builder, org.openfeed.InstrumentGroupStatusOrBuilder> getInstrumentGroupStatusFieldBuilder() { if (instrumentGroupStatusBuilder_ == null) { if (!(dataCase_ == 14)) { data_ = org.openfeed.InstrumentGroupStatus.getDefaultInstance(); } instrumentGroupStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.InstrumentGroupStatus, org.openfeed.InstrumentGroupStatus.Builder, org.openfeed.InstrumentGroupStatusOrBuilder>( (org.openfeed.InstrumentGroupStatus) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 14; onChanged(); return instrumentGroupStatusBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.openfeed.MarketSnapshot, org.openfeed.MarketSnapshot.Builder, org.openfeed.MarketSnapshotOrBuilder> marketSnapshotBuilder_; /** * .org.openfeed.MarketSnapshot marketSnapshot = 15; * @return Whether the marketSnapshot field is set. */ @java.lang.Override public boolean hasMarketSnapshot() { return dataCase_ == 15; } /** * .org.openfeed.MarketSnapshot marketSnapshot = 15; * @return The marketSnapshot. */ @java.lang.Override public org.openfeed.MarketSnapshot getMarketSnapshot() { if (marketSnapshotBuilder_ == null) { if (dataCase_ == 15) { return (org.openfeed.MarketSnapshot) data_; } return org.openfeed.MarketSnapshot.getDefaultInstance(); } else { if (dataCase_ == 15) { return marketSnapshotBuilder_.getMessage(); } return org.openfeed.MarketSnapshot.getDefaultInstance(); } } /** * .org.openfeed.MarketSnapshot marketSnapshot = 15; */ public Builder setMarketSnapshot(org.openfeed.MarketSnapshot value) { if (marketSnapshotBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { marketSnapshotBuilder_.setMessage(value); } dataCase_ = 15; return this; } /** * .org.openfeed.MarketSnapshot marketSnapshot = 15; */ public Builder setMarketSnapshot( org.openfeed.MarketSnapshot.Builder builderForValue) { if (marketSnapshotBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { marketSnapshotBuilder_.setMessage(builderForValue.build()); } dataCase_ = 15; return this; } /** * .org.openfeed.MarketSnapshot marketSnapshot = 15; */ public Builder mergeMarketSnapshot(org.openfeed.MarketSnapshot value) { if (marketSnapshotBuilder_ == null) { if (dataCase_ == 15 && data_ != org.openfeed.MarketSnapshot.getDefaultInstance()) { data_ = org.openfeed.MarketSnapshot.newBuilder((org.openfeed.MarketSnapshot) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 15) { marketSnapshotBuilder_.mergeFrom(value); } else { marketSnapshotBuilder_.setMessage(value); } } dataCase_ = 15; return this; } /** * .org.openfeed.MarketSnapshot marketSnapshot = 15; */ public Builder clearMarketSnapshot() { if (marketSnapshotBuilder_ == null) { if (dataCase_ == 15) { dataCase_ = 0; data_ = null; onChanged(); } } else { if (dataCase_ == 15) { dataCase_ = 0; data_ = null; } marketSnapshotBuilder_.clear(); } return this; } /** * .org.openfeed.MarketSnapshot marketSnapshot = 15; */ public org.openfeed.MarketSnapshot.Builder getMarketSnapshotBuilder() { return getMarketSnapshotFieldBuilder().getBuilder(); } /** * .org.openfeed.MarketSnapshot marketSnapshot = 15; */ @java.lang.Override public org.openfeed.MarketSnapshotOrBuilder getMarketSnapshotOrBuilder() { if ((dataCase_ == 15) && (marketSnapshotBuilder_ != null)) { return marketSnapshotBuilder_.getMessageOrBuilder(); } else { if (dataCase_ == 15) { return (org.openfeed.MarketSnapshot) data_; } return org.openfeed.MarketSnapshot.getDefaultInstance(); } } /** * .org.openfeed.MarketSnapshot marketSnapshot = 15; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.MarketSnapshot, org.openfeed.MarketSnapshot.Builder, org.openfeed.MarketSnapshotOrBuilder> getMarketSnapshotFieldBuilder() { if (marketSnapshotBuilder_ == null) { if (!(dataCase_ == 15)) { data_ = org.openfeed.MarketSnapshot.getDefaultInstance(); } marketSnapshotBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.MarketSnapshot, org.openfeed.MarketSnapshot.Builder, org.openfeed.MarketSnapshotOrBuilder>( (org.openfeed.MarketSnapshot) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 15; onChanged(); return marketSnapshotBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.openfeed.MarketUpdate, org.openfeed.MarketUpdate.Builder, org.openfeed.MarketUpdateOrBuilder> marketUpdateBuilder_; /** * .org.openfeed.MarketUpdate marketUpdate = 16; * @return Whether the marketUpdate field is set. */ @java.lang.Override public boolean hasMarketUpdate() { return dataCase_ == 16; } /** * .org.openfeed.MarketUpdate marketUpdate = 16; * @return The marketUpdate. */ @java.lang.Override public org.openfeed.MarketUpdate getMarketUpdate() { if (marketUpdateBuilder_ == null) { if (dataCase_ == 16) { return (org.openfeed.MarketUpdate) data_; } return org.openfeed.MarketUpdate.getDefaultInstance(); } else { if (dataCase_ == 16) { return marketUpdateBuilder_.getMessage(); } return org.openfeed.MarketUpdate.getDefaultInstance(); } } /** * .org.openfeed.MarketUpdate marketUpdate = 16; */ public Builder setMarketUpdate(org.openfeed.MarketUpdate value) { if (marketUpdateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { marketUpdateBuilder_.setMessage(value); } dataCase_ = 16; return this; } /** * .org.openfeed.MarketUpdate marketUpdate = 16; */ public Builder setMarketUpdate( org.openfeed.MarketUpdate.Builder builderForValue) { if (marketUpdateBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { marketUpdateBuilder_.setMessage(builderForValue.build()); } dataCase_ = 16; return this; } /** * .org.openfeed.MarketUpdate marketUpdate = 16; */ public Builder mergeMarketUpdate(org.openfeed.MarketUpdate value) { if (marketUpdateBuilder_ == null) { if (dataCase_ == 16 && data_ != org.openfeed.MarketUpdate.getDefaultInstance()) { data_ = org.openfeed.MarketUpdate.newBuilder((org.openfeed.MarketUpdate) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 16) { marketUpdateBuilder_.mergeFrom(value); } else { marketUpdateBuilder_.setMessage(value); } } dataCase_ = 16; return this; } /** * .org.openfeed.MarketUpdate marketUpdate = 16; */ public Builder clearMarketUpdate() { if (marketUpdateBuilder_ == null) { if (dataCase_ == 16) { dataCase_ = 0; data_ = null; onChanged(); } } else { if (dataCase_ == 16) { dataCase_ = 0; data_ = null; } marketUpdateBuilder_.clear(); } return this; } /** * .org.openfeed.MarketUpdate marketUpdate = 16; */ public org.openfeed.MarketUpdate.Builder getMarketUpdateBuilder() { return getMarketUpdateFieldBuilder().getBuilder(); } /** * .org.openfeed.MarketUpdate marketUpdate = 16; */ @java.lang.Override public org.openfeed.MarketUpdateOrBuilder getMarketUpdateOrBuilder() { if ((dataCase_ == 16) && (marketUpdateBuilder_ != null)) { return marketUpdateBuilder_.getMessageOrBuilder(); } else { if (dataCase_ == 16) { return (org.openfeed.MarketUpdate) data_; } return org.openfeed.MarketUpdate.getDefaultInstance(); } } /** * .org.openfeed.MarketUpdate marketUpdate = 16; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.MarketUpdate, org.openfeed.MarketUpdate.Builder, org.openfeed.MarketUpdateOrBuilder> getMarketUpdateFieldBuilder() { if (marketUpdateBuilder_ == null) { if (!(dataCase_ == 16)) { data_ = org.openfeed.MarketUpdate.getDefaultInstance(); } marketUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.MarketUpdate, org.openfeed.MarketUpdate.Builder, org.openfeed.MarketUpdateOrBuilder>( (org.openfeed.MarketUpdate) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 16; onChanged(); return marketUpdateBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.openfeed.MarketStatus, org.openfeed.MarketStatus.Builder, org.openfeed.MarketStatusOrBuilder> marketStatusBuilder_; /** * .org.openfeed.MarketStatus marketStatus = 17; * @return Whether the marketStatus field is set. */ @java.lang.Override public boolean hasMarketStatus() { return dataCase_ == 17; } /** * .org.openfeed.MarketStatus marketStatus = 17; * @return The marketStatus. */ @java.lang.Override public org.openfeed.MarketStatus getMarketStatus() { if (marketStatusBuilder_ == null) { if (dataCase_ == 17) { return (org.openfeed.MarketStatus) data_; } return org.openfeed.MarketStatus.getDefaultInstance(); } else { if (dataCase_ == 17) { return marketStatusBuilder_.getMessage(); } return org.openfeed.MarketStatus.getDefaultInstance(); } } /** * .org.openfeed.MarketStatus marketStatus = 17; */ public Builder setMarketStatus(org.openfeed.MarketStatus value) { if (marketStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { marketStatusBuilder_.setMessage(value); } dataCase_ = 17; return this; } /** * .org.openfeed.MarketStatus marketStatus = 17; */ public Builder setMarketStatus( org.openfeed.MarketStatus.Builder builderForValue) { if (marketStatusBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { marketStatusBuilder_.setMessage(builderForValue.build()); } dataCase_ = 17; return this; } /** * .org.openfeed.MarketStatus marketStatus = 17; */ public Builder mergeMarketStatus(org.openfeed.MarketStatus value) { if (marketStatusBuilder_ == null) { if (dataCase_ == 17 && data_ != org.openfeed.MarketStatus.getDefaultInstance()) { data_ = org.openfeed.MarketStatus.newBuilder((org.openfeed.MarketStatus) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 17) { marketStatusBuilder_.mergeFrom(value); } else { marketStatusBuilder_.setMessage(value); } } dataCase_ = 17; return this; } /** * .org.openfeed.MarketStatus marketStatus = 17; */ public Builder clearMarketStatus() { if (marketStatusBuilder_ == null) { if (dataCase_ == 17) { dataCase_ = 0; data_ = null; onChanged(); } } else { if (dataCase_ == 17) { dataCase_ = 0; data_ = null; } marketStatusBuilder_.clear(); } return this; } /** * .org.openfeed.MarketStatus marketStatus = 17; */ public org.openfeed.MarketStatus.Builder getMarketStatusBuilder() { return getMarketStatusFieldBuilder().getBuilder(); } /** * .org.openfeed.MarketStatus marketStatus = 17; */ @java.lang.Override public org.openfeed.MarketStatusOrBuilder getMarketStatusOrBuilder() { if ((dataCase_ == 17) && (marketStatusBuilder_ != null)) { return marketStatusBuilder_.getMessageOrBuilder(); } else { if (dataCase_ == 17) { return (org.openfeed.MarketStatus) data_; } return org.openfeed.MarketStatus.getDefaultInstance(); } } /** * .org.openfeed.MarketStatus marketStatus = 17; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.MarketStatus, org.openfeed.MarketStatus.Builder, org.openfeed.MarketStatusOrBuilder> getMarketStatusFieldBuilder() { if (marketStatusBuilder_ == null) { if (!(dataCase_ == 17)) { data_ = org.openfeed.MarketStatus.getDefaultInstance(); } marketStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.MarketStatus, org.openfeed.MarketStatus.Builder, org.openfeed.MarketStatusOrBuilder>( (org.openfeed.MarketStatus) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 17; onChanged(); return marketStatusBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.openfeed.EODCommoditySummary, org.openfeed.EODCommoditySummary.Builder, org.openfeed.EODCommoditySummaryOrBuilder> eodCommoditySummaryBuilder_; /** * .org.openfeed.EODCommoditySummary eodCommoditySummary = 18; * @return Whether the eodCommoditySummary field is set. */ @java.lang.Override public boolean hasEodCommoditySummary() { return dataCase_ == 18; } /** * .org.openfeed.EODCommoditySummary eodCommoditySummary = 18; * @return The eodCommoditySummary. */ @java.lang.Override public org.openfeed.EODCommoditySummary getEodCommoditySummary() { if (eodCommoditySummaryBuilder_ == null) { if (dataCase_ == 18) { return (org.openfeed.EODCommoditySummary) data_; } return org.openfeed.EODCommoditySummary.getDefaultInstance(); } else { if (dataCase_ == 18) { return eodCommoditySummaryBuilder_.getMessage(); } return org.openfeed.EODCommoditySummary.getDefaultInstance(); } } /** * .org.openfeed.EODCommoditySummary eodCommoditySummary = 18; */ public Builder setEodCommoditySummary(org.openfeed.EODCommoditySummary value) { if (eodCommoditySummaryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { eodCommoditySummaryBuilder_.setMessage(value); } dataCase_ = 18; return this; } /** * .org.openfeed.EODCommoditySummary eodCommoditySummary = 18; */ public Builder setEodCommoditySummary( org.openfeed.EODCommoditySummary.Builder builderForValue) { if (eodCommoditySummaryBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { eodCommoditySummaryBuilder_.setMessage(builderForValue.build()); } dataCase_ = 18; return this; } /** * .org.openfeed.EODCommoditySummary eodCommoditySummary = 18; */ public Builder mergeEodCommoditySummary(org.openfeed.EODCommoditySummary value) { if (eodCommoditySummaryBuilder_ == null) { if (dataCase_ == 18 && data_ != org.openfeed.EODCommoditySummary.getDefaultInstance()) { data_ = org.openfeed.EODCommoditySummary.newBuilder((org.openfeed.EODCommoditySummary) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 18) { eodCommoditySummaryBuilder_.mergeFrom(value); } else { eodCommoditySummaryBuilder_.setMessage(value); } } dataCase_ = 18; return this; } /** * .org.openfeed.EODCommoditySummary eodCommoditySummary = 18; */ public Builder clearEodCommoditySummary() { if (eodCommoditySummaryBuilder_ == null) { if (dataCase_ == 18) { dataCase_ = 0; data_ = null; onChanged(); } } else { if (dataCase_ == 18) { dataCase_ = 0; data_ = null; } eodCommoditySummaryBuilder_.clear(); } return this; } /** * .org.openfeed.EODCommoditySummary eodCommoditySummary = 18; */ public org.openfeed.EODCommoditySummary.Builder getEodCommoditySummaryBuilder() { return getEodCommoditySummaryFieldBuilder().getBuilder(); } /** * .org.openfeed.EODCommoditySummary eodCommoditySummary = 18; */ @java.lang.Override public org.openfeed.EODCommoditySummaryOrBuilder getEodCommoditySummaryOrBuilder() { if ((dataCase_ == 18) && (eodCommoditySummaryBuilder_ != null)) { return eodCommoditySummaryBuilder_.getMessageOrBuilder(); } else { if (dataCase_ == 18) { return (org.openfeed.EODCommoditySummary) data_; } return org.openfeed.EODCommoditySummary.getDefaultInstance(); } } /** * .org.openfeed.EODCommoditySummary eodCommoditySummary = 18; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.EODCommoditySummary, org.openfeed.EODCommoditySummary.Builder, org.openfeed.EODCommoditySummaryOrBuilder> getEodCommoditySummaryFieldBuilder() { if (eodCommoditySummaryBuilder_ == null) { if (!(dataCase_ == 18)) { data_ = org.openfeed.EODCommoditySummary.getDefaultInstance(); } eodCommoditySummaryBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.EODCommoditySummary, org.openfeed.EODCommoditySummary.Builder, org.openfeed.EODCommoditySummaryOrBuilder>( (org.openfeed.EODCommoditySummary) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 18; onChanged(); return eodCommoditySummaryBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.openfeed.InstrumentAction, org.openfeed.InstrumentAction.Builder, org.openfeed.InstrumentActionOrBuilder> instrumentActionBuilder_; /** * .org.openfeed.InstrumentAction instrumentAction = 19; * @return Whether the instrumentAction field is set. */ @java.lang.Override public boolean hasInstrumentAction() { return dataCase_ == 19; } /** * .org.openfeed.InstrumentAction instrumentAction = 19; * @return The instrumentAction. */ @java.lang.Override public org.openfeed.InstrumentAction getInstrumentAction() { if (instrumentActionBuilder_ == null) { if (dataCase_ == 19) { return (org.openfeed.InstrumentAction) data_; } return org.openfeed.InstrumentAction.getDefaultInstance(); } else { if (dataCase_ == 19) { return instrumentActionBuilder_.getMessage(); } return org.openfeed.InstrumentAction.getDefaultInstance(); } } /** * .org.openfeed.InstrumentAction instrumentAction = 19; */ public Builder setInstrumentAction(org.openfeed.InstrumentAction value) { if (instrumentActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { instrumentActionBuilder_.setMessage(value); } dataCase_ = 19; return this; } /** * .org.openfeed.InstrumentAction instrumentAction = 19; */ public Builder setInstrumentAction( org.openfeed.InstrumentAction.Builder builderForValue) { if (instrumentActionBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { instrumentActionBuilder_.setMessage(builderForValue.build()); } dataCase_ = 19; return this; } /** * .org.openfeed.InstrumentAction instrumentAction = 19; */ public Builder mergeInstrumentAction(org.openfeed.InstrumentAction value) { if (instrumentActionBuilder_ == null) { if (dataCase_ == 19 && data_ != org.openfeed.InstrumentAction.getDefaultInstance()) { data_ = org.openfeed.InstrumentAction.newBuilder((org.openfeed.InstrumentAction) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 19) { instrumentActionBuilder_.mergeFrom(value); } else { instrumentActionBuilder_.setMessage(value); } } dataCase_ = 19; return this; } /** * .org.openfeed.InstrumentAction instrumentAction = 19; */ public Builder clearInstrumentAction() { if (instrumentActionBuilder_ == null) { if (dataCase_ == 19) { dataCase_ = 0; data_ = null; onChanged(); } } else { if (dataCase_ == 19) { dataCase_ = 0; data_ = null; } instrumentActionBuilder_.clear(); } return this; } /** * .org.openfeed.InstrumentAction instrumentAction = 19; */ public org.openfeed.InstrumentAction.Builder getInstrumentActionBuilder() { return getInstrumentActionFieldBuilder().getBuilder(); } /** * .org.openfeed.InstrumentAction instrumentAction = 19; */ @java.lang.Override public org.openfeed.InstrumentActionOrBuilder getInstrumentActionOrBuilder() { if ((dataCase_ == 19) && (instrumentActionBuilder_ != null)) { return instrumentActionBuilder_.getMessageOrBuilder(); } else { if (dataCase_ == 19) { return (org.openfeed.InstrumentAction) data_; } return org.openfeed.InstrumentAction.getDefaultInstance(); } } /** * .org.openfeed.InstrumentAction instrumentAction = 19; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.InstrumentAction, org.openfeed.InstrumentAction.Builder, org.openfeed.InstrumentActionOrBuilder> getInstrumentActionFieldBuilder() { if (instrumentActionBuilder_ == null) { if (!(dataCase_ == 19)) { data_ = org.openfeed.InstrumentAction.getDefaultInstance(); } instrumentActionBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.InstrumentAction, org.openfeed.InstrumentAction.Builder, org.openfeed.InstrumentActionOrBuilder>( (org.openfeed.InstrumentAction) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 19; onChanged(); return instrumentActionBuilder_; } // @@protoc_insertion_point(builder_scope:org.openfeed.OpenfeedMessage) } // @@protoc_insertion_point(class_scope:org.openfeed.OpenfeedMessage) private static final org.openfeed.OpenfeedMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openfeed.OpenfeedMessage(); } public static org.openfeed.OpenfeedMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OpenfeedMessage 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.OpenfeedMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy