All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openfeed.ListSubscriptionsResponse 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.ListSubscriptionsResponse}
 */
public final class ListSubscriptionsResponse extends
    com.google.protobuf.GeneratedMessage implements
    // @@protoc_insertion_point(message_implements:org.openfeed.ListSubscriptionsResponse)
    ListSubscriptionsResponseOrBuilder {
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= */ "",
      ListSubscriptionsResponse.class.getName());
  }
  // Use ListSubscriptionsResponse.newBuilder() to construct.
  private ListSubscriptionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
    super(builder);
  }
  private ListSubscriptionsResponse() {
    username_ = "";
    sessions_ = java.util.Collections.emptyList();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.openfeed.ListSubscriptionsResponse.class, org.openfeed.ListSubscriptionsResponse.Builder.class);
  }

  public interface SessionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:org.openfeed.ListSubscriptionsResponse.Session)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * / Nano second unix epoch
     * 
* * sint64 loginTime = 1; * @return The loginTime. */ long getLoginTime(); /** * string token = 2; * @return The token. */ java.lang.String getToken(); /** * string token = 2; * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); /** * string clientVersion = 3; * @return The clientVersion. */ java.lang.String getClientVersion(); /** * string clientVersion = 3; * @return The bytes for clientVersion. */ com.google.protobuf.ByteString getClientVersionBytes(); /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ java.util.List getMarketSubscriptionsList(); /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ org.openfeed.ListSubscriptionsResponse.Subscription getMarketSubscriptions(int index); /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ int getMarketSubscriptionsCount(); /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ java.util.List getMarketSubscriptionsOrBuilderList(); /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ org.openfeed.ListSubscriptionsResponse.SubscriptionOrBuilder getMarketSubscriptionsOrBuilder( int index); /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ java.util.List getExchangeSubscriptionsList(); /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ org.openfeed.ListSubscriptionsResponse.Subscription getExchangeSubscriptions(int index); /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ int getExchangeSubscriptionsCount(); /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ java.util.List getExchangeSubscriptionsOrBuilderList(); /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ org.openfeed.ListSubscriptionsResponse.SubscriptionOrBuilder getExchangeSubscriptionsOrBuilder( int index); } /** * Protobuf type {@code org.openfeed.ListSubscriptionsResponse.Session} */ public static final class Session extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.openfeed.ListSubscriptionsResponse.Session) SessionOrBuilder { 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= */ "", Session.class.getName()); } // Use Session.newBuilder() to construct. private Session(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Session() { token_ = ""; clientVersion_ = ""; marketSubscriptions_ = java.util.Collections.emptyList(); exchangeSubscriptions_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_Session_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_Session_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.ListSubscriptionsResponse.Session.class, org.openfeed.ListSubscriptionsResponse.Session.Builder.class); } public static final int LOGINTIME_FIELD_NUMBER = 1; private long loginTime_ = 0L; /** *
     * / Nano second unix epoch
     * 
* * sint64 loginTime = 1; * @return The loginTime. */ @java.lang.Override public long getLoginTime() { return loginTime_; } public static final int TOKEN_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object token_ = ""; /** * string token = 2; * @return The token. */ @java.lang.Override public java.lang.String getToken() { java.lang.Object ref = token_; 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(); token_ = s; return s; } } /** * string token = 2; * @return The bytes for token. */ @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLIENTVERSION_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object clientVersion_ = ""; /** * string clientVersion = 3; * @return The clientVersion. */ @java.lang.Override public java.lang.String getClientVersion() { java.lang.Object ref = clientVersion_; 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(); clientVersion_ = s; return s; } } /** * string clientVersion = 3; * @return The bytes for clientVersion. */ @java.lang.Override public com.google.protobuf.ByteString getClientVersionBytes() { java.lang.Object ref = clientVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MARKETSUBSCRIPTIONS_FIELD_NUMBER = 10; @SuppressWarnings("serial") private java.util.List marketSubscriptions_; /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ @java.lang.Override public java.util.List getMarketSubscriptionsList() { return marketSubscriptions_; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ @java.lang.Override public java.util.List getMarketSubscriptionsOrBuilderList() { return marketSubscriptions_; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ @java.lang.Override public int getMarketSubscriptionsCount() { return marketSubscriptions_.size(); } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ @java.lang.Override public org.openfeed.ListSubscriptionsResponse.Subscription getMarketSubscriptions(int index) { return marketSubscriptions_.get(index); } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ @java.lang.Override public org.openfeed.ListSubscriptionsResponse.SubscriptionOrBuilder getMarketSubscriptionsOrBuilder( int index) { return marketSubscriptions_.get(index); } public static final int EXCHANGESUBSCRIPTIONS_FIELD_NUMBER = 11; @SuppressWarnings("serial") private java.util.List exchangeSubscriptions_; /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ @java.lang.Override public java.util.List getExchangeSubscriptionsList() { return exchangeSubscriptions_; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ @java.lang.Override public java.util.List getExchangeSubscriptionsOrBuilderList() { return exchangeSubscriptions_; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ @java.lang.Override public int getExchangeSubscriptionsCount() { return exchangeSubscriptions_.size(); } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ @java.lang.Override public org.openfeed.ListSubscriptionsResponse.Subscription getExchangeSubscriptions(int index) { return exchangeSubscriptions_.get(index); } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ @java.lang.Override public org.openfeed.ListSubscriptionsResponse.SubscriptionOrBuilder getExchangeSubscriptionsOrBuilder( int index) { return exchangeSubscriptions_.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 (loginTime_ != 0L) { output.writeSInt64(1, loginTime_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, token_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientVersion_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, clientVersion_); } for (int i = 0; i < marketSubscriptions_.size(); i++) { output.writeMessage(10, marketSubscriptions_.get(i)); } for (int i = 0; i < exchangeSubscriptions_.size(); i++) { output.writeMessage(11, exchangeSubscriptions_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (loginTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(1, loginTime_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, token_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientVersion_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, clientVersion_); } for (int i = 0; i < marketSubscriptions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, marketSubscriptions_.get(i)); } for (int i = 0; i < exchangeSubscriptions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, exchangeSubscriptions_.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.ListSubscriptionsResponse.Session)) { return super.equals(obj); } org.openfeed.ListSubscriptionsResponse.Session other = (org.openfeed.ListSubscriptionsResponse.Session) obj; if (getLoginTime() != other.getLoginTime()) return false; if (!getToken() .equals(other.getToken())) return false; if (!getClientVersion() .equals(other.getClientVersion())) return false; if (!getMarketSubscriptionsList() .equals(other.getMarketSubscriptionsList())) return false; if (!getExchangeSubscriptionsList() .equals(other.getExchangeSubscriptionsList())) 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) + LOGINTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLoginTime()); hash = (37 * hash) + TOKEN_FIELD_NUMBER; hash = (53 * hash) + getToken().hashCode(); hash = (37 * hash) + CLIENTVERSION_FIELD_NUMBER; hash = (53 * hash) + getClientVersion().hashCode(); if (getMarketSubscriptionsCount() > 0) { hash = (37 * hash) + MARKETSUBSCRIPTIONS_FIELD_NUMBER; hash = (53 * hash) + getMarketSubscriptionsList().hashCode(); } if (getExchangeSubscriptionsCount() > 0) { hash = (37 * hash) + EXCHANGESUBSCRIPTIONS_FIELD_NUMBER; hash = (53 * hash) + getExchangeSubscriptionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.openfeed.ListSubscriptionsResponse.Session parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.ListSubscriptionsResponse.Session parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.ListSubscriptionsResponse.Session parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.ListSubscriptionsResponse.Session 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.ListSubscriptionsResponse.Session parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.ListSubscriptionsResponse.Session parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.ListSubscriptionsResponse.Session parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.ListSubscriptionsResponse.Session 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.ListSubscriptionsResponse.Session parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.openfeed.ListSubscriptionsResponse.Session 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.ListSubscriptionsResponse.Session parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.ListSubscriptionsResponse.Session 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.ListSubscriptionsResponse.Session 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.ListSubscriptionsResponse.Session} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.openfeed.ListSubscriptionsResponse.Session) org.openfeed.ListSubscriptionsResponse.SessionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_Session_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_Session_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.ListSubscriptionsResponse.Session.class, org.openfeed.ListSubscriptionsResponse.Session.Builder.class); } // Construct using org.openfeed.ListSubscriptionsResponse.Session.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; loginTime_ = 0L; token_ = ""; clientVersion_ = ""; if (marketSubscriptionsBuilder_ == null) { marketSubscriptions_ = java.util.Collections.emptyList(); } else { marketSubscriptions_ = null; marketSubscriptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (exchangeSubscriptionsBuilder_ == null) { exchangeSubscriptions_ = java.util.Collections.emptyList(); } else { exchangeSubscriptions_ = null; exchangeSubscriptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_Session_descriptor; } @java.lang.Override public org.openfeed.ListSubscriptionsResponse.Session getDefaultInstanceForType() { return org.openfeed.ListSubscriptionsResponse.Session.getDefaultInstance(); } @java.lang.Override public org.openfeed.ListSubscriptionsResponse.Session build() { org.openfeed.ListSubscriptionsResponse.Session result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openfeed.ListSubscriptionsResponse.Session buildPartial() { org.openfeed.ListSubscriptionsResponse.Session result = new org.openfeed.ListSubscriptionsResponse.Session(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.openfeed.ListSubscriptionsResponse.Session result) { if (marketSubscriptionsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { marketSubscriptions_ = java.util.Collections.unmodifiableList(marketSubscriptions_); bitField0_ = (bitField0_ & ~0x00000008); } result.marketSubscriptions_ = marketSubscriptions_; } else { result.marketSubscriptions_ = marketSubscriptionsBuilder_.build(); } if (exchangeSubscriptionsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { exchangeSubscriptions_ = java.util.Collections.unmodifiableList(exchangeSubscriptions_); bitField0_ = (bitField0_ & ~0x00000010); } result.exchangeSubscriptions_ = exchangeSubscriptions_; } else { result.exchangeSubscriptions_ = exchangeSubscriptionsBuilder_.build(); } } private void buildPartial0(org.openfeed.ListSubscriptionsResponse.Session result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.loginTime_ = loginTime_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.token_ = token_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.clientVersion_ = clientVersion_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openfeed.ListSubscriptionsResponse.Session) { return mergeFrom((org.openfeed.ListSubscriptionsResponse.Session)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openfeed.ListSubscriptionsResponse.Session other) { if (other == org.openfeed.ListSubscriptionsResponse.Session.getDefaultInstance()) return this; if (other.getLoginTime() != 0L) { setLoginTime(other.getLoginTime()); } if (!other.getToken().isEmpty()) { token_ = other.token_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getClientVersion().isEmpty()) { clientVersion_ = other.clientVersion_; bitField0_ |= 0x00000004; onChanged(); } if (marketSubscriptionsBuilder_ == null) { if (!other.marketSubscriptions_.isEmpty()) { if (marketSubscriptions_.isEmpty()) { marketSubscriptions_ = other.marketSubscriptions_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureMarketSubscriptionsIsMutable(); marketSubscriptions_.addAll(other.marketSubscriptions_); } onChanged(); } } else { if (!other.marketSubscriptions_.isEmpty()) { if (marketSubscriptionsBuilder_.isEmpty()) { marketSubscriptionsBuilder_.dispose(); marketSubscriptionsBuilder_ = null; marketSubscriptions_ = other.marketSubscriptions_; bitField0_ = (bitField0_ & ~0x00000008); marketSubscriptionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getMarketSubscriptionsFieldBuilder() : null; } else { marketSubscriptionsBuilder_.addAllMessages(other.marketSubscriptions_); } } } if (exchangeSubscriptionsBuilder_ == null) { if (!other.exchangeSubscriptions_.isEmpty()) { if (exchangeSubscriptions_.isEmpty()) { exchangeSubscriptions_ = other.exchangeSubscriptions_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureExchangeSubscriptionsIsMutable(); exchangeSubscriptions_.addAll(other.exchangeSubscriptions_); } onChanged(); } } else { if (!other.exchangeSubscriptions_.isEmpty()) { if (exchangeSubscriptionsBuilder_.isEmpty()) { exchangeSubscriptionsBuilder_.dispose(); exchangeSubscriptionsBuilder_ = null; exchangeSubscriptions_ = other.exchangeSubscriptions_; bitField0_ = (bitField0_ & ~0x00000010); exchangeSubscriptionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getExchangeSubscriptionsFieldBuilder() : null; } else { exchangeSubscriptionsBuilder_.addAllMessages(other.exchangeSubscriptions_); } } } 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: { loginTime_ = input.readSInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { token_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { clientVersion_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 82: { org.openfeed.ListSubscriptionsResponse.Subscription m = input.readMessage( org.openfeed.ListSubscriptionsResponse.Subscription.parser(), extensionRegistry); if (marketSubscriptionsBuilder_ == null) { ensureMarketSubscriptionsIsMutable(); marketSubscriptions_.add(m); } else { marketSubscriptionsBuilder_.addMessage(m); } break; } // case 82 case 90: { org.openfeed.ListSubscriptionsResponse.Subscription m = input.readMessage( org.openfeed.ListSubscriptionsResponse.Subscription.parser(), extensionRegistry); if (exchangeSubscriptionsBuilder_ == null) { ensureExchangeSubscriptionsIsMutable(); exchangeSubscriptions_.add(m); } else { exchangeSubscriptionsBuilder_.addMessage(m); } break; } // case 90 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 loginTime_ ; /** *
       * / Nano second unix epoch
       * 
* * sint64 loginTime = 1; * @return The loginTime. */ @java.lang.Override public long getLoginTime() { return loginTime_; } /** *
       * / Nano second unix epoch
       * 
* * sint64 loginTime = 1; * @param value The loginTime to set. * @return This builder for chaining. */ public Builder setLoginTime(long value) { loginTime_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * / Nano second unix epoch
       * 
* * sint64 loginTime = 1; * @return This builder for chaining. */ public Builder clearLoginTime() { bitField0_ = (bitField0_ & ~0x00000001); loginTime_ = 0L; onChanged(); return this; } private java.lang.Object token_ = ""; /** * string token = 2; * @return The token. */ public java.lang.String getToken() { java.lang.Object ref = token_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; } else { return (java.lang.String) ref; } } /** * string token = 2; * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string token = 2; * @param value The token to set. * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } token_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string token = 2; * @return This builder for chaining. */ public Builder clearToken() { token_ = getDefaultInstance().getToken(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string token = 2; * @param value The bytes for token to set. * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); token_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object clientVersion_ = ""; /** * string clientVersion = 3; * @return The clientVersion. */ public java.lang.String getClientVersion() { java.lang.Object ref = clientVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * string clientVersion = 3; * @return The bytes for clientVersion. */ public com.google.protobuf.ByteString getClientVersionBytes() { java.lang.Object ref = clientVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string clientVersion = 3; * @param value The clientVersion to set. * @return This builder for chaining. */ public Builder setClientVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clientVersion_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string clientVersion = 3; * @return This builder for chaining. */ public Builder clearClientVersion() { clientVersion_ = getDefaultInstance().getClientVersion(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string clientVersion = 3; * @param value The bytes for clientVersion to set. * @return This builder for chaining. */ public Builder setClientVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientVersion_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.util.List marketSubscriptions_ = java.util.Collections.emptyList(); private void ensureMarketSubscriptionsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { marketSubscriptions_ = new java.util.ArrayList(marketSubscriptions_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< org.openfeed.ListSubscriptionsResponse.Subscription, org.openfeed.ListSubscriptionsResponse.Subscription.Builder, org.openfeed.ListSubscriptionsResponse.SubscriptionOrBuilder> marketSubscriptionsBuilder_; /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public java.util.List getMarketSubscriptionsList() { if (marketSubscriptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(marketSubscriptions_); } else { return marketSubscriptionsBuilder_.getMessageList(); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public int getMarketSubscriptionsCount() { if (marketSubscriptionsBuilder_ == null) { return marketSubscriptions_.size(); } else { return marketSubscriptionsBuilder_.getCount(); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public org.openfeed.ListSubscriptionsResponse.Subscription getMarketSubscriptions(int index) { if (marketSubscriptionsBuilder_ == null) { return marketSubscriptions_.get(index); } else { return marketSubscriptionsBuilder_.getMessage(index); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public Builder setMarketSubscriptions( int index, org.openfeed.ListSubscriptionsResponse.Subscription value) { if (marketSubscriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMarketSubscriptionsIsMutable(); marketSubscriptions_.set(index, value); onChanged(); } else { marketSubscriptionsBuilder_.setMessage(index, value); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public Builder setMarketSubscriptions( int index, org.openfeed.ListSubscriptionsResponse.Subscription.Builder builderForValue) { if (marketSubscriptionsBuilder_ == null) { ensureMarketSubscriptionsIsMutable(); marketSubscriptions_.set(index, builderForValue.build()); onChanged(); } else { marketSubscriptionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public Builder addMarketSubscriptions(org.openfeed.ListSubscriptionsResponse.Subscription value) { if (marketSubscriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMarketSubscriptionsIsMutable(); marketSubscriptions_.add(value); onChanged(); } else { marketSubscriptionsBuilder_.addMessage(value); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public Builder addMarketSubscriptions( int index, org.openfeed.ListSubscriptionsResponse.Subscription value) { if (marketSubscriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMarketSubscriptionsIsMutable(); marketSubscriptions_.add(index, value); onChanged(); } else { marketSubscriptionsBuilder_.addMessage(index, value); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public Builder addMarketSubscriptions( org.openfeed.ListSubscriptionsResponse.Subscription.Builder builderForValue) { if (marketSubscriptionsBuilder_ == null) { ensureMarketSubscriptionsIsMutable(); marketSubscriptions_.add(builderForValue.build()); onChanged(); } else { marketSubscriptionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public Builder addMarketSubscriptions( int index, org.openfeed.ListSubscriptionsResponse.Subscription.Builder builderForValue) { if (marketSubscriptionsBuilder_ == null) { ensureMarketSubscriptionsIsMutable(); marketSubscriptions_.add(index, builderForValue.build()); onChanged(); } else { marketSubscriptionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public Builder addAllMarketSubscriptions( java.lang.Iterable values) { if (marketSubscriptionsBuilder_ == null) { ensureMarketSubscriptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, marketSubscriptions_); onChanged(); } else { marketSubscriptionsBuilder_.addAllMessages(values); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public Builder clearMarketSubscriptions() { if (marketSubscriptionsBuilder_ == null) { marketSubscriptions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { marketSubscriptionsBuilder_.clear(); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public Builder removeMarketSubscriptions(int index) { if (marketSubscriptionsBuilder_ == null) { ensureMarketSubscriptionsIsMutable(); marketSubscriptions_.remove(index); onChanged(); } else { marketSubscriptionsBuilder_.remove(index); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public org.openfeed.ListSubscriptionsResponse.Subscription.Builder getMarketSubscriptionsBuilder( int index) { return getMarketSubscriptionsFieldBuilder().getBuilder(index); } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public org.openfeed.ListSubscriptionsResponse.SubscriptionOrBuilder getMarketSubscriptionsOrBuilder( int index) { if (marketSubscriptionsBuilder_ == null) { return marketSubscriptions_.get(index); } else { return marketSubscriptionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public java.util.List getMarketSubscriptionsOrBuilderList() { if (marketSubscriptionsBuilder_ != null) { return marketSubscriptionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(marketSubscriptions_); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public org.openfeed.ListSubscriptionsResponse.Subscription.Builder addMarketSubscriptionsBuilder() { return getMarketSubscriptionsFieldBuilder().addBuilder( org.openfeed.ListSubscriptionsResponse.Subscription.getDefaultInstance()); } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public org.openfeed.ListSubscriptionsResponse.Subscription.Builder addMarketSubscriptionsBuilder( int index) { return getMarketSubscriptionsFieldBuilder().addBuilder( index, org.openfeed.ListSubscriptionsResponse.Subscription.getDefaultInstance()); } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription marketSubscriptions = 10; */ public java.util.List getMarketSubscriptionsBuilderList() { return getMarketSubscriptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.openfeed.ListSubscriptionsResponse.Subscription, org.openfeed.ListSubscriptionsResponse.Subscription.Builder, org.openfeed.ListSubscriptionsResponse.SubscriptionOrBuilder> getMarketSubscriptionsFieldBuilder() { if (marketSubscriptionsBuilder_ == null) { marketSubscriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.openfeed.ListSubscriptionsResponse.Subscription, org.openfeed.ListSubscriptionsResponse.Subscription.Builder, org.openfeed.ListSubscriptionsResponse.SubscriptionOrBuilder>( marketSubscriptions_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); marketSubscriptions_ = null; } return marketSubscriptionsBuilder_; } private java.util.List exchangeSubscriptions_ = java.util.Collections.emptyList(); private void ensureExchangeSubscriptionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { exchangeSubscriptions_ = new java.util.ArrayList(exchangeSubscriptions_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< org.openfeed.ListSubscriptionsResponse.Subscription, org.openfeed.ListSubscriptionsResponse.Subscription.Builder, org.openfeed.ListSubscriptionsResponse.SubscriptionOrBuilder> exchangeSubscriptionsBuilder_; /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public java.util.List getExchangeSubscriptionsList() { if (exchangeSubscriptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(exchangeSubscriptions_); } else { return exchangeSubscriptionsBuilder_.getMessageList(); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public int getExchangeSubscriptionsCount() { if (exchangeSubscriptionsBuilder_ == null) { return exchangeSubscriptions_.size(); } else { return exchangeSubscriptionsBuilder_.getCount(); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public org.openfeed.ListSubscriptionsResponse.Subscription getExchangeSubscriptions(int index) { if (exchangeSubscriptionsBuilder_ == null) { return exchangeSubscriptions_.get(index); } else { return exchangeSubscriptionsBuilder_.getMessage(index); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public Builder setExchangeSubscriptions( int index, org.openfeed.ListSubscriptionsResponse.Subscription value) { if (exchangeSubscriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExchangeSubscriptionsIsMutable(); exchangeSubscriptions_.set(index, value); onChanged(); } else { exchangeSubscriptionsBuilder_.setMessage(index, value); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public Builder setExchangeSubscriptions( int index, org.openfeed.ListSubscriptionsResponse.Subscription.Builder builderForValue) { if (exchangeSubscriptionsBuilder_ == null) { ensureExchangeSubscriptionsIsMutable(); exchangeSubscriptions_.set(index, builderForValue.build()); onChanged(); } else { exchangeSubscriptionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public Builder addExchangeSubscriptions(org.openfeed.ListSubscriptionsResponse.Subscription value) { if (exchangeSubscriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExchangeSubscriptionsIsMutable(); exchangeSubscriptions_.add(value); onChanged(); } else { exchangeSubscriptionsBuilder_.addMessage(value); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public Builder addExchangeSubscriptions( int index, org.openfeed.ListSubscriptionsResponse.Subscription value) { if (exchangeSubscriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExchangeSubscriptionsIsMutable(); exchangeSubscriptions_.add(index, value); onChanged(); } else { exchangeSubscriptionsBuilder_.addMessage(index, value); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public Builder addExchangeSubscriptions( org.openfeed.ListSubscriptionsResponse.Subscription.Builder builderForValue) { if (exchangeSubscriptionsBuilder_ == null) { ensureExchangeSubscriptionsIsMutable(); exchangeSubscriptions_.add(builderForValue.build()); onChanged(); } else { exchangeSubscriptionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public Builder addExchangeSubscriptions( int index, org.openfeed.ListSubscriptionsResponse.Subscription.Builder builderForValue) { if (exchangeSubscriptionsBuilder_ == null) { ensureExchangeSubscriptionsIsMutable(); exchangeSubscriptions_.add(index, builderForValue.build()); onChanged(); } else { exchangeSubscriptionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public Builder addAllExchangeSubscriptions( java.lang.Iterable values) { if (exchangeSubscriptionsBuilder_ == null) { ensureExchangeSubscriptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, exchangeSubscriptions_); onChanged(); } else { exchangeSubscriptionsBuilder_.addAllMessages(values); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public Builder clearExchangeSubscriptions() { if (exchangeSubscriptionsBuilder_ == null) { exchangeSubscriptions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { exchangeSubscriptionsBuilder_.clear(); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public Builder removeExchangeSubscriptions(int index) { if (exchangeSubscriptionsBuilder_ == null) { ensureExchangeSubscriptionsIsMutable(); exchangeSubscriptions_.remove(index); onChanged(); } else { exchangeSubscriptionsBuilder_.remove(index); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public org.openfeed.ListSubscriptionsResponse.Subscription.Builder getExchangeSubscriptionsBuilder( int index) { return getExchangeSubscriptionsFieldBuilder().getBuilder(index); } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public org.openfeed.ListSubscriptionsResponse.SubscriptionOrBuilder getExchangeSubscriptionsOrBuilder( int index) { if (exchangeSubscriptionsBuilder_ == null) { return exchangeSubscriptions_.get(index); } else { return exchangeSubscriptionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public java.util.List getExchangeSubscriptionsOrBuilderList() { if (exchangeSubscriptionsBuilder_ != null) { return exchangeSubscriptionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(exchangeSubscriptions_); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public org.openfeed.ListSubscriptionsResponse.Subscription.Builder addExchangeSubscriptionsBuilder() { return getExchangeSubscriptionsFieldBuilder().addBuilder( org.openfeed.ListSubscriptionsResponse.Subscription.getDefaultInstance()); } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public org.openfeed.ListSubscriptionsResponse.Subscription.Builder addExchangeSubscriptionsBuilder( int index) { return getExchangeSubscriptionsFieldBuilder().addBuilder( index, org.openfeed.ListSubscriptionsResponse.Subscription.getDefaultInstance()); } /** * repeated .org.openfeed.ListSubscriptionsResponse.Subscription exchangeSubscriptions = 11; */ public java.util.List getExchangeSubscriptionsBuilderList() { return getExchangeSubscriptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.openfeed.ListSubscriptionsResponse.Subscription, org.openfeed.ListSubscriptionsResponse.Subscription.Builder, org.openfeed.ListSubscriptionsResponse.SubscriptionOrBuilder> getExchangeSubscriptionsFieldBuilder() { if (exchangeSubscriptionsBuilder_ == null) { exchangeSubscriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.openfeed.ListSubscriptionsResponse.Subscription, org.openfeed.ListSubscriptionsResponse.Subscription.Builder, org.openfeed.ListSubscriptionsResponse.SubscriptionOrBuilder>( exchangeSubscriptions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); exchangeSubscriptions_ = null; } return exchangeSubscriptionsBuilder_; } // @@protoc_insertion_point(builder_scope:org.openfeed.ListSubscriptionsResponse.Session) } // @@protoc_insertion_point(class_scope:org.openfeed.ListSubscriptionsResponse.Session) private static final org.openfeed.ListSubscriptionsResponse.Session DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openfeed.ListSubscriptionsResponse.Session(); } public static org.openfeed.ListSubscriptionsResponse.Session getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Session 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.ListSubscriptionsResponse.Session getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SubscriptionOrBuilder extends // @@protoc_insertion_point(interface_extends:org.openfeed.ListSubscriptionsResponse.Subscription) com.google.protobuf.MessageOrBuilder { /** * string subscriptionId = 1; * @return The subscriptionId. */ java.lang.String getSubscriptionId(); /** * string subscriptionId = 1; * @return The bytes for subscriptionId. */ com.google.protobuf.ByteString getSubscriptionIdBytes(); /** * string symbolId = 2; * @return The symbolId. */ java.lang.String getSymbolId(); /** * string symbolId = 2; * @return The bytes for symbolId. */ com.google.protobuf.ByteString getSymbolIdBytes(); /** * sint64 marketId = 3; * @return The marketId. */ long getMarketId(); /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ java.util.List getSymbolCountsList(); /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ org.openfeed.ListSubscriptionsResponse.SymbolCount getSymbolCounts(int index); /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ int getSymbolCountsCount(); /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ java.util.List getSymbolCountsOrBuilderList(); /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ org.openfeed.ListSubscriptionsResponse.SymbolCountOrBuilder getSymbolCountsOrBuilder( int index); /** * string exchange = 10; * @return The exchange. */ java.lang.String getExchange(); /** * string exchange = 10; * @return The bytes for exchange. */ com.google.protobuf.ByteString getExchangeBytes(); /** * string root = 11; * @return The root. */ java.lang.String getRoot(); /** * string root = 11; * @return The bytes for root. */ com.google.protobuf.ByteString getRootBytes(); } /** * Protobuf type {@code org.openfeed.ListSubscriptionsResponse.Subscription} */ public static final class Subscription extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.openfeed.ListSubscriptionsResponse.Subscription) SubscriptionOrBuilder { 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= */ "", Subscription.class.getName()); } // Use Subscription.newBuilder() to construct. private Subscription(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Subscription() { subscriptionId_ = ""; symbolId_ = ""; symbolCounts_ = java.util.Collections.emptyList(); exchange_ = ""; root_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_Subscription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.ListSubscriptionsResponse.Subscription.class, org.openfeed.ListSubscriptionsResponse.Subscription.Builder.class); } public static final int SUBSCRIPTIONID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object subscriptionId_ = ""; /** * string subscriptionId = 1; * @return The subscriptionId. */ @java.lang.Override public java.lang.String getSubscriptionId() { java.lang.Object ref = subscriptionId_; 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(); subscriptionId_ = s; return s; } } /** * string subscriptionId = 1; * @return The bytes for subscriptionId. */ @java.lang.Override public com.google.protobuf.ByteString getSubscriptionIdBytes() { java.lang.Object ref = subscriptionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subscriptionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SYMBOLID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object symbolId_ = ""; /** * string symbolId = 2; * @return The symbolId. */ @java.lang.Override public java.lang.String getSymbolId() { java.lang.Object ref = symbolId_; 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(); symbolId_ = s; return s; } } /** * string symbolId = 2; * @return The bytes for symbolId. */ @java.lang.Override public com.google.protobuf.ByteString getSymbolIdBytes() { java.lang.Object ref = symbolId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbolId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MARKETID_FIELD_NUMBER = 3; private long marketId_ = 0L; /** * sint64 marketId = 3; * @return The marketId. */ @java.lang.Override public long getMarketId() { return marketId_; } public static final int SYMBOLCOUNTS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List symbolCounts_; /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ @java.lang.Override public java.util.List getSymbolCountsList() { return symbolCounts_; } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ @java.lang.Override public java.util.List getSymbolCountsOrBuilderList() { return symbolCounts_; } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ @java.lang.Override public int getSymbolCountsCount() { return symbolCounts_.size(); } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ @java.lang.Override public org.openfeed.ListSubscriptionsResponse.SymbolCount getSymbolCounts(int index) { return symbolCounts_.get(index); } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ @java.lang.Override public org.openfeed.ListSubscriptionsResponse.SymbolCountOrBuilder getSymbolCountsOrBuilder( int index) { return symbolCounts_.get(index); } public static final int EXCHANGE_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object exchange_ = ""; /** * string exchange = 10; * @return The exchange. */ @java.lang.Override public java.lang.String getExchange() { java.lang.Object ref = exchange_; 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(); exchange_ = s; return s; } } /** * string exchange = 10; * @return The bytes for exchange. */ @java.lang.Override public com.google.protobuf.ByteString getExchangeBytes() { java.lang.Object ref = exchange_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); exchange_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ROOT_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object root_ = ""; /** * string root = 11; * @return The root. */ @java.lang.Override public java.lang.String getRoot() { java.lang.Object ref = root_; 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(); root_ = s; return s; } } /** * string root = 11; * @return The bytes for root. */ @java.lang.Override public com.google.protobuf.ByteString getRootBytes() { java.lang.Object ref = root_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); root_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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(subscriptionId_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, subscriptionId_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(symbolId_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, symbolId_); } if (marketId_ != 0L) { output.writeSInt64(3, marketId_); } for (int i = 0; i < symbolCounts_.size(); i++) { output.writeMessage(4, symbolCounts_.get(i)); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(exchange_)) { com.google.protobuf.GeneratedMessage.writeString(output, 10, exchange_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(root_)) { com.google.protobuf.GeneratedMessage.writeString(output, 11, root_); } 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(subscriptionId_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, subscriptionId_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(symbolId_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, symbolId_); } if (marketId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(3, marketId_); } for (int i = 0; i < symbolCounts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, symbolCounts_.get(i)); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(exchange_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(10, exchange_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(root_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(11, root_); } 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.ListSubscriptionsResponse.Subscription)) { return super.equals(obj); } org.openfeed.ListSubscriptionsResponse.Subscription other = (org.openfeed.ListSubscriptionsResponse.Subscription) obj; if (!getSubscriptionId() .equals(other.getSubscriptionId())) return false; if (!getSymbolId() .equals(other.getSymbolId())) return false; if (getMarketId() != other.getMarketId()) return false; if (!getSymbolCountsList() .equals(other.getSymbolCountsList())) return false; if (!getExchange() .equals(other.getExchange())) return false; if (!getRoot() .equals(other.getRoot())) 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) + SUBSCRIPTIONID_FIELD_NUMBER; hash = (53 * hash) + getSubscriptionId().hashCode(); hash = (37 * hash) + SYMBOLID_FIELD_NUMBER; hash = (53 * hash) + getSymbolId().hashCode(); hash = (37 * hash) + MARKETID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMarketId()); if (getSymbolCountsCount() > 0) { hash = (37 * hash) + SYMBOLCOUNTS_FIELD_NUMBER; hash = (53 * hash) + getSymbolCountsList().hashCode(); } hash = (37 * hash) + EXCHANGE_FIELD_NUMBER; hash = (53 * hash) + getExchange().hashCode(); hash = (37 * hash) + ROOT_FIELD_NUMBER; hash = (53 * hash) + getRoot().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.openfeed.ListSubscriptionsResponse.Subscription parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.ListSubscriptionsResponse.Subscription parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.ListSubscriptionsResponse.Subscription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.ListSubscriptionsResponse.Subscription 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.ListSubscriptionsResponse.Subscription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.ListSubscriptionsResponse.Subscription parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.ListSubscriptionsResponse.Subscription parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.ListSubscriptionsResponse.Subscription 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.ListSubscriptionsResponse.Subscription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.openfeed.ListSubscriptionsResponse.Subscription 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.ListSubscriptionsResponse.Subscription parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.ListSubscriptionsResponse.Subscription 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.ListSubscriptionsResponse.Subscription 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.ListSubscriptionsResponse.Subscription} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.openfeed.ListSubscriptionsResponse.Subscription) org.openfeed.ListSubscriptionsResponse.SubscriptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_Subscription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.ListSubscriptionsResponse.Subscription.class, org.openfeed.ListSubscriptionsResponse.Subscription.Builder.class); } // Construct using org.openfeed.ListSubscriptionsResponse.Subscription.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; subscriptionId_ = ""; symbolId_ = ""; marketId_ = 0L; if (symbolCountsBuilder_ == null) { symbolCounts_ = java.util.Collections.emptyList(); } else { symbolCounts_ = null; symbolCountsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); exchange_ = ""; root_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_Subscription_descriptor; } @java.lang.Override public org.openfeed.ListSubscriptionsResponse.Subscription getDefaultInstanceForType() { return org.openfeed.ListSubscriptionsResponse.Subscription.getDefaultInstance(); } @java.lang.Override public org.openfeed.ListSubscriptionsResponse.Subscription build() { org.openfeed.ListSubscriptionsResponse.Subscription result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openfeed.ListSubscriptionsResponse.Subscription buildPartial() { org.openfeed.ListSubscriptionsResponse.Subscription result = new org.openfeed.ListSubscriptionsResponse.Subscription(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.openfeed.ListSubscriptionsResponse.Subscription result) { if (symbolCountsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { symbolCounts_ = java.util.Collections.unmodifiableList(symbolCounts_); bitField0_ = (bitField0_ & ~0x00000008); } result.symbolCounts_ = symbolCounts_; } else { result.symbolCounts_ = symbolCountsBuilder_.build(); } } private void buildPartial0(org.openfeed.ListSubscriptionsResponse.Subscription result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.subscriptionId_ = subscriptionId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.symbolId_ = symbolId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.marketId_ = marketId_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.exchange_ = exchange_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.root_ = root_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openfeed.ListSubscriptionsResponse.Subscription) { return mergeFrom((org.openfeed.ListSubscriptionsResponse.Subscription)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openfeed.ListSubscriptionsResponse.Subscription other) { if (other == org.openfeed.ListSubscriptionsResponse.Subscription.getDefaultInstance()) return this; if (!other.getSubscriptionId().isEmpty()) { subscriptionId_ = other.subscriptionId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getSymbolId().isEmpty()) { symbolId_ = other.symbolId_; bitField0_ |= 0x00000002; onChanged(); } if (other.getMarketId() != 0L) { setMarketId(other.getMarketId()); } if (symbolCountsBuilder_ == null) { if (!other.symbolCounts_.isEmpty()) { if (symbolCounts_.isEmpty()) { symbolCounts_ = other.symbolCounts_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSymbolCountsIsMutable(); symbolCounts_.addAll(other.symbolCounts_); } onChanged(); } } else { if (!other.symbolCounts_.isEmpty()) { if (symbolCountsBuilder_.isEmpty()) { symbolCountsBuilder_.dispose(); symbolCountsBuilder_ = null; symbolCounts_ = other.symbolCounts_; bitField0_ = (bitField0_ & ~0x00000008); symbolCountsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSymbolCountsFieldBuilder() : null; } else { symbolCountsBuilder_.addAllMessages(other.symbolCounts_); } } } if (!other.getExchange().isEmpty()) { exchange_ = other.exchange_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getRoot().isEmpty()) { root_ = other.root_; bitField0_ |= 0x00000020; onChanged(); } 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: { subscriptionId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { symbolId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { marketId_ = input.readSInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { org.openfeed.ListSubscriptionsResponse.SymbolCount m = input.readMessage( org.openfeed.ListSubscriptionsResponse.SymbolCount.parser(), extensionRegistry); if (symbolCountsBuilder_ == null) { ensureSymbolCountsIsMutable(); symbolCounts_.add(m); } else { symbolCountsBuilder_.addMessage(m); } break; } // case 34 case 82: { exchange_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 82 case 90: { root_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 90 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 subscriptionId_ = ""; /** * string subscriptionId = 1; * @return The subscriptionId. */ public java.lang.String getSubscriptionId() { java.lang.Object ref = subscriptionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscriptionId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string subscriptionId = 1; * @return The bytes for subscriptionId. */ public com.google.protobuf.ByteString getSubscriptionIdBytes() { java.lang.Object ref = subscriptionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subscriptionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string subscriptionId = 1; * @param value The subscriptionId to set. * @return This builder for chaining. */ public Builder setSubscriptionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subscriptionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string subscriptionId = 1; * @return This builder for chaining. */ public Builder clearSubscriptionId() { subscriptionId_ = getDefaultInstance().getSubscriptionId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string subscriptionId = 1; * @param value The bytes for subscriptionId to set. * @return This builder for chaining. */ public Builder setSubscriptionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscriptionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object symbolId_ = ""; /** * string symbolId = 2; * @return The symbolId. */ public java.lang.String getSymbolId() { java.lang.Object ref = symbolId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symbolId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string symbolId = 2; * @return The bytes for symbolId. */ public com.google.protobuf.ByteString getSymbolIdBytes() { java.lang.Object ref = symbolId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbolId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string symbolId = 2; * @param value The symbolId to set. * @return This builder for chaining. */ public Builder setSymbolId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } symbolId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string symbolId = 2; * @return This builder for chaining. */ public Builder clearSymbolId() { symbolId_ = getDefaultInstance().getSymbolId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string symbolId = 2; * @param value The bytes for symbolId to set. * @return This builder for chaining. */ public Builder setSymbolIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); symbolId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long marketId_ ; /** * sint64 marketId = 3; * @return The marketId. */ @java.lang.Override public long getMarketId() { return marketId_; } /** * sint64 marketId = 3; * @param value The marketId to set. * @return This builder for chaining. */ public Builder setMarketId(long value) { marketId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * sint64 marketId = 3; * @return This builder for chaining. */ public Builder clearMarketId() { bitField0_ = (bitField0_ & ~0x00000004); marketId_ = 0L; onChanged(); return this; } private java.util.List symbolCounts_ = java.util.Collections.emptyList(); private void ensureSymbolCountsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { symbolCounts_ = new java.util.ArrayList(symbolCounts_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< org.openfeed.ListSubscriptionsResponse.SymbolCount, org.openfeed.ListSubscriptionsResponse.SymbolCount.Builder, org.openfeed.ListSubscriptionsResponse.SymbolCountOrBuilder> symbolCountsBuilder_; /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public java.util.List getSymbolCountsList() { if (symbolCountsBuilder_ == null) { return java.util.Collections.unmodifiableList(symbolCounts_); } else { return symbolCountsBuilder_.getMessageList(); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public int getSymbolCountsCount() { if (symbolCountsBuilder_ == null) { return symbolCounts_.size(); } else { return symbolCountsBuilder_.getCount(); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public org.openfeed.ListSubscriptionsResponse.SymbolCount getSymbolCounts(int index) { if (symbolCountsBuilder_ == null) { return symbolCounts_.get(index); } else { return symbolCountsBuilder_.getMessage(index); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public Builder setSymbolCounts( int index, org.openfeed.ListSubscriptionsResponse.SymbolCount value) { if (symbolCountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSymbolCountsIsMutable(); symbolCounts_.set(index, value); onChanged(); } else { symbolCountsBuilder_.setMessage(index, value); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public Builder setSymbolCounts( int index, org.openfeed.ListSubscriptionsResponse.SymbolCount.Builder builderForValue) { if (symbolCountsBuilder_ == null) { ensureSymbolCountsIsMutable(); symbolCounts_.set(index, builderForValue.build()); onChanged(); } else { symbolCountsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public Builder addSymbolCounts(org.openfeed.ListSubscriptionsResponse.SymbolCount value) { if (symbolCountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSymbolCountsIsMutable(); symbolCounts_.add(value); onChanged(); } else { symbolCountsBuilder_.addMessage(value); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public Builder addSymbolCounts( int index, org.openfeed.ListSubscriptionsResponse.SymbolCount value) { if (symbolCountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSymbolCountsIsMutable(); symbolCounts_.add(index, value); onChanged(); } else { symbolCountsBuilder_.addMessage(index, value); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public Builder addSymbolCounts( org.openfeed.ListSubscriptionsResponse.SymbolCount.Builder builderForValue) { if (symbolCountsBuilder_ == null) { ensureSymbolCountsIsMutable(); symbolCounts_.add(builderForValue.build()); onChanged(); } else { symbolCountsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public Builder addSymbolCounts( int index, org.openfeed.ListSubscriptionsResponse.SymbolCount.Builder builderForValue) { if (symbolCountsBuilder_ == null) { ensureSymbolCountsIsMutable(); symbolCounts_.add(index, builderForValue.build()); onChanged(); } else { symbolCountsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public Builder addAllSymbolCounts( java.lang.Iterable values) { if (symbolCountsBuilder_ == null) { ensureSymbolCountsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, symbolCounts_); onChanged(); } else { symbolCountsBuilder_.addAllMessages(values); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public Builder clearSymbolCounts() { if (symbolCountsBuilder_ == null) { symbolCounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { symbolCountsBuilder_.clear(); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public Builder removeSymbolCounts(int index) { if (symbolCountsBuilder_ == null) { ensureSymbolCountsIsMutable(); symbolCounts_.remove(index); onChanged(); } else { symbolCountsBuilder_.remove(index); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public org.openfeed.ListSubscriptionsResponse.SymbolCount.Builder getSymbolCountsBuilder( int index) { return getSymbolCountsFieldBuilder().getBuilder(index); } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public org.openfeed.ListSubscriptionsResponse.SymbolCountOrBuilder getSymbolCountsOrBuilder( int index) { if (symbolCountsBuilder_ == null) { return symbolCounts_.get(index); } else { return symbolCountsBuilder_.getMessageOrBuilder(index); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public java.util.List getSymbolCountsOrBuilderList() { if (symbolCountsBuilder_ != null) { return symbolCountsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(symbolCounts_); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public org.openfeed.ListSubscriptionsResponse.SymbolCount.Builder addSymbolCountsBuilder() { return getSymbolCountsFieldBuilder().addBuilder( org.openfeed.ListSubscriptionsResponse.SymbolCount.getDefaultInstance()); } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public org.openfeed.ListSubscriptionsResponse.SymbolCount.Builder addSymbolCountsBuilder( int index) { return getSymbolCountsFieldBuilder().addBuilder( index, org.openfeed.ListSubscriptionsResponse.SymbolCount.getDefaultInstance()); } /** * repeated .org.openfeed.ListSubscriptionsResponse.SymbolCount symbolCounts = 4; */ public java.util.List getSymbolCountsBuilderList() { return getSymbolCountsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.openfeed.ListSubscriptionsResponse.SymbolCount, org.openfeed.ListSubscriptionsResponse.SymbolCount.Builder, org.openfeed.ListSubscriptionsResponse.SymbolCountOrBuilder> getSymbolCountsFieldBuilder() { if (symbolCountsBuilder_ == null) { symbolCountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.openfeed.ListSubscriptionsResponse.SymbolCount, org.openfeed.ListSubscriptionsResponse.SymbolCount.Builder, org.openfeed.ListSubscriptionsResponse.SymbolCountOrBuilder>( symbolCounts_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); symbolCounts_ = null; } return symbolCountsBuilder_; } private java.lang.Object exchange_ = ""; /** * string exchange = 10; * @return The exchange. */ public java.lang.String getExchange() { java.lang.Object ref = exchange_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exchange_ = s; return s; } else { return (java.lang.String) ref; } } /** * string exchange = 10; * @return The bytes for exchange. */ public com.google.protobuf.ByteString getExchangeBytes() { java.lang.Object ref = exchange_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); exchange_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string exchange = 10; * @param value The exchange to set. * @return This builder for chaining. */ public Builder setExchange( java.lang.String value) { if (value == null) { throw new NullPointerException(); } exchange_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * string exchange = 10; * @return This builder for chaining. */ public Builder clearExchange() { exchange_ = getDefaultInstance().getExchange(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * string exchange = 10; * @param value The bytes for exchange to set. * @return This builder for chaining. */ public Builder setExchangeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); exchange_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object root_ = ""; /** * string root = 11; * @return The root. */ public java.lang.String getRoot() { java.lang.Object ref = root_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); root_ = s; return s; } else { return (java.lang.String) ref; } } /** * string root = 11; * @return The bytes for root. */ public com.google.protobuf.ByteString getRootBytes() { java.lang.Object ref = root_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); root_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string root = 11; * @param value The root to set. * @return This builder for chaining. */ public Builder setRoot( java.lang.String value) { if (value == null) { throw new NullPointerException(); } root_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * string root = 11; * @return This builder for chaining. */ public Builder clearRoot() { root_ = getDefaultInstance().getRoot(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * string root = 11; * @param value The bytes for root to set. * @return This builder for chaining. */ public Builder setRootBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); root_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:org.openfeed.ListSubscriptionsResponse.Subscription) } // @@protoc_insertion_point(class_scope:org.openfeed.ListSubscriptionsResponse.Subscription) private static final org.openfeed.ListSubscriptionsResponse.Subscription DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openfeed.ListSubscriptionsResponse.Subscription(); } public static org.openfeed.ListSubscriptionsResponse.Subscription getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Subscription 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.ListSubscriptionsResponse.Subscription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SymbolCountOrBuilder extends // @@protoc_insertion_point(interface_extends:org.openfeed.ListSubscriptionsResponse.SymbolCount) com.google.protobuf.MessageOrBuilder { /** * string symbol = 1; * @return The symbol. */ java.lang.String getSymbol(); /** * string symbol = 1; * @return The bytes for symbol. */ com.google.protobuf.ByteString getSymbolBytes(); /** * sint32 count = 2; * @return The count. */ int getCount(); } /** * Protobuf type {@code org.openfeed.ListSubscriptionsResponse.SymbolCount} */ public static final class SymbolCount extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.openfeed.ListSubscriptionsResponse.SymbolCount) SymbolCountOrBuilder { 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= */ "", SymbolCount.class.getName()); } // Use SymbolCount.newBuilder() to construct. private SymbolCount(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SymbolCount() { symbol_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_SymbolCount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_SymbolCount_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.ListSubscriptionsResponse.SymbolCount.class, org.openfeed.ListSubscriptionsResponse.SymbolCount.Builder.class); } public static final int SYMBOL_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object symbol_ = ""; /** * string symbol = 1; * @return The symbol. */ @java.lang.Override public java.lang.String getSymbol() { java.lang.Object ref = symbol_; 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(); symbol_ = s; return s; } } /** * string symbol = 1; * @return The bytes for symbol. */ @java.lang.Override public com.google.protobuf.ByteString getSymbolBytes() { java.lang.Object ref = symbol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COUNT_FIELD_NUMBER = 2; private int count_ = 0; /** * sint32 count = 2; * @return The count. */ @java.lang.Override public int getCount() { return count_; } 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(symbol_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, symbol_); } if (count_ != 0) { output.writeSInt32(2, count_); } 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(symbol_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, symbol_); } if (count_ != 0) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(2, count_); } 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.ListSubscriptionsResponse.SymbolCount)) { return super.equals(obj); } org.openfeed.ListSubscriptionsResponse.SymbolCount other = (org.openfeed.ListSubscriptionsResponse.SymbolCount) obj; if (!getSymbol() .equals(other.getSymbol())) return false; if (getCount() != other.getCount()) 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) + SYMBOL_FIELD_NUMBER; hash = (53 * hash) + getSymbol().hashCode(); hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.openfeed.ListSubscriptionsResponse.SymbolCount parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.ListSubscriptionsResponse.SymbolCount parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.ListSubscriptionsResponse.SymbolCount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.ListSubscriptionsResponse.SymbolCount 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.ListSubscriptionsResponse.SymbolCount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.ListSubscriptionsResponse.SymbolCount parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.ListSubscriptionsResponse.SymbolCount parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.ListSubscriptionsResponse.SymbolCount 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.ListSubscriptionsResponse.SymbolCount parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.openfeed.ListSubscriptionsResponse.SymbolCount 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.ListSubscriptionsResponse.SymbolCount parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.ListSubscriptionsResponse.SymbolCount 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.ListSubscriptionsResponse.SymbolCount 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.ListSubscriptionsResponse.SymbolCount} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.openfeed.ListSubscriptionsResponse.SymbolCount) org.openfeed.ListSubscriptionsResponse.SymbolCountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_SymbolCount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_SymbolCount_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.ListSubscriptionsResponse.SymbolCount.class, org.openfeed.ListSubscriptionsResponse.SymbolCount.Builder.class); } // Construct using org.openfeed.ListSubscriptionsResponse.SymbolCount.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; symbol_ = ""; count_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_SymbolCount_descriptor; } @java.lang.Override public org.openfeed.ListSubscriptionsResponse.SymbolCount getDefaultInstanceForType() { return org.openfeed.ListSubscriptionsResponse.SymbolCount.getDefaultInstance(); } @java.lang.Override public org.openfeed.ListSubscriptionsResponse.SymbolCount build() { org.openfeed.ListSubscriptionsResponse.SymbolCount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openfeed.ListSubscriptionsResponse.SymbolCount buildPartial() { org.openfeed.ListSubscriptionsResponse.SymbolCount result = new org.openfeed.ListSubscriptionsResponse.SymbolCount(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.openfeed.ListSubscriptionsResponse.SymbolCount result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.symbol_ = symbol_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.count_ = count_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openfeed.ListSubscriptionsResponse.SymbolCount) { return mergeFrom((org.openfeed.ListSubscriptionsResponse.SymbolCount)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openfeed.ListSubscriptionsResponse.SymbolCount other) { if (other == org.openfeed.ListSubscriptionsResponse.SymbolCount.getDefaultInstance()) return this; if (!other.getSymbol().isEmpty()) { symbol_ = other.symbol_; bitField0_ |= 0x00000001; onChanged(); } if (other.getCount() != 0) { setCount(other.getCount()); } 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: { symbol_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { count_ = input.readSInt32(); bitField0_ |= 0x00000002; break; } // case 16 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 symbol_ = ""; /** * string symbol = 1; * @return The symbol. */ public java.lang.String getSymbol() { java.lang.Object ref = symbol_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symbol_ = s; return s; } else { return (java.lang.String) ref; } } /** * string symbol = 1; * @return The bytes for symbol. */ public com.google.protobuf.ByteString getSymbolBytes() { java.lang.Object ref = symbol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string symbol = 1; * @param value The symbol to set. * @return This builder for chaining. */ public Builder setSymbol( java.lang.String value) { if (value == null) { throw new NullPointerException(); } symbol_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string symbol = 1; * @return This builder for chaining. */ public Builder clearSymbol() { symbol_ = getDefaultInstance().getSymbol(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string symbol = 1; * @param value The bytes for symbol to set. * @return This builder for chaining. */ public Builder setSymbolBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); symbol_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int count_ ; /** * sint32 count = 2; * @return The count. */ @java.lang.Override public int getCount() { return count_; } /** * sint32 count = 2; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(int value) { count_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * sint32 count = 2; * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000002); count_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:org.openfeed.ListSubscriptionsResponse.SymbolCount) } // @@protoc_insertion_point(class_scope:org.openfeed.ListSubscriptionsResponse.SymbolCount) private static final org.openfeed.ListSubscriptionsResponse.SymbolCount DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openfeed.ListSubscriptionsResponse.SymbolCount(); } public static org.openfeed.ListSubscriptionsResponse.SymbolCount getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SymbolCount 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.ListSubscriptionsResponse.SymbolCount 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 USERNAME_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** * string username = 3; * @return The username. */ @java.lang.Override public java.lang.String getUsername() { java.lang.Object ref = username_; 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(); username_ = s; return s; } } /** * string username = 3; * @return The bytes for username. */ @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SESSIONS_FIELD_NUMBER = 10; @SuppressWarnings("serial") private java.util.List sessions_; /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ @java.lang.Override public java.util.List getSessionsList() { return sessions_; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ @java.lang.Override public java.util.List getSessionsOrBuilderList() { return sessions_; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ @java.lang.Override public int getSessionsCount() { return sessions_.size(); } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ @java.lang.Override public org.openfeed.ListSubscriptionsResponse.Session getSessions(int index) { return sessions_.get(index); } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ @java.lang.Override public org.openfeed.ListSubscriptionsResponse.SessionOrBuilder getSessionsOrBuilder( int index) { return sessions_.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()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, username_); } for (int i = 0; i < sessions_.size(); i++) { output.writeMessage(10, sessions_.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()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, username_); } for (int i = 0; i < sessions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, sessions_.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.ListSubscriptionsResponse)) { return super.equals(obj); } org.openfeed.ListSubscriptionsResponse other = (org.openfeed.ListSubscriptionsResponse) obj; if (getCorrelationId() != other.getCorrelationId()) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (!getUsername() .equals(other.getUsername())) return false; if (!getSessionsList() .equals(other.getSessionsList())) 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(); } hash = (37 * hash) + USERNAME_FIELD_NUMBER; hash = (53 * hash) + getUsername().hashCode(); if (getSessionsCount() > 0) { hash = (37 * hash) + SESSIONS_FIELD_NUMBER; hash = (53 * hash) + getSessionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.openfeed.ListSubscriptionsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.ListSubscriptionsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.ListSubscriptionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.ListSubscriptionsResponse 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.ListSubscriptionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.ListSubscriptionsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.ListSubscriptionsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.ListSubscriptionsResponse 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.ListSubscriptionsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.openfeed.ListSubscriptionsResponse 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.ListSubscriptionsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.ListSubscriptionsResponse 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.ListSubscriptionsResponse 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.ListSubscriptionsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.openfeed.ListSubscriptionsResponse) org.openfeed.ListSubscriptionsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.ListSubscriptionsResponse.class, org.openfeed.ListSubscriptionsResponse.Builder.class); } // Construct using org.openfeed.ListSubscriptionsResponse.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(); getSessionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; correlationId_ = 0L; status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } username_ = ""; if (sessionsBuilder_ == null) { sessions_ = java.util.Collections.emptyList(); } else { sessions_ = null; sessionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openfeed.OpenfeedApi.internal_static_org_openfeed_ListSubscriptionsResponse_descriptor; } @java.lang.Override public org.openfeed.ListSubscriptionsResponse getDefaultInstanceForType() { return org.openfeed.ListSubscriptionsResponse.getDefaultInstance(); } @java.lang.Override public org.openfeed.ListSubscriptionsResponse build() { org.openfeed.ListSubscriptionsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openfeed.ListSubscriptionsResponse buildPartial() { org.openfeed.ListSubscriptionsResponse result = new org.openfeed.ListSubscriptionsResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.openfeed.ListSubscriptionsResponse result) { if (sessionsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { sessions_ = java.util.Collections.unmodifiableList(sessions_); bitField0_ = (bitField0_ & ~0x00000008); } result.sessions_ = sessions_; } else { result.sessions_ = sessionsBuilder_.build(); } } private void buildPartial0(org.openfeed.ListSubscriptionsResponse 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; } if (((from_bitField0_ & 0x00000004) != 0)) { result.username_ = username_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openfeed.ListSubscriptionsResponse) { return mergeFrom((org.openfeed.ListSubscriptionsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openfeed.ListSubscriptionsResponse other) { if (other == org.openfeed.ListSubscriptionsResponse.getDefaultInstance()) return this; if (other.getCorrelationId() != 0L) { setCorrelationId(other.getCorrelationId()); } if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (!other.getUsername().isEmpty()) { username_ = other.username_; bitField0_ |= 0x00000004; onChanged(); } if (sessionsBuilder_ == null) { if (!other.sessions_.isEmpty()) { if (sessions_.isEmpty()) { sessions_ = other.sessions_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSessionsIsMutable(); sessions_.addAll(other.sessions_); } onChanged(); } } else { if (!other.sessions_.isEmpty()) { if (sessionsBuilder_.isEmpty()) { sessionsBuilder_.dispose(); sessionsBuilder_ = null; sessions_ = other.sessions_; bitField0_ = (bitField0_ & ~0x00000008); sessionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSessionsFieldBuilder() : null; } else { sessionsBuilder_.addAllMessages(other.sessions_); } } } 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: { username_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 82: { org.openfeed.ListSubscriptionsResponse.Session m = input.readMessage( org.openfeed.ListSubscriptionsResponse.Session.parser(), extensionRegistry); if (sessionsBuilder_ == null) { ensureSessionsIsMutable(); sessions_.add(m); } else { sessionsBuilder_.addMessage(m); } break; } // case 82 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.lang.Object username_ = ""; /** * string username = 3; * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } else { return (java.lang.String) ref; } } /** * string username = 3; * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string username = 3; * @param value The username to set. * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string username = 3; * @return This builder for chaining. */ public Builder clearUsername() { username_ = getDefaultInstance().getUsername(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string username = 3; * @param value The bytes for username to set. * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.util.List sessions_ = java.util.Collections.emptyList(); private void ensureSessionsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { sessions_ = new java.util.ArrayList(sessions_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< org.openfeed.ListSubscriptionsResponse.Session, org.openfeed.ListSubscriptionsResponse.Session.Builder, org.openfeed.ListSubscriptionsResponse.SessionOrBuilder> sessionsBuilder_; /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public java.util.List getSessionsList() { if (sessionsBuilder_ == null) { return java.util.Collections.unmodifiableList(sessions_); } else { return sessionsBuilder_.getMessageList(); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public int getSessionsCount() { if (sessionsBuilder_ == null) { return sessions_.size(); } else { return sessionsBuilder_.getCount(); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public org.openfeed.ListSubscriptionsResponse.Session getSessions(int index) { if (sessionsBuilder_ == null) { return sessions_.get(index); } else { return sessionsBuilder_.getMessage(index); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public Builder setSessions( int index, org.openfeed.ListSubscriptionsResponse.Session value) { if (sessionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSessionsIsMutable(); sessions_.set(index, value); onChanged(); } else { sessionsBuilder_.setMessage(index, value); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public Builder setSessions( int index, org.openfeed.ListSubscriptionsResponse.Session.Builder builderForValue) { if (sessionsBuilder_ == null) { ensureSessionsIsMutable(); sessions_.set(index, builderForValue.build()); onChanged(); } else { sessionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public Builder addSessions(org.openfeed.ListSubscriptionsResponse.Session value) { if (sessionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSessionsIsMutable(); sessions_.add(value); onChanged(); } else { sessionsBuilder_.addMessage(value); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public Builder addSessions( int index, org.openfeed.ListSubscriptionsResponse.Session value) { if (sessionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSessionsIsMutable(); sessions_.add(index, value); onChanged(); } else { sessionsBuilder_.addMessage(index, value); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public Builder addSessions( org.openfeed.ListSubscriptionsResponse.Session.Builder builderForValue) { if (sessionsBuilder_ == null) { ensureSessionsIsMutable(); sessions_.add(builderForValue.build()); onChanged(); } else { sessionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public Builder addSessions( int index, org.openfeed.ListSubscriptionsResponse.Session.Builder builderForValue) { if (sessionsBuilder_ == null) { ensureSessionsIsMutable(); sessions_.add(index, builderForValue.build()); onChanged(); } else { sessionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public Builder addAllSessions( java.lang.Iterable values) { if (sessionsBuilder_ == null) { ensureSessionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sessions_); onChanged(); } else { sessionsBuilder_.addAllMessages(values); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public Builder clearSessions() { if (sessionsBuilder_ == null) { sessions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { sessionsBuilder_.clear(); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public Builder removeSessions(int index) { if (sessionsBuilder_ == null) { ensureSessionsIsMutable(); sessions_.remove(index); onChanged(); } else { sessionsBuilder_.remove(index); } return this; } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public org.openfeed.ListSubscriptionsResponse.Session.Builder getSessionsBuilder( int index) { return getSessionsFieldBuilder().getBuilder(index); } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public org.openfeed.ListSubscriptionsResponse.SessionOrBuilder getSessionsOrBuilder( int index) { if (sessionsBuilder_ == null) { return sessions_.get(index); } else { return sessionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public java.util.List getSessionsOrBuilderList() { if (sessionsBuilder_ != null) { return sessionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sessions_); } } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public org.openfeed.ListSubscriptionsResponse.Session.Builder addSessionsBuilder() { return getSessionsFieldBuilder().addBuilder( org.openfeed.ListSubscriptionsResponse.Session.getDefaultInstance()); } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public org.openfeed.ListSubscriptionsResponse.Session.Builder addSessionsBuilder( int index) { return getSessionsFieldBuilder().addBuilder( index, org.openfeed.ListSubscriptionsResponse.Session.getDefaultInstance()); } /** * repeated .org.openfeed.ListSubscriptionsResponse.Session sessions = 10; */ public java.util.List getSessionsBuilderList() { return getSessionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.openfeed.ListSubscriptionsResponse.Session, org.openfeed.ListSubscriptionsResponse.Session.Builder, org.openfeed.ListSubscriptionsResponse.SessionOrBuilder> getSessionsFieldBuilder() { if (sessionsBuilder_ == null) { sessionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.openfeed.ListSubscriptionsResponse.Session, org.openfeed.ListSubscriptionsResponse.Session.Builder, org.openfeed.ListSubscriptionsResponse.SessionOrBuilder>( sessions_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); sessions_ = null; } return sessionsBuilder_; } // @@protoc_insertion_point(builder_scope:org.openfeed.ListSubscriptionsResponse) } // @@protoc_insertion_point(class_scope:org.openfeed.ListSubscriptionsResponse) private static final org.openfeed.ListSubscriptionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openfeed.ListSubscriptionsResponse(); } public static org.openfeed.ListSubscriptionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListSubscriptionsResponse 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.ListSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy