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

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

/**
 * 
 * / Trades
 * 
* * Protobuf type {@code org.openfeed.Trades} */ public final class Trades extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.openfeed.Trades) TradesOrBuilder { 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= */ "", Trades.class.getName()); } // Use Trades.newBuilder() to construct. private Trades(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Trades() { trades_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_Trades_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_Trades_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.Trades.class, org.openfeed.Trades.Builder.class); } public interface EntryOrBuilder extends // @@protoc_insertion_point(interface_extends:org.openfeed.Trades.Entry) com.google.protobuf.MessageOrBuilder { /** * .org.openfeed.Trade trade = 1; * @return Whether the trade field is set. */ boolean hasTrade(); /** * .org.openfeed.Trade trade = 1; * @return The trade. */ org.openfeed.Trade getTrade(); /** * .org.openfeed.Trade trade = 1; */ org.openfeed.TradeOrBuilder getTradeOrBuilder(); /** * .org.openfeed.TradeCorrection tradeCorrection = 2; * @return Whether the tradeCorrection field is set. */ boolean hasTradeCorrection(); /** * .org.openfeed.TradeCorrection tradeCorrection = 2; * @return The tradeCorrection. */ org.openfeed.TradeCorrection getTradeCorrection(); /** * .org.openfeed.TradeCorrection tradeCorrection = 2; */ org.openfeed.TradeCorrectionOrBuilder getTradeCorrectionOrBuilder(); /** * .org.openfeed.TradeCancel tradeCancel = 3; * @return Whether the tradeCancel field is set. */ boolean hasTradeCancel(); /** * .org.openfeed.TradeCancel tradeCancel = 3; * @return The tradeCancel. */ org.openfeed.TradeCancel getTradeCancel(); /** * .org.openfeed.TradeCancel tradeCancel = 3; */ org.openfeed.TradeCancelOrBuilder getTradeCancelOrBuilder(); org.openfeed.Trades.Entry.DataCase getDataCase(); } /** * Protobuf type {@code org.openfeed.Trades.Entry} */ public static final class Entry extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.openfeed.Trades.Entry) EntryOrBuilder { 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= */ "", Entry.class.getName()); } // Use Entry.newBuilder() to construct. private Entry(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Entry() { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_Trades_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_Trades_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.Trades.Entry.class, org.openfeed.Trades.Entry.Builder.class); } 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 { TRADE(1), TRADECORRECTION(2), TRADECANCEL(3), 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 1: return TRADE; case 2: return TRADECORRECTION; case 3: return TRADECANCEL; 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 TRADE_FIELD_NUMBER = 1; /** * .org.openfeed.Trade trade = 1; * @return Whether the trade field is set. */ @java.lang.Override public boolean hasTrade() { return dataCase_ == 1; } /** * .org.openfeed.Trade trade = 1; * @return The trade. */ @java.lang.Override public org.openfeed.Trade getTrade() { if (dataCase_ == 1) { return (org.openfeed.Trade) data_; } return org.openfeed.Trade.getDefaultInstance(); } /** * .org.openfeed.Trade trade = 1; */ @java.lang.Override public org.openfeed.TradeOrBuilder getTradeOrBuilder() { if (dataCase_ == 1) { return (org.openfeed.Trade) data_; } return org.openfeed.Trade.getDefaultInstance(); } public static final int TRADECORRECTION_FIELD_NUMBER = 2; /** * .org.openfeed.TradeCorrection tradeCorrection = 2; * @return Whether the tradeCorrection field is set. */ @java.lang.Override public boolean hasTradeCorrection() { return dataCase_ == 2; } /** * .org.openfeed.TradeCorrection tradeCorrection = 2; * @return The tradeCorrection. */ @java.lang.Override public org.openfeed.TradeCorrection getTradeCorrection() { if (dataCase_ == 2) { return (org.openfeed.TradeCorrection) data_; } return org.openfeed.TradeCorrection.getDefaultInstance(); } /** * .org.openfeed.TradeCorrection tradeCorrection = 2; */ @java.lang.Override public org.openfeed.TradeCorrectionOrBuilder getTradeCorrectionOrBuilder() { if (dataCase_ == 2) { return (org.openfeed.TradeCorrection) data_; } return org.openfeed.TradeCorrection.getDefaultInstance(); } public static final int TRADECANCEL_FIELD_NUMBER = 3; /** * .org.openfeed.TradeCancel tradeCancel = 3; * @return Whether the tradeCancel field is set. */ @java.lang.Override public boolean hasTradeCancel() { return dataCase_ == 3; } /** * .org.openfeed.TradeCancel tradeCancel = 3; * @return The tradeCancel. */ @java.lang.Override public org.openfeed.TradeCancel getTradeCancel() { if (dataCase_ == 3) { return (org.openfeed.TradeCancel) data_; } return org.openfeed.TradeCancel.getDefaultInstance(); } /** * .org.openfeed.TradeCancel tradeCancel = 3; */ @java.lang.Override public org.openfeed.TradeCancelOrBuilder getTradeCancelOrBuilder() { if (dataCase_ == 3) { return (org.openfeed.TradeCancel) data_; } return org.openfeed.TradeCancel.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 (dataCase_ == 1) { output.writeMessage(1, (org.openfeed.Trade) data_); } if (dataCase_ == 2) { output.writeMessage(2, (org.openfeed.TradeCorrection) data_); } if (dataCase_ == 3) { output.writeMessage(3, (org.openfeed.TradeCancel) data_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (dataCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (org.openfeed.Trade) data_); } if (dataCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.openfeed.TradeCorrection) data_); } if (dataCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (org.openfeed.TradeCancel) 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.Trades.Entry)) { return super.equals(obj); } org.openfeed.Trades.Entry other = (org.openfeed.Trades.Entry) obj; if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 1: if (!getTrade() .equals(other.getTrade())) return false; break; case 2: if (!getTradeCorrection() .equals(other.getTradeCorrection())) return false; break; case 3: if (!getTradeCancel() .equals(other.getTradeCancel())) 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(); switch (dataCase_) { case 1: hash = (37 * hash) + TRADE_FIELD_NUMBER; hash = (53 * hash) + getTrade().hashCode(); break; case 2: hash = (37 * hash) + TRADECORRECTION_FIELD_NUMBER; hash = (53 * hash) + getTradeCorrection().hashCode(); break; case 3: hash = (37 * hash) + TRADECANCEL_FIELD_NUMBER; hash = (53 * hash) + getTradeCancel().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.openfeed.Trades.Entry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.Trades.Entry parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.Trades.Entry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.Trades.Entry 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.Trades.Entry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.Trades.Entry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.Trades.Entry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.Trades.Entry 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.Trades.Entry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.openfeed.Trades.Entry 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.Trades.Entry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.Trades.Entry 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.Trades.Entry 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; } /** * Protobuf type {@code org.openfeed.Trades.Entry} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.openfeed.Trades.Entry) org.openfeed.Trades.EntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_Trades_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_Trades_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.Trades.Entry.class, org.openfeed.Trades.Entry.Builder.class); } // Construct using org.openfeed.Trades.Entry.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (tradeBuilder_ != null) { tradeBuilder_.clear(); } if (tradeCorrectionBuilder_ != null) { tradeCorrectionBuilder_.clear(); } if (tradeCancelBuilder_ != null) { tradeCancelBuilder_.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_Trades_Entry_descriptor; } @java.lang.Override public org.openfeed.Trades.Entry getDefaultInstanceForType() { return org.openfeed.Trades.Entry.getDefaultInstance(); } @java.lang.Override public org.openfeed.Trades.Entry build() { org.openfeed.Trades.Entry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openfeed.Trades.Entry buildPartial() { org.openfeed.Trades.Entry result = new org.openfeed.Trades.Entry(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(org.openfeed.Trades.Entry result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(org.openfeed.Trades.Entry result) { result.dataCase_ = dataCase_; result.data_ = this.data_; if (dataCase_ == 1 && tradeBuilder_ != null) { result.data_ = tradeBuilder_.build(); } if (dataCase_ == 2 && tradeCorrectionBuilder_ != null) { result.data_ = tradeCorrectionBuilder_.build(); } if (dataCase_ == 3 && tradeCancelBuilder_ != null) { result.data_ = tradeCancelBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openfeed.Trades.Entry) { return mergeFrom((org.openfeed.Trades.Entry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openfeed.Trades.Entry other) { if (other == org.openfeed.Trades.Entry.getDefaultInstance()) return this; switch (other.getDataCase()) { case TRADE: { mergeTrade(other.getTrade()); break; } case TRADECORRECTION: { mergeTradeCorrection(other.getTradeCorrection()); break; } case TRADECANCEL: { mergeTradeCancel(other.getTradeCancel()); 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 10: { input.readMessage( getTradeFieldBuilder().getBuilder(), extensionRegistry); dataCase_ = 1; break; } // case 10 case 18: { input.readMessage( getTradeCorrectionFieldBuilder().getBuilder(), extensionRegistry); dataCase_ = 2; break; } // case 18 case 26: { input.readMessage( getTradeCancelFieldBuilder().getBuilder(), extensionRegistry); dataCase_ = 3; break; } // case 26 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 com.google.protobuf.SingleFieldBuilder< org.openfeed.Trade, org.openfeed.Trade.Builder, org.openfeed.TradeOrBuilder> tradeBuilder_; /** * .org.openfeed.Trade trade = 1; * @return Whether the trade field is set. */ @java.lang.Override public boolean hasTrade() { return dataCase_ == 1; } /** * .org.openfeed.Trade trade = 1; * @return The trade. */ @java.lang.Override public org.openfeed.Trade getTrade() { if (tradeBuilder_ == null) { if (dataCase_ == 1) { return (org.openfeed.Trade) data_; } return org.openfeed.Trade.getDefaultInstance(); } else { if (dataCase_ == 1) { return tradeBuilder_.getMessage(); } return org.openfeed.Trade.getDefaultInstance(); } } /** * .org.openfeed.Trade trade = 1; */ public Builder setTrade(org.openfeed.Trade value) { if (tradeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { tradeBuilder_.setMessage(value); } dataCase_ = 1; return this; } /** * .org.openfeed.Trade trade = 1; */ public Builder setTrade( org.openfeed.Trade.Builder builderForValue) { if (tradeBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { tradeBuilder_.setMessage(builderForValue.build()); } dataCase_ = 1; return this; } /** * .org.openfeed.Trade trade = 1; */ public Builder mergeTrade(org.openfeed.Trade value) { if (tradeBuilder_ == null) { if (dataCase_ == 1 && data_ != org.openfeed.Trade.getDefaultInstance()) { data_ = org.openfeed.Trade.newBuilder((org.openfeed.Trade) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 1) { tradeBuilder_.mergeFrom(value); } else { tradeBuilder_.setMessage(value); } } dataCase_ = 1; return this; } /** * .org.openfeed.Trade trade = 1; */ public Builder clearTrade() { if (tradeBuilder_ == null) { if (dataCase_ == 1) { dataCase_ = 0; data_ = null; onChanged(); } } else { if (dataCase_ == 1) { dataCase_ = 0; data_ = null; } tradeBuilder_.clear(); } return this; } /** * .org.openfeed.Trade trade = 1; */ public org.openfeed.Trade.Builder getTradeBuilder() { return getTradeFieldBuilder().getBuilder(); } /** * .org.openfeed.Trade trade = 1; */ @java.lang.Override public org.openfeed.TradeOrBuilder getTradeOrBuilder() { if ((dataCase_ == 1) && (tradeBuilder_ != null)) { return tradeBuilder_.getMessageOrBuilder(); } else { if (dataCase_ == 1) { return (org.openfeed.Trade) data_; } return org.openfeed.Trade.getDefaultInstance(); } } /** * .org.openfeed.Trade trade = 1; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.Trade, org.openfeed.Trade.Builder, org.openfeed.TradeOrBuilder> getTradeFieldBuilder() { if (tradeBuilder_ == null) { if (!(dataCase_ == 1)) { data_ = org.openfeed.Trade.getDefaultInstance(); } tradeBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.Trade, org.openfeed.Trade.Builder, org.openfeed.TradeOrBuilder>( (org.openfeed.Trade) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 1; onChanged(); return tradeBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.openfeed.TradeCorrection, org.openfeed.TradeCorrection.Builder, org.openfeed.TradeCorrectionOrBuilder> tradeCorrectionBuilder_; /** * .org.openfeed.TradeCorrection tradeCorrection = 2; * @return Whether the tradeCorrection field is set. */ @java.lang.Override public boolean hasTradeCorrection() { return dataCase_ == 2; } /** * .org.openfeed.TradeCorrection tradeCorrection = 2; * @return The tradeCorrection. */ @java.lang.Override public org.openfeed.TradeCorrection getTradeCorrection() { if (tradeCorrectionBuilder_ == null) { if (dataCase_ == 2) { return (org.openfeed.TradeCorrection) data_; } return org.openfeed.TradeCorrection.getDefaultInstance(); } else { if (dataCase_ == 2) { return tradeCorrectionBuilder_.getMessage(); } return org.openfeed.TradeCorrection.getDefaultInstance(); } } /** * .org.openfeed.TradeCorrection tradeCorrection = 2; */ public Builder setTradeCorrection(org.openfeed.TradeCorrection value) { if (tradeCorrectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { tradeCorrectionBuilder_.setMessage(value); } dataCase_ = 2; return this; } /** * .org.openfeed.TradeCorrection tradeCorrection = 2; */ public Builder setTradeCorrection( org.openfeed.TradeCorrection.Builder builderForValue) { if (tradeCorrectionBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { tradeCorrectionBuilder_.setMessage(builderForValue.build()); } dataCase_ = 2; return this; } /** * .org.openfeed.TradeCorrection tradeCorrection = 2; */ public Builder mergeTradeCorrection(org.openfeed.TradeCorrection value) { if (tradeCorrectionBuilder_ == null) { if (dataCase_ == 2 && data_ != org.openfeed.TradeCorrection.getDefaultInstance()) { data_ = org.openfeed.TradeCorrection.newBuilder((org.openfeed.TradeCorrection) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 2) { tradeCorrectionBuilder_.mergeFrom(value); } else { tradeCorrectionBuilder_.setMessage(value); } } dataCase_ = 2; return this; } /** * .org.openfeed.TradeCorrection tradeCorrection = 2; */ public Builder clearTradeCorrection() { if (tradeCorrectionBuilder_ == null) { if (dataCase_ == 2) { dataCase_ = 0; data_ = null; onChanged(); } } else { if (dataCase_ == 2) { dataCase_ = 0; data_ = null; } tradeCorrectionBuilder_.clear(); } return this; } /** * .org.openfeed.TradeCorrection tradeCorrection = 2; */ public org.openfeed.TradeCorrection.Builder getTradeCorrectionBuilder() { return getTradeCorrectionFieldBuilder().getBuilder(); } /** * .org.openfeed.TradeCorrection tradeCorrection = 2; */ @java.lang.Override public org.openfeed.TradeCorrectionOrBuilder getTradeCorrectionOrBuilder() { if ((dataCase_ == 2) && (tradeCorrectionBuilder_ != null)) { return tradeCorrectionBuilder_.getMessageOrBuilder(); } else { if (dataCase_ == 2) { return (org.openfeed.TradeCorrection) data_; } return org.openfeed.TradeCorrection.getDefaultInstance(); } } /** * .org.openfeed.TradeCorrection tradeCorrection = 2; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.TradeCorrection, org.openfeed.TradeCorrection.Builder, org.openfeed.TradeCorrectionOrBuilder> getTradeCorrectionFieldBuilder() { if (tradeCorrectionBuilder_ == null) { if (!(dataCase_ == 2)) { data_ = org.openfeed.TradeCorrection.getDefaultInstance(); } tradeCorrectionBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.TradeCorrection, org.openfeed.TradeCorrection.Builder, org.openfeed.TradeCorrectionOrBuilder>( (org.openfeed.TradeCorrection) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 2; onChanged(); return tradeCorrectionBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.openfeed.TradeCancel, org.openfeed.TradeCancel.Builder, org.openfeed.TradeCancelOrBuilder> tradeCancelBuilder_; /** * .org.openfeed.TradeCancel tradeCancel = 3; * @return Whether the tradeCancel field is set. */ @java.lang.Override public boolean hasTradeCancel() { return dataCase_ == 3; } /** * .org.openfeed.TradeCancel tradeCancel = 3; * @return The tradeCancel. */ @java.lang.Override public org.openfeed.TradeCancel getTradeCancel() { if (tradeCancelBuilder_ == null) { if (dataCase_ == 3) { return (org.openfeed.TradeCancel) data_; } return org.openfeed.TradeCancel.getDefaultInstance(); } else { if (dataCase_ == 3) { return tradeCancelBuilder_.getMessage(); } return org.openfeed.TradeCancel.getDefaultInstance(); } } /** * .org.openfeed.TradeCancel tradeCancel = 3; */ public Builder setTradeCancel(org.openfeed.TradeCancel value) { if (tradeCancelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { tradeCancelBuilder_.setMessage(value); } dataCase_ = 3; return this; } /** * .org.openfeed.TradeCancel tradeCancel = 3; */ public Builder setTradeCancel( org.openfeed.TradeCancel.Builder builderForValue) { if (tradeCancelBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { tradeCancelBuilder_.setMessage(builderForValue.build()); } dataCase_ = 3; return this; } /** * .org.openfeed.TradeCancel tradeCancel = 3; */ public Builder mergeTradeCancel(org.openfeed.TradeCancel value) { if (tradeCancelBuilder_ == null) { if (dataCase_ == 3 && data_ != org.openfeed.TradeCancel.getDefaultInstance()) { data_ = org.openfeed.TradeCancel.newBuilder((org.openfeed.TradeCancel) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 3) { tradeCancelBuilder_.mergeFrom(value); } else { tradeCancelBuilder_.setMessage(value); } } dataCase_ = 3; return this; } /** * .org.openfeed.TradeCancel tradeCancel = 3; */ public Builder clearTradeCancel() { if (tradeCancelBuilder_ == null) { if (dataCase_ == 3) { dataCase_ = 0; data_ = null; onChanged(); } } else { if (dataCase_ == 3) { dataCase_ = 0; data_ = null; } tradeCancelBuilder_.clear(); } return this; } /** * .org.openfeed.TradeCancel tradeCancel = 3; */ public org.openfeed.TradeCancel.Builder getTradeCancelBuilder() { return getTradeCancelFieldBuilder().getBuilder(); } /** * .org.openfeed.TradeCancel tradeCancel = 3; */ @java.lang.Override public org.openfeed.TradeCancelOrBuilder getTradeCancelOrBuilder() { if ((dataCase_ == 3) && (tradeCancelBuilder_ != null)) { return tradeCancelBuilder_.getMessageOrBuilder(); } else { if (dataCase_ == 3) { return (org.openfeed.TradeCancel) data_; } return org.openfeed.TradeCancel.getDefaultInstance(); } } /** * .org.openfeed.TradeCancel tradeCancel = 3; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.TradeCancel, org.openfeed.TradeCancel.Builder, org.openfeed.TradeCancelOrBuilder> getTradeCancelFieldBuilder() { if (tradeCancelBuilder_ == null) { if (!(dataCase_ == 3)) { data_ = org.openfeed.TradeCancel.getDefaultInstance(); } tradeCancelBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.TradeCancel, org.openfeed.TradeCancel.Builder, org.openfeed.TradeCancelOrBuilder>( (org.openfeed.TradeCancel) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 3; onChanged(); return tradeCancelBuilder_; } // @@protoc_insertion_point(builder_scope:org.openfeed.Trades.Entry) } // @@protoc_insertion_point(class_scope:org.openfeed.Trades.Entry) private static final org.openfeed.Trades.Entry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openfeed.Trades.Entry(); } public static org.openfeed.Trades.Entry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Entry 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.Trades.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int TRADES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List trades_; /** * repeated .org.openfeed.Trades.Entry trades = 1; */ @java.lang.Override public java.util.List getTradesList() { return trades_; } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ @java.lang.Override public java.util.List getTradesOrBuilderList() { return trades_; } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ @java.lang.Override public int getTradesCount() { return trades_.size(); } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ @java.lang.Override public org.openfeed.Trades.Entry getTrades(int index) { return trades_.get(index); } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ @java.lang.Override public org.openfeed.Trades.EntryOrBuilder getTradesOrBuilder( int index) { return trades_.get(index); } 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 { for (int i = 0; i < trades_.size(); i++) { output.writeMessage(1, trades_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < trades_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, trades_.get(i)); } 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.Trades)) { return super.equals(obj); } org.openfeed.Trades other = (org.openfeed.Trades) obj; if (!getTradesList() .equals(other.getTradesList())) 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(); if (getTradesCount() > 0) { hash = (37 * hash) + TRADES_FIELD_NUMBER; hash = (53 * hash) + getTradesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.openfeed.Trades parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.Trades parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.Trades parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.Trades 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.Trades parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.Trades parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.Trades parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.Trades 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.Trades parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.openfeed.Trades 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.Trades parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.Trades 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.Trades 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; } /** *
   * / Trades
   * 
* * Protobuf type {@code org.openfeed.Trades} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.openfeed.Trades) org.openfeed.TradesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_Trades_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_Trades_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.Trades.class, org.openfeed.Trades.Builder.class); } // Construct using org.openfeed.Trades.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (tradesBuilder_ == null) { trades_ = java.util.Collections.emptyList(); } else { trades_ = null; tradesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openfeed.Openfeed.internal_static_org_openfeed_Trades_descriptor; } @java.lang.Override public org.openfeed.Trades getDefaultInstanceForType() { return org.openfeed.Trades.getDefaultInstance(); } @java.lang.Override public org.openfeed.Trades build() { org.openfeed.Trades result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openfeed.Trades buildPartial() { org.openfeed.Trades result = new org.openfeed.Trades(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.openfeed.Trades result) { if (tradesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { trades_ = java.util.Collections.unmodifiableList(trades_); bitField0_ = (bitField0_ & ~0x00000001); } result.trades_ = trades_; } else { result.trades_ = tradesBuilder_.build(); } } private void buildPartial0(org.openfeed.Trades result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openfeed.Trades) { return mergeFrom((org.openfeed.Trades)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openfeed.Trades other) { if (other == org.openfeed.Trades.getDefaultInstance()) return this; if (tradesBuilder_ == null) { if (!other.trades_.isEmpty()) { if (trades_.isEmpty()) { trades_ = other.trades_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTradesIsMutable(); trades_.addAll(other.trades_); } onChanged(); } } else { if (!other.trades_.isEmpty()) { if (tradesBuilder_.isEmpty()) { tradesBuilder_.dispose(); tradesBuilder_ = null; trades_ = other.trades_; bitField0_ = (bitField0_ & ~0x00000001); tradesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTradesFieldBuilder() : null; } else { tradesBuilder_.addAllMessages(other.trades_); } } } 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 10: { org.openfeed.Trades.Entry m = input.readMessage( org.openfeed.Trades.Entry.parser(), extensionRegistry); if (tradesBuilder_ == null) { ensureTradesIsMutable(); trades_.add(m); } else { tradesBuilder_.addMessage(m); } break; } // case 10 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 java.util.List trades_ = java.util.Collections.emptyList(); private void ensureTradesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { trades_ = new java.util.ArrayList(trades_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.openfeed.Trades.Entry, org.openfeed.Trades.Entry.Builder, org.openfeed.Trades.EntryOrBuilder> tradesBuilder_; /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public java.util.List getTradesList() { if (tradesBuilder_ == null) { return java.util.Collections.unmodifiableList(trades_); } else { return tradesBuilder_.getMessageList(); } } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public int getTradesCount() { if (tradesBuilder_ == null) { return trades_.size(); } else { return tradesBuilder_.getCount(); } } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public org.openfeed.Trades.Entry getTrades(int index) { if (tradesBuilder_ == null) { return trades_.get(index); } else { return tradesBuilder_.getMessage(index); } } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public Builder setTrades( int index, org.openfeed.Trades.Entry value) { if (tradesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTradesIsMutable(); trades_.set(index, value); onChanged(); } else { tradesBuilder_.setMessage(index, value); } return this; } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public Builder setTrades( int index, org.openfeed.Trades.Entry.Builder builderForValue) { if (tradesBuilder_ == null) { ensureTradesIsMutable(); trades_.set(index, builderForValue.build()); onChanged(); } else { tradesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public Builder addTrades(org.openfeed.Trades.Entry value) { if (tradesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTradesIsMutable(); trades_.add(value); onChanged(); } else { tradesBuilder_.addMessage(value); } return this; } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public Builder addTrades( int index, org.openfeed.Trades.Entry value) { if (tradesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTradesIsMutable(); trades_.add(index, value); onChanged(); } else { tradesBuilder_.addMessage(index, value); } return this; } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public Builder addTrades( org.openfeed.Trades.Entry.Builder builderForValue) { if (tradesBuilder_ == null) { ensureTradesIsMutable(); trades_.add(builderForValue.build()); onChanged(); } else { tradesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public Builder addTrades( int index, org.openfeed.Trades.Entry.Builder builderForValue) { if (tradesBuilder_ == null) { ensureTradesIsMutable(); trades_.add(index, builderForValue.build()); onChanged(); } else { tradesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public Builder addAllTrades( java.lang.Iterable values) { if (tradesBuilder_ == null) { ensureTradesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, trades_); onChanged(); } else { tradesBuilder_.addAllMessages(values); } return this; } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public Builder clearTrades() { if (tradesBuilder_ == null) { trades_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { tradesBuilder_.clear(); } return this; } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public Builder removeTrades(int index) { if (tradesBuilder_ == null) { ensureTradesIsMutable(); trades_.remove(index); onChanged(); } else { tradesBuilder_.remove(index); } return this; } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public org.openfeed.Trades.Entry.Builder getTradesBuilder( int index) { return getTradesFieldBuilder().getBuilder(index); } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public org.openfeed.Trades.EntryOrBuilder getTradesOrBuilder( int index) { if (tradesBuilder_ == null) { return trades_.get(index); } else { return tradesBuilder_.getMessageOrBuilder(index); } } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public java.util.List getTradesOrBuilderList() { if (tradesBuilder_ != null) { return tradesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(trades_); } } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public org.openfeed.Trades.Entry.Builder addTradesBuilder() { return getTradesFieldBuilder().addBuilder( org.openfeed.Trades.Entry.getDefaultInstance()); } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public org.openfeed.Trades.Entry.Builder addTradesBuilder( int index) { return getTradesFieldBuilder().addBuilder( index, org.openfeed.Trades.Entry.getDefaultInstance()); } /** * repeated .org.openfeed.Trades.Entry trades = 1; */ public java.util.List getTradesBuilderList() { return getTradesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.openfeed.Trades.Entry, org.openfeed.Trades.Entry.Builder, org.openfeed.Trades.EntryOrBuilder> getTradesFieldBuilder() { if (tradesBuilder_ == null) { tradesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.openfeed.Trades.Entry, org.openfeed.Trades.Entry.Builder, org.openfeed.Trades.EntryOrBuilder>( trades_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); trades_ = null; } return tradesBuilder_; } // @@protoc_insertion_point(builder_scope:org.openfeed.Trades) } // @@protoc_insertion_point(class_scope:org.openfeed.Trades) private static final org.openfeed.Trades DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openfeed.Trades(); } public static org.openfeed.Trades getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Trades 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.Trades getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy