org.openfeed.OpenfeedGatewayRequest 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 request
*
*
* Protobuf type {@code org.openfeed.OpenfeedGatewayRequest}
*/
public final class OpenfeedGatewayRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:org.openfeed.OpenfeedGatewayRequest)
OpenfeedGatewayRequestOrBuilder {
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= */ "",
OpenfeedGatewayRequest.class.getName());
}
// Use OpenfeedGatewayRequest.newBuilder() to construct.
private OpenfeedGatewayRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private OpenfeedGatewayRequest() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_OpenfeedGatewayRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_OpenfeedGatewayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.OpenfeedGatewayRequest.class, org.openfeed.OpenfeedGatewayRequest.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 {
LOGINREQUEST(1),
LOGOUTREQUEST(2),
SUBSCRIPTIONREQUEST(3),
INSTRUMENTREQUEST(4),
INSTRUMENTREFERENCEREQUEST(5),
EXCHANGEREQUEST(6),
LISTSUBSCRIPTIONSREQUEST(7),
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 LOGINREQUEST;
case 2: return LOGOUTREQUEST;
case 3: return SUBSCRIPTIONREQUEST;
case 4: return INSTRUMENTREQUEST;
case 5: return INSTRUMENTREFERENCEREQUEST;
case 6: return EXCHANGEREQUEST;
case 7: return LISTSUBSCRIPTIONSREQUEST;
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 LOGINREQUEST_FIELD_NUMBER = 1;
/**
* .org.openfeed.LoginRequest loginRequest = 1;
* @return Whether the loginRequest field is set.
*/
@java.lang.Override
public boolean hasLoginRequest() {
return dataCase_ == 1;
}
/**
* .org.openfeed.LoginRequest loginRequest = 1;
* @return The loginRequest.
*/
@java.lang.Override
public org.openfeed.LoginRequest getLoginRequest() {
if (dataCase_ == 1) {
return (org.openfeed.LoginRequest) data_;
}
return org.openfeed.LoginRequest.getDefaultInstance();
}
/**
* .org.openfeed.LoginRequest loginRequest = 1;
*/
@java.lang.Override
public org.openfeed.LoginRequestOrBuilder getLoginRequestOrBuilder() {
if (dataCase_ == 1) {
return (org.openfeed.LoginRequest) data_;
}
return org.openfeed.LoginRequest.getDefaultInstance();
}
public static final int LOGOUTREQUEST_FIELD_NUMBER = 2;
/**
* .org.openfeed.LogoutRequest logoutRequest = 2;
* @return Whether the logoutRequest field is set.
*/
@java.lang.Override
public boolean hasLogoutRequest() {
return dataCase_ == 2;
}
/**
* .org.openfeed.LogoutRequest logoutRequest = 2;
* @return The logoutRequest.
*/
@java.lang.Override
public org.openfeed.LogoutRequest getLogoutRequest() {
if (dataCase_ == 2) {
return (org.openfeed.LogoutRequest) data_;
}
return org.openfeed.LogoutRequest.getDefaultInstance();
}
/**
* .org.openfeed.LogoutRequest logoutRequest = 2;
*/
@java.lang.Override
public org.openfeed.LogoutRequestOrBuilder getLogoutRequestOrBuilder() {
if (dataCase_ == 2) {
return (org.openfeed.LogoutRequest) data_;
}
return org.openfeed.LogoutRequest.getDefaultInstance();
}
public static final int SUBSCRIPTIONREQUEST_FIELD_NUMBER = 3;
/**
* .org.openfeed.SubscriptionRequest subscriptionRequest = 3;
* @return Whether the subscriptionRequest field is set.
*/
@java.lang.Override
public boolean hasSubscriptionRequest() {
return dataCase_ == 3;
}
/**
* .org.openfeed.SubscriptionRequest subscriptionRequest = 3;
* @return The subscriptionRequest.
*/
@java.lang.Override
public org.openfeed.SubscriptionRequest getSubscriptionRequest() {
if (dataCase_ == 3) {
return (org.openfeed.SubscriptionRequest) data_;
}
return org.openfeed.SubscriptionRequest.getDefaultInstance();
}
/**
* .org.openfeed.SubscriptionRequest subscriptionRequest = 3;
*/
@java.lang.Override
public org.openfeed.SubscriptionRequestOrBuilder getSubscriptionRequestOrBuilder() {
if (dataCase_ == 3) {
return (org.openfeed.SubscriptionRequest) data_;
}
return org.openfeed.SubscriptionRequest.getDefaultInstance();
}
public static final int INSTRUMENTREQUEST_FIELD_NUMBER = 4;
/**
* .org.openfeed.InstrumentRequest instrumentRequest = 4;
* @return Whether the instrumentRequest field is set.
*/
@java.lang.Override
public boolean hasInstrumentRequest() {
return dataCase_ == 4;
}
/**
* .org.openfeed.InstrumentRequest instrumentRequest = 4;
* @return The instrumentRequest.
*/
@java.lang.Override
public org.openfeed.InstrumentRequest getInstrumentRequest() {
if (dataCase_ == 4) {
return (org.openfeed.InstrumentRequest) data_;
}
return org.openfeed.InstrumentRequest.getDefaultInstance();
}
/**
* .org.openfeed.InstrumentRequest instrumentRequest = 4;
*/
@java.lang.Override
public org.openfeed.InstrumentRequestOrBuilder getInstrumentRequestOrBuilder() {
if (dataCase_ == 4) {
return (org.openfeed.InstrumentRequest) data_;
}
return org.openfeed.InstrumentRequest.getDefaultInstance();
}
public static final int INSTRUMENTREFERENCEREQUEST_FIELD_NUMBER = 5;
/**
* .org.openfeed.InstrumentReferenceRequest instrumentReferenceRequest = 5;
* @return Whether the instrumentReferenceRequest field is set.
*/
@java.lang.Override
public boolean hasInstrumentReferenceRequest() {
return dataCase_ == 5;
}
/**
* .org.openfeed.InstrumentReferenceRequest instrumentReferenceRequest = 5;
* @return The instrumentReferenceRequest.
*/
@java.lang.Override
public org.openfeed.InstrumentReferenceRequest getInstrumentReferenceRequest() {
if (dataCase_ == 5) {
return (org.openfeed.InstrumentReferenceRequest) data_;
}
return org.openfeed.InstrumentReferenceRequest.getDefaultInstance();
}
/**
* .org.openfeed.InstrumentReferenceRequest instrumentReferenceRequest = 5;
*/
@java.lang.Override
public org.openfeed.InstrumentReferenceRequestOrBuilder getInstrumentReferenceRequestOrBuilder() {
if (dataCase_ == 5) {
return (org.openfeed.InstrumentReferenceRequest) data_;
}
return org.openfeed.InstrumentReferenceRequest.getDefaultInstance();
}
public static final int EXCHANGEREQUEST_FIELD_NUMBER = 6;
/**
* .org.openfeed.ExchangeRequest exchangeRequest = 6;
* @return Whether the exchangeRequest field is set.
*/
@java.lang.Override
public boolean hasExchangeRequest() {
return dataCase_ == 6;
}
/**
* .org.openfeed.ExchangeRequest exchangeRequest = 6;
* @return The exchangeRequest.
*/
@java.lang.Override
public org.openfeed.ExchangeRequest getExchangeRequest() {
if (dataCase_ == 6) {
return (org.openfeed.ExchangeRequest) data_;
}
return org.openfeed.ExchangeRequest.getDefaultInstance();
}
/**
* .org.openfeed.ExchangeRequest exchangeRequest = 6;
*/
@java.lang.Override
public org.openfeed.ExchangeRequestOrBuilder getExchangeRequestOrBuilder() {
if (dataCase_ == 6) {
return (org.openfeed.ExchangeRequest) data_;
}
return org.openfeed.ExchangeRequest.getDefaultInstance();
}
public static final int LISTSUBSCRIPTIONSREQUEST_FIELD_NUMBER = 7;
/**
* .org.openfeed.ListSubscriptionsRequest listSubscriptionsRequest = 7;
* @return Whether the listSubscriptionsRequest field is set.
*/
@java.lang.Override
public boolean hasListSubscriptionsRequest() {
return dataCase_ == 7;
}
/**
* .org.openfeed.ListSubscriptionsRequest listSubscriptionsRequest = 7;
* @return The listSubscriptionsRequest.
*/
@java.lang.Override
public org.openfeed.ListSubscriptionsRequest getListSubscriptionsRequest() {
if (dataCase_ == 7) {
return (org.openfeed.ListSubscriptionsRequest) data_;
}
return org.openfeed.ListSubscriptionsRequest.getDefaultInstance();
}
/**
* .org.openfeed.ListSubscriptionsRequest listSubscriptionsRequest = 7;
*/
@java.lang.Override
public org.openfeed.ListSubscriptionsRequestOrBuilder getListSubscriptionsRequestOrBuilder() {
if (dataCase_ == 7) {
return (org.openfeed.ListSubscriptionsRequest) data_;
}
return org.openfeed.ListSubscriptionsRequest.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.LoginRequest) data_);
}
if (dataCase_ == 2) {
output.writeMessage(2, (org.openfeed.LogoutRequest) data_);
}
if (dataCase_ == 3) {
output.writeMessage(3, (org.openfeed.SubscriptionRequest) data_);
}
if (dataCase_ == 4) {
output.writeMessage(4, (org.openfeed.InstrumentRequest) data_);
}
if (dataCase_ == 5) {
output.writeMessage(5, (org.openfeed.InstrumentReferenceRequest) data_);
}
if (dataCase_ == 6) {
output.writeMessage(6, (org.openfeed.ExchangeRequest) data_);
}
if (dataCase_ == 7) {
output.writeMessage(7, (org.openfeed.ListSubscriptionsRequest) 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.LoginRequest) data_);
}
if (dataCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (org.openfeed.LogoutRequest) data_);
}
if (dataCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (org.openfeed.SubscriptionRequest) data_);
}
if (dataCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (org.openfeed.InstrumentRequest) data_);
}
if (dataCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (org.openfeed.InstrumentReferenceRequest) data_);
}
if (dataCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (org.openfeed.ExchangeRequest) data_);
}
if (dataCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (org.openfeed.ListSubscriptionsRequest) 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.OpenfeedGatewayRequest)) {
return super.equals(obj);
}
org.openfeed.OpenfeedGatewayRequest other = (org.openfeed.OpenfeedGatewayRequest) obj;
if (!getDataCase().equals(other.getDataCase())) return false;
switch (dataCase_) {
case 1:
if (!getLoginRequest()
.equals(other.getLoginRequest())) return false;
break;
case 2:
if (!getLogoutRequest()
.equals(other.getLogoutRequest())) return false;
break;
case 3:
if (!getSubscriptionRequest()
.equals(other.getSubscriptionRequest())) return false;
break;
case 4:
if (!getInstrumentRequest()
.equals(other.getInstrumentRequest())) return false;
break;
case 5:
if (!getInstrumentReferenceRequest()
.equals(other.getInstrumentReferenceRequest())) return false;
break;
case 6:
if (!getExchangeRequest()
.equals(other.getExchangeRequest())) return false;
break;
case 7:
if (!getListSubscriptionsRequest()
.equals(other.getListSubscriptionsRequest())) 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) + LOGINREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getLoginRequest().hashCode();
break;
case 2:
hash = (37 * hash) + LOGOUTREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getLogoutRequest().hashCode();
break;
case 3:
hash = (37 * hash) + SUBSCRIPTIONREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getSubscriptionRequest().hashCode();
break;
case 4:
hash = (37 * hash) + INSTRUMENTREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getInstrumentRequest().hashCode();
break;
case 5:
hash = (37 * hash) + INSTRUMENTREFERENCEREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getInstrumentReferenceRequest().hashCode();
break;
case 6:
hash = (37 * hash) + EXCHANGEREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getExchangeRequest().hashCode();
break;
case 7:
hash = (37 * hash) + LISTSUBSCRIPTIONSREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getListSubscriptionsRequest().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openfeed.OpenfeedGatewayRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.OpenfeedGatewayRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.OpenfeedGatewayRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.OpenfeedGatewayRequest 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.OpenfeedGatewayRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.OpenfeedGatewayRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.OpenfeedGatewayRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.OpenfeedGatewayRequest 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.OpenfeedGatewayRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openfeed.OpenfeedGatewayRequest 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.OpenfeedGatewayRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.OpenfeedGatewayRequest 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.OpenfeedGatewayRequest 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 request
*
*
* Protobuf type {@code org.openfeed.OpenfeedGatewayRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:org.openfeed.OpenfeedGatewayRequest)
org.openfeed.OpenfeedGatewayRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_OpenfeedGatewayRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_OpenfeedGatewayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.OpenfeedGatewayRequest.class, org.openfeed.OpenfeedGatewayRequest.Builder.class);
}
// Construct using org.openfeed.OpenfeedGatewayRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (loginRequestBuilder_ != null) {
loginRequestBuilder_.clear();
}
if (logoutRequestBuilder_ != null) {
logoutRequestBuilder_.clear();
}
if (subscriptionRequestBuilder_ != null) {
subscriptionRequestBuilder_.clear();
}
if (instrumentRequestBuilder_ != null) {
instrumentRequestBuilder_.clear();
}
if (instrumentReferenceRequestBuilder_ != null) {
instrumentReferenceRequestBuilder_.clear();
}
if (exchangeRequestBuilder_ != null) {
exchangeRequestBuilder_.clear();
}
if (listSubscriptionsRequestBuilder_ != null) {
listSubscriptionsRequestBuilder_.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_OpenfeedGatewayRequest_descriptor;
}
@java.lang.Override
public org.openfeed.OpenfeedGatewayRequest getDefaultInstanceForType() {
return org.openfeed.OpenfeedGatewayRequest.getDefaultInstance();
}
@java.lang.Override
public org.openfeed.OpenfeedGatewayRequest build() {
org.openfeed.OpenfeedGatewayRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openfeed.OpenfeedGatewayRequest buildPartial() {
org.openfeed.OpenfeedGatewayRequest result = new org.openfeed.OpenfeedGatewayRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(org.openfeed.OpenfeedGatewayRequest result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(org.openfeed.OpenfeedGatewayRequest result) {
result.dataCase_ = dataCase_;
result.data_ = this.data_;
if (dataCase_ == 1 &&
loginRequestBuilder_ != null) {
result.data_ = loginRequestBuilder_.build();
}
if (dataCase_ == 2 &&
logoutRequestBuilder_ != null) {
result.data_ = logoutRequestBuilder_.build();
}
if (dataCase_ == 3 &&
subscriptionRequestBuilder_ != null) {
result.data_ = subscriptionRequestBuilder_.build();
}
if (dataCase_ == 4 &&
instrumentRequestBuilder_ != null) {
result.data_ = instrumentRequestBuilder_.build();
}
if (dataCase_ == 5 &&
instrumentReferenceRequestBuilder_ != null) {
result.data_ = instrumentReferenceRequestBuilder_.build();
}
if (dataCase_ == 6 &&
exchangeRequestBuilder_ != null) {
result.data_ = exchangeRequestBuilder_.build();
}
if (dataCase_ == 7 &&
listSubscriptionsRequestBuilder_ != null) {
result.data_ = listSubscriptionsRequestBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openfeed.OpenfeedGatewayRequest) {
return mergeFrom((org.openfeed.OpenfeedGatewayRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openfeed.OpenfeedGatewayRequest other) {
if (other == org.openfeed.OpenfeedGatewayRequest.getDefaultInstance()) return this;
switch (other.getDataCase()) {
case LOGINREQUEST: {
mergeLoginRequest(other.getLoginRequest());
break;
}
case LOGOUTREQUEST: {
mergeLogoutRequest(other.getLogoutRequest());
break;
}
case SUBSCRIPTIONREQUEST: {
mergeSubscriptionRequest(other.getSubscriptionRequest());
break;
}
case INSTRUMENTREQUEST: {
mergeInstrumentRequest(other.getInstrumentRequest());
break;
}
case INSTRUMENTREFERENCEREQUEST: {
mergeInstrumentReferenceRequest(other.getInstrumentReferenceRequest());
break;
}
case EXCHANGEREQUEST: {
mergeExchangeRequest(other.getExchangeRequest());
break;
}
case LISTSUBSCRIPTIONSREQUEST: {
mergeListSubscriptionsRequest(other.getListSubscriptionsRequest());
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(
getLoginRequestFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getLogoutRequestFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getSubscriptionRequestFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getInstrumentRequestFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getInstrumentReferenceRequestFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getExchangeRequestFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getListSubscriptionsRequestFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 7;
break;
} // case 58
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.LoginRequest, org.openfeed.LoginRequest.Builder, org.openfeed.LoginRequestOrBuilder> loginRequestBuilder_;
/**
* .org.openfeed.LoginRequest loginRequest = 1;
* @return Whether the loginRequest field is set.
*/
@java.lang.Override
public boolean hasLoginRequest() {
return dataCase_ == 1;
}
/**
* .org.openfeed.LoginRequest loginRequest = 1;
* @return The loginRequest.
*/
@java.lang.Override
public org.openfeed.LoginRequest getLoginRequest() {
if (loginRequestBuilder_ == null) {
if (dataCase_ == 1) {
return (org.openfeed.LoginRequest) data_;
}
return org.openfeed.LoginRequest.getDefaultInstance();
} else {
if (dataCase_ == 1) {
return loginRequestBuilder_.getMessage();
}
return org.openfeed.LoginRequest.getDefaultInstance();
}
}
/**
* .org.openfeed.LoginRequest loginRequest = 1;
*/
public Builder setLoginRequest(org.openfeed.LoginRequest value) {
if (loginRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
loginRequestBuilder_.setMessage(value);
}
dataCase_ = 1;
return this;
}
/**
* .org.openfeed.LoginRequest loginRequest = 1;
*/
public Builder setLoginRequest(
org.openfeed.LoginRequest.Builder builderForValue) {
if (loginRequestBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
loginRequestBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 1;
return this;
}
/**
* .org.openfeed.LoginRequest loginRequest = 1;
*/
public Builder mergeLoginRequest(org.openfeed.LoginRequest value) {
if (loginRequestBuilder_ == null) {
if (dataCase_ == 1 &&
data_ != org.openfeed.LoginRequest.getDefaultInstance()) {
data_ = org.openfeed.LoginRequest.newBuilder((org.openfeed.LoginRequest) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 1) {
loginRequestBuilder_.mergeFrom(value);
} else {
loginRequestBuilder_.setMessage(value);
}
}
dataCase_ = 1;
return this;
}
/**
* .org.openfeed.LoginRequest loginRequest = 1;
*/
public Builder clearLoginRequest() {
if (loginRequestBuilder_ == null) {
if (dataCase_ == 1) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 1) {
dataCase_ = 0;
data_ = null;
}
loginRequestBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.LoginRequest loginRequest = 1;
*/
public org.openfeed.LoginRequest.Builder getLoginRequestBuilder() {
return getLoginRequestFieldBuilder().getBuilder();
}
/**
* .org.openfeed.LoginRequest loginRequest = 1;
*/
@java.lang.Override
public org.openfeed.LoginRequestOrBuilder getLoginRequestOrBuilder() {
if ((dataCase_ == 1) && (loginRequestBuilder_ != null)) {
return loginRequestBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 1) {
return (org.openfeed.LoginRequest) data_;
}
return org.openfeed.LoginRequest.getDefaultInstance();
}
}
/**
* .org.openfeed.LoginRequest loginRequest = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.LoginRequest, org.openfeed.LoginRequest.Builder, org.openfeed.LoginRequestOrBuilder>
getLoginRequestFieldBuilder() {
if (loginRequestBuilder_ == null) {
if (!(dataCase_ == 1)) {
data_ = org.openfeed.LoginRequest.getDefaultInstance();
}
loginRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.LoginRequest, org.openfeed.LoginRequest.Builder, org.openfeed.LoginRequestOrBuilder>(
(org.openfeed.LoginRequest) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 1;
onChanged();
return loginRequestBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.LogoutRequest, org.openfeed.LogoutRequest.Builder, org.openfeed.LogoutRequestOrBuilder> logoutRequestBuilder_;
/**
* .org.openfeed.LogoutRequest logoutRequest = 2;
* @return Whether the logoutRequest field is set.
*/
@java.lang.Override
public boolean hasLogoutRequest() {
return dataCase_ == 2;
}
/**
* .org.openfeed.LogoutRequest logoutRequest = 2;
* @return The logoutRequest.
*/
@java.lang.Override
public org.openfeed.LogoutRequest getLogoutRequest() {
if (logoutRequestBuilder_ == null) {
if (dataCase_ == 2) {
return (org.openfeed.LogoutRequest) data_;
}
return org.openfeed.LogoutRequest.getDefaultInstance();
} else {
if (dataCase_ == 2) {
return logoutRequestBuilder_.getMessage();
}
return org.openfeed.LogoutRequest.getDefaultInstance();
}
}
/**
* .org.openfeed.LogoutRequest logoutRequest = 2;
*/
public Builder setLogoutRequest(org.openfeed.LogoutRequest value) {
if (logoutRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
logoutRequestBuilder_.setMessage(value);
}
dataCase_ = 2;
return this;
}
/**
* .org.openfeed.LogoutRequest logoutRequest = 2;
*/
public Builder setLogoutRequest(
org.openfeed.LogoutRequest.Builder builderForValue) {
if (logoutRequestBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
logoutRequestBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 2;
return this;
}
/**
* .org.openfeed.LogoutRequest logoutRequest = 2;
*/
public Builder mergeLogoutRequest(org.openfeed.LogoutRequest value) {
if (logoutRequestBuilder_ == null) {
if (dataCase_ == 2 &&
data_ != org.openfeed.LogoutRequest.getDefaultInstance()) {
data_ = org.openfeed.LogoutRequest.newBuilder((org.openfeed.LogoutRequest) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 2) {
logoutRequestBuilder_.mergeFrom(value);
} else {
logoutRequestBuilder_.setMessage(value);
}
}
dataCase_ = 2;
return this;
}
/**
* .org.openfeed.LogoutRequest logoutRequest = 2;
*/
public Builder clearLogoutRequest() {
if (logoutRequestBuilder_ == null) {
if (dataCase_ == 2) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 2) {
dataCase_ = 0;
data_ = null;
}
logoutRequestBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.LogoutRequest logoutRequest = 2;
*/
public org.openfeed.LogoutRequest.Builder getLogoutRequestBuilder() {
return getLogoutRequestFieldBuilder().getBuilder();
}
/**
* .org.openfeed.LogoutRequest logoutRequest = 2;
*/
@java.lang.Override
public org.openfeed.LogoutRequestOrBuilder getLogoutRequestOrBuilder() {
if ((dataCase_ == 2) && (logoutRequestBuilder_ != null)) {
return logoutRequestBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 2) {
return (org.openfeed.LogoutRequest) data_;
}
return org.openfeed.LogoutRequest.getDefaultInstance();
}
}
/**
* .org.openfeed.LogoutRequest logoutRequest = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.LogoutRequest, org.openfeed.LogoutRequest.Builder, org.openfeed.LogoutRequestOrBuilder>
getLogoutRequestFieldBuilder() {
if (logoutRequestBuilder_ == null) {
if (!(dataCase_ == 2)) {
data_ = org.openfeed.LogoutRequest.getDefaultInstance();
}
logoutRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.LogoutRequest, org.openfeed.LogoutRequest.Builder, org.openfeed.LogoutRequestOrBuilder>(
(org.openfeed.LogoutRequest) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 2;
onChanged();
return logoutRequestBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.SubscriptionRequest, org.openfeed.SubscriptionRequest.Builder, org.openfeed.SubscriptionRequestOrBuilder> subscriptionRequestBuilder_;
/**
* .org.openfeed.SubscriptionRequest subscriptionRequest = 3;
* @return Whether the subscriptionRequest field is set.
*/
@java.lang.Override
public boolean hasSubscriptionRequest() {
return dataCase_ == 3;
}
/**
* .org.openfeed.SubscriptionRequest subscriptionRequest = 3;
* @return The subscriptionRequest.
*/
@java.lang.Override
public org.openfeed.SubscriptionRequest getSubscriptionRequest() {
if (subscriptionRequestBuilder_ == null) {
if (dataCase_ == 3) {
return (org.openfeed.SubscriptionRequest) data_;
}
return org.openfeed.SubscriptionRequest.getDefaultInstance();
} else {
if (dataCase_ == 3) {
return subscriptionRequestBuilder_.getMessage();
}
return org.openfeed.SubscriptionRequest.getDefaultInstance();
}
}
/**
* .org.openfeed.SubscriptionRequest subscriptionRequest = 3;
*/
public Builder setSubscriptionRequest(org.openfeed.SubscriptionRequest value) {
if (subscriptionRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
subscriptionRequestBuilder_.setMessage(value);
}
dataCase_ = 3;
return this;
}
/**
* .org.openfeed.SubscriptionRequest subscriptionRequest = 3;
*/
public Builder setSubscriptionRequest(
org.openfeed.SubscriptionRequest.Builder builderForValue) {
if (subscriptionRequestBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
subscriptionRequestBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 3;
return this;
}
/**
* .org.openfeed.SubscriptionRequest subscriptionRequest = 3;
*/
public Builder mergeSubscriptionRequest(org.openfeed.SubscriptionRequest value) {
if (subscriptionRequestBuilder_ == null) {
if (dataCase_ == 3 &&
data_ != org.openfeed.SubscriptionRequest.getDefaultInstance()) {
data_ = org.openfeed.SubscriptionRequest.newBuilder((org.openfeed.SubscriptionRequest) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 3) {
subscriptionRequestBuilder_.mergeFrom(value);
} else {
subscriptionRequestBuilder_.setMessage(value);
}
}
dataCase_ = 3;
return this;
}
/**
* .org.openfeed.SubscriptionRequest subscriptionRequest = 3;
*/
public Builder clearSubscriptionRequest() {
if (subscriptionRequestBuilder_ == null) {
if (dataCase_ == 3) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 3) {
dataCase_ = 0;
data_ = null;
}
subscriptionRequestBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.SubscriptionRequest subscriptionRequest = 3;
*/
public org.openfeed.SubscriptionRequest.Builder getSubscriptionRequestBuilder() {
return getSubscriptionRequestFieldBuilder().getBuilder();
}
/**
* .org.openfeed.SubscriptionRequest subscriptionRequest = 3;
*/
@java.lang.Override
public org.openfeed.SubscriptionRequestOrBuilder getSubscriptionRequestOrBuilder() {
if ((dataCase_ == 3) && (subscriptionRequestBuilder_ != null)) {
return subscriptionRequestBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 3) {
return (org.openfeed.SubscriptionRequest) data_;
}
return org.openfeed.SubscriptionRequest.getDefaultInstance();
}
}
/**
* .org.openfeed.SubscriptionRequest subscriptionRequest = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.SubscriptionRequest, org.openfeed.SubscriptionRequest.Builder, org.openfeed.SubscriptionRequestOrBuilder>
getSubscriptionRequestFieldBuilder() {
if (subscriptionRequestBuilder_ == null) {
if (!(dataCase_ == 3)) {
data_ = org.openfeed.SubscriptionRequest.getDefaultInstance();
}
subscriptionRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.SubscriptionRequest, org.openfeed.SubscriptionRequest.Builder, org.openfeed.SubscriptionRequestOrBuilder>(
(org.openfeed.SubscriptionRequest) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 3;
onChanged();
return subscriptionRequestBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentRequest, org.openfeed.InstrumentRequest.Builder, org.openfeed.InstrumentRequestOrBuilder> instrumentRequestBuilder_;
/**
* .org.openfeed.InstrumentRequest instrumentRequest = 4;
* @return Whether the instrumentRequest field is set.
*/
@java.lang.Override
public boolean hasInstrumentRequest() {
return dataCase_ == 4;
}
/**
* .org.openfeed.InstrumentRequest instrumentRequest = 4;
* @return The instrumentRequest.
*/
@java.lang.Override
public org.openfeed.InstrumentRequest getInstrumentRequest() {
if (instrumentRequestBuilder_ == null) {
if (dataCase_ == 4) {
return (org.openfeed.InstrumentRequest) data_;
}
return org.openfeed.InstrumentRequest.getDefaultInstance();
} else {
if (dataCase_ == 4) {
return instrumentRequestBuilder_.getMessage();
}
return org.openfeed.InstrumentRequest.getDefaultInstance();
}
}
/**
* .org.openfeed.InstrumentRequest instrumentRequest = 4;
*/
public Builder setInstrumentRequest(org.openfeed.InstrumentRequest value) {
if (instrumentRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
instrumentRequestBuilder_.setMessage(value);
}
dataCase_ = 4;
return this;
}
/**
* .org.openfeed.InstrumentRequest instrumentRequest = 4;
*/
public Builder setInstrumentRequest(
org.openfeed.InstrumentRequest.Builder builderForValue) {
if (instrumentRequestBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
instrumentRequestBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 4;
return this;
}
/**
* .org.openfeed.InstrumentRequest instrumentRequest = 4;
*/
public Builder mergeInstrumentRequest(org.openfeed.InstrumentRequest value) {
if (instrumentRequestBuilder_ == null) {
if (dataCase_ == 4 &&
data_ != org.openfeed.InstrumentRequest.getDefaultInstance()) {
data_ = org.openfeed.InstrumentRequest.newBuilder((org.openfeed.InstrumentRequest) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 4) {
instrumentRequestBuilder_.mergeFrom(value);
} else {
instrumentRequestBuilder_.setMessage(value);
}
}
dataCase_ = 4;
return this;
}
/**
* .org.openfeed.InstrumentRequest instrumentRequest = 4;
*/
public Builder clearInstrumentRequest() {
if (instrumentRequestBuilder_ == null) {
if (dataCase_ == 4) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 4) {
dataCase_ = 0;
data_ = null;
}
instrumentRequestBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.InstrumentRequest instrumentRequest = 4;
*/
public org.openfeed.InstrumentRequest.Builder getInstrumentRequestBuilder() {
return getInstrumentRequestFieldBuilder().getBuilder();
}
/**
* .org.openfeed.InstrumentRequest instrumentRequest = 4;
*/
@java.lang.Override
public org.openfeed.InstrumentRequestOrBuilder getInstrumentRequestOrBuilder() {
if ((dataCase_ == 4) && (instrumentRequestBuilder_ != null)) {
return instrumentRequestBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 4) {
return (org.openfeed.InstrumentRequest) data_;
}
return org.openfeed.InstrumentRequest.getDefaultInstance();
}
}
/**
* .org.openfeed.InstrumentRequest instrumentRequest = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentRequest, org.openfeed.InstrumentRequest.Builder, org.openfeed.InstrumentRequestOrBuilder>
getInstrumentRequestFieldBuilder() {
if (instrumentRequestBuilder_ == null) {
if (!(dataCase_ == 4)) {
data_ = org.openfeed.InstrumentRequest.getDefaultInstance();
}
instrumentRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentRequest, org.openfeed.InstrumentRequest.Builder, org.openfeed.InstrumentRequestOrBuilder>(
(org.openfeed.InstrumentRequest) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 4;
onChanged();
return instrumentRequestBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentReferenceRequest, org.openfeed.InstrumentReferenceRequest.Builder, org.openfeed.InstrumentReferenceRequestOrBuilder> instrumentReferenceRequestBuilder_;
/**
* .org.openfeed.InstrumentReferenceRequest instrumentReferenceRequest = 5;
* @return Whether the instrumentReferenceRequest field is set.
*/
@java.lang.Override
public boolean hasInstrumentReferenceRequest() {
return dataCase_ == 5;
}
/**
* .org.openfeed.InstrumentReferenceRequest instrumentReferenceRequest = 5;
* @return The instrumentReferenceRequest.
*/
@java.lang.Override
public org.openfeed.InstrumentReferenceRequest getInstrumentReferenceRequest() {
if (instrumentReferenceRequestBuilder_ == null) {
if (dataCase_ == 5) {
return (org.openfeed.InstrumentReferenceRequest) data_;
}
return org.openfeed.InstrumentReferenceRequest.getDefaultInstance();
} else {
if (dataCase_ == 5) {
return instrumentReferenceRequestBuilder_.getMessage();
}
return org.openfeed.InstrumentReferenceRequest.getDefaultInstance();
}
}
/**
* .org.openfeed.InstrumentReferenceRequest instrumentReferenceRequest = 5;
*/
public Builder setInstrumentReferenceRequest(org.openfeed.InstrumentReferenceRequest value) {
if (instrumentReferenceRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
instrumentReferenceRequestBuilder_.setMessage(value);
}
dataCase_ = 5;
return this;
}
/**
* .org.openfeed.InstrumentReferenceRequest instrumentReferenceRequest = 5;
*/
public Builder setInstrumentReferenceRequest(
org.openfeed.InstrumentReferenceRequest.Builder builderForValue) {
if (instrumentReferenceRequestBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
instrumentReferenceRequestBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 5;
return this;
}
/**
* .org.openfeed.InstrumentReferenceRequest instrumentReferenceRequest = 5;
*/
public Builder mergeInstrumentReferenceRequest(org.openfeed.InstrumentReferenceRequest value) {
if (instrumentReferenceRequestBuilder_ == null) {
if (dataCase_ == 5 &&
data_ != org.openfeed.InstrumentReferenceRequest.getDefaultInstance()) {
data_ = org.openfeed.InstrumentReferenceRequest.newBuilder((org.openfeed.InstrumentReferenceRequest) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 5) {
instrumentReferenceRequestBuilder_.mergeFrom(value);
} else {
instrumentReferenceRequestBuilder_.setMessage(value);
}
}
dataCase_ = 5;
return this;
}
/**
* .org.openfeed.InstrumentReferenceRequest instrumentReferenceRequest = 5;
*/
public Builder clearInstrumentReferenceRequest() {
if (instrumentReferenceRequestBuilder_ == null) {
if (dataCase_ == 5) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 5) {
dataCase_ = 0;
data_ = null;
}
instrumentReferenceRequestBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.InstrumentReferenceRequest instrumentReferenceRequest = 5;
*/
public org.openfeed.InstrumentReferenceRequest.Builder getInstrumentReferenceRequestBuilder() {
return getInstrumentReferenceRequestFieldBuilder().getBuilder();
}
/**
* .org.openfeed.InstrumentReferenceRequest instrumentReferenceRequest = 5;
*/
@java.lang.Override
public org.openfeed.InstrumentReferenceRequestOrBuilder getInstrumentReferenceRequestOrBuilder() {
if ((dataCase_ == 5) && (instrumentReferenceRequestBuilder_ != null)) {
return instrumentReferenceRequestBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 5) {
return (org.openfeed.InstrumentReferenceRequest) data_;
}
return org.openfeed.InstrumentReferenceRequest.getDefaultInstance();
}
}
/**
* .org.openfeed.InstrumentReferenceRequest instrumentReferenceRequest = 5;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentReferenceRequest, org.openfeed.InstrumentReferenceRequest.Builder, org.openfeed.InstrumentReferenceRequestOrBuilder>
getInstrumentReferenceRequestFieldBuilder() {
if (instrumentReferenceRequestBuilder_ == null) {
if (!(dataCase_ == 5)) {
data_ = org.openfeed.InstrumentReferenceRequest.getDefaultInstance();
}
instrumentReferenceRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.InstrumentReferenceRequest, org.openfeed.InstrumentReferenceRequest.Builder, org.openfeed.InstrumentReferenceRequestOrBuilder>(
(org.openfeed.InstrumentReferenceRequest) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 5;
onChanged();
return instrumentReferenceRequestBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.ExchangeRequest, org.openfeed.ExchangeRequest.Builder, org.openfeed.ExchangeRequestOrBuilder> exchangeRequestBuilder_;
/**
* .org.openfeed.ExchangeRequest exchangeRequest = 6;
* @return Whether the exchangeRequest field is set.
*/
@java.lang.Override
public boolean hasExchangeRequest() {
return dataCase_ == 6;
}
/**
* .org.openfeed.ExchangeRequest exchangeRequest = 6;
* @return The exchangeRequest.
*/
@java.lang.Override
public org.openfeed.ExchangeRequest getExchangeRequest() {
if (exchangeRequestBuilder_ == null) {
if (dataCase_ == 6) {
return (org.openfeed.ExchangeRequest) data_;
}
return org.openfeed.ExchangeRequest.getDefaultInstance();
} else {
if (dataCase_ == 6) {
return exchangeRequestBuilder_.getMessage();
}
return org.openfeed.ExchangeRequest.getDefaultInstance();
}
}
/**
* .org.openfeed.ExchangeRequest exchangeRequest = 6;
*/
public Builder setExchangeRequest(org.openfeed.ExchangeRequest value) {
if (exchangeRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
exchangeRequestBuilder_.setMessage(value);
}
dataCase_ = 6;
return this;
}
/**
* .org.openfeed.ExchangeRequest exchangeRequest = 6;
*/
public Builder setExchangeRequest(
org.openfeed.ExchangeRequest.Builder builderForValue) {
if (exchangeRequestBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
exchangeRequestBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 6;
return this;
}
/**
* .org.openfeed.ExchangeRequest exchangeRequest = 6;
*/
public Builder mergeExchangeRequest(org.openfeed.ExchangeRequest value) {
if (exchangeRequestBuilder_ == null) {
if (dataCase_ == 6 &&
data_ != org.openfeed.ExchangeRequest.getDefaultInstance()) {
data_ = org.openfeed.ExchangeRequest.newBuilder((org.openfeed.ExchangeRequest) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 6) {
exchangeRequestBuilder_.mergeFrom(value);
} else {
exchangeRequestBuilder_.setMessage(value);
}
}
dataCase_ = 6;
return this;
}
/**
* .org.openfeed.ExchangeRequest exchangeRequest = 6;
*/
public Builder clearExchangeRequest() {
if (exchangeRequestBuilder_ == null) {
if (dataCase_ == 6) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 6) {
dataCase_ = 0;
data_ = null;
}
exchangeRequestBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.ExchangeRequest exchangeRequest = 6;
*/
public org.openfeed.ExchangeRequest.Builder getExchangeRequestBuilder() {
return getExchangeRequestFieldBuilder().getBuilder();
}
/**
* .org.openfeed.ExchangeRequest exchangeRequest = 6;
*/
@java.lang.Override
public org.openfeed.ExchangeRequestOrBuilder getExchangeRequestOrBuilder() {
if ((dataCase_ == 6) && (exchangeRequestBuilder_ != null)) {
return exchangeRequestBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 6) {
return (org.openfeed.ExchangeRequest) data_;
}
return org.openfeed.ExchangeRequest.getDefaultInstance();
}
}
/**
* .org.openfeed.ExchangeRequest exchangeRequest = 6;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.ExchangeRequest, org.openfeed.ExchangeRequest.Builder, org.openfeed.ExchangeRequestOrBuilder>
getExchangeRequestFieldBuilder() {
if (exchangeRequestBuilder_ == null) {
if (!(dataCase_ == 6)) {
data_ = org.openfeed.ExchangeRequest.getDefaultInstance();
}
exchangeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.ExchangeRequest, org.openfeed.ExchangeRequest.Builder, org.openfeed.ExchangeRequestOrBuilder>(
(org.openfeed.ExchangeRequest) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 6;
onChanged();
return exchangeRequestBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.ListSubscriptionsRequest, org.openfeed.ListSubscriptionsRequest.Builder, org.openfeed.ListSubscriptionsRequestOrBuilder> listSubscriptionsRequestBuilder_;
/**
* .org.openfeed.ListSubscriptionsRequest listSubscriptionsRequest = 7;
* @return Whether the listSubscriptionsRequest field is set.
*/
@java.lang.Override
public boolean hasListSubscriptionsRequest() {
return dataCase_ == 7;
}
/**
* .org.openfeed.ListSubscriptionsRequest listSubscriptionsRequest = 7;
* @return The listSubscriptionsRequest.
*/
@java.lang.Override
public org.openfeed.ListSubscriptionsRequest getListSubscriptionsRequest() {
if (listSubscriptionsRequestBuilder_ == null) {
if (dataCase_ == 7) {
return (org.openfeed.ListSubscriptionsRequest) data_;
}
return org.openfeed.ListSubscriptionsRequest.getDefaultInstance();
} else {
if (dataCase_ == 7) {
return listSubscriptionsRequestBuilder_.getMessage();
}
return org.openfeed.ListSubscriptionsRequest.getDefaultInstance();
}
}
/**
* .org.openfeed.ListSubscriptionsRequest listSubscriptionsRequest = 7;
*/
public Builder setListSubscriptionsRequest(org.openfeed.ListSubscriptionsRequest value) {
if (listSubscriptionsRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
listSubscriptionsRequestBuilder_.setMessage(value);
}
dataCase_ = 7;
return this;
}
/**
* .org.openfeed.ListSubscriptionsRequest listSubscriptionsRequest = 7;
*/
public Builder setListSubscriptionsRequest(
org.openfeed.ListSubscriptionsRequest.Builder builderForValue) {
if (listSubscriptionsRequestBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
listSubscriptionsRequestBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 7;
return this;
}
/**
* .org.openfeed.ListSubscriptionsRequest listSubscriptionsRequest = 7;
*/
public Builder mergeListSubscriptionsRequest(org.openfeed.ListSubscriptionsRequest value) {
if (listSubscriptionsRequestBuilder_ == null) {
if (dataCase_ == 7 &&
data_ != org.openfeed.ListSubscriptionsRequest.getDefaultInstance()) {
data_ = org.openfeed.ListSubscriptionsRequest.newBuilder((org.openfeed.ListSubscriptionsRequest) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 7) {
listSubscriptionsRequestBuilder_.mergeFrom(value);
} else {
listSubscriptionsRequestBuilder_.setMessage(value);
}
}
dataCase_ = 7;
return this;
}
/**
* .org.openfeed.ListSubscriptionsRequest listSubscriptionsRequest = 7;
*/
public Builder clearListSubscriptionsRequest() {
if (listSubscriptionsRequestBuilder_ == null) {
if (dataCase_ == 7) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 7) {
dataCase_ = 0;
data_ = null;
}
listSubscriptionsRequestBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.ListSubscriptionsRequest listSubscriptionsRequest = 7;
*/
public org.openfeed.ListSubscriptionsRequest.Builder getListSubscriptionsRequestBuilder() {
return getListSubscriptionsRequestFieldBuilder().getBuilder();
}
/**
* .org.openfeed.ListSubscriptionsRequest listSubscriptionsRequest = 7;
*/
@java.lang.Override
public org.openfeed.ListSubscriptionsRequestOrBuilder getListSubscriptionsRequestOrBuilder() {
if ((dataCase_ == 7) && (listSubscriptionsRequestBuilder_ != null)) {
return listSubscriptionsRequestBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 7) {
return (org.openfeed.ListSubscriptionsRequest) data_;
}
return org.openfeed.ListSubscriptionsRequest.getDefaultInstance();
}
}
/**
* .org.openfeed.ListSubscriptionsRequest listSubscriptionsRequest = 7;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.ListSubscriptionsRequest, org.openfeed.ListSubscriptionsRequest.Builder, org.openfeed.ListSubscriptionsRequestOrBuilder>
getListSubscriptionsRequestFieldBuilder() {
if (listSubscriptionsRequestBuilder_ == null) {
if (!(dataCase_ == 7)) {
data_ = org.openfeed.ListSubscriptionsRequest.getDefaultInstance();
}
listSubscriptionsRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.ListSubscriptionsRequest, org.openfeed.ListSubscriptionsRequest.Builder, org.openfeed.ListSubscriptionsRequestOrBuilder>(
(org.openfeed.ListSubscriptionsRequest) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 7;
onChanged();
return listSubscriptionsRequestBuilder_;
}
// @@protoc_insertion_point(builder_scope:org.openfeed.OpenfeedGatewayRequest)
}
// @@protoc_insertion_point(class_scope:org.openfeed.OpenfeedGatewayRequest)
private static final org.openfeed.OpenfeedGatewayRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openfeed.OpenfeedGatewayRequest();
}
public static org.openfeed.OpenfeedGatewayRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OpenfeedGatewayRequest 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.OpenfeedGatewayRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy