org.openfeed.DepthPriceLevel Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: openfeed.proto
// Protobuf Java Version: 4.28.3
package org.openfeed;
/**
*
* / Depth Price Level
*
*
* Protobuf type {@code org.openfeed.DepthPriceLevel}
*/
public final class DepthPriceLevel extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:org.openfeed.DepthPriceLevel)
DepthPriceLevelOrBuilder {
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= */ "",
DepthPriceLevel.class.getName());
}
// Use DepthPriceLevel.newBuilder() to construct.
private DepthPriceLevel(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private DepthPriceLevel() {
levels_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthPriceLevel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthPriceLevel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.DepthPriceLevel.class, org.openfeed.DepthPriceLevel.Builder.class);
}
public interface EntryOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.openfeed.DepthPriceLevel.Entry)
com.google.protobuf.MessageOrBuilder {
/**
* .org.openfeed.AddPriceLevel addPriceLevel = 1;
* @return Whether the addPriceLevel field is set.
*/
boolean hasAddPriceLevel();
/**
* .org.openfeed.AddPriceLevel addPriceLevel = 1;
* @return The addPriceLevel.
*/
org.openfeed.AddPriceLevel getAddPriceLevel();
/**
* .org.openfeed.AddPriceLevel addPriceLevel = 1;
*/
org.openfeed.AddPriceLevelOrBuilder getAddPriceLevelOrBuilder();
/**
* .org.openfeed.DeletePriceLevel deletePriceLevel = 2;
* @return Whether the deletePriceLevel field is set.
*/
boolean hasDeletePriceLevel();
/**
* .org.openfeed.DeletePriceLevel deletePriceLevel = 2;
* @return The deletePriceLevel.
*/
org.openfeed.DeletePriceLevel getDeletePriceLevel();
/**
* .org.openfeed.DeletePriceLevel deletePriceLevel = 2;
*/
org.openfeed.DeletePriceLevelOrBuilder getDeletePriceLevelOrBuilder();
/**
* .org.openfeed.ModifyPriceLevel modifyPriceLevel = 3;
* @return Whether the modifyPriceLevel field is set.
*/
boolean hasModifyPriceLevel();
/**
* .org.openfeed.ModifyPriceLevel modifyPriceLevel = 3;
* @return The modifyPriceLevel.
*/
org.openfeed.ModifyPriceLevel getModifyPriceLevel();
/**
* .org.openfeed.ModifyPriceLevel modifyPriceLevel = 3;
*/
org.openfeed.ModifyPriceLevelOrBuilder getModifyPriceLevelOrBuilder();
org.openfeed.DepthPriceLevel.Entry.DataCase getDataCase();
}
/**
* Protobuf type {@code org.openfeed.DepthPriceLevel.Entry}
*/
public static final class Entry extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:org.openfeed.DepthPriceLevel.Entry)
EntryOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 3,
/* suffix= */ "",
Entry.class.getName());
}
// Use Entry.newBuilder() to construct.
private Entry(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Entry() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthPriceLevel_Entry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthPriceLevel_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.DepthPriceLevel.Entry.class, org.openfeed.DepthPriceLevel.Entry.Builder.class);
}
private int dataCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object data_;
public enum DataCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ADDPRICELEVEL(1),
DELETEPRICELEVEL(2),
MODIFYPRICELEVEL(3),
DATA_NOT_SET(0);
private final int value;
private DataCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DataCase valueOf(int value) {
return forNumber(value);
}
public static DataCase forNumber(int value) {
switch (value) {
case 1: return ADDPRICELEVEL;
case 2: return DELETEPRICELEVEL;
case 3: return MODIFYPRICELEVEL;
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 ADDPRICELEVEL_FIELD_NUMBER = 1;
/**
* .org.openfeed.AddPriceLevel addPriceLevel = 1;
* @return Whether the addPriceLevel field is set.
*/
@java.lang.Override
public boolean hasAddPriceLevel() {
return dataCase_ == 1;
}
/**
* .org.openfeed.AddPriceLevel addPriceLevel = 1;
* @return The addPriceLevel.
*/
@java.lang.Override
public org.openfeed.AddPriceLevel getAddPriceLevel() {
if (dataCase_ == 1) {
return (org.openfeed.AddPriceLevel) data_;
}
return org.openfeed.AddPriceLevel.getDefaultInstance();
}
/**
* .org.openfeed.AddPriceLevel addPriceLevel = 1;
*/
@java.lang.Override
public org.openfeed.AddPriceLevelOrBuilder getAddPriceLevelOrBuilder() {
if (dataCase_ == 1) {
return (org.openfeed.AddPriceLevel) data_;
}
return org.openfeed.AddPriceLevel.getDefaultInstance();
}
public static final int DELETEPRICELEVEL_FIELD_NUMBER = 2;
/**
* .org.openfeed.DeletePriceLevel deletePriceLevel = 2;
* @return Whether the deletePriceLevel field is set.
*/
@java.lang.Override
public boolean hasDeletePriceLevel() {
return dataCase_ == 2;
}
/**
* .org.openfeed.DeletePriceLevel deletePriceLevel = 2;
* @return The deletePriceLevel.
*/
@java.lang.Override
public org.openfeed.DeletePriceLevel getDeletePriceLevel() {
if (dataCase_ == 2) {
return (org.openfeed.DeletePriceLevel) data_;
}
return org.openfeed.DeletePriceLevel.getDefaultInstance();
}
/**
* .org.openfeed.DeletePriceLevel deletePriceLevel = 2;
*/
@java.lang.Override
public org.openfeed.DeletePriceLevelOrBuilder getDeletePriceLevelOrBuilder() {
if (dataCase_ == 2) {
return (org.openfeed.DeletePriceLevel) data_;
}
return org.openfeed.DeletePriceLevel.getDefaultInstance();
}
public static final int MODIFYPRICELEVEL_FIELD_NUMBER = 3;
/**
* .org.openfeed.ModifyPriceLevel modifyPriceLevel = 3;
* @return Whether the modifyPriceLevel field is set.
*/
@java.lang.Override
public boolean hasModifyPriceLevel() {
return dataCase_ == 3;
}
/**
* .org.openfeed.ModifyPriceLevel modifyPriceLevel = 3;
* @return The modifyPriceLevel.
*/
@java.lang.Override
public org.openfeed.ModifyPriceLevel getModifyPriceLevel() {
if (dataCase_ == 3) {
return (org.openfeed.ModifyPriceLevel) data_;
}
return org.openfeed.ModifyPriceLevel.getDefaultInstance();
}
/**
* .org.openfeed.ModifyPriceLevel modifyPriceLevel = 3;
*/
@java.lang.Override
public org.openfeed.ModifyPriceLevelOrBuilder getModifyPriceLevelOrBuilder() {
if (dataCase_ == 3) {
return (org.openfeed.ModifyPriceLevel) data_;
}
return org.openfeed.ModifyPriceLevel.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.AddPriceLevel) data_);
}
if (dataCase_ == 2) {
output.writeMessage(2, (org.openfeed.DeletePriceLevel) data_);
}
if (dataCase_ == 3) {
output.writeMessage(3, (org.openfeed.ModifyPriceLevel) 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.AddPriceLevel) data_);
}
if (dataCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (org.openfeed.DeletePriceLevel) data_);
}
if (dataCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (org.openfeed.ModifyPriceLevel) 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.DepthPriceLevel.Entry)) {
return super.equals(obj);
}
org.openfeed.DepthPriceLevel.Entry other = (org.openfeed.DepthPriceLevel.Entry) obj;
if (!getDataCase().equals(other.getDataCase())) return false;
switch (dataCase_) {
case 1:
if (!getAddPriceLevel()
.equals(other.getAddPriceLevel())) return false;
break;
case 2:
if (!getDeletePriceLevel()
.equals(other.getDeletePriceLevel())) return false;
break;
case 3:
if (!getModifyPriceLevel()
.equals(other.getModifyPriceLevel())) 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) + ADDPRICELEVEL_FIELD_NUMBER;
hash = (53 * hash) + getAddPriceLevel().hashCode();
break;
case 2:
hash = (37 * hash) + DELETEPRICELEVEL_FIELD_NUMBER;
hash = (53 * hash) + getDeletePriceLevel().hashCode();
break;
case 3:
hash = (37 * hash) + MODIFYPRICELEVEL_FIELD_NUMBER;
hash = (53 * hash) + getModifyPriceLevel().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openfeed.DepthPriceLevel.Entry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.DepthPriceLevel.Entry parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.DepthPriceLevel.Entry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.DepthPriceLevel.Entry parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.DepthPriceLevel.Entry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.DepthPriceLevel.Entry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.DepthPriceLevel.Entry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.DepthPriceLevel.Entry parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.openfeed.DepthPriceLevel.Entry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openfeed.DepthPriceLevel.Entry parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.openfeed.DepthPriceLevel.Entry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.DepthPriceLevel.Entry parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.openfeed.DepthPriceLevel.Entry prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code org.openfeed.DepthPriceLevel.Entry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:org.openfeed.DepthPriceLevel.Entry)
org.openfeed.DepthPriceLevel.EntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthPriceLevel_Entry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthPriceLevel_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.DepthPriceLevel.Entry.class, org.openfeed.DepthPriceLevel.Entry.Builder.class);
}
// Construct using org.openfeed.DepthPriceLevel.Entry.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (addPriceLevelBuilder_ != null) {
addPriceLevelBuilder_.clear();
}
if (deletePriceLevelBuilder_ != null) {
deletePriceLevelBuilder_.clear();
}
if (modifyPriceLevelBuilder_ != null) {
modifyPriceLevelBuilder_.clear();
}
dataCase_ = 0;
data_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthPriceLevel_Entry_descriptor;
}
@java.lang.Override
public org.openfeed.DepthPriceLevel.Entry getDefaultInstanceForType() {
return org.openfeed.DepthPriceLevel.Entry.getDefaultInstance();
}
@java.lang.Override
public org.openfeed.DepthPriceLevel.Entry build() {
org.openfeed.DepthPriceLevel.Entry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openfeed.DepthPriceLevel.Entry buildPartial() {
org.openfeed.DepthPriceLevel.Entry result = new org.openfeed.DepthPriceLevel.Entry(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(org.openfeed.DepthPriceLevel.Entry result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(org.openfeed.DepthPriceLevel.Entry result) {
result.dataCase_ = dataCase_;
result.data_ = this.data_;
if (dataCase_ == 1 &&
addPriceLevelBuilder_ != null) {
result.data_ = addPriceLevelBuilder_.build();
}
if (dataCase_ == 2 &&
deletePriceLevelBuilder_ != null) {
result.data_ = deletePriceLevelBuilder_.build();
}
if (dataCase_ == 3 &&
modifyPriceLevelBuilder_ != null) {
result.data_ = modifyPriceLevelBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openfeed.DepthPriceLevel.Entry) {
return mergeFrom((org.openfeed.DepthPriceLevel.Entry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openfeed.DepthPriceLevel.Entry other) {
if (other == org.openfeed.DepthPriceLevel.Entry.getDefaultInstance()) return this;
switch (other.getDataCase()) {
case ADDPRICELEVEL: {
mergeAddPriceLevel(other.getAddPriceLevel());
break;
}
case DELETEPRICELEVEL: {
mergeDeletePriceLevel(other.getDeletePriceLevel());
break;
}
case MODIFYPRICELEVEL: {
mergeModifyPriceLevel(other.getModifyPriceLevel());
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(
getAddPriceLevelFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getDeletePriceLevelFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getModifyPriceLevelFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 3;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int dataCase_ = 0;
private java.lang.Object data_;
public DataCase
getDataCase() {
return DataCase.forNumber(
dataCase_);
}
public Builder clearData() {
dataCase_ = 0;
data_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.AddPriceLevel, org.openfeed.AddPriceLevel.Builder, org.openfeed.AddPriceLevelOrBuilder> addPriceLevelBuilder_;
/**
* .org.openfeed.AddPriceLevel addPriceLevel = 1;
* @return Whether the addPriceLevel field is set.
*/
@java.lang.Override
public boolean hasAddPriceLevel() {
return dataCase_ == 1;
}
/**
* .org.openfeed.AddPriceLevel addPriceLevel = 1;
* @return The addPriceLevel.
*/
@java.lang.Override
public org.openfeed.AddPriceLevel getAddPriceLevel() {
if (addPriceLevelBuilder_ == null) {
if (dataCase_ == 1) {
return (org.openfeed.AddPriceLevel) data_;
}
return org.openfeed.AddPriceLevel.getDefaultInstance();
} else {
if (dataCase_ == 1) {
return addPriceLevelBuilder_.getMessage();
}
return org.openfeed.AddPriceLevel.getDefaultInstance();
}
}
/**
* .org.openfeed.AddPriceLevel addPriceLevel = 1;
*/
public Builder setAddPriceLevel(org.openfeed.AddPriceLevel value) {
if (addPriceLevelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
addPriceLevelBuilder_.setMessage(value);
}
dataCase_ = 1;
return this;
}
/**
* .org.openfeed.AddPriceLevel addPriceLevel = 1;
*/
public Builder setAddPriceLevel(
org.openfeed.AddPriceLevel.Builder builderForValue) {
if (addPriceLevelBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
addPriceLevelBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 1;
return this;
}
/**
* .org.openfeed.AddPriceLevel addPriceLevel = 1;
*/
public Builder mergeAddPriceLevel(org.openfeed.AddPriceLevel value) {
if (addPriceLevelBuilder_ == null) {
if (dataCase_ == 1 &&
data_ != org.openfeed.AddPriceLevel.getDefaultInstance()) {
data_ = org.openfeed.AddPriceLevel.newBuilder((org.openfeed.AddPriceLevel) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 1) {
addPriceLevelBuilder_.mergeFrom(value);
} else {
addPriceLevelBuilder_.setMessage(value);
}
}
dataCase_ = 1;
return this;
}
/**
* .org.openfeed.AddPriceLevel addPriceLevel = 1;
*/
public Builder clearAddPriceLevel() {
if (addPriceLevelBuilder_ == null) {
if (dataCase_ == 1) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 1) {
dataCase_ = 0;
data_ = null;
}
addPriceLevelBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.AddPriceLevel addPriceLevel = 1;
*/
public org.openfeed.AddPriceLevel.Builder getAddPriceLevelBuilder() {
return getAddPriceLevelFieldBuilder().getBuilder();
}
/**
* .org.openfeed.AddPriceLevel addPriceLevel = 1;
*/
@java.lang.Override
public org.openfeed.AddPriceLevelOrBuilder getAddPriceLevelOrBuilder() {
if ((dataCase_ == 1) && (addPriceLevelBuilder_ != null)) {
return addPriceLevelBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 1) {
return (org.openfeed.AddPriceLevel) data_;
}
return org.openfeed.AddPriceLevel.getDefaultInstance();
}
}
/**
* .org.openfeed.AddPriceLevel addPriceLevel = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.AddPriceLevel, org.openfeed.AddPriceLevel.Builder, org.openfeed.AddPriceLevelOrBuilder>
getAddPriceLevelFieldBuilder() {
if (addPriceLevelBuilder_ == null) {
if (!(dataCase_ == 1)) {
data_ = org.openfeed.AddPriceLevel.getDefaultInstance();
}
addPriceLevelBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.AddPriceLevel, org.openfeed.AddPriceLevel.Builder, org.openfeed.AddPriceLevelOrBuilder>(
(org.openfeed.AddPriceLevel) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 1;
onChanged();
return addPriceLevelBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.DeletePriceLevel, org.openfeed.DeletePriceLevel.Builder, org.openfeed.DeletePriceLevelOrBuilder> deletePriceLevelBuilder_;
/**
* .org.openfeed.DeletePriceLevel deletePriceLevel = 2;
* @return Whether the deletePriceLevel field is set.
*/
@java.lang.Override
public boolean hasDeletePriceLevel() {
return dataCase_ == 2;
}
/**
* .org.openfeed.DeletePriceLevel deletePriceLevel = 2;
* @return The deletePriceLevel.
*/
@java.lang.Override
public org.openfeed.DeletePriceLevel getDeletePriceLevel() {
if (deletePriceLevelBuilder_ == null) {
if (dataCase_ == 2) {
return (org.openfeed.DeletePriceLevel) data_;
}
return org.openfeed.DeletePriceLevel.getDefaultInstance();
} else {
if (dataCase_ == 2) {
return deletePriceLevelBuilder_.getMessage();
}
return org.openfeed.DeletePriceLevel.getDefaultInstance();
}
}
/**
* .org.openfeed.DeletePriceLevel deletePriceLevel = 2;
*/
public Builder setDeletePriceLevel(org.openfeed.DeletePriceLevel value) {
if (deletePriceLevelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
deletePriceLevelBuilder_.setMessage(value);
}
dataCase_ = 2;
return this;
}
/**
* .org.openfeed.DeletePriceLevel deletePriceLevel = 2;
*/
public Builder setDeletePriceLevel(
org.openfeed.DeletePriceLevel.Builder builderForValue) {
if (deletePriceLevelBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
deletePriceLevelBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 2;
return this;
}
/**
* .org.openfeed.DeletePriceLevel deletePriceLevel = 2;
*/
public Builder mergeDeletePriceLevel(org.openfeed.DeletePriceLevel value) {
if (deletePriceLevelBuilder_ == null) {
if (dataCase_ == 2 &&
data_ != org.openfeed.DeletePriceLevel.getDefaultInstance()) {
data_ = org.openfeed.DeletePriceLevel.newBuilder((org.openfeed.DeletePriceLevel) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 2) {
deletePriceLevelBuilder_.mergeFrom(value);
} else {
deletePriceLevelBuilder_.setMessage(value);
}
}
dataCase_ = 2;
return this;
}
/**
* .org.openfeed.DeletePriceLevel deletePriceLevel = 2;
*/
public Builder clearDeletePriceLevel() {
if (deletePriceLevelBuilder_ == null) {
if (dataCase_ == 2) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 2) {
dataCase_ = 0;
data_ = null;
}
deletePriceLevelBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.DeletePriceLevel deletePriceLevel = 2;
*/
public org.openfeed.DeletePriceLevel.Builder getDeletePriceLevelBuilder() {
return getDeletePriceLevelFieldBuilder().getBuilder();
}
/**
* .org.openfeed.DeletePriceLevel deletePriceLevel = 2;
*/
@java.lang.Override
public org.openfeed.DeletePriceLevelOrBuilder getDeletePriceLevelOrBuilder() {
if ((dataCase_ == 2) && (deletePriceLevelBuilder_ != null)) {
return deletePriceLevelBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 2) {
return (org.openfeed.DeletePriceLevel) data_;
}
return org.openfeed.DeletePriceLevel.getDefaultInstance();
}
}
/**
* .org.openfeed.DeletePriceLevel deletePriceLevel = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.DeletePriceLevel, org.openfeed.DeletePriceLevel.Builder, org.openfeed.DeletePriceLevelOrBuilder>
getDeletePriceLevelFieldBuilder() {
if (deletePriceLevelBuilder_ == null) {
if (!(dataCase_ == 2)) {
data_ = org.openfeed.DeletePriceLevel.getDefaultInstance();
}
deletePriceLevelBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.DeletePriceLevel, org.openfeed.DeletePriceLevel.Builder, org.openfeed.DeletePriceLevelOrBuilder>(
(org.openfeed.DeletePriceLevel) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 2;
onChanged();
return deletePriceLevelBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.ModifyPriceLevel, org.openfeed.ModifyPriceLevel.Builder, org.openfeed.ModifyPriceLevelOrBuilder> modifyPriceLevelBuilder_;
/**
* .org.openfeed.ModifyPriceLevel modifyPriceLevel = 3;
* @return Whether the modifyPriceLevel field is set.
*/
@java.lang.Override
public boolean hasModifyPriceLevel() {
return dataCase_ == 3;
}
/**
* .org.openfeed.ModifyPriceLevel modifyPriceLevel = 3;
* @return The modifyPriceLevel.
*/
@java.lang.Override
public org.openfeed.ModifyPriceLevel getModifyPriceLevel() {
if (modifyPriceLevelBuilder_ == null) {
if (dataCase_ == 3) {
return (org.openfeed.ModifyPriceLevel) data_;
}
return org.openfeed.ModifyPriceLevel.getDefaultInstance();
} else {
if (dataCase_ == 3) {
return modifyPriceLevelBuilder_.getMessage();
}
return org.openfeed.ModifyPriceLevel.getDefaultInstance();
}
}
/**
* .org.openfeed.ModifyPriceLevel modifyPriceLevel = 3;
*/
public Builder setModifyPriceLevel(org.openfeed.ModifyPriceLevel value) {
if (modifyPriceLevelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
modifyPriceLevelBuilder_.setMessage(value);
}
dataCase_ = 3;
return this;
}
/**
* .org.openfeed.ModifyPriceLevel modifyPriceLevel = 3;
*/
public Builder setModifyPriceLevel(
org.openfeed.ModifyPriceLevel.Builder builderForValue) {
if (modifyPriceLevelBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
modifyPriceLevelBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 3;
return this;
}
/**
* .org.openfeed.ModifyPriceLevel modifyPriceLevel = 3;
*/
public Builder mergeModifyPriceLevel(org.openfeed.ModifyPriceLevel value) {
if (modifyPriceLevelBuilder_ == null) {
if (dataCase_ == 3 &&
data_ != org.openfeed.ModifyPriceLevel.getDefaultInstance()) {
data_ = org.openfeed.ModifyPriceLevel.newBuilder((org.openfeed.ModifyPriceLevel) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 3) {
modifyPriceLevelBuilder_.mergeFrom(value);
} else {
modifyPriceLevelBuilder_.setMessage(value);
}
}
dataCase_ = 3;
return this;
}
/**
* .org.openfeed.ModifyPriceLevel modifyPriceLevel = 3;
*/
public Builder clearModifyPriceLevel() {
if (modifyPriceLevelBuilder_ == null) {
if (dataCase_ == 3) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 3) {
dataCase_ = 0;
data_ = null;
}
modifyPriceLevelBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.ModifyPriceLevel modifyPriceLevel = 3;
*/
public org.openfeed.ModifyPriceLevel.Builder getModifyPriceLevelBuilder() {
return getModifyPriceLevelFieldBuilder().getBuilder();
}
/**
* .org.openfeed.ModifyPriceLevel modifyPriceLevel = 3;
*/
@java.lang.Override
public org.openfeed.ModifyPriceLevelOrBuilder getModifyPriceLevelOrBuilder() {
if ((dataCase_ == 3) && (modifyPriceLevelBuilder_ != null)) {
return modifyPriceLevelBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 3) {
return (org.openfeed.ModifyPriceLevel) data_;
}
return org.openfeed.ModifyPriceLevel.getDefaultInstance();
}
}
/**
* .org.openfeed.ModifyPriceLevel modifyPriceLevel = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.ModifyPriceLevel, org.openfeed.ModifyPriceLevel.Builder, org.openfeed.ModifyPriceLevelOrBuilder>
getModifyPriceLevelFieldBuilder() {
if (modifyPriceLevelBuilder_ == null) {
if (!(dataCase_ == 3)) {
data_ = org.openfeed.ModifyPriceLevel.getDefaultInstance();
}
modifyPriceLevelBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.ModifyPriceLevel, org.openfeed.ModifyPriceLevel.Builder, org.openfeed.ModifyPriceLevelOrBuilder>(
(org.openfeed.ModifyPriceLevel) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 3;
onChanged();
return modifyPriceLevelBuilder_;
}
// @@protoc_insertion_point(builder_scope:org.openfeed.DepthPriceLevel.Entry)
}
// @@protoc_insertion_point(class_scope:org.openfeed.DepthPriceLevel.Entry)
private static final org.openfeed.DepthPriceLevel.Entry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openfeed.DepthPriceLevel.Entry();
}
public static org.openfeed.DepthPriceLevel.Entry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Entry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.openfeed.DepthPriceLevel.Entry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int LEVELS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List levels_;
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
@java.lang.Override
public java.util.List getLevelsList() {
return levels_;
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
@java.lang.Override
public java.util.List extends org.openfeed.DepthPriceLevel.EntryOrBuilder>
getLevelsOrBuilderList() {
return levels_;
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
@java.lang.Override
public int getLevelsCount() {
return levels_.size();
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
@java.lang.Override
public org.openfeed.DepthPriceLevel.Entry getLevels(int index) {
return levels_.get(index);
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
@java.lang.Override
public org.openfeed.DepthPriceLevel.EntryOrBuilder getLevelsOrBuilder(
int index) {
return levels_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < levels_.size(); i++) {
output.writeMessage(1, levels_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < levels_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, levels_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.openfeed.DepthPriceLevel)) {
return super.equals(obj);
}
org.openfeed.DepthPriceLevel other = (org.openfeed.DepthPriceLevel) obj;
if (!getLevelsList()
.equals(other.getLevelsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getLevelsCount() > 0) {
hash = (37 * hash) + LEVELS_FIELD_NUMBER;
hash = (53 * hash) + getLevelsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openfeed.DepthPriceLevel parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.DepthPriceLevel parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.DepthPriceLevel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.DepthPriceLevel 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.DepthPriceLevel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.DepthPriceLevel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.DepthPriceLevel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.DepthPriceLevel 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.DepthPriceLevel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openfeed.DepthPriceLevel 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.DepthPriceLevel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.DepthPriceLevel 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.DepthPriceLevel 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;
}
/**
*
* / Depth Price Level
*
*
* Protobuf type {@code org.openfeed.DepthPriceLevel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:org.openfeed.DepthPriceLevel)
org.openfeed.DepthPriceLevelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthPriceLevel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthPriceLevel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.DepthPriceLevel.class, org.openfeed.DepthPriceLevel.Builder.class);
}
// Construct using org.openfeed.DepthPriceLevel.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (levelsBuilder_ == null) {
levels_ = java.util.Collections.emptyList();
} else {
levels_ = null;
levelsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthPriceLevel_descriptor;
}
@java.lang.Override
public org.openfeed.DepthPriceLevel getDefaultInstanceForType() {
return org.openfeed.DepthPriceLevel.getDefaultInstance();
}
@java.lang.Override
public org.openfeed.DepthPriceLevel build() {
org.openfeed.DepthPriceLevel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openfeed.DepthPriceLevel buildPartial() {
org.openfeed.DepthPriceLevel result = new org.openfeed.DepthPriceLevel(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.openfeed.DepthPriceLevel result) {
if (levelsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
levels_ = java.util.Collections.unmodifiableList(levels_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.levels_ = levels_;
} else {
result.levels_ = levelsBuilder_.build();
}
}
private void buildPartial0(org.openfeed.DepthPriceLevel result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openfeed.DepthPriceLevel) {
return mergeFrom((org.openfeed.DepthPriceLevel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openfeed.DepthPriceLevel other) {
if (other == org.openfeed.DepthPriceLevel.getDefaultInstance()) return this;
if (levelsBuilder_ == null) {
if (!other.levels_.isEmpty()) {
if (levels_.isEmpty()) {
levels_ = other.levels_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLevelsIsMutable();
levels_.addAll(other.levels_);
}
onChanged();
}
} else {
if (!other.levels_.isEmpty()) {
if (levelsBuilder_.isEmpty()) {
levelsBuilder_.dispose();
levelsBuilder_ = null;
levels_ = other.levels_;
bitField0_ = (bitField0_ & ~0x00000001);
levelsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getLevelsFieldBuilder() : null;
} else {
levelsBuilder_.addAllMessages(other.levels_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.openfeed.DepthPriceLevel.Entry m =
input.readMessage(
org.openfeed.DepthPriceLevel.Entry.parser(),
extensionRegistry);
if (levelsBuilder_ == null) {
ensureLevelsIsMutable();
levels_.add(m);
} else {
levelsBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List levels_ =
java.util.Collections.emptyList();
private void ensureLevelsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
levels_ = new java.util.ArrayList(levels_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.openfeed.DepthPriceLevel.Entry, org.openfeed.DepthPriceLevel.Entry.Builder, org.openfeed.DepthPriceLevel.EntryOrBuilder> levelsBuilder_;
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public java.util.List getLevelsList() {
if (levelsBuilder_ == null) {
return java.util.Collections.unmodifiableList(levels_);
} else {
return levelsBuilder_.getMessageList();
}
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public int getLevelsCount() {
if (levelsBuilder_ == null) {
return levels_.size();
} else {
return levelsBuilder_.getCount();
}
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public org.openfeed.DepthPriceLevel.Entry getLevels(int index) {
if (levelsBuilder_ == null) {
return levels_.get(index);
} else {
return levelsBuilder_.getMessage(index);
}
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public Builder setLevels(
int index, org.openfeed.DepthPriceLevel.Entry value) {
if (levelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLevelsIsMutable();
levels_.set(index, value);
onChanged();
} else {
levelsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public Builder setLevels(
int index, org.openfeed.DepthPriceLevel.Entry.Builder builderForValue) {
if (levelsBuilder_ == null) {
ensureLevelsIsMutable();
levels_.set(index, builderForValue.build());
onChanged();
} else {
levelsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public Builder addLevels(org.openfeed.DepthPriceLevel.Entry value) {
if (levelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLevelsIsMutable();
levels_.add(value);
onChanged();
} else {
levelsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public Builder addLevels(
int index, org.openfeed.DepthPriceLevel.Entry value) {
if (levelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLevelsIsMutable();
levels_.add(index, value);
onChanged();
} else {
levelsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public Builder addLevels(
org.openfeed.DepthPriceLevel.Entry.Builder builderForValue) {
if (levelsBuilder_ == null) {
ensureLevelsIsMutable();
levels_.add(builderForValue.build());
onChanged();
} else {
levelsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public Builder addLevels(
int index, org.openfeed.DepthPriceLevel.Entry.Builder builderForValue) {
if (levelsBuilder_ == null) {
ensureLevelsIsMutable();
levels_.add(index, builderForValue.build());
onChanged();
} else {
levelsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public Builder addAllLevels(
java.lang.Iterable extends org.openfeed.DepthPriceLevel.Entry> values) {
if (levelsBuilder_ == null) {
ensureLevelsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, levels_);
onChanged();
} else {
levelsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public Builder clearLevels() {
if (levelsBuilder_ == null) {
levels_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
levelsBuilder_.clear();
}
return this;
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public Builder removeLevels(int index) {
if (levelsBuilder_ == null) {
ensureLevelsIsMutable();
levels_.remove(index);
onChanged();
} else {
levelsBuilder_.remove(index);
}
return this;
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public org.openfeed.DepthPriceLevel.Entry.Builder getLevelsBuilder(
int index) {
return getLevelsFieldBuilder().getBuilder(index);
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public org.openfeed.DepthPriceLevel.EntryOrBuilder getLevelsOrBuilder(
int index) {
if (levelsBuilder_ == null) {
return levels_.get(index); } else {
return levelsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public java.util.List extends org.openfeed.DepthPriceLevel.EntryOrBuilder>
getLevelsOrBuilderList() {
if (levelsBuilder_ != null) {
return levelsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(levels_);
}
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public org.openfeed.DepthPriceLevel.Entry.Builder addLevelsBuilder() {
return getLevelsFieldBuilder().addBuilder(
org.openfeed.DepthPriceLevel.Entry.getDefaultInstance());
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public org.openfeed.DepthPriceLevel.Entry.Builder addLevelsBuilder(
int index) {
return getLevelsFieldBuilder().addBuilder(
index, org.openfeed.DepthPriceLevel.Entry.getDefaultInstance());
}
/**
* repeated .org.openfeed.DepthPriceLevel.Entry levels = 1;
*/
public java.util.List
getLevelsBuilderList() {
return getLevelsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.openfeed.DepthPriceLevel.Entry, org.openfeed.DepthPriceLevel.Entry.Builder, org.openfeed.DepthPriceLevel.EntryOrBuilder>
getLevelsFieldBuilder() {
if (levelsBuilder_ == null) {
levelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.openfeed.DepthPriceLevel.Entry, org.openfeed.DepthPriceLevel.Entry.Builder, org.openfeed.DepthPriceLevel.EntryOrBuilder>(
levels_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
levels_ = null;
}
return levelsBuilder_;
}
// @@protoc_insertion_point(builder_scope:org.openfeed.DepthPriceLevel)
}
// @@protoc_insertion_point(class_scope:org.openfeed.DepthPriceLevel)
private static final org.openfeed.DepthPriceLevel DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openfeed.DepthPriceLevel();
}
public static org.openfeed.DepthPriceLevel getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DepthPriceLevel 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.DepthPriceLevel getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy