org.openfeed.ExchangeResponse Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: openfeed_api.proto
// Protobuf Java Version: 4.28.3
package org.openfeed;
/**
* Protobuf type {@code org.openfeed.ExchangeResponse}
*/
public final class ExchangeResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:org.openfeed.ExchangeResponse)
ExchangeResponseOrBuilder {
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= */ "",
ExchangeResponse.class.getName());
}
// Use ExchangeResponse.newBuilder() to construct.
private ExchangeResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ExchangeResponse() {
exchanges_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ExchangeResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ExchangeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.ExchangeResponse.class, org.openfeed.ExchangeResponse.Builder.class);
}
public interface ExchangeOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.openfeed.ExchangeResponse.Exchange)
com.google.protobuf.MessageOrBuilder {
/**
* string code = 1;
* @return The code.
*/
java.lang.String getCode();
/**
* string code = 1;
* @return The bytes for code.
*/
com.google.protobuf.ByteString
getCodeBytes();
/**
* string description = 2;
* @return The description.
*/
java.lang.String getDescription();
/**
* string description = 2;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
* repeated string aliases = 3;
* @return A list containing the aliases.
*/
java.util.List
getAliasesList();
/**
* repeated string aliases = 3;
* @return The count of aliases.
*/
int getAliasesCount();
/**
* repeated string aliases = 3;
* @param index The index of the element to return.
* @return The aliases at the given index.
*/
java.lang.String getAliases(int index);
/**
* repeated string aliases = 3;
* @param index The index of the value to return.
* @return The bytes of the aliases at the given index.
*/
com.google.protobuf.ByteString
getAliasesBytes(int index);
/**
* sint32 exchangeId = 4;
* @return The exchangeId.
*/
int getExchangeId();
}
/**
* Protobuf type {@code org.openfeed.ExchangeResponse.Exchange}
*/
public static final class Exchange extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:org.openfeed.ExchangeResponse.Exchange)
ExchangeOrBuilder {
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= */ "",
Exchange.class.getName());
}
// Use Exchange.newBuilder() to construct.
private Exchange(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Exchange() {
code_ = "";
description_ = "";
aliases_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ExchangeResponse_Exchange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ExchangeResponse_Exchange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.ExchangeResponse.Exchange.class, org.openfeed.ExchangeResponse.Exchange.Builder.class);
}
public static final int CODE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object code_ = "";
/**
* string code = 1;
* @return The code.
*/
@java.lang.Override
public java.lang.String getCode() {
java.lang.Object ref = code_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
code_ = s;
return s;
}
}
/**
* string code = 1;
* @return The bytes for code.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCodeBytes() {
java.lang.Object ref = code_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
code_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
* string description = 2;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
* string description = 2;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ALIASES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList aliases_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string aliases = 3;
* @return A list containing the aliases.
*/
public com.google.protobuf.ProtocolStringList
getAliasesList() {
return aliases_;
}
/**
* repeated string aliases = 3;
* @return The count of aliases.
*/
public int getAliasesCount() {
return aliases_.size();
}
/**
* repeated string aliases = 3;
* @param index The index of the element to return.
* @return The aliases at the given index.
*/
public java.lang.String getAliases(int index) {
return aliases_.get(index);
}
/**
* repeated string aliases = 3;
* @param index The index of the value to return.
* @return The bytes of the aliases at the given index.
*/
public com.google.protobuf.ByteString
getAliasesBytes(int index) {
return aliases_.getByteString(index);
}
public static final int EXCHANGEID_FIELD_NUMBER = 4;
private int exchangeId_ = 0;
/**
* sint32 exchangeId = 4;
* @return The exchangeId.
*/
@java.lang.Override
public int getExchangeId() {
return exchangeId_;
}
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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(code_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, code_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, description_);
}
for (int i = 0; i < aliases_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, aliases_.getRaw(i));
}
if (exchangeId_ != 0) {
output.writeSInt32(4, exchangeId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(code_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, code_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_);
}
{
int dataSize = 0;
for (int i = 0; i < aliases_.size(); i++) {
dataSize += computeStringSizeNoTag(aliases_.getRaw(i));
}
size += dataSize;
size += 1 * getAliasesList().size();
}
if (exchangeId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(4, exchangeId_);
}
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.ExchangeResponse.Exchange)) {
return super.equals(obj);
}
org.openfeed.ExchangeResponse.Exchange other = (org.openfeed.ExchangeResponse.Exchange) obj;
if (!getCode()
.equals(other.getCode())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!getAliasesList()
.equals(other.getAliasesList())) return false;
if (getExchangeId()
!= other.getExchangeId()) 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();
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (getAliasesCount() > 0) {
hash = (37 * hash) + ALIASES_FIELD_NUMBER;
hash = (53 * hash) + getAliasesList().hashCode();
}
hash = (37 * hash) + EXCHANGEID_FIELD_NUMBER;
hash = (53 * hash) + getExchangeId();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openfeed.ExchangeResponse.Exchange parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.ExchangeResponse.Exchange parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.ExchangeResponse.Exchange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.ExchangeResponse.Exchange 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.ExchangeResponse.Exchange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.ExchangeResponse.Exchange parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.ExchangeResponse.Exchange parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.ExchangeResponse.Exchange 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.ExchangeResponse.Exchange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openfeed.ExchangeResponse.Exchange 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.ExchangeResponse.Exchange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.ExchangeResponse.Exchange 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.ExchangeResponse.Exchange 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.ExchangeResponse.Exchange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:org.openfeed.ExchangeResponse.Exchange)
org.openfeed.ExchangeResponse.ExchangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ExchangeResponse_Exchange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ExchangeResponse_Exchange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.ExchangeResponse.Exchange.class, org.openfeed.ExchangeResponse.Exchange.Builder.class);
}
// Construct using org.openfeed.ExchangeResponse.Exchange.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
code_ = "";
description_ = "";
aliases_ =
com.google.protobuf.LazyStringArrayList.emptyList();
exchangeId_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ExchangeResponse_Exchange_descriptor;
}
@java.lang.Override
public org.openfeed.ExchangeResponse.Exchange getDefaultInstanceForType() {
return org.openfeed.ExchangeResponse.Exchange.getDefaultInstance();
}
@java.lang.Override
public org.openfeed.ExchangeResponse.Exchange build() {
org.openfeed.ExchangeResponse.Exchange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openfeed.ExchangeResponse.Exchange buildPartial() {
org.openfeed.ExchangeResponse.Exchange result = new org.openfeed.ExchangeResponse.Exchange(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.openfeed.ExchangeResponse.Exchange result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.code_ = code_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.description_ = description_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
aliases_.makeImmutable();
result.aliases_ = aliases_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.exchangeId_ = exchangeId_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openfeed.ExchangeResponse.Exchange) {
return mergeFrom((org.openfeed.ExchangeResponse.Exchange)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openfeed.ExchangeResponse.Exchange other) {
if (other == org.openfeed.ExchangeResponse.Exchange.getDefaultInstance()) return this;
if (!other.getCode().isEmpty()) {
code_ = other.code_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.aliases_.isEmpty()) {
if (aliases_.isEmpty()) {
aliases_ = other.aliases_;
bitField0_ |= 0x00000004;
} else {
ensureAliasesIsMutable();
aliases_.addAll(other.aliases_);
}
onChanged();
}
if (other.getExchangeId() != 0) {
setExchangeId(other.getExchangeId());
}
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: {
code_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureAliasesIsMutable();
aliases_.add(s);
break;
} // case 26
case 32: {
exchangeId_ = input.readSInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
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.lang.Object code_ = "";
/**
* string code = 1;
* @return The code.
*/
public java.lang.String getCode() {
java.lang.Object ref = code_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
code_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string code = 1;
* @return The bytes for code.
*/
public com.google.protobuf.ByteString
getCodeBytes() {
java.lang.Object ref = code_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
code_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string code = 1;
* @param value The code to set.
* @return This builder for chaining.
*/
public Builder setCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
code_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string code = 1;
* @return This builder for chaining.
*/
public Builder clearCode() {
code_ = getDefaultInstance().getCode();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string code = 1;
* @param value The bytes for code to set.
* @return This builder for chaining.
*/
public Builder setCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
code_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
* string description = 2;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string description = 2;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string description = 2;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
description_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string description = 2;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string description = 2;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList aliases_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAliasesIsMutable() {
if (!aliases_.isModifiable()) {
aliases_ = new com.google.protobuf.LazyStringArrayList(aliases_);
}
bitField0_ |= 0x00000004;
}
/**
* repeated string aliases = 3;
* @return A list containing the aliases.
*/
public com.google.protobuf.ProtocolStringList
getAliasesList() {
aliases_.makeImmutable();
return aliases_;
}
/**
* repeated string aliases = 3;
* @return The count of aliases.
*/
public int getAliasesCount() {
return aliases_.size();
}
/**
* repeated string aliases = 3;
* @param index The index of the element to return.
* @return The aliases at the given index.
*/
public java.lang.String getAliases(int index) {
return aliases_.get(index);
}
/**
* repeated string aliases = 3;
* @param index The index of the value to return.
* @return The bytes of the aliases at the given index.
*/
public com.google.protobuf.ByteString
getAliasesBytes(int index) {
return aliases_.getByteString(index);
}
/**
* repeated string aliases = 3;
* @param index The index to set the value at.
* @param value The aliases to set.
* @return This builder for chaining.
*/
public Builder setAliases(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureAliasesIsMutable();
aliases_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated string aliases = 3;
* @param value The aliases to add.
* @return This builder for chaining.
*/
public Builder addAliases(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureAliasesIsMutable();
aliases_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated string aliases = 3;
* @param values The aliases to add.
* @return This builder for chaining.
*/
public Builder addAllAliases(
java.lang.Iterable values) {
ensureAliasesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, aliases_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated string aliases = 3;
* @return This builder for chaining.
*/
public Builder clearAliases() {
aliases_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
onChanged();
return this;
}
/**
* repeated string aliases = 3;
* @param value The bytes of the aliases to add.
* @return This builder for chaining.
*/
public Builder addAliasesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureAliasesIsMutable();
aliases_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private int exchangeId_ ;
/**
* sint32 exchangeId = 4;
* @return The exchangeId.
*/
@java.lang.Override
public int getExchangeId() {
return exchangeId_;
}
/**
* sint32 exchangeId = 4;
* @param value The exchangeId to set.
* @return This builder for chaining.
*/
public Builder setExchangeId(int value) {
exchangeId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* sint32 exchangeId = 4;
* @return This builder for chaining.
*/
public Builder clearExchangeId() {
bitField0_ = (bitField0_ & ~0x00000008);
exchangeId_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:org.openfeed.ExchangeResponse.Exchange)
}
// @@protoc_insertion_point(class_scope:org.openfeed.ExchangeResponse.Exchange)
private static final org.openfeed.ExchangeResponse.Exchange DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openfeed.ExchangeResponse.Exchange();
}
public static org.openfeed.ExchangeResponse.Exchange getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Exchange 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.ExchangeResponse.Exchange getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int CORRELATIONID_FIELD_NUMBER = 1;
private long correlationId_ = 0L;
/**
* sint64 correlationId = 1;
* @return The correlationId.
*/
@java.lang.Override
public long getCorrelationId() {
return correlationId_;
}
public static final int STATUS_FIELD_NUMBER = 2;
private org.openfeed.Status status_;
/**
* .org.openfeed.Status status = 2;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .org.openfeed.Status status = 2;
* @return The status.
*/
@java.lang.Override
public org.openfeed.Status getStatus() {
return status_ == null ? org.openfeed.Status.getDefaultInstance() : status_;
}
/**
* .org.openfeed.Status status = 2;
*/
@java.lang.Override
public org.openfeed.StatusOrBuilder getStatusOrBuilder() {
return status_ == null ? org.openfeed.Status.getDefaultInstance() : status_;
}
public static final int EXCHANGES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List exchanges_;
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
@java.lang.Override
public java.util.List getExchangesList() {
return exchanges_;
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
@java.lang.Override
public java.util.List extends org.openfeed.ExchangeResponse.ExchangeOrBuilder>
getExchangesOrBuilderList() {
return exchanges_;
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
@java.lang.Override
public int getExchangesCount() {
return exchanges_.size();
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
@java.lang.Override
public org.openfeed.ExchangeResponse.Exchange getExchanges(int index) {
return exchanges_.get(index);
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
@java.lang.Override
public org.openfeed.ExchangeResponse.ExchangeOrBuilder getExchangesOrBuilder(
int index) {
return exchanges_.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 {
if (correlationId_ != 0L) {
output.writeSInt64(1, correlationId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getStatus());
}
for (int i = 0; i < exchanges_.size(); i++) {
output.writeMessage(3, exchanges_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (correlationId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(1, correlationId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getStatus());
}
for (int i = 0; i < exchanges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, exchanges_.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.ExchangeResponse)) {
return super.equals(obj);
}
org.openfeed.ExchangeResponse other = (org.openfeed.ExchangeResponse) obj;
if (getCorrelationId()
!= other.getCorrelationId()) return false;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (!getExchangesList()
.equals(other.getExchangesList())) 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();
hash = (37 * hash) + CORRELATIONID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCorrelationId());
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
if (getExchangesCount() > 0) {
hash = (37 * hash) + EXCHANGES_FIELD_NUMBER;
hash = (53 * hash) + getExchangesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openfeed.ExchangeResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.ExchangeResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.ExchangeResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.ExchangeResponse 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.ExchangeResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.ExchangeResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.ExchangeResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.ExchangeResponse 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.ExchangeResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openfeed.ExchangeResponse 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.ExchangeResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.ExchangeResponse 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.ExchangeResponse 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.ExchangeResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:org.openfeed.ExchangeResponse)
org.openfeed.ExchangeResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ExchangeResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ExchangeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.ExchangeResponse.class, org.openfeed.ExchangeResponse.Builder.class);
}
// Construct using org.openfeed.ExchangeResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getStatusFieldBuilder();
getExchangesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
correlationId_ = 0L;
status_ = null;
if (statusBuilder_ != null) {
statusBuilder_.dispose();
statusBuilder_ = null;
}
if (exchangesBuilder_ == null) {
exchanges_ = java.util.Collections.emptyList();
} else {
exchanges_ = null;
exchangesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ExchangeResponse_descriptor;
}
@java.lang.Override
public org.openfeed.ExchangeResponse getDefaultInstanceForType() {
return org.openfeed.ExchangeResponse.getDefaultInstance();
}
@java.lang.Override
public org.openfeed.ExchangeResponse build() {
org.openfeed.ExchangeResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openfeed.ExchangeResponse buildPartial() {
org.openfeed.ExchangeResponse result = new org.openfeed.ExchangeResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.openfeed.ExchangeResponse result) {
if (exchangesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
exchanges_ = java.util.Collections.unmodifiableList(exchanges_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.exchanges_ = exchanges_;
} else {
result.exchanges_ = exchangesBuilder_.build();
}
}
private void buildPartial0(org.openfeed.ExchangeResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.correlationId_ = correlationId_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.status_ = statusBuilder_ == null
? status_
: statusBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openfeed.ExchangeResponse) {
return mergeFrom((org.openfeed.ExchangeResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openfeed.ExchangeResponse other) {
if (other == org.openfeed.ExchangeResponse.getDefaultInstance()) return this;
if (other.getCorrelationId() != 0L) {
setCorrelationId(other.getCorrelationId());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
if (exchangesBuilder_ == null) {
if (!other.exchanges_.isEmpty()) {
if (exchanges_.isEmpty()) {
exchanges_ = other.exchanges_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureExchangesIsMutable();
exchanges_.addAll(other.exchanges_);
}
onChanged();
}
} else {
if (!other.exchanges_.isEmpty()) {
if (exchangesBuilder_.isEmpty()) {
exchangesBuilder_.dispose();
exchangesBuilder_ = null;
exchanges_ = other.exchanges_;
bitField0_ = (bitField0_ & ~0x00000004);
exchangesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getExchangesFieldBuilder() : null;
} else {
exchangesBuilder_.addAllMessages(other.exchanges_);
}
}
}
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 8: {
correlationId_ = input.readSInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getStatusFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
org.openfeed.ExchangeResponse.Exchange m =
input.readMessage(
org.openfeed.ExchangeResponse.Exchange.parser(),
extensionRegistry);
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
exchanges_.add(m);
} else {
exchangesBuilder_.addMessage(m);
}
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 bitField0_;
private long correlationId_ ;
/**
* sint64 correlationId = 1;
* @return The correlationId.
*/
@java.lang.Override
public long getCorrelationId() {
return correlationId_;
}
/**
* sint64 correlationId = 1;
* @param value The correlationId to set.
* @return This builder for chaining.
*/
public Builder setCorrelationId(long value) {
correlationId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* sint64 correlationId = 1;
* @return This builder for chaining.
*/
public Builder clearCorrelationId() {
bitField0_ = (bitField0_ & ~0x00000001);
correlationId_ = 0L;
onChanged();
return this;
}
private org.openfeed.Status status_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Status, org.openfeed.Status.Builder, org.openfeed.StatusOrBuilder> statusBuilder_;
/**
* .org.openfeed.Status status = 2;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .org.openfeed.Status status = 2;
* @return The status.
*/
public org.openfeed.Status getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? org.openfeed.Status.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
* .org.openfeed.Status status = 2;
*/
public Builder setStatus(org.openfeed.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .org.openfeed.Status status = 2;
*/
public Builder setStatus(
org.openfeed.Status.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .org.openfeed.Status status = 2;
*/
public Builder mergeStatus(org.openfeed.Status value) {
if (statusBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
status_ != null &&
status_ != org.openfeed.Status.getDefaultInstance()) {
getStatusBuilder().mergeFrom(value);
} else {
status_ = value;
}
} else {
statusBuilder_.mergeFrom(value);
}
if (status_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .org.openfeed.Status status = 2;
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000002);
status_ = null;
if (statusBuilder_ != null) {
statusBuilder_.dispose();
statusBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.openfeed.Status status = 2;
*/
public org.openfeed.Status.Builder getStatusBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
* .org.openfeed.Status status = 2;
*/
public org.openfeed.StatusOrBuilder getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_ == null ?
org.openfeed.Status.getDefaultInstance() : status_;
}
}
/**
* .org.openfeed.Status status = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Status, org.openfeed.Status.Builder, org.openfeed.StatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.Status, org.openfeed.Status.Builder, org.openfeed.StatusOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
private java.util.List exchanges_ =
java.util.Collections.emptyList();
private void ensureExchangesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
exchanges_ = new java.util.ArrayList(exchanges_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.openfeed.ExchangeResponse.Exchange, org.openfeed.ExchangeResponse.Exchange.Builder, org.openfeed.ExchangeResponse.ExchangeOrBuilder> exchangesBuilder_;
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public java.util.List getExchangesList() {
if (exchangesBuilder_ == null) {
return java.util.Collections.unmodifiableList(exchanges_);
} else {
return exchangesBuilder_.getMessageList();
}
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public int getExchangesCount() {
if (exchangesBuilder_ == null) {
return exchanges_.size();
} else {
return exchangesBuilder_.getCount();
}
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public org.openfeed.ExchangeResponse.Exchange getExchanges(int index) {
if (exchangesBuilder_ == null) {
return exchanges_.get(index);
} else {
return exchangesBuilder_.getMessage(index);
}
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public Builder setExchanges(
int index, org.openfeed.ExchangeResponse.Exchange value) {
if (exchangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExchangesIsMutable();
exchanges_.set(index, value);
onChanged();
} else {
exchangesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public Builder setExchanges(
int index, org.openfeed.ExchangeResponse.Exchange.Builder builderForValue) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
exchanges_.set(index, builderForValue.build());
onChanged();
} else {
exchangesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public Builder addExchanges(org.openfeed.ExchangeResponse.Exchange value) {
if (exchangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExchangesIsMutable();
exchanges_.add(value);
onChanged();
} else {
exchangesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public Builder addExchanges(
int index, org.openfeed.ExchangeResponse.Exchange value) {
if (exchangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExchangesIsMutable();
exchanges_.add(index, value);
onChanged();
} else {
exchangesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public Builder addExchanges(
org.openfeed.ExchangeResponse.Exchange.Builder builderForValue) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
exchanges_.add(builderForValue.build());
onChanged();
} else {
exchangesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public Builder addExchanges(
int index, org.openfeed.ExchangeResponse.Exchange.Builder builderForValue) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
exchanges_.add(index, builderForValue.build());
onChanged();
} else {
exchangesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public Builder addAllExchanges(
java.lang.Iterable extends org.openfeed.ExchangeResponse.Exchange> values) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, exchanges_);
onChanged();
} else {
exchangesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public Builder clearExchanges() {
if (exchangesBuilder_ == null) {
exchanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
exchangesBuilder_.clear();
}
return this;
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public Builder removeExchanges(int index) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
exchanges_.remove(index);
onChanged();
} else {
exchangesBuilder_.remove(index);
}
return this;
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public org.openfeed.ExchangeResponse.Exchange.Builder getExchangesBuilder(
int index) {
return getExchangesFieldBuilder().getBuilder(index);
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public org.openfeed.ExchangeResponse.ExchangeOrBuilder getExchangesOrBuilder(
int index) {
if (exchangesBuilder_ == null) {
return exchanges_.get(index); } else {
return exchangesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public java.util.List extends org.openfeed.ExchangeResponse.ExchangeOrBuilder>
getExchangesOrBuilderList() {
if (exchangesBuilder_ != null) {
return exchangesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(exchanges_);
}
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public org.openfeed.ExchangeResponse.Exchange.Builder addExchangesBuilder() {
return getExchangesFieldBuilder().addBuilder(
org.openfeed.ExchangeResponse.Exchange.getDefaultInstance());
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public org.openfeed.ExchangeResponse.Exchange.Builder addExchangesBuilder(
int index) {
return getExchangesFieldBuilder().addBuilder(
index, org.openfeed.ExchangeResponse.Exchange.getDefaultInstance());
}
/**
* repeated .org.openfeed.ExchangeResponse.Exchange exchanges = 3;
*/
public java.util.List
getExchangesBuilderList() {
return getExchangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.openfeed.ExchangeResponse.Exchange, org.openfeed.ExchangeResponse.Exchange.Builder, org.openfeed.ExchangeResponse.ExchangeOrBuilder>
getExchangesFieldBuilder() {
if (exchangesBuilder_ == null) {
exchangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.openfeed.ExchangeResponse.Exchange, org.openfeed.ExchangeResponse.Exchange.Builder, org.openfeed.ExchangeResponse.ExchangeOrBuilder>(
exchanges_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
exchanges_ = null;
}
return exchangesBuilder_;
}
// @@protoc_insertion_point(builder_scope:org.openfeed.ExchangeResponse)
}
// @@protoc_insertion_point(class_scope:org.openfeed.ExchangeResponse)
private static final org.openfeed.ExchangeResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openfeed.ExchangeResponse();
}
public static org.openfeed.ExchangeResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExchangeResponse 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.ExchangeResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy