org.openfeed.OpenfeedGatewayMessage Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: openfeed_api.proto
// Protobuf Java Version: 4.28.3
package org.openfeed;
/**
*
* / Openfeed Server Response
*
*
* Protobuf type {@code org.openfeed.OpenfeedGatewayMessage}
*/
public final class OpenfeedGatewayMessage extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:org.openfeed.OpenfeedGatewayMessage)
OpenfeedGatewayMessageOrBuilder {
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= */ "",
OpenfeedGatewayMessage.class.getName());
}
// Use OpenfeedGatewayMessage.newBuilder() to construct.
private OpenfeedGatewayMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private OpenfeedGatewayMessage() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_OpenfeedGatewayMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_OpenfeedGatewayMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.OpenfeedGatewayMessage.class, org.openfeed.OpenfeedGatewayMessage.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 {
LOGINRESPONSE(1),
LOGOUTRESPONSE(2),
INSTRUMENTRESPONSE(3),
INSTRUMENTREFERENCERESPONSE(4),
SUBSCRIPTIONRESPONSE(5),
MARKETSTATUS(6),
HEARTBEAT(7),
INSTRUMENTDEFINITION(8),
MARKETSNAPSHOT(9),
MARKETUPDATE(10),
VOLUMEATPRICE(11),
OHLC(12),
EXCHANGERESPONSE(13),
INSTRUMENTACTION(14),
LISTSUBSCRIPTIONSRESPONSE(15),
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 LOGINRESPONSE;
case 2: return LOGOUTRESPONSE;
case 3: return INSTRUMENTRESPONSE;
case 4: return INSTRUMENTREFERENCERESPONSE;
case 5: return SUBSCRIPTIONRESPONSE;
case 6: return MARKETSTATUS;
case 7: return HEARTBEAT;
case 8: return INSTRUMENTDEFINITION;
case 9: return MARKETSNAPSHOT;
case 10: return MARKETUPDATE;
case 11: return VOLUMEATPRICE;
case 12: return OHLC;
case 13: return EXCHANGERESPONSE;
case 14: return INSTRUMENTACTION;
case 15: return LISTSUBSCRIPTIONSRESPONSE;
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 LOGINRESPONSE_FIELD_NUMBER = 1;
/**
* .org.openfeed.LoginResponse loginResponse = 1;
* @return Whether the loginResponse field is set.
*/
@java.lang.Override
public boolean hasLoginResponse() {
return dataCase_ == 1;
}
/**
* .org.openfeed.LoginResponse loginResponse = 1;
* @return The loginResponse.
*/
@java.lang.Override
public org.openfeed.LoginResponse getLoginResponse() {
if (dataCase_ == 1) {
return (org.openfeed.LoginResponse) data_;
}
return org.openfeed.LoginResponse.getDefaultInstance();
}
/**
* .org.openfeed.LoginResponse loginResponse = 1;
*/
@java.lang.Override
public org.openfeed.LoginResponseOrBuilder getLoginResponseOrBuilder() {
if (dataCase_ == 1) {
return (org.openfeed.LoginResponse) data_;
}
return org.openfeed.LoginResponse.getDefaultInstance();
}
public static final int LOGOUTRESPONSE_FIELD_NUMBER = 2;
/**
* .org.openfeed.LogoutResponse logoutResponse = 2;
* @return Whether the logoutResponse field is set.
*/
@java.lang.Override
public boolean hasLogoutResponse() {
return dataCase_ == 2;
}
/**
* .org.openfeed.LogoutResponse logoutResponse = 2;
* @return The logoutResponse.
*/
@java.lang.Override
public org.openfeed.LogoutResponse getLogoutResponse() {
if (dataCase_ == 2) {
return (org.openfeed.LogoutResponse) data_;
}
return org.openfeed.LogoutResponse.getDefaultInstance();
}
/**
* .org.openfeed.LogoutResponse logoutResponse = 2;
*/
@java.lang.Override
public org.openfeed.LogoutResponseOrBuilder getLogoutResponseOrBuilder() {
if (dataCase_ == 2) {
return (org.openfeed.LogoutResponse) data_;
}
return org.openfeed.LogoutResponse.getDefaultInstance();
}
public static final int INSTRUMENTRESPONSE_FIELD_NUMBER = 3;
/**
* .org.openfeed.InstrumentResponse instrumentResponse = 3;
* @return Whether the instrumentResponse field is set.
*/
@java.lang.Override
public boolean hasInstrumentResponse() {
return dataCase_ == 3;
}
/**
* .org.openfeed.InstrumentResponse instrumentResponse = 3;
* @return The instrumentResponse.
*/
@java.lang.Override
public org.openfeed.InstrumentResponse getInstrumentResponse() {
if (dataCase_ == 3) {
return (org.openfeed.InstrumentResponse) data_;
}
return org.openfeed.InstrumentResponse.getDefaultInstance();
}
/**
* .org.openfeed.InstrumentResponse instrumentResponse = 3;
*/
@java.lang.Override
public org.openfeed.InstrumentResponseOrBuilder getInstrumentResponseOrBuilder() {
if (dataCase_ == 3) {
return (org.openfeed.InstrumentResponse) data_;
}
return org.openfeed.InstrumentResponse.getDefaultInstance();
}
public static final int INSTRUMENTREFERENCERESPONSE_FIELD_NUMBER = 4;
/**
* .org.openfeed.InstrumentReferenceResponse instrumentReferenceResponse = 4;
* @return Whether the instrumentReferenceResponse field is set.
*/
@java.lang.Override
public boolean hasInstrumentReferenceResponse() {
return dataCase_ == 4;
}
/**
* .org.openfeed.InstrumentReferenceResponse instrumentReferenceResponse = 4;
* @return The instrumentReferenceResponse.
*/
@java.lang.Override
public org.openfeed.InstrumentReferenceResponse getInstrumentReferenceResponse() {
if (dataCase_ == 4) {
return (org.openfeed.InstrumentReferenceResponse) data_;
}
return org.openfeed.InstrumentReferenceResponse.getDefaultInstance();
}
/**
* .org.openfeed.InstrumentReferenceResponse instrumentReferenceResponse = 4;
*/
@java.lang.Override
public org.openfeed.InstrumentReferenceResponseOrBuilder getInstrumentReferenceResponseOrBuilder() {
if (dataCase_ == 4) {
return (org.openfeed.InstrumentReferenceResponse) data_;
}
return org.openfeed.InstrumentReferenceResponse.getDefaultInstance();
}
public static final int SUBSCRIPTIONRESPONSE_FIELD_NUMBER = 5;
/**
* .org.openfeed.SubscriptionResponse subscriptionResponse = 5;
* @return Whether the subscriptionResponse field is set.
*/
@java.lang.Override
public boolean hasSubscriptionResponse() {
return dataCase_ == 5;
}
/**
* .org.openfeed.SubscriptionResponse subscriptionResponse = 5;
* @return The subscriptionResponse.
*/
@java.lang.Override
public org.openfeed.SubscriptionResponse getSubscriptionResponse() {
if (dataCase_ == 5) {
return (org.openfeed.SubscriptionResponse) data_;
}
return org.openfeed.SubscriptionResponse.getDefaultInstance();
}
/**
* .org.openfeed.SubscriptionResponse subscriptionResponse = 5;
*/
@java.lang.Override
public org.openfeed.SubscriptionResponseOrBuilder getSubscriptionResponseOrBuilder() {
if (dataCase_ == 5) {
return (org.openfeed.SubscriptionResponse) data_;
}
return org.openfeed.SubscriptionResponse.getDefaultInstance();
}
public static final int MARKETSTATUS_FIELD_NUMBER = 6;
/**
* .org.openfeed.MarketStatus marketStatus = 6;
* @return Whether the marketStatus field is set.
*/
@java.lang.Override
public boolean hasMarketStatus() {
return dataCase_ == 6;
}
/**
* .org.openfeed.MarketStatus marketStatus = 6;
* @return The marketStatus.
*/
@java.lang.Override
public org.openfeed.MarketStatus getMarketStatus() {
if (dataCase_ == 6) {
return (org.openfeed.MarketStatus) data_;
}
return org.openfeed.MarketStatus.getDefaultInstance();
}
/**
* .org.openfeed.MarketStatus marketStatus = 6;
*/
@java.lang.Override
public org.openfeed.MarketStatusOrBuilder getMarketStatusOrBuilder() {
if (dataCase_ == 6) {
return (org.openfeed.MarketStatus) data_;
}
return org.openfeed.MarketStatus.getDefaultInstance();
}
public static final int HEARTBEAT_FIELD_NUMBER = 7;
/**
* .org.openfeed.HeartBeat heartBeat = 7;
* @return Whether the heartBeat field is set.
*/
@java.lang.Override
public boolean hasHeartBeat() {
return dataCase_ == 7;
}
/**
* .org.openfeed.HeartBeat heartBeat = 7;
* @return The heartBeat.
*/
@java.lang.Override
public org.openfeed.HeartBeat getHeartBeat() {
if (dataCase_ == 7) {
return (org.openfeed.HeartBeat) data_;
}
return org.openfeed.HeartBeat.getDefaultInstance();
}
/**
* .org.openfeed.HeartBeat heartBeat = 7;
*/
@java.lang.Override
public org.openfeed.HeartBeatOrBuilder getHeartBeatOrBuilder() {
if (dataCase_ == 7) {
return (org.openfeed.HeartBeat) data_;
}
return org.openfeed.HeartBeat.getDefaultInstance();
}
public static final int INSTRUMENTDEFINITION_FIELD_NUMBER = 8;
/**
* .org.openfeed.InstrumentDefinition instrumentDefinition = 8;
* @return Whether the instrumentDefinition field is set.
*/
@java.lang.Override
public boolean hasInstrumentDefinition() {
return dataCase_ == 8;
}
/**
* .org.openfeed.InstrumentDefinition instrumentDefinition = 8;
* @return The instrumentDefinition.
*/
@java.lang.Override
public org.openfeed.InstrumentDefinition getInstrumentDefinition() {
if (dataCase_ == 8) {
return (org.openfeed.InstrumentDefinition) data_;
}
return org.openfeed.InstrumentDefinition.getDefaultInstance();
}
/**
* .org.openfeed.InstrumentDefinition instrumentDefinition = 8;
*/
@java.lang.Override
public org.openfeed.InstrumentDefinitionOrBuilder getInstrumentDefinitionOrBuilder() {
if (dataCase_ == 8) {
return (org.openfeed.InstrumentDefinition) data_;
}
return org.openfeed.InstrumentDefinition.getDefaultInstance();
}
public static final int MARKETSNAPSHOT_FIELD_NUMBER = 9;
/**
* .org.openfeed.MarketSnapshot marketSnapshot = 9;
* @return Whether the marketSnapshot field is set.
*/
@java.lang.Override
public boolean hasMarketSnapshot() {
return dataCase_ == 9;
}
/**
* .org.openfeed.MarketSnapshot marketSnapshot = 9;
* @return The marketSnapshot.
*/
@java.lang.Override
public org.openfeed.MarketSnapshot getMarketSnapshot() {
if (dataCase_ == 9) {
return (org.openfeed.MarketSnapshot) data_;
}
return org.openfeed.MarketSnapshot.getDefaultInstance();
}
/**
* .org.openfeed.MarketSnapshot marketSnapshot = 9;
*/
@java.lang.Override
public org.openfeed.MarketSnapshotOrBuilder getMarketSnapshotOrBuilder() {
if (dataCase_ == 9) {
return (org.openfeed.MarketSnapshot) data_;
}
return org.openfeed.MarketSnapshot.getDefaultInstance();
}
public static final int MARKETUPDATE_FIELD_NUMBER = 10;
/**
* .org.openfeed.MarketUpdate marketUpdate = 10;
* @return Whether the marketUpdate field is set.
*/
@java.lang.Override
public boolean hasMarketUpdate() {
return dataCase_ == 10;
}
/**
* .org.openfeed.MarketUpdate marketUpdate = 10;
* @return The marketUpdate.
*/
@java.lang.Override
public org.openfeed.MarketUpdate getMarketUpdate() {
if (dataCase_ == 10) {
return (org.openfeed.MarketUpdate) data_;
}
return org.openfeed.MarketUpdate.getDefaultInstance();
}
/**
* .org.openfeed.MarketUpdate marketUpdate = 10;
*/
@java.lang.Override
public org.openfeed.MarketUpdateOrBuilder getMarketUpdateOrBuilder() {
if (dataCase_ == 10) {
return (org.openfeed.MarketUpdate) data_;
}
return org.openfeed.MarketUpdate.getDefaultInstance();
}
public static final int VOLUMEATPRICE_FIELD_NUMBER = 11;
/**
* .org.openfeed.VolumeAtPrice volumeAtPrice = 11;
* @return Whether the volumeAtPrice field is set.
*/
@java.lang.Override
public boolean hasVolumeAtPrice() {
return dataCase_ == 11;
}
/**
* .org.openfeed.VolumeAtPrice volumeAtPrice = 11;
* @return The volumeAtPrice.
*/
@java.lang.Override
public org.openfeed.VolumeAtPrice getVolumeAtPrice() {
if (dataCase_ == 11) {
return (org.openfeed.VolumeAtPrice) data_;
}
return org.openfeed.VolumeAtPrice.getDefaultInstance();
}
/**
* .org.openfeed.VolumeAtPrice volumeAtPrice = 11;
*/
@java.lang.Override
public org.openfeed.VolumeAtPriceOrBuilder getVolumeAtPriceOrBuilder() {
if (dataCase_ == 11) {
return (org.openfeed.VolumeAtPrice) data_;
}
return org.openfeed.VolumeAtPrice.getDefaultInstance();
}
public static final int OHLC_FIELD_NUMBER = 12;
/**
* .org.openfeed.Ohlc ohlc = 12;
* @return Whether the ohlc field is set.
*/
@java.lang.Override
public boolean hasOhlc() {
return dataCase_ == 12;
}
/**
* .org.openfeed.Ohlc ohlc = 12;
* @return The ohlc.
*/
@java.lang.Override
public org.openfeed.Ohlc getOhlc() {
if (dataCase_ == 12) {
return (org.openfeed.Ohlc) data_;
}
return org.openfeed.Ohlc.getDefaultInstance();
}
/**
* .org.openfeed.Ohlc ohlc = 12;
*/
@java.lang.Override
public org.openfeed.OhlcOrBuilder getOhlcOrBuilder() {
if (dataCase_ == 12) {
return (org.openfeed.Ohlc) data_;
}
return org.openfeed.Ohlc.getDefaultInstance();
}
public static final int EXCHANGERESPONSE_FIELD_NUMBER = 13;
/**
* .org.openfeed.ExchangeResponse exchangeResponse = 13;
* @return Whether the exchangeResponse field is set.
*/
@java.lang.Override
public boolean hasExchangeResponse() {
return dataCase_ == 13;
}
/**
* .org.openfeed.ExchangeResponse exchangeResponse = 13;
* @return The exchangeResponse.
*/
@java.lang.Override
public org.openfeed.ExchangeResponse getExchangeResponse() {
if (dataCase_ == 13) {
return (org.openfeed.ExchangeResponse) data_;
}
return org.openfeed.ExchangeResponse.getDefaultInstance();
}
/**
* .org.openfeed.ExchangeResponse exchangeResponse = 13;
*/
@java.lang.Override
public org.openfeed.ExchangeResponseOrBuilder getExchangeResponseOrBuilder() {
if (dataCase_ == 13) {
return (org.openfeed.ExchangeResponse) data_;
}
return org.openfeed.ExchangeResponse.getDefaultInstance();
}
public static final int INSTRUMENTACTION_FIELD_NUMBER = 14;
/**
* .org.openfeed.InstrumentAction instrumentAction = 14;
* @return Whether the instrumentAction field is set.
*/
@java.lang.Override
public boolean hasInstrumentAction() {
return dataCase_ == 14;
}
/**
* .org.openfeed.InstrumentAction instrumentAction = 14;
* @return The instrumentAction.
*/
@java.lang.Override
public org.openfeed.InstrumentAction getInstrumentAction() {
if (dataCase_ == 14) {
return (org.openfeed.InstrumentAction) data_;
}
return org.openfeed.InstrumentAction.getDefaultInstance();
}
/**
* .org.openfeed.InstrumentAction instrumentAction = 14;
*/
@java.lang.Override
public org.openfeed.InstrumentActionOrBuilder getInstrumentActionOrBuilder() {
if (dataCase_ == 14) {
return (org.openfeed.InstrumentAction) data_;
}
return org.openfeed.InstrumentAction.getDefaultInstance();
}
public static final int LISTSUBSCRIPTIONSRESPONSE_FIELD_NUMBER = 15;
/**
* .org.openfeed.ListSubscriptionsResponse listSubscriptionsResponse = 15;
* @return Whether the listSubscriptionsResponse field is set.
*/
@java.lang.Override
public boolean hasListSubscriptionsResponse() {
return dataCase_ == 15;
}
/**
* .org.openfeed.ListSubscriptionsResponse listSubscriptionsResponse = 15;
* @return The listSubscriptionsResponse.
*/
@java.lang.Override
public org.openfeed.ListSubscriptionsResponse getListSubscriptionsResponse() {
if (dataCase_ == 15) {
return (org.openfeed.ListSubscriptionsResponse) data_;
}
return org.openfeed.ListSubscriptionsResponse.getDefaultInstance();
}
/**
* .org.openfeed.ListSubscriptionsResponse listSubscriptionsResponse = 15;
*/
@java.lang.Override
public org.openfeed.ListSubscriptionsResponseOrBuilder getListSubscriptionsResponseOrBuilder() {
if (dataCase_ == 15) {
return (org.openfeed.ListSubscriptionsResponse) data_;
}
return org.openfeed.ListSubscriptionsResponse.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.LoginResponse) data_);
}
if (dataCase_ == 2) {
output.writeMessage(2, (org.openfeed.LogoutResponse) data_);
}
if (dataCase_ == 3) {
output.writeMessage(3, (org.openfeed.InstrumentResponse) data_);
}
if (dataCase_ == 4) {
output.writeMessage(4, (org.openfeed.InstrumentReferenceResponse) data_);
}
if (dataCase_ == 5) {
output.writeMessage(5, (org.openfeed.SubscriptionResponse) data_);
}
if (dataCase_ == 6) {
output.writeMessage(6, (org.openfeed.MarketStatus) data_);
}
if (dataCase_ == 7) {
output.writeMessage(7, (org.openfeed.HeartBeat) data_);
}
if (dataCase_ == 8) {
output.writeMessage(8, (org.openfeed.InstrumentDefinition) data_);
}
if (dataCase_ == 9) {
output.writeMessage(9, (org.openfeed.MarketSnapshot) data_);
}
if (dataCase_ == 10) {
output.writeMessage(10, (org.openfeed.MarketUpdate) data_);
}
if (dataCase_ == 11) {
output.writeMessage(11, (org.openfeed.VolumeAtPrice) data_);
}
if (dataCase_ == 12) {
output.writeMessage(12, (org.openfeed.Ohlc) data_);
}
if (dataCase_ == 13) {
output.writeMessage(13, (org.openfeed.ExchangeResponse) data_);
}
if (dataCase_ == 14) {
output.writeMessage(14, (org.openfeed.InstrumentAction) data_);
}
if (dataCase_ == 15) {
output.writeMessage(15, (org.openfeed.ListSubscriptionsResponse) 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.LoginResponse) data_);
}
if (dataCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (org.openfeed.LogoutResponse) data_);
}
if (dataCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (org.openfeed.InstrumentResponse) data_);
}
if (dataCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (org.openfeed.InstrumentReferenceResponse) data_);
}
if (dataCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (org.openfeed.SubscriptionResponse) data_);
}
if (dataCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (org.openfeed.MarketStatus) data_);
}
if (dataCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (org.openfeed.HeartBeat) data_);
}
if (dataCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (org.openfeed.InstrumentDefinition) data_);
}
if (dataCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (org.openfeed.MarketSnapshot) data_);
}
if (dataCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (org.openfeed.MarketUpdate) data_);
}
if (dataCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (org.openfeed.VolumeAtPrice) data_);
}
if (dataCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (org.openfeed.Ohlc) data_);
}
if (dataCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (org.openfeed.ExchangeResponse) data_);
}
if (dataCase_ == 14) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, (org.openfeed.InstrumentAction) data_);
}
if (dataCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, (org.openfeed.ListSubscriptionsResponse) 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.OpenfeedGatewayMessage)) {
return super.equals(obj);
}
org.openfeed.OpenfeedGatewayMessage other = (org.openfeed.OpenfeedGatewayMessage) obj;
if (!getDataCase().equals(other.getDataCase())) return false;
switch (dataCase_) {
case 1:
if (!getLoginResponse()
.equals(other.getLoginResponse())) return false;
break;
case 2:
if (!getLogoutResponse()
.equals(other.getLogoutResponse())) return false;
break;
case 3:
if (!getInstrumentResponse()
.equals(other.getInstrumentResponse())) return false;
break;
case 4:
if (!getInstrumentReferenceResponse()
.equals(other.getInstrumentReferenceResponse())) return false;
break;
case 5:
if (!getSubscriptionResponse()
.equals(other.getSubscriptionResponse())) return false;
break;
case 6:
if (!getMarketStatus()
.equals(other.getMarketStatus())) return false;
break;
case 7:
if (!getHeartBeat()
.equals(other.getHeartBeat())) return false;
break;
case 8:
if (!getInstrumentDefinition()
.equals(other.getInstrumentDefinition())) return false;
break;
case 9:
if (!getMarketSnapshot()
.equals(other.getMarketSnapshot())) return false;
break;
case 10:
if (!getMarketUpdate()
.equals(other.getMarketUpdate())) return false;
break;
case 11:
if (!getVolumeAtPrice()
.equals(other.getVolumeAtPrice())) return false;
break;
case 12:
if (!getOhlc()
.equals(other.getOhlc())) return false;
break;
case 13:
if (!getExchangeResponse()
.equals(other.getExchangeResponse())) return false;
break;
case 14:
if (!getInstrumentAction()
.equals(other.getInstrumentAction())) return false;
break;
case 15:
if (!getListSubscriptionsResponse()
.equals(other.getListSubscriptionsResponse())) 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) + LOGINRESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getLoginResponse().hashCode();
break;
case 2:
hash = (37 * hash) + LOGOUTRESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getLogoutResponse().hashCode();
break;
case 3:
hash = (37 * hash) + INSTRUMENTRESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getInstrumentResponse().hashCode();
break;
case 4:
hash = (37 * hash) + INSTRUMENTREFERENCERESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getInstrumentReferenceResponse().hashCode();
break;
case 5:
hash = (37 * hash) + SUBSCRIPTIONRESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getSubscriptionResponse().hashCode();
break;
case 6:
hash = (37 * hash) + MARKETSTATUS_FIELD_NUMBER;
hash = (53 * hash) + getMarketStatus().hashCode();
break;
case 7:
hash = (37 * hash) + HEARTBEAT_FIELD_NUMBER;
hash = (53 * hash) + getHeartBeat().hashCode();
break;
case 8:
hash = (37 * hash) + INSTRUMENTDEFINITION_FIELD_NUMBER;
hash = (53 * hash) + getInstrumentDefinition().hashCode();
break;
case 9:
hash = (37 * hash) + MARKETSNAPSHOT_FIELD_NUMBER;
hash = (53 * hash) + getMarketSnapshot().hashCode();
break;
case 10:
hash = (37 * hash) + MARKETUPDATE_FIELD_NUMBER;
hash = (53 * hash) + getMarketUpdate().hashCode();
break;
case 11:
hash = (37 * hash) + VOLUMEATPRICE_FIELD_NUMBER;
hash = (53 * hash) + getVolumeAtPrice().hashCode();
break;
case 12:
hash = (37 * hash) + OHLC_FIELD_NUMBER;
hash = (53 * hash) + getOhlc().hashCode();
break;
case 13:
hash = (37 * hash) + EXCHANGERESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getExchangeResponse().hashCode();
break;
case 14:
hash = (37 * hash) + INSTRUMENTACTION_FIELD_NUMBER;
hash = (53 * hash) + getInstrumentAction().hashCode();
break;
case 15:
hash = (37 * hash) + LISTSUBSCRIPTIONSRESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getListSubscriptionsResponse().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openfeed.OpenfeedGatewayMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.OpenfeedGatewayMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.OpenfeedGatewayMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.OpenfeedGatewayMessage 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.OpenfeedGatewayMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.OpenfeedGatewayMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.OpenfeedGatewayMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.OpenfeedGatewayMessage 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.OpenfeedGatewayMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openfeed.OpenfeedGatewayMessage 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.OpenfeedGatewayMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.OpenfeedGatewayMessage 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.OpenfeedGatewayMessage 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;
}
/**
*
* / Openfeed Server Response
*
*
* Protobuf type {@code org.openfeed.OpenfeedGatewayMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:org.openfeed.OpenfeedGatewayMessage)
org.openfeed.OpenfeedGatewayMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_OpenfeedGatewayMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_OpenfeedGatewayMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.OpenfeedGatewayMessage.class, org.openfeed.OpenfeedGatewayMessage.Builder.class);
}
// Construct using org.openfeed.OpenfeedGatewayMessage.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (loginResponseBuilder_ != null) {
loginResponseBuilder_.clear();
}
if (logoutResponseBuilder_ != null) {
logoutResponseBuilder_.clear();
}
if (instrumentResponseBuilder_ != null) {
instrumentResponseBuilder_.clear();
}
if (instrumentReferenceResponseBuilder_ != null) {
instrumentReferenceResponseBuilder_.clear();
}
if (subscriptionResponseBuilder_ != null) {
subscriptionResponseBuilder_.clear();
}
if (marketStatusBuilder_ != null) {
marketStatusBuilder_.clear();
}
if (heartBeatBuilder_ != null) {
heartBeatBuilder_.clear();
}
if (instrumentDefinitionBuilder_ != null) {
instrumentDefinitionBuilder_.clear();
}
if (marketSnapshotBuilder_ != null) {
marketSnapshotBuilder_.clear();
}
if (marketUpdateBuilder_ != null) {
marketUpdateBuilder_.clear();
}
if (volumeAtPriceBuilder_ != null) {
volumeAtPriceBuilder_.clear();
}
if (ohlcBuilder_ != null) {
ohlcBuilder_.clear();
}
if (exchangeResponseBuilder_ != null) {
exchangeResponseBuilder_.clear();
}
if (instrumentActionBuilder_ != null) {
instrumentActionBuilder_.clear();
}
if (listSubscriptionsResponseBuilder_ != null) {
listSubscriptionsResponseBuilder_.clear();
}
dataCase_ = 0;
data_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_OpenfeedGatewayMessage_descriptor;
}
@java.lang.Override
public org.openfeed.OpenfeedGatewayMessage getDefaultInstanceForType() {
return org.openfeed.OpenfeedGatewayMessage.getDefaultInstance();
}
@java.lang.Override
public org.openfeed.OpenfeedGatewayMessage build() {
org.openfeed.OpenfeedGatewayMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openfeed.OpenfeedGatewayMessage buildPartial() {
org.openfeed.OpenfeedGatewayMessage result = new org.openfeed.OpenfeedGatewayMessage(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(org.openfeed.OpenfeedGatewayMessage result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(org.openfeed.OpenfeedGatewayMessage result) {
result.dataCase_ = dataCase_;
result.data_ = this.data_;
if (dataCase_ == 1 &&
loginResponseBuilder_ != null) {
result.data_ = loginResponseBuilder_.build();
}
if (dataCase_ == 2 &&
logoutResponseBuilder_ != null) {
result.data_ = logoutResponseBuilder_.build();
}
if (dataCase_ == 3 &&
instrumentResponseBuilder_ != null) {
result.data_ = instrumentResponseBuilder_.build();
}
if (dataCase_ == 4 &&
instrumentReferenceResponseBuilder_ != null) {
result.data_ = instrumentReferenceResponseBuilder_.build();
}
if (dataCase_ == 5 &&
subscriptionResponseBuilder_ != null) {
result.data_ = subscriptionResponseBuilder_.build();
}
if (dataCase_ == 6 &&
marketStatusBuilder_ != null) {
result.data_ = marketStatusBuilder_.build();
}
if (dataCase_ == 7 &&
heartBeatBuilder_ != null) {
result.data_ = heartBeatBuilder_.build();
}
if (dataCase_ == 8 &&
instrumentDefinitionBuilder_ != null) {
result.data_ = instrumentDefinitionBuilder_.build();
}
if (dataCase_ == 9 &&
marketSnapshotBuilder_ != null) {
result.data_ = marketSnapshotBuilder_.build();
}
if (dataCase_ == 10 &&
marketUpdateBuilder_ != null) {
result.data_ = marketUpdateBuilder_.build();
}
if (dataCase_ == 11 &&
volumeAtPriceBuilder_ != null) {
result.data_ = volumeAtPriceBuilder_.build();
}
if (dataCase_ == 12 &&
ohlcBuilder_ != null) {
result.data_ = ohlcBuilder_.build();
}
if (dataCase_ == 13 &&
exchangeResponseBuilder_ != null) {
result.data_ = exchangeResponseBuilder_.build();
}
if (dataCase_ == 14 &&
instrumentActionBuilder_ != null) {
result.data_ = instrumentActionBuilder_.build();
}
if (dataCase_ == 15 &&
listSubscriptionsResponseBuilder_ != null) {
result.data_ = listSubscriptionsResponseBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openfeed.OpenfeedGatewayMessage) {
return mergeFrom((org.openfeed.OpenfeedGatewayMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openfeed.OpenfeedGatewayMessage other) {
if (other == org.openfeed.OpenfeedGatewayMessage.getDefaultInstance()) return this;
switch (other.getDataCase()) {
case LOGINRESPONSE: {
mergeLoginResponse(other.getLoginResponse());
break;
}
case LOGOUTRESPONSE: {
mergeLogoutResponse(other.getLogoutResponse());
break;
}
case INSTRUMENTRESPONSE: {
mergeInstrumentResponse(other.getInstrumentResponse());
break;
}
case INSTRUMENTREFERENCERESPONSE: {
mergeInstrumentReferenceResponse(other.getInstrumentReferenceResponse());
break;
}
case SUBSCRIPTIONRESPONSE: {
mergeSubscriptionResponse(other.getSubscriptionResponse());
break;
}
case MARKETSTATUS: {
mergeMarketStatus(other.getMarketStatus());
break;
}
case HEARTBEAT: {
mergeHeartBeat(other.getHeartBeat());
break;
}
case INSTRUMENTDEFINITION: {
mergeInstrumentDefinition(other.getInstrumentDefinition());
break;
}
case MARKETSNAPSHOT: {
mergeMarketSnapshot(other.getMarketSnapshot());
break;
}
case MARKETUPDATE: {
mergeMarketUpdate(other.getMarketUpdate());
break;
}
case VOLUMEATPRICE: {
mergeVolumeAtPrice(other.getVolumeAtPrice());
break;
}
case OHLC: {
mergeOhlc(other.getOhlc());
break;
}
case EXCHANGERESPONSE: {
mergeExchangeResponse(other.getExchangeResponse());
break;
}
case INSTRUMENTACTION: {
mergeInstrumentAction(other.getInstrumentAction());
break;
}
case LISTSUBSCRIPTIONSRESPONSE: {
mergeListSubscriptionsResponse(other.getListSubscriptionsResponse());
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(
getLoginResponseFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getLogoutResponseFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getInstrumentResponseFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getInstrumentReferenceResponseFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getSubscriptionResponseFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getMarketStatusFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getHeartBeatFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getInstrumentDefinitionFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 8;
break;
} // case 66
case 74: {
input.readMessage(
getMarketSnapshotFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 9;
break;
} // case 74
case 82: {
input.readMessage(
getMarketUpdateFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 10;
break;
} // case 82
case 90: {
input.readMessage(
getVolumeAtPriceFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 11;
break;
} // case 90
case 98: {
input.readMessage(
getOhlcFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 12;
break;
} // case 98
case 106: {
input.readMessage(
getExchangeResponseFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 13;
break;
} // case 106
case 114: {
input.readMessage(
getInstrumentActionFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 14;
break;
} // case 114
case 122: {
input.readMessage(
getListSubscriptionsResponseFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 15;
break;
} // case 122
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.LoginResponse, org.openfeed.LoginResponse.Builder, org.openfeed.LoginResponseOrBuilder> loginResponseBuilder_;
/**
* .org.openfeed.LoginResponse loginResponse = 1;
* @return Whether the loginResponse field is set.
*/
@java.lang.Override
public boolean hasLoginResponse() {
return dataCase_ == 1;
}
/**
* .org.openfeed.LoginResponse loginResponse = 1;
* @return The loginResponse.
*/
@java.lang.Override
public org.openfeed.LoginResponse getLoginResponse() {
if (loginResponseBuilder_ == null) {
if (dataCase_ == 1) {
return (org.openfeed.LoginResponse) data_;
}
return org.openfeed.LoginResponse.getDefaultInstance();
} else {
if (dataCase_ == 1) {
return loginResponseBuilder_.getMessage();
}
return org.openfeed.LoginResponse.getDefaultInstance();
}
}
/**
* .org.openfeed.LoginResponse loginResponse = 1;
*/
public Builder setLoginResponse(org.openfeed.LoginResponse value) {
if (loginResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
loginResponseBuilder_.setMessage(value);
}
dataCase_ = 1;
return this;
}
/**
* .org.openfeed.LoginResponse loginResponse = 1;
*/
public Builder setLoginResponse(
org.openfeed.LoginResponse.Builder builderForValue) {
if (loginResponseBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
loginResponseBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 1;
return this;
}
/**
* .org.openfeed.LoginResponse loginResponse = 1;
*/
public Builder mergeLoginResponse(org.openfeed.LoginResponse value) {
if (loginResponseBuilder_ == null) {
if (dataCase_ == 1 &&
data_ != org.openfeed.LoginResponse.getDefaultInstance()) {
data_ = org.openfeed.LoginResponse.newBuilder((org.openfeed.LoginResponse) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 1) {
loginResponseBuilder_.mergeFrom(value);
} else {
loginResponseBuilder_.setMessage(value);
}
}
dataCase_ = 1;
return this;
}
/**
* .org.openfeed.LoginResponse loginResponse = 1;
*/
public Builder clearLoginResponse() {
if (loginResponseBuilder_ == null) {
if (dataCase_ == 1) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 1) {
dataCase_ = 0;
data_ = null;
}
loginResponseBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.LoginResponse loginResponse = 1;
*/
public org.openfeed.LoginResponse.Builder getLoginResponseBuilder() {
return getLoginResponseFieldBuilder().getBuilder();
}
/**
* .org.openfeed.LoginResponse loginResponse = 1;
*/
@java.lang.Override
public org.openfeed.LoginResponseOrBuilder getLoginResponseOrBuilder() {
if ((dataCase_ == 1) && (loginResponseBuilder_ != null)) {
return loginResponseBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 1) {
return (org.openfeed.LoginResponse) data_;
}
return org.openfeed.LoginResponse.getDefaultInstance();
}
}
/**
* .org.openfeed.LoginResponse loginResponse = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.LoginResponse, org.openfeed.LoginResponse.Builder, org.openfeed.LoginResponseOrBuilder>
getLoginResponseFieldBuilder() {
if (loginResponseBuilder_ == null) {
if (!(dataCase_ == 1)) {
data_ = org.openfeed.LoginResponse.getDefaultInstance();
}
loginResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.LoginResponse, org.openfeed.LoginResponse.Builder, org.openfeed.LoginResponseOrBuilder>(
(org.openfeed.LoginResponse) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 1;
onChanged();
return loginResponseBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.LogoutResponse, org.openfeed.LogoutResponse.Builder, org.openfeed.LogoutResponseOrBuilder> logoutResponseBuilder_;
/**
* .org.openfeed.LogoutResponse logoutResponse = 2;
* @return Whether the logoutResponse field is set.
*/
@java.lang.Override
public boolean hasLogoutResponse() {
return dataCase_ == 2;
}
/**
* .org.openfeed.LogoutResponse logoutResponse = 2;
* @return The logoutResponse.
*/
@java.lang.Override
public org.openfeed.LogoutResponse getLogoutResponse() {
if (logoutResponseBuilder_ == null) {
if (dataCase_ == 2) {
return (org.openfeed.LogoutResponse) data_;
}
return org.openfeed.LogoutResponse.getDefaultInstance();
} else {
if (dataCase_ == 2) {
return logoutResponseBuilder_.getMessage();
}
return org.openfeed.LogoutResponse.getDefaultInstance();
}
}
/**
* .org.openfeed.LogoutResponse logoutResponse = 2;
*/
public Builder setLogoutResponse(org.openfeed.LogoutResponse value) {
if (logoutResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
logoutResponseBuilder_.setMessage(value);
}
dataCase_ = 2;
return this;
}
/**
* .org.openfeed.LogoutResponse logoutResponse = 2;
*/
public Builder setLogoutResponse(
org.openfeed.LogoutResponse.Builder builderForValue) {
if (logoutResponseBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
logoutResponseBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 2;
return this;
}
/**
* .org.openfeed.LogoutResponse logoutResponse = 2;
*/
public Builder mergeLogoutResponse(org.openfeed.LogoutResponse value) {
if (logoutResponseBuilder_ == null) {
if (dataCase_ == 2 &&
data_ != org.openfeed.LogoutResponse.getDefaultInstance()) {
data_ = org.openfeed.LogoutResponse.newBuilder((org.openfeed.LogoutResponse) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 2) {
logoutResponseBuilder_.mergeFrom(value);
} else {
logoutResponseBuilder_.setMessage(value);
}
}
dataCase_ = 2;
return this;
}
/**
* .org.openfeed.LogoutResponse logoutResponse = 2;
*/
public Builder clearLogoutResponse() {
if (logoutResponseBuilder_ == null) {
if (dataCase_ == 2) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 2) {
dataCase_ = 0;
data_ = null;
}
logoutResponseBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.LogoutResponse logoutResponse = 2;
*/
public org.openfeed.LogoutResponse.Builder getLogoutResponseBuilder() {
return getLogoutResponseFieldBuilder().getBuilder();
}
/**
* .org.openfeed.LogoutResponse logoutResponse = 2;
*/
@java.lang.Override
public org.openfeed.LogoutResponseOrBuilder getLogoutResponseOrBuilder() {
if ((dataCase_ == 2) && (logoutResponseBuilder_ != null)) {
return logoutResponseBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 2) {
return (org.openfeed.LogoutResponse) data_;
}
return org.openfeed.LogoutResponse.getDefaultInstance();
}
}
/**
* .org.openfeed.LogoutResponse logoutResponse = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.LogoutResponse, org.openfeed.LogoutResponse.Builder, org.openfeed.LogoutResponseOrBuilder>
getLogoutResponseFieldBuilder() {
if (logoutResponseBuilder_ == null) {
if (!(dataCase_ == 2)) {
data_ = org.openfeed.LogoutResponse.getDefaultInstance();
}
logoutResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.LogoutResponse, org.openfeed.LogoutResponse.Builder, org.openfeed.LogoutResponseOrBuilder>(
(org.openfeed.LogoutResponse) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 2;
onChanged();
return logoutResponseBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentResponse, org.openfeed.InstrumentResponse.Builder, org.openfeed.InstrumentResponseOrBuilder> instrumentResponseBuilder_;
/**
* .org.openfeed.InstrumentResponse instrumentResponse = 3;
* @return Whether the instrumentResponse field is set.
*/
@java.lang.Override
public boolean hasInstrumentResponse() {
return dataCase_ == 3;
}
/**
* .org.openfeed.InstrumentResponse instrumentResponse = 3;
* @return The instrumentResponse.
*/
@java.lang.Override
public org.openfeed.InstrumentResponse getInstrumentResponse() {
if (instrumentResponseBuilder_ == null) {
if (dataCase_ == 3) {
return (org.openfeed.InstrumentResponse) data_;
}
return org.openfeed.InstrumentResponse.getDefaultInstance();
} else {
if (dataCase_ == 3) {
return instrumentResponseBuilder_.getMessage();
}
return org.openfeed.InstrumentResponse.getDefaultInstance();
}
}
/**
* .org.openfeed.InstrumentResponse instrumentResponse = 3;
*/
public Builder setInstrumentResponse(org.openfeed.InstrumentResponse value) {
if (instrumentResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
instrumentResponseBuilder_.setMessage(value);
}
dataCase_ = 3;
return this;
}
/**
* .org.openfeed.InstrumentResponse instrumentResponse = 3;
*/
public Builder setInstrumentResponse(
org.openfeed.InstrumentResponse.Builder builderForValue) {
if (instrumentResponseBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
instrumentResponseBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 3;
return this;
}
/**
* .org.openfeed.InstrumentResponse instrumentResponse = 3;
*/
public Builder mergeInstrumentResponse(org.openfeed.InstrumentResponse value) {
if (instrumentResponseBuilder_ == null) {
if (dataCase_ == 3 &&
data_ != org.openfeed.InstrumentResponse.getDefaultInstance()) {
data_ = org.openfeed.InstrumentResponse.newBuilder((org.openfeed.InstrumentResponse) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 3) {
instrumentResponseBuilder_.mergeFrom(value);
} else {
instrumentResponseBuilder_.setMessage(value);
}
}
dataCase_ = 3;
return this;
}
/**
* .org.openfeed.InstrumentResponse instrumentResponse = 3;
*/
public Builder clearInstrumentResponse() {
if (instrumentResponseBuilder_ == null) {
if (dataCase_ == 3) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 3) {
dataCase_ = 0;
data_ = null;
}
instrumentResponseBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.InstrumentResponse instrumentResponse = 3;
*/
public org.openfeed.InstrumentResponse.Builder getInstrumentResponseBuilder() {
return getInstrumentResponseFieldBuilder().getBuilder();
}
/**
* .org.openfeed.InstrumentResponse instrumentResponse = 3;
*/
@java.lang.Override
public org.openfeed.InstrumentResponseOrBuilder getInstrumentResponseOrBuilder() {
if ((dataCase_ == 3) && (instrumentResponseBuilder_ != null)) {
return instrumentResponseBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 3) {
return (org.openfeed.InstrumentResponse) data_;
}
return org.openfeed.InstrumentResponse.getDefaultInstance();
}
}
/**
* .org.openfeed.InstrumentResponse instrumentResponse = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentResponse, org.openfeed.InstrumentResponse.Builder, org.openfeed.InstrumentResponseOrBuilder>
getInstrumentResponseFieldBuilder() {
if (instrumentResponseBuilder_ == null) {
if (!(dataCase_ == 3)) {
data_ = org.openfeed.InstrumentResponse.getDefaultInstance();
}
instrumentResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentResponse, org.openfeed.InstrumentResponse.Builder, org.openfeed.InstrumentResponseOrBuilder>(
(org.openfeed.InstrumentResponse) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 3;
onChanged();
return instrumentResponseBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentReferenceResponse, org.openfeed.InstrumentReferenceResponse.Builder, org.openfeed.InstrumentReferenceResponseOrBuilder> instrumentReferenceResponseBuilder_;
/**
* .org.openfeed.InstrumentReferenceResponse instrumentReferenceResponse = 4;
* @return Whether the instrumentReferenceResponse field is set.
*/
@java.lang.Override
public boolean hasInstrumentReferenceResponse() {
return dataCase_ == 4;
}
/**
* .org.openfeed.InstrumentReferenceResponse instrumentReferenceResponse = 4;
* @return The instrumentReferenceResponse.
*/
@java.lang.Override
public org.openfeed.InstrumentReferenceResponse getInstrumentReferenceResponse() {
if (instrumentReferenceResponseBuilder_ == null) {
if (dataCase_ == 4) {
return (org.openfeed.InstrumentReferenceResponse) data_;
}
return org.openfeed.InstrumentReferenceResponse.getDefaultInstance();
} else {
if (dataCase_ == 4) {
return instrumentReferenceResponseBuilder_.getMessage();
}
return org.openfeed.InstrumentReferenceResponse.getDefaultInstance();
}
}
/**
* .org.openfeed.InstrumentReferenceResponse instrumentReferenceResponse = 4;
*/
public Builder setInstrumentReferenceResponse(org.openfeed.InstrumentReferenceResponse value) {
if (instrumentReferenceResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
instrumentReferenceResponseBuilder_.setMessage(value);
}
dataCase_ = 4;
return this;
}
/**
* .org.openfeed.InstrumentReferenceResponse instrumentReferenceResponse = 4;
*/
public Builder setInstrumentReferenceResponse(
org.openfeed.InstrumentReferenceResponse.Builder builderForValue) {
if (instrumentReferenceResponseBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
instrumentReferenceResponseBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 4;
return this;
}
/**
* .org.openfeed.InstrumentReferenceResponse instrumentReferenceResponse = 4;
*/
public Builder mergeInstrumentReferenceResponse(org.openfeed.InstrumentReferenceResponse value) {
if (instrumentReferenceResponseBuilder_ == null) {
if (dataCase_ == 4 &&
data_ != org.openfeed.InstrumentReferenceResponse.getDefaultInstance()) {
data_ = org.openfeed.InstrumentReferenceResponse.newBuilder((org.openfeed.InstrumentReferenceResponse) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 4) {
instrumentReferenceResponseBuilder_.mergeFrom(value);
} else {
instrumentReferenceResponseBuilder_.setMessage(value);
}
}
dataCase_ = 4;
return this;
}
/**
* .org.openfeed.InstrumentReferenceResponse instrumentReferenceResponse = 4;
*/
public Builder clearInstrumentReferenceResponse() {
if (instrumentReferenceResponseBuilder_ == null) {
if (dataCase_ == 4) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 4) {
dataCase_ = 0;
data_ = null;
}
instrumentReferenceResponseBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.InstrumentReferenceResponse instrumentReferenceResponse = 4;
*/
public org.openfeed.InstrumentReferenceResponse.Builder getInstrumentReferenceResponseBuilder() {
return getInstrumentReferenceResponseFieldBuilder().getBuilder();
}
/**
* .org.openfeed.InstrumentReferenceResponse instrumentReferenceResponse = 4;
*/
@java.lang.Override
public org.openfeed.InstrumentReferenceResponseOrBuilder getInstrumentReferenceResponseOrBuilder() {
if ((dataCase_ == 4) && (instrumentReferenceResponseBuilder_ != null)) {
return instrumentReferenceResponseBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 4) {
return (org.openfeed.InstrumentReferenceResponse) data_;
}
return org.openfeed.InstrumentReferenceResponse.getDefaultInstance();
}
}
/**
* .org.openfeed.InstrumentReferenceResponse instrumentReferenceResponse = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentReferenceResponse, org.openfeed.InstrumentReferenceResponse.Builder, org.openfeed.InstrumentReferenceResponseOrBuilder>
getInstrumentReferenceResponseFieldBuilder() {
if (instrumentReferenceResponseBuilder_ == null) {
if (!(dataCase_ == 4)) {
data_ = org.openfeed.InstrumentReferenceResponse.getDefaultInstance();
}
instrumentReferenceResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentReferenceResponse, org.openfeed.InstrumentReferenceResponse.Builder, org.openfeed.InstrumentReferenceResponseOrBuilder>(
(org.openfeed.InstrumentReferenceResponse) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 4;
onChanged();
return instrumentReferenceResponseBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.SubscriptionResponse, org.openfeed.SubscriptionResponse.Builder, org.openfeed.SubscriptionResponseOrBuilder> subscriptionResponseBuilder_;
/**
* .org.openfeed.SubscriptionResponse subscriptionResponse = 5;
* @return Whether the subscriptionResponse field is set.
*/
@java.lang.Override
public boolean hasSubscriptionResponse() {
return dataCase_ == 5;
}
/**
* .org.openfeed.SubscriptionResponse subscriptionResponse = 5;
* @return The subscriptionResponse.
*/
@java.lang.Override
public org.openfeed.SubscriptionResponse getSubscriptionResponse() {
if (subscriptionResponseBuilder_ == null) {
if (dataCase_ == 5) {
return (org.openfeed.SubscriptionResponse) data_;
}
return org.openfeed.SubscriptionResponse.getDefaultInstance();
} else {
if (dataCase_ == 5) {
return subscriptionResponseBuilder_.getMessage();
}
return org.openfeed.SubscriptionResponse.getDefaultInstance();
}
}
/**
* .org.openfeed.SubscriptionResponse subscriptionResponse = 5;
*/
public Builder setSubscriptionResponse(org.openfeed.SubscriptionResponse value) {
if (subscriptionResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
subscriptionResponseBuilder_.setMessage(value);
}
dataCase_ = 5;
return this;
}
/**
* .org.openfeed.SubscriptionResponse subscriptionResponse = 5;
*/
public Builder setSubscriptionResponse(
org.openfeed.SubscriptionResponse.Builder builderForValue) {
if (subscriptionResponseBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
subscriptionResponseBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 5;
return this;
}
/**
* .org.openfeed.SubscriptionResponse subscriptionResponse = 5;
*/
public Builder mergeSubscriptionResponse(org.openfeed.SubscriptionResponse value) {
if (subscriptionResponseBuilder_ == null) {
if (dataCase_ == 5 &&
data_ != org.openfeed.SubscriptionResponse.getDefaultInstance()) {
data_ = org.openfeed.SubscriptionResponse.newBuilder((org.openfeed.SubscriptionResponse) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 5) {
subscriptionResponseBuilder_.mergeFrom(value);
} else {
subscriptionResponseBuilder_.setMessage(value);
}
}
dataCase_ = 5;
return this;
}
/**
* .org.openfeed.SubscriptionResponse subscriptionResponse = 5;
*/
public Builder clearSubscriptionResponse() {
if (subscriptionResponseBuilder_ == null) {
if (dataCase_ == 5) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 5) {
dataCase_ = 0;
data_ = null;
}
subscriptionResponseBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.SubscriptionResponse subscriptionResponse = 5;
*/
public org.openfeed.SubscriptionResponse.Builder getSubscriptionResponseBuilder() {
return getSubscriptionResponseFieldBuilder().getBuilder();
}
/**
* .org.openfeed.SubscriptionResponse subscriptionResponse = 5;
*/
@java.lang.Override
public org.openfeed.SubscriptionResponseOrBuilder getSubscriptionResponseOrBuilder() {
if ((dataCase_ == 5) && (subscriptionResponseBuilder_ != null)) {
return subscriptionResponseBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 5) {
return (org.openfeed.SubscriptionResponse) data_;
}
return org.openfeed.SubscriptionResponse.getDefaultInstance();
}
}
/**
* .org.openfeed.SubscriptionResponse subscriptionResponse = 5;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.SubscriptionResponse, org.openfeed.SubscriptionResponse.Builder, org.openfeed.SubscriptionResponseOrBuilder>
getSubscriptionResponseFieldBuilder() {
if (subscriptionResponseBuilder_ == null) {
if (!(dataCase_ == 5)) {
data_ = org.openfeed.SubscriptionResponse.getDefaultInstance();
}
subscriptionResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.SubscriptionResponse, org.openfeed.SubscriptionResponse.Builder, org.openfeed.SubscriptionResponseOrBuilder>(
(org.openfeed.SubscriptionResponse) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 5;
onChanged();
return subscriptionResponseBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.MarketStatus, org.openfeed.MarketStatus.Builder, org.openfeed.MarketStatusOrBuilder> marketStatusBuilder_;
/**
* .org.openfeed.MarketStatus marketStatus = 6;
* @return Whether the marketStatus field is set.
*/
@java.lang.Override
public boolean hasMarketStatus() {
return dataCase_ == 6;
}
/**
* .org.openfeed.MarketStatus marketStatus = 6;
* @return The marketStatus.
*/
@java.lang.Override
public org.openfeed.MarketStatus getMarketStatus() {
if (marketStatusBuilder_ == null) {
if (dataCase_ == 6) {
return (org.openfeed.MarketStatus) data_;
}
return org.openfeed.MarketStatus.getDefaultInstance();
} else {
if (dataCase_ == 6) {
return marketStatusBuilder_.getMessage();
}
return org.openfeed.MarketStatus.getDefaultInstance();
}
}
/**
* .org.openfeed.MarketStatus marketStatus = 6;
*/
public Builder setMarketStatus(org.openfeed.MarketStatus value) {
if (marketStatusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
marketStatusBuilder_.setMessage(value);
}
dataCase_ = 6;
return this;
}
/**
* .org.openfeed.MarketStatus marketStatus = 6;
*/
public Builder setMarketStatus(
org.openfeed.MarketStatus.Builder builderForValue) {
if (marketStatusBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
marketStatusBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 6;
return this;
}
/**
* .org.openfeed.MarketStatus marketStatus = 6;
*/
public Builder mergeMarketStatus(org.openfeed.MarketStatus value) {
if (marketStatusBuilder_ == null) {
if (dataCase_ == 6 &&
data_ != org.openfeed.MarketStatus.getDefaultInstance()) {
data_ = org.openfeed.MarketStatus.newBuilder((org.openfeed.MarketStatus) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 6) {
marketStatusBuilder_.mergeFrom(value);
} else {
marketStatusBuilder_.setMessage(value);
}
}
dataCase_ = 6;
return this;
}
/**
* .org.openfeed.MarketStatus marketStatus = 6;
*/
public Builder clearMarketStatus() {
if (marketStatusBuilder_ == null) {
if (dataCase_ == 6) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 6) {
dataCase_ = 0;
data_ = null;
}
marketStatusBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.MarketStatus marketStatus = 6;
*/
public org.openfeed.MarketStatus.Builder getMarketStatusBuilder() {
return getMarketStatusFieldBuilder().getBuilder();
}
/**
* .org.openfeed.MarketStatus marketStatus = 6;
*/
@java.lang.Override
public org.openfeed.MarketStatusOrBuilder getMarketStatusOrBuilder() {
if ((dataCase_ == 6) && (marketStatusBuilder_ != null)) {
return marketStatusBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 6) {
return (org.openfeed.MarketStatus) data_;
}
return org.openfeed.MarketStatus.getDefaultInstance();
}
}
/**
* .org.openfeed.MarketStatus marketStatus = 6;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.MarketStatus, org.openfeed.MarketStatus.Builder, org.openfeed.MarketStatusOrBuilder>
getMarketStatusFieldBuilder() {
if (marketStatusBuilder_ == null) {
if (!(dataCase_ == 6)) {
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_ = 6;
onChanged();
return marketStatusBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.HeartBeat, org.openfeed.HeartBeat.Builder, org.openfeed.HeartBeatOrBuilder> heartBeatBuilder_;
/**
* .org.openfeed.HeartBeat heartBeat = 7;
* @return Whether the heartBeat field is set.
*/
@java.lang.Override
public boolean hasHeartBeat() {
return dataCase_ == 7;
}
/**
* .org.openfeed.HeartBeat heartBeat = 7;
* @return The heartBeat.
*/
@java.lang.Override
public org.openfeed.HeartBeat getHeartBeat() {
if (heartBeatBuilder_ == null) {
if (dataCase_ == 7) {
return (org.openfeed.HeartBeat) data_;
}
return org.openfeed.HeartBeat.getDefaultInstance();
} else {
if (dataCase_ == 7) {
return heartBeatBuilder_.getMessage();
}
return org.openfeed.HeartBeat.getDefaultInstance();
}
}
/**
* .org.openfeed.HeartBeat heartBeat = 7;
*/
public Builder setHeartBeat(org.openfeed.HeartBeat value) {
if (heartBeatBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
heartBeatBuilder_.setMessage(value);
}
dataCase_ = 7;
return this;
}
/**
* .org.openfeed.HeartBeat heartBeat = 7;
*/
public Builder setHeartBeat(
org.openfeed.HeartBeat.Builder builderForValue) {
if (heartBeatBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
heartBeatBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 7;
return this;
}
/**
* .org.openfeed.HeartBeat heartBeat = 7;
*/
public Builder mergeHeartBeat(org.openfeed.HeartBeat value) {
if (heartBeatBuilder_ == null) {
if (dataCase_ == 7 &&
data_ != org.openfeed.HeartBeat.getDefaultInstance()) {
data_ = org.openfeed.HeartBeat.newBuilder((org.openfeed.HeartBeat) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 7) {
heartBeatBuilder_.mergeFrom(value);
} else {
heartBeatBuilder_.setMessage(value);
}
}
dataCase_ = 7;
return this;
}
/**
* .org.openfeed.HeartBeat heartBeat = 7;
*/
public Builder clearHeartBeat() {
if (heartBeatBuilder_ == null) {
if (dataCase_ == 7) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 7) {
dataCase_ = 0;
data_ = null;
}
heartBeatBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.HeartBeat heartBeat = 7;
*/
public org.openfeed.HeartBeat.Builder getHeartBeatBuilder() {
return getHeartBeatFieldBuilder().getBuilder();
}
/**
* .org.openfeed.HeartBeat heartBeat = 7;
*/
@java.lang.Override
public org.openfeed.HeartBeatOrBuilder getHeartBeatOrBuilder() {
if ((dataCase_ == 7) && (heartBeatBuilder_ != null)) {
return heartBeatBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 7) {
return (org.openfeed.HeartBeat) data_;
}
return org.openfeed.HeartBeat.getDefaultInstance();
}
}
/**
* .org.openfeed.HeartBeat heartBeat = 7;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.HeartBeat, org.openfeed.HeartBeat.Builder, org.openfeed.HeartBeatOrBuilder>
getHeartBeatFieldBuilder() {
if (heartBeatBuilder_ == null) {
if (!(dataCase_ == 7)) {
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_ = 7;
onChanged();
return heartBeatBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentDefinition, org.openfeed.InstrumentDefinition.Builder, org.openfeed.InstrumentDefinitionOrBuilder> instrumentDefinitionBuilder_;
/**
* .org.openfeed.InstrumentDefinition instrumentDefinition = 8;
* @return Whether the instrumentDefinition field is set.
*/
@java.lang.Override
public boolean hasInstrumentDefinition() {
return dataCase_ == 8;
}
/**
* .org.openfeed.InstrumentDefinition instrumentDefinition = 8;
* @return The instrumentDefinition.
*/
@java.lang.Override
public org.openfeed.InstrumentDefinition getInstrumentDefinition() {
if (instrumentDefinitionBuilder_ == null) {
if (dataCase_ == 8) {
return (org.openfeed.InstrumentDefinition) data_;
}
return org.openfeed.InstrumentDefinition.getDefaultInstance();
} else {
if (dataCase_ == 8) {
return instrumentDefinitionBuilder_.getMessage();
}
return org.openfeed.InstrumentDefinition.getDefaultInstance();
}
}
/**
* .org.openfeed.InstrumentDefinition instrumentDefinition = 8;
*/
public Builder setInstrumentDefinition(org.openfeed.InstrumentDefinition value) {
if (instrumentDefinitionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
instrumentDefinitionBuilder_.setMessage(value);
}
dataCase_ = 8;
return this;
}
/**
* .org.openfeed.InstrumentDefinition instrumentDefinition = 8;
*/
public Builder setInstrumentDefinition(
org.openfeed.InstrumentDefinition.Builder builderForValue) {
if (instrumentDefinitionBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
instrumentDefinitionBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 8;
return this;
}
/**
* .org.openfeed.InstrumentDefinition instrumentDefinition = 8;
*/
public Builder mergeInstrumentDefinition(org.openfeed.InstrumentDefinition value) {
if (instrumentDefinitionBuilder_ == null) {
if (dataCase_ == 8 &&
data_ != org.openfeed.InstrumentDefinition.getDefaultInstance()) {
data_ = org.openfeed.InstrumentDefinition.newBuilder((org.openfeed.InstrumentDefinition) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 8) {
instrumentDefinitionBuilder_.mergeFrom(value);
} else {
instrumentDefinitionBuilder_.setMessage(value);
}
}
dataCase_ = 8;
return this;
}
/**
* .org.openfeed.InstrumentDefinition instrumentDefinition = 8;
*/
public Builder clearInstrumentDefinition() {
if (instrumentDefinitionBuilder_ == null) {
if (dataCase_ == 8) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 8) {
dataCase_ = 0;
data_ = null;
}
instrumentDefinitionBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.InstrumentDefinition instrumentDefinition = 8;
*/
public org.openfeed.InstrumentDefinition.Builder getInstrumentDefinitionBuilder() {
return getInstrumentDefinitionFieldBuilder().getBuilder();
}
/**
* .org.openfeed.InstrumentDefinition instrumentDefinition = 8;
*/
@java.lang.Override
public org.openfeed.InstrumentDefinitionOrBuilder getInstrumentDefinitionOrBuilder() {
if ((dataCase_ == 8) && (instrumentDefinitionBuilder_ != null)) {
return instrumentDefinitionBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 8) {
return (org.openfeed.InstrumentDefinition) data_;
}
return org.openfeed.InstrumentDefinition.getDefaultInstance();
}
}
/**
* .org.openfeed.InstrumentDefinition instrumentDefinition = 8;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentDefinition, org.openfeed.InstrumentDefinition.Builder, org.openfeed.InstrumentDefinitionOrBuilder>
getInstrumentDefinitionFieldBuilder() {
if (instrumentDefinitionBuilder_ == null) {
if (!(dataCase_ == 8)) {
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_ = 8;
onChanged();
return instrumentDefinitionBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.MarketSnapshot, org.openfeed.MarketSnapshot.Builder, org.openfeed.MarketSnapshotOrBuilder> marketSnapshotBuilder_;
/**
* .org.openfeed.MarketSnapshot marketSnapshot = 9;
* @return Whether the marketSnapshot field is set.
*/
@java.lang.Override
public boolean hasMarketSnapshot() {
return dataCase_ == 9;
}
/**
* .org.openfeed.MarketSnapshot marketSnapshot = 9;
* @return The marketSnapshot.
*/
@java.lang.Override
public org.openfeed.MarketSnapshot getMarketSnapshot() {
if (marketSnapshotBuilder_ == null) {
if (dataCase_ == 9) {
return (org.openfeed.MarketSnapshot) data_;
}
return org.openfeed.MarketSnapshot.getDefaultInstance();
} else {
if (dataCase_ == 9) {
return marketSnapshotBuilder_.getMessage();
}
return org.openfeed.MarketSnapshot.getDefaultInstance();
}
}
/**
* .org.openfeed.MarketSnapshot marketSnapshot = 9;
*/
public Builder setMarketSnapshot(org.openfeed.MarketSnapshot value) {
if (marketSnapshotBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
marketSnapshotBuilder_.setMessage(value);
}
dataCase_ = 9;
return this;
}
/**
* .org.openfeed.MarketSnapshot marketSnapshot = 9;
*/
public Builder setMarketSnapshot(
org.openfeed.MarketSnapshot.Builder builderForValue) {
if (marketSnapshotBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
marketSnapshotBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 9;
return this;
}
/**
* .org.openfeed.MarketSnapshot marketSnapshot = 9;
*/
public Builder mergeMarketSnapshot(org.openfeed.MarketSnapshot value) {
if (marketSnapshotBuilder_ == null) {
if (dataCase_ == 9 &&
data_ != org.openfeed.MarketSnapshot.getDefaultInstance()) {
data_ = org.openfeed.MarketSnapshot.newBuilder((org.openfeed.MarketSnapshot) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 9) {
marketSnapshotBuilder_.mergeFrom(value);
} else {
marketSnapshotBuilder_.setMessage(value);
}
}
dataCase_ = 9;
return this;
}
/**
* .org.openfeed.MarketSnapshot marketSnapshot = 9;
*/
public Builder clearMarketSnapshot() {
if (marketSnapshotBuilder_ == null) {
if (dataCase_ == 9) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 9) {
dataCase_ = 0;
data_ = null;
}
marketSnapshotBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.MarketSnapshot marketSnapshot = 9;
*/
public org.openfeed.MarketSnapshot.Builder getMarketSnapshotBuilder() {
return getMarketSnapshotFieldBuilder().getBuilder();
}
/**
* .org.openfeed.MarketSnapshot marketSnapshot = 9;
*/
@java.lang.Override
public org.openfeed.MarketSnapshotOrBuilder getMarketSnapshotOrBuilder() {
if ((dataCase_ == 9) && (marketSnapshotBuilder_ != null)) {
return marketSnapshotBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 9) {
return (org.openfeed.MarketSnapshot) data_;
}
return org.openfeed.MarketSnapshot.getDefaultInstance();
}
}
/**
* .org.openfeed.MarketSnapshot marketSnapshot = 9;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.MarketSnapshot, org.openfeed.MarketSnapshot.Builder, org.openfeed.MarketSnapshotOrBuilder>
getMarketSnapshotFieldBuilder() {
if (marketSnapshotBuilder_ == null) {
if (!(dataCase_ == 9)) {
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_ = 9;
onChanged();
return marketSnapshotBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.MarketUpdate, org.openfeed.MarketUpdate.Builder, org.openfeed.MarketUpdateOrBuilder> marketUpdateBuilder_;
/**
* .org.openfeed.MarketUpdate marketUpdate = 10;
* @return Whether the marketUpdate field is set.
*/
@java.lang.Override
public boolean hasMarketUpdate() {
return dataCase_ == 10;
}
/**
* .org.openfeed.MarketUpdate marketUpdate = 10;
* @return The marketUpdate.
*/
@java.lang.Override
public org.openfeed.MarketUpdate getMarketUpdate() {
if (marketUpdateBuilder_ == null) {
if (dataCase_ == 10) {
return (org.openfeed.MarketUpdate) data_;
}
return org.openfeed.MarketUpdate.getDefaultInstance();
} else {
if (dataCase_ == 10) {
return marketUpdateBuilder_.getMessage();
}
return org.openfeed.MarketUpdate.getDefaultInstance();
}
}
/**
* .org.openfeed.MarketUpdate marketUpdate = 10;
*/
public Builder setMarketUpdate(org.openfeed.MarketUpdate value) {
if (marketUpdateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
marketUpdateBuilder_.setMessage(value);
}
dataCase_ = 10;
return this;
}
/**
* .org.openfeed.MarketUpdate marketUpdate = 10;
*/
public Builder setMarketUpdate(
org.openfeed.MarketUpdate.Builder builderForValue) {
if (marketUpdateBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
marketUpdateBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 10;
return this;
}
/**
* .org.openfeed.MarketUpdate marketUpdate = 10;
*/
public Builder mergeMarketUpdate(org.openfeed.MarketUpdate value) {
if (marketUpdateBuilder_ == null) {
if (dataCase_ == 10 &&
data_ != org.openfeed.MarketUpdate.getDefaultInstance()) {
data_ = org.openfeed.MarketUpdate.newBuilder((org.openfeed.MarketUpdate) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 10) {
marketUpdateBuilder_.mergeFrom(value);
} else {
marketUpdateBuilder_.setMessage(value);
}
}
dataCase_ = 10;
return this;
}
/**
* .org.openfeed.MarketUpdate marketUpdate = 10;
*/
public Builder clearMarketUpdate() {
if (marketUpdateBuilder_ == null) {
if (dataCase_ == 10) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 10) {
dataCase_ = 0;
data_ = null;
}
marketUpdateBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.MarketUpdate marketUpdate = 10;
*/
public org.openfeed.MarketUpdate.Builder getMarketUpdateBuilder() {
return getMarketUpdateFieldBuilder().getBuilder();
}
/**
* .org.openfeed.MarketUpdate marketUpdate = 10;
*/
@java.lang.Override
public org.openfeed.MarketUpdateOrBuilder getMarketUpdateOrBuilder() {
if ((dataCase_ == 10) && (marketUpdateBuilder_ != null)) {
return marketUpdateBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 10) {
return (org.openfeed.MarketUpdate) data_;
}
return org.openfeed.MarketUpdate.getDefaultInstance();
}
}
/**
* .org.openfeed.MarketUpdate marketUpdate = 10;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.MarketUpdate, org.openfeed.MarketUpdate.Builder, org.openfeed.MarketUpdateOrBuilder>
getMarketUpdateFieldBuilder() {
if (marketUpdateBuilder_ == null) {
if (!(dataCase_ == 10)) {
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_ = 10;
onChanged();
return marketUpdateBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.VolumeAtPrice, org.openfeed.VolumeAtPrice.Builder, org.openfeed.VolumeAtPriceOrBuilder> volumeAtPriceBuilder_;
/**
* .org.openfeed.VolumeAtPrice volumeAtPrice = 11;
* @return Whether the volumeAtPrice field is set.
*/
@java.lang.Override
public boolean hasVolumeAtPrice() {
return dataCase_ == 11;
}
/**
* .org.openfeed.VolumeAtPrice volumeAtPrice = 11;
* @return The volumeAtPrice.
*/
@java.lang.Override
public org.openfeed.VolumeAtPrice getVolumeAtPrice() {
if (volumeAtPriceBuilder_ == null) {
if (dataCase_ == 11) {
return (org.openfeed.VolumeAtPrice) data_;
}
return org.openfeed.VolumeAtPrice.getDefaultInstance();
} else {
if (dataCase_ == 11) {
return volumeAtPriceBuilder_.getMessage();
}
return org.openfeed.VolumeAtPrice.getDefaultInstance();
}
}
/**
* .org.openfeed.VolumeAtPrice volumeAtPrice = 11;
*/
public Builder setVolumeAtPrice(org.openfeed.VolumeAtPrice value) {
if (volumeAtPriceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
volumeAtPriceBuilder_.setMessage(value);
}
dataCase_ = 11;
return this;
}
/**
* .org.openfeed.VolumeAtPrice volumeAtPrice = 11;
*/
public Builder setVolumeAtPrice(
org.openfeed.VolumeAtPrice.Builder builderForValue) {
if (volumeAtPriceBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
volumeAtPriceBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 11;
return this;
}
/**
* .org.openfeed.VolumeAtPrice volumeAtPrice = 11;
*/
public Builder mergeVolumeAtPrice(org.openfeed.VolumeAtPrice value) {
if (volumeAtPriceBuilder_ == null) {
if (dataCase_ == 11 &&
data_ != org.openfeed.VolumeAtPrice.getDefaultInstance()) {
data_ = org.openfeed.VolumeAtPrice.newBuilder((org.openfeed.VolumeAtPrice) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 11) {
volumeAtPriceBuilder_.mergeFrom(value);
} else {
volumeAtPriceBuilder_.setMessage(value);
}
}
dataCase_ = 11;
return this;
}
/**
* .org.openfeed.VolumeAtPrice volumeAtPrice = 11;
*/
public Builder clearVolumeAtPrice() {
if (volumeAtPriceBuilder_ == null) {
if (dataCase_ == 11) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 11) {
dataCase_ = 0;
data_ = null;
}
volumeAtPriceBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.VolumeAtPrice volumeAtPrice = 11;
*/
public org.openfeed.VolumeAtPrice.Builder getVolumeAtPriceBuilder() {
return getVolumeAtPriceFieldBuilder().getBuilder();
}
/**
* .org.openfeed.VolumeAtPrice volumeAtPrice = 11;
*/
@java.lang.Override
public org.openfeed.VolumeAtPriceOrBuilder getVolumeAtPriceOrBuilder() {
if ((dataCase_ == 11) && (volumeAtPriceBuilder_ != null)) {
return volumeAtPriceBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 11) {
return (org.openfeed.VolumeAtPrice) data_;
}
return org.openfeed.VolumeAtPrice.getDefaultInstance();
}
}
/**
* .org.openfeed.VolumeAtPrice volumeAtPrice = 11;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.VolumeAtPrice, org.openfeed.VolumeAtPrice.Builder, org.openfeed.VolumeAtPriceOrBuilder>
getVolumeAtPriceFieldBuilder() {
if (volumeAtPriceBuilder_ == null) {
if (!(dataCase_ == 11)) {
data_ = org.openfeed.VolumeAtPrice.getDefaultInstance();
}
volumeAtPriceBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.VolumeAtPrice, org.openfeed.VolumeAtPrice.Builder, org.openfeed.VolumeAtPriceOrBuilder>(
(org.openfeed.VolumeAtPrice) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 11;
onChanged();
return volumeAtPriceBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Ohlc, org.openfeed.Ohlc.Builder, org.openfeed.OhlcOrBuilder> ohlcBuilder_;
/**
* .org.openfeed.Ohlc ohlc = 12;
* @return Whether the ohlc field is set.
*/
@java.lang.Override
public boolean hasOhlc() {
return dataCase_ == 12;
}
/**
* .org.openfeed.Ohlc ohlc = 12;
* @return The ohlc.
*/
@java.lang.Override
public org.openfeed.Ohlc getOhlc() {
if (ohlcBuilder_ == null) {
if (dataCase_ == 12) {
return (org.openfeed.Ohlc) data_;
}
return org.openfeed.Ohlc.getDefaultInstance();
} else {
if (dataCase_ == 12) {
return ohlcBuilder_.getMessage();
}
return org.openfeed.Ohlc.getDefaultInstance();
}
}
/**
* .org.openfeed.Ohlc ohlc = 12;
*/
public Builder setOhlc(org.openfeed.Ohlc value) {
if (ohlcBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
ohlcBuilder_.setMessage(value);
}
dataCase_ = 12;
return this;
}
/**
* .org.openfeed.Ohlc ohlc = 12;
*/
public Builder setOhlc(
org.openfeed.Ohlc.Builder builderForValue) {
if (ohlcBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
ohlcBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 12;
return this;
}
/**
* .org.openfeed.Ohlc ohlc = 12;
*/
public Builder mergeOhlc(org.openfeed.Ohlc value) {
if (ohlcBuilder_ == null) {
if (dataCase_ == 12 &&
data_ != org.openfeed.Ohlc.getDefaultInstance()) {
data_ = org.openfeed.Ohlc.newBuilder((org.openfeed.Ohlc) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 12) {
ohlcBuilder_.mergeFrom(value);
} else {
ohlcBuilder_.setMessage(value);
}
}
dataCase_ = 12;
return this;
}
/**
* .org.openfeed.Ohlc ohlc = 12;
*/
public Builder clearOhlc() {
if (ohlcBuilder_ == null) {
if (dataCase_ == 12) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 12) {
dataCase_ = 0;
data_ = null;
}
ohlcBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.Ohlc ohlc = 12;
*/
public org.openfeed.Ohlc.Builder getOhlcBuilder() {
return getOhlcFieldBuilder().getBuilder();
}
/**
* .org.openfeed.Ohlc ohlc = 12;
*/
@java.lang.Override
public org.openfeed.OhlcOrBuilder getOhlcOrBuilder() {
if ((dataCase_ == 12) && (ohlcBuilder_ != null)) {
return ohlcBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 12) {
return (org.openfeed.Ohlc) data_;
}
return org.openfeed.Ohlc.getDefaultInstance();
}
}
/**
* .org.openfeed.Ohlc ohlc = 12;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Ohlc, org.openfeed.Ohlc.Builder, org.openfeed.OhlcOrBuilder>
getOhlcFieldBuilder() {
if (ohlcBuilder_ == null) {
if (!(dataCase_ == 12)) {
data_ = org.openfeed.Ohlc.getDefaultInstance();
}
ohlcBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.Ohlc, org.openfeed.Ohlc.Builder, org.openfeed.OhlcOrBuilder>(
(org.openfeed.Ohlc) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 12;
onChanged();
return ohlcBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.ExchangeResponse, org.openfeed.ExchangeResponse.Builder, org.openfeed.ExchangeResponseOrBuilder> exchangeResponseBuilder_;
/**
* .org.openfeed.ExchangeResponse exchangeResponse = 13;
* @return Whether the exchangeResponse field is set.
*/
@java.lang.Override
public boolean hasExchangeResponse() {
return dataCase_ == 13;
}
/**
* .org.openfeed.ExchangeResponse exchangeResponse = 13;
* @return The exchangeResponse.
*/
@java.lang.Override
public org.openfeed.ExchangeResponse getExchangeResponse() {
if (exchangeResponseBuilder_ == null) {
if (dataCase_ == 13) {
return (org.openfeed.ExchangeResponse) data_;
}
return org.openfeed.ExchangeResponse.getDefaultInstance();
} else {
if (dataCase_ == 13) {
return exchangeResponseBuilder_.getMessage();
}
return org.openfeed.ExchangeResponse.getDefaultInstance();
}
}
/**
* .org.openfeed.ExchangeResponse exchangeResponse = 13;
*/
public Builder setExchangeResponse(org.openfeed.ExchangeResponse value) {
if (exchangeResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
exchangeResponseBuilder_.setMessage(value);
}
dataCase_ = 13;
return this;
}
/**
* .org.openfeed.ExchangeResponse exchangeResponse = 13;
*/
public Builder setExchangeResponse(
org.openfeed.ExchangeResponse.Builder builderForValue) {
if (exchangeResponseBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
exchangeResponseBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 13;
return this;
}
/**
* .org.openfeed.ExchangeResponse exchangeResponse = 13;
*/
public Builder mergeExchangeResponse(org.openfeed.ExchangeResponse value) {
if (exchangeResponseBuilder_ == null) {
if (dataCase_ == 13 &&
data_ != org.openfeed.ExchangeResponse.getDefaultInstance()) {
data_ = org.openfeed.ExchangeResponse.newBuilder((org.openfeed.ExchangeResponse) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 13) {
exchangeResponseBuilder_.mergeFrom(value);
} else {
exchangeResponseBuilder_.setMessage(value);
}
}
dataCase_ = 13;
return this;
}
/**
* .org.openfeed.ExchangeResponse exchangeResponse = 13;
*/
public Builder clearExchangeResponse() {
if (exchangeResponseBuilder_ == null) {
if (dataCase_ == 13) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 13) {
dataCase_ = 0;
data_ = null;
}
exchangeResponseBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.ExchangeResponse exchangeResponse = 13;
*/
public org.openfeed.ExchangeResponse.Builder getExchangeResponseBuilder() {
return getExchangeResponseFieldBuilder().getBuilder();
}
/**
* .org.openfeed.ExchangeResponse exchangeResponse = 13;
*/
@java.lang.Override
public org.openfeed.ExchangeResponseOrBuilder getExchangeResponseOrBuilder() {
if ((dataCase_ == 13) && (exchangeResponseBuilder_ != null)) {
return exchangeResponseBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 13) {
return (org.openfeed.ExchangeResponse) data_;
}
return org.openfeed.ExchangeResponse.getDefaultInstance();
}
}
/**
* .org.openfeed.ExchangeResponse exchangeResponse = 13;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.ExchangeResponse, org.openfeed.ExchangeResponse.Builder, org.openfeed.ExchangeResponseOrBuilder>
getExchangeResponseFieldBuilder() {
if (exchangeResponseBuilder_ == null) {
if (!(dataCase_ == 13)) {
data_ = org.openfeed.ExchangeResponse.getDefaultInstance();
}
exchangeResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.ExchangeResponse, org.openfeed.ExchangeResponse.Builder, org.openfeed.ExchangeResponseOrBuilder>(
(org.openfeed.ExchangeResponse) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 13;
onChanged();
return exchangeResponseBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentAction, org.openfeed.InstrumentAction.Builder, org.openfeed.InstrumentActionOrBuilder> instrumentActionBuilder_;
/**
* .org.openfeed.InstrumentAction instrumentAction = 14;
* @return Whether the instrumentAction field is set.
*/
@java.lang.Override
public boolean hasInstrumentAction() {
return dataCase_ == 14;
}
/**
* .org.openfeed.InstrumentAction instrumentAction = 14;
* @return The instrumentAction.
*/
@java.lang.Override
public org.openfeed.InstrumentAction getInstrumentAction() {
if (instrumentActionBuilder_ == null) {
if (dataCase_ == 14) {
return (org.openfeed.InstrumentAction) data_;
}
return org.openfeed.InstrumentAction.getDefaultInstance();
} else {
if (dataCase_ == 14) {
return instrumentActionBuilder_.getMessage();
}
return org.openfeed.InstrumentAction.getDefaultInstance();
}
}
/**
* .org.openfeed.InstrumentAction instrumentAction = 14;
*/
public Builder setInstrumentAction(org.openfeed.InstrumentAction value) {
if (instrumentActionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
instrumentActionBuilder_.setMessage(value);
}
dataCase_ = 14;
return this;
}
/**
* .org.openfeed.InstrumentAction instrumentAction = 14;
*/
public Builder setInstrumentAction(
org.openfeed.InstrumentAction.Builder builderForValue) {
if (instrumentActionBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
instrumentActionBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 14;
return this;
}
/**
* .org.openfeed.InstrumentAction instrumentAction = 14;
*/
public Builder mergeInstrumentAction(org.openfeed.InstrumentAction value) {
if (instrumentActionBuilder_ == null) {
if (dataCase_ == 14 &&
data_ != org.openfeed.InstrumentAction.getDefaultInstance()) {
data_ = org.openfeed.InstrumentAction.newBuilder((org.openfeed.InstrumentAction) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 14) {
instrumentActionBuilder_.mergeFrom(value);
} else {
instrumentActionBuilder_.setMessage(value);
}
}
dataCase_ = 14;
return this;
}
/**
* .org.openfeed.InstrumentAction instrumentAction = 14;
*/
public Builder clearInstrumentAction() {
if (instrumentActionBuilder_ == null) {
if (dataCase_ == 14) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 14) {
dataCase_ = 0;
data_ = null;
}
instrumentActionBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.InstrumentAction instrumentAction = 14;
*/
public org.openfeed.InstrumentAction.Builder getInstrumentActionBuilder() {
return getInstrumentActionFieldBuilder().getBuilder();
}
/**
* .org.openfeed.InstrumentAction instrumentAction = 14;
*/
@java.lang.Override
public org.openfeed.InstrumentActionOrBuilder getInstrumentActionOrBuilder() {
if ((dataCase_ == 14) && (instrumentActionBuilder_ != null)) {
return instrumentActionBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 14) {
return (org.openfeed.InstrumentAction) data_;
}
return org.openfeed.InstrumentAction.getDefaultInstance();
}
}
/**
* .org.openfeed.InstrumentAction instrumentAction = 14;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentAction, org.openfeed.InstrumentAction.Builder, org.openfeed.InstrumentActionOrBuilder>
getInstrumentActionFieldBuilder() {
if (instrumentActionBuilder_ == null) {
if (!(dataCase_ == 14)) {
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_ = 14;
onChanged();
return instrumentActionBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.ListSubscriptionsResponse, org.openfeed.ListSubscriptionsResponse.Builder, org.openfeed.ListSubscriptionsResponseOrBuilder> listSubscriptionsResponseBuilder_;
/**
* .org.openfeed.ListSubscriptionsResponse listSubscriptionsResponse = 15;
* @return Whether the listSubscriptionsResponse field is set.
*/
@java.lang.Override
public boolean hasListSubscriptionsResponse() {
return dataCase_ == 15;
}
/**
* .org.openfeed.ListSubscriptionsResponse listSubscriptionsResponse = 15;
* @return The listSubscriptionsResponse.
*/
@java.lang.Override
public org.openfeed.ListSubscriptionsResponse getListSubscriptionsResponse() {
if (listSubscriptionsResponseBuilder_ == null) {
if (dataCase_ == 15) {
return (org.openfeed.ListSubscriptionsResponse) data_;
}
return org.openfeed.ListSubscriptionsResponse.getDefaultInstance();
} else {
if (dataCase_ == 15) {
return listSubscriptionsResponseBuilder_.getMessage();
}
return org.openfeed.ListSubscriptionsResponse.getDefaultInstance();
}
}
/**
* .org.openfeed.ListSubscriptionsResponse listSubscriptionsResponse = 15;
*/
public Builder setListSubscriptionsResponse(org.openfeed.ListSubscriptionsResponse value) {
if (listSubscriptionsResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
listSubscriptionsResponseBuilder_.setMessage(value);
}
dataCase_ = 15;
return this;
}
/**
* .org.openfeed.ListSubscriptionsResponse listSubscriptionsResponse = 15;
*/
public Builder setListSubscriptionsResponse(
org.openfeed.ListSubscriptionsResponse.Builder builderForValue) {
if (listSubscriptionsResponseBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
listSubscriptionsResponseBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 15;
return this;
}
/**
* .org.openfeed.ListSubscriptionsResponse listSubscriptionsResponse = 15;
*/
public Builder mergeListSubscriptionsResponse(org.openfeed.ListSubscriptionsResponse value) {
if (listSubscriptionsResponseBuilder_ == null) {
if (dataCase_ == 15 &&
data_ != org.openfeed.ListSubscriptionsResponse.getDefaultInstance()) {
data_ = org.openfeed.ListSubscriptionsResponse.newBuilder((org.openfeed.ListSubscriptionsResponse) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 15) {
listSubscriptionsResponseBuilder_.mergeFrom(value);
} else {
listSubscriptionsResponseBuilder_.setMessage(value);
}
}
dataCase_ = 15;
return this;
}
/**
* .org.openfeed.ListSubscriptionsResponse listSubscriptionsResponse = 15;
*/
public Builder clearListSubscriptionsResponse() {
if (listSubscriptionsResponseBuilder_ == null) {
if (dataCase_ == 15) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 15) {
dataCase_ = 0;
data_ = null;
}
listSubscriptionsResponseBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.ListSubscriptionsResponse listSubscriptionsResponse = 15;
*/
public org.openfeed.ListSubscriptionsResponse.Builder getListSubscriptionsResponseBuilder() {
return getListSubscriptionsResponseFieldBuilder().getBuilder();
}
/**
* .org.openfeed.ListSubscriptionsResponse listSubscriptionsResponse = 15;
*/
@java.lang.Override
public org.openfeed.ListSubscriptionsResponseOrBuilder getListSubscriptionsResponseOrBuilder() {
if ((dataCase_ == 15) && (listSubscriptionsResponseBuilder_ != null)) {
return listSubscriptionsResponseBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 15) {
return (org.openfeed.ListSubscriptionsResponse) data_;
}
return org.openfeed.ListSubscriptionsResponse.getDefaultInstance();
}
}
/**
* .org.openfeed.ListSubscriptionsResponse listSubscriptionsResponse = 15;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.ListSubscriptionsResponse, org.openfeed.ListSubscriptionsResponse.Builder, org.openfeed.ListSubscriptionsResponseOrBuilder>
getListSubscriptionsResponseFieldBuilder() {
if (listSubscriptionsResponseBuilder_ == null) {
if (!(dataCase_ == 15)) {
data_ = org.openfeed.ListSubscriptionsResponse.getDefaultInstance();
}
listSubscriptionsResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.ListSubscriptionsResponse, org.openfeed.ListSubscriptionsResponse.Builder, org.openfeed.ListSubscriptionsResponseOrBuilder>(
(org.openfeed.ListSubscriptionsResponse) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 15;
onChanged();
return listSubscriptionsResponseBuilder_;
}
// @@protoc_insertion_point(builder_scope:org.openfeed.OpenfeedGatewayMessage)
}
// @@protoc_insertion_point(class_scope:org.openfeed.OpenfeedGatewayMessage)
private static final org.openfeed.OpenfeedGatewayMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openfeed.OpenfeedGatewayMessage();
}
public static org.openfeed.OpenfeedGatewayMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OpenfeedGatewayMessage 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.OpenfeedGatewayMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy