org.openfeed.DepthOrder 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 By Order
*
*
* Protobuf type {@code org.openfeed.DepthOrder}
*/
public final class DepthOrder extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:org.openfeed.DepthOrder)
DepthOrderOrBuilder {
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= */ "",
DepthOrder.class.getName());
}
// Use DepthOrder.newBuilder() to construct.
private DepthOrder(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private DepthOrder() {
orders_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthOrder_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthOrder_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.DepthOrder.class, org.openfeed.DepthOrder.Builder.class);
}
public interface EntryOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.openfeed.DepthOrder.Entry)
com.google.protobuf.MessageOrBuilder {
/**
* .org.openfeed.AddOrder addOrder = 1;
* @return Whether the addOrder field is set.
*/
boolean hasAddOrder();
/**
* .org.openfeed.AddOrder addOrder = 1;
* @return The addOrder.
*/
org.openfeed.AddOrder getAddOrder();
/**
* .org.openfeed.AddOrder addOrder = 1;
*/
org.openfeed.AddOrderOrBuilder getAddOrderOrBuilder();
/**
* .org.openfeed.DeleteOrder deleteOrder = 2;
* @return Whether the deleteOrder field is set.
*/
boolean hasDeleteOrder();
/**
* .org.openfeed.DeleteOrder deleteOrder = 2;
* @return The deleteOrder.
*/
org.openfeed.DeleteOrder getDeleteOrder();
/**
* .org.openfeed.DeleteOrder deleteOrder = 2;
*/
org.openfeed.DeleteOrderOrBuilder getDeleteOrderOrBuilder();
/**
* .org.openfeed.ModifyOrder modifyOrder = 3;
* @return Whether the modifyOrder field is set.
*/
boolean hasModifyOrder();
/**
* .org.openfeed.ModifyOrder modifyOrder = 3;
* @return The modifyOrder.
*/
org.openfeed.ModifyOrder getModifyOrder();
/**
* .org.openfeed.ModifyOrder modifyOrder = 3;
*/
org.openfeed.ModifyOrderOrBuilder getModifyOrderOrBuilder();
org.openfeed.DepthOrder.Entry.DataCase getDataCase();
}
/**
* Protobuf type {@code org.openfeed.DepthOrder.Entry}
*/
public static final class Entry extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:org.openfeed.DepthOrder.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_DepthOrder_Entry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthOrder_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.DepthOrder.Entry.class, org.openfeed.DepthOrder.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 {
ADDORDER(1),
DELETEORDER(2),
MODIFYORDER(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 ADDORDER;
case 2: return DELETEORDER;
case 3: return MODIFYORDER;
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 ADDORDER_FIELD_NUMBER = 1;
/**
* .org.openfeed.AddOrder addOrder = 1;
* @return Whether the addOrder field is set.
*/
@java.lang.Override
public boolean hasAddOrder() {
return dataCase_ == 1;
}
/**
* .org.openfeed.AddOrder addOrder = 1;
* @return The addOrder.
*/
@java.lang.Override
public org.openfeed.AddOrder getAddOrder() {
if (dataCase_ == 1) {
return (org.openfeed.AddOrder) data_;
}
return org.openfeed.AddOrder.getDefaultInstance();
}
/**
* .org.openfeed.AddOrder addOrder = 1;
*/
@java.lang.Override
public org.openfeed.AddOrderOrBuilder getAddOrderOrBuilder() {
if (dataCase_ == 1) {
return (org.openfeed.AddOrder) data_;
}
return org.openfeed.AddOrder.getDefaultInstance();
}
public static final int DELETEORDER_FIELD_NUMBER = 2;
/**
* .org.openfeed.DeleteOrder deleteOrder = 2;
* @return Whether the deleteOrder field is set.
*/
@java.lang.Override
public boolean hasDeleteOrder() {
return dataCase_ == 2;
}
/**
* .org.openfeed.DeleteOrder deleteOrder = 2;
* @return The deleteOrder.
*/
@java.lang.Override
public org.openfeed.DeleteOrder getDeleteOrder() {
if (dataCase_ == 2) {
return (org.openfeed.DeleteOrder) data_;
}
return org.openfeed.DeleteOrder.getDefaultInstance();
}
/**
* .org.openfeed.DeleteOrder deleteOrder = 2;
*/
@java.lang.Override
public org.openfeed.DeleteOrderOrBuilder getDeleteOrderOrBuilder() {
if (dataCase_ == 2) {
return (org.openfeed.DeleteOrder) data_;
}
return org.openfeed.DeleteOrder.getDefaultInstance();
}
public static final int MODIFYORDER_FIELD_NUMBER = 3;
/**
* .org.openfeed.ModifyOrder modifyOrder = 3;
* @return Whether the modifyOrder field is set.
*/
@java.lang.Override
public boolean hasModifyOrder() {
return dataCase_ == 3;
}
/**
* .org.openfeed.ModifyOrder modifyOrder = 3;
* @return The modifyOrder.
*/
@java.lang.Override
public org.openfeed.ModifyOrder getModifyOrder() {
if (dataCase_ == 3) {
return (org.openfeed.ModifyOrder) data_;
}
return org.openfeed.ModifyOrder.getDefaultInstance();
}
/**
* .org.openfeed.ModifyOrder modifyOrder = 3;
*/
@java.lang.Override
public org.openfeed.ModifyOrderOrBuilder getModifyOrderOrBuilder() {
if (dataCase_ == 3) {
return (org.openfeed.ModifyOrder) data_;
}
return org.openfeed.ModifyOrder.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.AddOrder) data_);
}
if (dataCase_ == 2) {
output.writeMessage(2, (org.openfeed.DeleteOrder) data_);
}
if (dataCase_ == 3) {
output.writeMessage(3, (org.openfeed.ModifyOrder) 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.AddOrder) data_);
}
if (dataCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (org.openfeed.DeleteOrder) data_);
}
if (dataCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (org.openfeed.ModifyOrder) 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.DepthOrder.Entry)) {
return super.equals(obj);
}
org.openfeed.DepthOrder.Entry other = (org.openfeed.DepthOrder.Entry) obj;
if (!getDataCase().equals(other.getDataCase())) return false;
switch (dataCase_) {
case 1:
if (!getAddOrder()
.equals(other.getAddOrder())) return false;
break;
case 2:
if (!getDeleteOrder()
.equals(other.getDeleteOrder())) return false;
break;
case 3:
if (!getModifyOrder()
.equals(other.getModifyOrder())) 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) + ADDORDER_FIELD_NUMBER;
hash = (53 * hash) + getAddOrder().hashCode();
break;
case 2:
hash = (37 * hash) + DELETEORDER_FIELD_NUMBER;
hash = (53 * hash) + getDeleteOrder().hashCode();
break;
case 3:
hash = (37 * hash) + MODIFYORDER_FIELD_NUMBER;
hash = (53 * hash) + getModifyOrder().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openfeed.DepthOrder.Entry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.DepthOrder.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.DepthOrder.Entry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.DepthOrder.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.DepthOrder.Entry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.DepthOrder.Entry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.DepthOrder.Entry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.DepthOrder.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.DepthOrder.Entry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openfeed.DepthOrder.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.DepthOrder.Entry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.DepthOrder.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.DepthOrder.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.DepthOrder.Entry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:org.openfeed.DepthOrder.Entry)
org.openfeed.DepthOrder.EntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthOrder_Entry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthOrder_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.DepthOrder.Entry.class, org.openfeed.DepthOrder.Entry.Builder.class);
}
// Construct using org.openfeed.DepthOrder.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 (addOrderBuilder_ != null) {
addOrderBuilder_.clear();
}
if (deleteOrderBuilder_ != null) {
deleteOrderBuilder_.clear();
}
if (modifyOrderBuilder_ != null) {
modifyOrderBuilder_.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_DepthOrder_Entry_descriptor;
}
@java.lang.Override
public org.openfeed.DepthOrder.Entry getDefaultInstanceForType() {
return org.openfeed.DepthOrder.Entry.getDefaultInstance();
}
@java.lang.Override
public org.openfeed.DepthOrder.Entry build() {
org.openfeed.DepthOrder.Entry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openfeed.DepthOrder.Entry buildPartial() {
org.openfeed.DepthOrder.Entry result = new org.openfeed.DepthOrder.Entry(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(org.openfeed.DepthOrder.Entry result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(org.openfeed.DepthOrder.Entry result) {
result.dataCase_ = dataCase_;
result.data_ = this.data_;
if (dataCase_ == 1 &&
addOrderBuilder_ != null) {
result.data_ = addOrderBuilder_.build();
}
if (dataCase_ == 2 &&
deleteOrderBuilder_ != null) {
result.data_ = deleteOrderBuilder_.build();
}
if (dataCase_ == 3 &&
modifyOrderBuilder_ != null) {
result.data_ = modifyOrderBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openfeed.DepthOrder.Entry) {
return mergeFrom((org.openfeed.DepthOrder.Entry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openfeed.DepthOrder.Entry other) {
if (other == org.openfeed.DepthOrder.Entry.getDefaultInstance()) return this;
switch (other.getDataCase()) {
case ADDORDER: {
mergeAddOrder(other.getAddOrder());
break;
}
case DELETEORDER: {
mergeDeleteOrder(other.getDeleteOrder());
break;
}
case MODIFYORDER: {
mergeModifyOrder(other.getModifyOrder());
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(
getAddOrderFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getDeleteOrderFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getModifyOrderFieldBuilder().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.AddOrder, org.openfeed.AddOrder.Builder, org.openfeed.AddOrderOrBuilder> addOrderBuilder_;
/**
* .org.openfeed.AddOrder addOrder = 1;
* @return Whether the addOrder field is set.
*/
@java.lang.Override
public boolean hasAddOrder() {
return dataCase_ == 1;
}
/**
* .org.openfeed.AddOrder addOrder = 1;
* @return The addOrder.
*/
@java.lang.Override
public org.openfeed.AddOrder getAddOrder() {
if (addOrderBuilder_ == null) {
if (dataCase_ == 1) {
return (org.openfeed.AddOrder) data_;
}
return org.openfeed.AddOrder.getDefaultInstance();
} else {
if (dataCase_ == 1) {
return addOrderBuilder_.getMessage();
}
return org.openfeed.AddOrder.getDefaultInstance();
}
}
/**
* .org.openfeed.AddOrder addOrder = 1;
*/
public Builder setAddOrder(org.openfeed.AddOrder value) {
if (addOrderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
addOrderBuilder_.setMessage(value);
}
dataCase_ = 1;
return this;
}
/**
* .org.openfeed.AddOrder addOrder = 1;
*/
public Builder setAddOrder(
org.openfeed.AddOrder.Builder builderForValue) {
if (addOrderBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
addOrderBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 1;
return this;
}
/**
* .org.openfeed.AddOrder addOrder = 1;
*/
public Builder mergeAddOrder(org.openfeed.AddOrder value) {
if (addOrderBuilder_ == null) {
if (dataCase_ == 1 &&
data_ != org.openfeed.AddOrder.getDefaultInstance()) {
data_ = org.openfeed.AddOrder.newBuilder((org.openfeed.AddOrder) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 1) {
addOrderBuilder_.mergeFrom(value);
} else {
addOrderBuilder_.setMessage(value);
}
}
dataCase_ = 1;
return this;
}
/**
* .org.openfeed.AddOrder addOrder = 1;
*/
public Builder clearAddOrder() {
if (addOrderBuilder_ == null) {
if (dataCase_ == 1) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 1) {
dataCase_ = 0;
data_ = null;
}
addOrderBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.AddOrder addOrder = 1;
*/
public org.openfeed.AddOrder.Builder getAddOrderBuilder() {
return getAddOrderFieldBuilder().getBuilder();
}
/**
* .org.openfeed.AddOrder addOrder = 1;
*/
@java.lang.Override
public org.openfeed.AddOrderOrBuilder getAddOrderOrBuilder() {
if ((dataCase_ == 1) && (addOrderBuilder_ != null)) {
return addOrderBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 1) {
return (org.openfeed.AddOrder) data_;
}
return org.openfeed.AddOrder.getDefaultInstance();
}
}
/**
* .org.openfeed.AddOrder addOrder = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.AddOrder, org.openfeed.AddOrder.Builder, org.openfeed.AddOrderOrBuilder>
getAddOrderFieldBuilder() {
if (addOrderBuilder_ == null) {
if (!(dataCase_ == 1)) {
data_ = org.openfeed.AddOrder.getDefaultInstance();
}
addOrderBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.AddOrder, org.openfeed.AddOrder.Builder, org.openfeed.AddOrderOrBuilder>(
(org.openfeed.AddOrder) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 1;
onChanged();
return addOrderBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.DeleteOrder, org.openfeed.DeleteOrder.Builder, org.openfeed.DeleteOrderOrBuilder> deleteOrderBuilder_;
/**
* .org.openfeed.DeleteOrder deleteOrder = 2;
* @return Whether the deleteOrder field is set.
*/
@java.lang.Override
public boolean hasDeleteOrder() {
return dataCase_ == 2;
}
/**
* .org.openfeed.DeleteOrder deleteOrder = 2;
* @return The deleteOrder.
*/
@java.lang.Override
public org.openfeed.DeleteOrder getDeleteOrder() {
if (deleteOrderBuilder_ == null) {
if (dataCase_ == 2) {
return (org.openfeed.DeleteOrder) data_;
}
return org.openfeed.DeleteOrder.getDefaultInstance();
} else {
if (dataCase_ == 2) {
return deleteOrderBuilder_.getMessage();
}
return org.openfeed.DeleteOrder.getDefaultInstance();
}
}
/**
* .org.openfeed.DeleteOrder deleteOrder = 2;
*/
public Builder setDeleteOrder(org.openfeed.DeleteOrder value) {
if (deleteOrderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
deleteOrderBuilder_.setMessage(value);
}
dataCase_ = 2;
return this;
}
/**
* .org.openfeed.DeleteOrder deleteOrder = 2;
*/
public Builder setDeleteOrder(
org.openfeed.DeleteOrder.Builder builderForValue) {
if (deleteOrderBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
deleteOrderBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 2;
return this;
}
/**
* .org.openfeed.DeleteOrder deleteOrder = 2;
*/
public Builder mergeDeleteOrder(org.openfeed.DeleteOrder value) {
if (deleteOrderBuilder_ == null) {
if (dataCase_ == 2 &&
data_ != org.openfeed.DeleteOrder.getDefaultInstance()) {
data_ = org.openfeed.DeleteOrder.newBuilder((org.openfeed.DeleteOrder) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 2) {
deleteOrderBuilder_.mergeFrom(value);
} else {
deleteOrderBuilder_.setMessage(value);
}
}
dataCase_ = 2;
return this;
}
/**
* .org.openfeed.DeleteOrder deleteOrder = 2;
*/
public Builder clearDeleteOrder() {
if (deleteOrderBuilder_ == null) {
if (dataCase_ == 2) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 2) {
dataCase_ = 0;
data_ = null;
}
deleteOrderBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.DeleteOrder deleteOrder = 2;
*/
public org.openfeed.DeleteOrder.Builder getDeleteOrderBuilder() {
return getDeleteOrderFieldBuilder().getBuilder();
}
/**
* .org.openfeed.DeleteOrder deleteOrder = 2;
*/
@java.lang.Override
public org.openfeed.DeleteOrderOrBuilder getDeleteOrderOrBuilder() {
if ((dataCase_ == 2) && (deleteOrderBuilder_ != null)) {
return deleteOrderBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 2) {
return (org.openfeed.DeleteOrder) data_;
}
return org.openfeed.DeleteOrder.getDefaultInstance();
}
}
/**
* .org.openfeed.DeleteOrder deleteOrder = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.DeleteOrder, org.openfeed.DeleteOrder.Builder, org.openfeed.DeleteOrderOrBuilder>
getDeleteOrderFieldBuilder() {
if (deleteOrderBuilder_ == null) {
if (!(dataCase_ == 2)) {
data_ = org.openfeed.DeleteOrder.getDefaultInstance();
}
deleteOrderBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.DeleteOrder, org.openfeed.DeleteOrder.Builder, org.openfeed.DeleteOrderOrBuilder>(
(org.openfeed.DeleteOrder) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 2;
onChanged();
return deleteOrderBuilder_;
}
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.ModifyOrder, org.openfeed.ModifyOrder.Builder, org.openfeed.ModifyOrderOrBuilder> modifyOrderBuilder_;
/**
* .org.openfeed.ModifyOrder modifyOrder = 3;
* @return Whether the modifyOrder field is set.
*/
@java.lang.Override
public boolean hasModifyOrder() {
return dataCase_ == 3;
}
/**
* .org.openfeed.ModifyOrder modifyOrder = 3;
* @return The modifyOrder.
*/
@java.lang.Override
public org.openfeed.ModifyOrder getModifyOrder() {
if (modifyOrderBuilder_ == null) {
if (dataCase_ == 3) {
return (org.openfeed.ModifyOrder) data_;
}
return org.openfeed.ModifyOrder.getDefaultInstance();
} else {
if (dataCase_ == 3) {
return modifyOrderBuilder_.getMessage();
}
return org.openfeed.ModifyOrder.getDefaultInstance();
}
}
/**
* .org.openfeed.ModifyOrder modifyOrder = 3;
*/
public Builder setModifyOrder(org.openfeed.ModifyOrder value) {
if (modifyOrderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
modifyOrderBuilder_.setMessage(value);
}
dataCase_ = 3;
return this;
}
/**
* .org.openfeed.ModifyOrder modifyOrder = 3;
*/
public Builder setModifyOrder(
org.openfeed.ModifyOrder.Builder builderForValue) {
if (modifyOrderBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
modifyOrderBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 3;
return this;
}
/**
* .org.openfeed.ModifyOrder modifyOrder = 3;
*/
public Builder mergeModifyOrder(org.openfeed.ModifyOrder value) {
if (modifyOrderBuilder_ == null) {
if (dataCase_ == 3 &&
data_ != org.openfeed.ModifyOrder.getDefaultInstance()) {
data_ = org.openfeed.ModifyOrder.newBuilder((org.openfeed.ModifyOrder) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 3) {
modifyOrderBuilder_.mergeFrom(value);
} else {
modifyOrderBuilder_.setMessage(value);
}
}
dataCase_ = 3;
return this;
}
/**
* .org.openfeed.ModifyOrder modifyOrder = 3;
*/
public Builder clearModifyOrder() {
if (modifyOrderBuilder_ == null) {
if (dataCase_ == 3) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 3) {
dataCase_ = 0;
data_ = null;
}
modifyOrderBuilder_.clear();
}
return this;
}
/**
* .org.openfeed.ModifyOrder modifyOrder = 3;
*/
public org.openfeed.ModifyOrder.Builder getModifyOrderBuilder() {
return getModifyOrderFieldBuilder().getBuilder();
}
/**
* .org.openfeed.ModifyOrder modifyOrder = 3;
*/
@java.lang.Override
public org.openfeed.ModifyOrderOrBuilder getModifyOrderOrBuilder() {
if ((dataCase_ == 3) && (modifyOrderBuilder_ != null)) {
return modifyOrderBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 3) {
return (org.openfeed.ModifyOrder) data_;
}
return org.openfeed.ModifyOrder.getDefaultInstance();
}
}
/**
* .org.openfeed.ModifyOrder modifyOrder = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.ModifyOrder, org.openfeed.ModifyOrder.Builder, org.openfeed.ModifyOrderOrBuilder>
getModifyOrderFieldBuilder() {
if (modifyOrderBuilder_ == null) {
if (!(dataCase_ == 3)) {
data_ = org.openfeed.ModifyOrder.getDefaultInstance();
}
modifyOrderBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.ModifyOrder, org.openfeed.ModifyOrder.Builder, org.openfeed.ModifyOrderOrBuilder>(
(org.openfeed.ModifyOrder) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 3;
onChanged();
return modifyOrderBuilder_;
}
// @@protoc_insertion_point(builder_scope:org.openfeed.DepthOrder.Entry)
}
// @@protoc_insertion_point(class_scope:org.openfeed.DepthOrder.Entry)
private static final org.openfeed.DepthOrder.Entry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openfeed.DepthOrder.Entry();
}
public static org.openfeed.DepthOrder.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.DepthOrder.Entry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ORDERS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List orders_;
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
@java.lang.Override
public java.util.List getOrdersList() {
return orders_;
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
@java.lang.Override
public java.util.List extends org.openfeed.DepthOrder.EntryOrBuilder>
getOrdersOrBuilderList() {
return orders_;
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
@java.lang.Override
public int getOrdersCount() {
return orders_.size();
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
@java.lang.Override
public org.openfeed.DepthOrder.Entry getOrders(int index) {
return orders_.get(index);
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
@java.lang.Override
public org.openfeed.DepthOrder.EntryOrBuilder getOrdersOrBuilder(
int index) {
return orders_.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 < orders_.size(); i++) {
output.writeMessage(1, orders_.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 < orders_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, orders_.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.DepthOrder)) {
return super.equals(obj);
}
org.openfeed.DepthOrder other = (org.openfeed.DepthOrder) obj;
if (!getOrdersList()
.equals(other.getOrdersList())) 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 (getOrdersCount() > 0) {
hash = (37 * hash) + ORDERS_FIELD_NUMBER;
hash = (53 * hash) + getOrdersList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openfeed.DepthOrder parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.DepthOrder parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.DepthOrder parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.DepthOrder 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.DepthOrder parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.DepthOrder parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.DepthOrder parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.DepthOrder 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.DepthOrder parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openfeed.DepthOrder 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.DepthOrder parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.DepthOrder 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.DepthOrder 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 By Order
*
*
* Protobuf type {@code org.openfeed.DepthOrder}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:org.openfeed.DepthOrder)
org.openfeed.DepthOrderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthOrder_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthOrder_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.DepthOrder.class, org.openfeed.DepthOrder.Builder.class);
}
// Construct using org.openfeed.DepthOrder.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (ordersBuilder_ == null) {
orders_ = java.util.Collections.emptyList();
} else {
orders_ = null;
ordersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openfeed.Openfeed.internal_static_org_openfeed_DepthOrder_descriptor;
}
@java.lang.Override
public org.openfeed.DepthOrder getDefaultInstanceForType() {
return org.openfeed.DepthOrder.getDefaultInstance();
}
@java.lang.Override
public org.openfeed.DepthOrder build() {
org.openfeed.DepthOrder result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openfeed.DepthOrder buildPartial() {
org.openfeed.DepthOrder result = new org.openfeed.DepthOrder(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.openfeed.DepthOrder result) {
if (ordersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
orders_ = java.util.Collections.unmodifiableList(orders_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.orders_ = orders_;
} else {
result.orders_ = ordersBuilder_.build();
}
}
private void buildPartial0(org.openfeed.DepthOrder result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openfeed.DepthOrder) {
return mergeFrom((org.openfeed.DepthOrder)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openfeed.DepthOrder other) {
if (other == org.openfeed.DepthOrder.getDefaultInstance()) return this;
if (ordersBuilder_ == null) {
if (!other.orders_.isEmpty()) {
if (orders_.isEmpty()) {
orders_ = other.orders_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOrdersIsMutable();
orders_.addAll(other.orders_);
}
onChanged();
}
} else {
if (!other.orders_.isEmpty()) {
if (ordersBuilder_.isEmpty()) {
ordersBuilder_.dispose();
ordersBuilder_ = null;
orders_ = other.orders_;
bitField0_ = (bitField0_ & ~0x00000001);
ordersBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getOrdersFieldBuilder() : null;
} else {
ordersBuilder_.addAllMessages(other.orders_);
}
}
}
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.DepthOrder.Entry m =
input.readMessage(
org.openfeed.DepthOrder.Entry.parser(),
extensionRegistry);
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.add(m);
} else {
ordersBuilder_.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 orders_ =
java.util.Collections.emptyList();
private void ensureOrdersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
orders_ = new java.util.ArrayList(orders_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.openfeed.DepthOrder.Entry, org.openfeed.DepthOrder.Entry.Builder, org.openfeed.DepthOrder.EntryOrBuilder> ordersBuilder_;
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public java.util.List getOrdersList() {
if (ordersBuilder_ == null) {
return java.util.Collections.unmodifiableList(orders_);
} else {
return ordersBuilder_.getMessageList();
}
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public int getOrdersCount() {
if (ordersBuilder_ == null) {
return orders_.size();
} else {
return ordersBuilder_.getCount();
}
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public org.openfeed.DepthOrder.Entry getOrders(int index) {
if (ordersBuilder_ == null) {
return orders_.get(index);
} else {
return ordersBuilder_.getMessage(index);
}
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public Builder setOrders(
int index, org.openfeed.DepthOrder.Entry value) {
if (ordersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrdersIsMutable();
orders_.set(index, value);
onChanged();
} else {
ordersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public Builder setOrders(
int index, org.openfeed.DepthOrder.Entry.Builder builderForValue) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.set(index, builderForValue.build());
onChanged();
} else {
ordersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public Builder addOrders(org.openfeed.DepthOrder.Entry value) {
if (ordersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrdersIsMutable();
orders_.add(value);
onChanged();
} else {
ordersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public Builder addOrders(
int index, org.openfeed.DepthOrder.Entry value) {
if (ordersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrdersIsMutable();
orders_.add(index, value);
onChanged();
} else {
ordersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public Builder addOrders(
org.openfeed.DepthOrder.Entry.Builder builderForValue) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.add(builderForValue.build());
onChanged();
} else {
ordersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public Builder addOrders(
int index, org.openfeed.DepthOrder.Entry.Builder builderForValue) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.add(index, builderForValue.build());
onChanged();
} else {
ordersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public Builder addAllOrders(
java.lang.Iterable extends org.openfeed.DepthOrder.Entry> values) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, orders_);
onChanged();
} else {
ordersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public Builder clearOrders() {
if (ordersBuilder_ == null) {
orders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
ordersBuilder_.clear();
}
return this;
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public Builder removeOrders(int index) {
if (ordersBuilder_ == null) {
ensureOrdersIsMutable();
orders_.remove(index);
onChanged();
} else {
ordersBuilder_.remove(index);
}
return this;
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public org.openfeed.DepthOrder.Entry.Builder getOrdersBuilder(
int index) {
return getOrdersFieldBuilder().getBuilder(index);
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public org.openfeed.DepthOrder.EntryOrBuilder getOrdersOrBuilder(
int index) {
if (ordersBuilder_ == null) {
return orders_.get(index); } else {
return ordersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public java.util.List extends org.openfeed.DepthOrder.EntryOrBuilder>
getOrdersOrBuilderList() {
if (ordersBuilder_ != null) {
return ordersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(orders_);
}
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public org.openfeed.DepthOrder.Entry.Builder addOrdersBuilder() {
return getOrdersFieldBuilder().addBuilder(
org.openfeed.DepthOrder.Entry.getDefaultInstance());
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public org.openfeed.DepthOrder.Entry.Builder addOrdersBuilder(
int index) {
return getOrdersFieldBuilder().addBuilder(
index, org.openfeed.DepthOrder.Entry.getDefaultInstance());
}
/**
* repeated .org.openfeed.DepthOrder.Entry orders = 1;
*/
public java.util.List
getOrdersBuilderList() {
return getOrdersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.openfeed.DepthOrder.Entry, org.openfeed.DepthOrder.Entry.Builder, org.openfeed.DepthOrder.EntryOrBuilder>
getOrdersFieldBuilder() {
if (ordersBuilder_ == null) {
ordersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.openfeed.DepthOrder.Entry, org.openfeed.DepthOrder.Entry.Builder, org.openfeed.DepthOrder.EntryOrBuilder>(
orders_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
orders_ = null;
}
return ordersBuilder_;
}
// @@protoc_insertion_point(builder_scope:org.openfeed.DepthOrder)
}
// @@protoc_insertion_point(class_scope:org.openfeed.DepthOrder)
private static final org.openfeed.DepthOrder DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openfeed.DepthOrder();
}
public static org.openfeed.DepthOrder getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DepthOrder 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.DepthOrder getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy