// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: context_page.proto

package com.spotify.context;

public final class ContextPageOuterClass {
  private ContextPageOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ContextPageOrBuilder extends
      // @@protoc_insertion_point(interface_extends:spotify.player.proto.ContextPage)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional string page_url = 1;</code>
     * @return Whether the pageUrl field is set.
     */
    boolean hasPageUrl();
    /**
     * <code>optional string page_url = 1;</code>
     * @return The pageUrl.
     */
    java.lang.String getPageUrl();
    /**
     * <code>optional string page_url = 1;</code>
     * @return The bytes for pageUrl.
     */
    com.google.protobuf.ByteString
        getPageUrlBytes();

    /**
     * <code>optional string next_page_url = 2;</code>
     * @return Whether the nextPageUrl field is set.
     */
    boolean hasNextPageUrl();
    /**
     * <code>optional string next_page_url = 2;</code>
     * @return The nextPageUrl.
     */
    java.lang.String getNextPageUrl();
    /**
     * <code>optional string next_page_url = 2;</code>
     * @return The bytes for nextPageUrl.
     */
    com.google.protobuf.ByteString
        getNextPageUrlBytes();

    /**
     * <code>map&lt;string, string&gt; metadata = 3;</code>
     */
    int getMetadataCount();
    /**
     * <code>map&lt;string, string&gt; metadata = 3;</code>
     */
    boolean containsMetadata(
        java.lang.String key);
    /**
     * Use {@link #getMetadataMap()} instead.
     */
    @java.lang.Deprecated
    java.util.Map<java.lang.String, java.lang.String>
    getMetadata();
    /**
     * <code>map&lt;string, string&gt; metadata = 3;</code>
     */
    java.util.Map<java.lang.String, java.lang.String>
    getMetadataMap();
    /**
     * <code>map&lt;string, string&gt; metadata = 3;</code>
     */

    java.lang.String getMetadataOrDefault(
        java.lang.String key,
        java.lang.String defaultValue);
    /**
     * <code>map&lt;string, string&gt; metadata = 3;</code>
     */

    java.lang.String getMetadataOrThrow(
        java.lang.String key);

    /**
     * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
     */
    java.util.List<com.spotify.context.ContextTrackOuterClass.ContextTrack> 
        getTracksList();
    /**
     * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
     */
    com.spotify.context.ContextTrackOuterClass.ContextTrack getTracks(int index);
    /**
     * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
     */
    int getTracksCount();
    /**
     * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
     */
    java.util.List<? extends com.spotify.context.ContextTrackOuterClass.ContextTrackOrBuilder> 
        getTracksOrBuilderList();
    /**
     * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
     */
    com.spotify.context.ContextTrackOuterClass.ContextTrackOrBuilder getTracksOrBuilder(
        int index);

    /**
     * <code>optional bool loading = 5;</code>
     * @return Whether the loading field is set.
     */
    boolean hasLoading();
    /**
     * <code>optional bool loading = 5;</code>
     * @return The loading.
     */
    boolean getLoading();
  }
  /**
   * Protobuf type {@code spotify.player.proto.ContextPage}
   */
  public  static final class ContextPage extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:spotify.player.proto.ContextPage)
      ContextPageOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ContextPage.newBuilder() to construct.
    private ContextPage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ContextPage() {
      pageUrl_ = "";
      nextPageUrl_ = "";
      tracks_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new ContextPage();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.spotify.context.ContextPageOuterClass.internal_static_spotify_player_proto_ContextPage_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    @java.lang.Override
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 3:
          return internalGetMetadata();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.spotify.context.ContextPageOuterClass.internal_static_spotify_player_proto_ContextPage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.spotify.context.ContextPageOuterClass.ContextPage.class, com.spotify.context.ContextPageOuterClass.ContextPage.Builder.class);
    }

    private int bitField0_;
    public static final int PAGE_URL_FIELD_NUMBER = 1;
    private volatile java.lang.Object pageUrl_;
    /**
     * <code>optional string page_url = 1;</code>
     * @return Whether the pageUrl field is set.
     */
    public boolean hasPageUrl() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional string page_url = 1;</code>
     * @return The pageUrl.
     */
    public java.lang.String getPageUrl() {
      java.lang.Object ref = pageUrl_;
      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();
        if (bs.isValidUtf8()) {
          pageUrl_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string page_url = 1;</code>
     * @return The bytes for pageUrl.
     */
    public com.google.protobuf.ByteString
        getPageUrlBytes() {
      java.lang.Object ref = pageUrl_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        pageUrl_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int NEXT_PAGE_URL_FIELD_NUMBER = 2;
    private volatile java.lang.Object nextPageUrl_;
    /**
     * <code>optional string next_page_url = 2;</code>
     * @return Whether the nextPageUrl field is set.
     */
    public boolean hasNextPageUrl() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>optional string next_page_url = 2;</code>
     * @return The nextPageUrl.
     */
    public java.lang.String getNextPageUrl() {
      java.lang.Object ref = nextPageUrl_;
      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();
        if (bs.isValidUtf8()) {
          nextPageUrl_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string next_page_url = 2;</code>
     * @return The bytes for nextPageUrl.
     */
    public com.google.protobuf.ByteString
        getNextPageUrlBytes() {
      java.lang.Object ref = nextPageUrl_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        nextPageUrl_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int METADATA_FIELD_NUMBER = 3;
    private static final class MetadataDefaultEntryHolder {
      static final com.google.protobuf.MapEntry<
          java.lang.String, java.lang.String> defaultEntry =
              com.google.protobuf.MapEntry
              .<java.lang.String, java.lang.String>newDefaultInstance(
                  com.spotify.context.ContextPageOuterClass.internal_static_spotify_player_proto_ContextPage_MetadataEntry_descriptor, 
                  com.google.protobuf.WireFormat.FieldType.STRING,
                  "",
                  com.google.protobuf.WireFormat.FieldType.STRING,
                  "");
    }
    private com.google.protobuf.MapField<
        java.lang.String, java.lang.String> metadata_;
    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
    internalGetMetadata() {
      if (metadata_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            MetadataDefaultEntryHolder.defaultEntry);
      }
      return metadata_;
    }

    public int getMetadataCount() {
      return internalGetMetadata().getMap().size();
    }
    /**
     * <code>map&lt;string, string&gt; metadata = 3;</code>
     */

    public boolean containsMetadata(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      return internalGetMetadata().getMap().containsKey(key);
    }
    /**
     * Use {@link #getMetadataMap()} instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMetadata() {
      return getMetadataMap();
    }
    /**
     * <code>map&lt;string, string&gt; metadata = 3;</code>
     */

    public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {
      return internalGetMetadata().getMap();
    }
    /**
     * <code>map&lt;string, string&gt; metadata = 3;</code>
     */

    public java.lang.String getMetadataOrDefault(
        java.lang.String key,
        java.lang.String defaultValue) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetMetadata().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <code>map&lt;string, string&gt; metadata = 3;</code>
     */

    public java.lang.String getMetadataOrThrow(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetMetadata().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public static final int TRACKS_FIELD_NUMBER = 4;
    private java.util.List<com.spotify.context.ContextTrackOuterClass.ContextTrack> tracks_;
    /**
     * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
     */
    public java.util.List<com.spotify.context.ContextTrackOuterClass.ContextTrack> getTracksList() {
      return tracks_;
    }
    /**
     * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
     */
    public java.util.List<? extends com.spotify.context.ContextTrackOuterClass.ContextTrackOrBuilder> 
        getTracksOrBuilderList() {
      return tracks_;
    }
    /**
     * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
     */
    public int getTracksCount() {
      return tracks_.size();
    }
    /**
     * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
     */
    public com.spotify.context.ContextTrackOuterClass.ContextTrack getTracks(int index) {
      return tracks_.get(index);
    }
    /**
     * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
     */
    public com.spotify.context.ContextTrackOuterClass.ContextTrackOrBuilder getTracksOrBuilder(
        int index) {
      return tracks_.get(index);
    }

    public static final int LOADING_FIELD_NUMBER = 5;
    private boolean loading_;
    /**
     * <code>optional bool loading = 5;</code>
     * @return Whether the loading field is set.
     */
    public boolean hasLoading() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>optional bool loading = 5;</code>
     * @return The loading.
     */
    public boolean getLoading() {
      return loading_;
    }

    public static com.spotify.context.ContextPageOuterClass.ContextPage parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.spotify.context.ContextPageOuterClass.ContextPage parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.spotify.context.ContextPageOuterClass.ContextPage parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.spotify.context.ContextPageOuterClass.ContextPage parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.spotify.context.ContextPageOuterClass.ContextPage parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.spotify.context.ContextPageOuterClass.ContextPage parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.spotify.context.ContextPageOuterClass.ContextPage parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.spotify.context.ContextPageOuterClass.ContextPage parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.spotify.context.ContextPageOuterClass.ContextPage parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.spotify.context.ContextPageOuterClass.ContextPage parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.spotify.context.ContextPageOuterClass.ContextPage parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.spotify.context.ContextPageOuterClass.ContextPage parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.spotify.context.ContextPageOuterClass.ContextPage 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.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code spotify.player.proto.ContextPage}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:spotify.player.proto.ContextPage)
        com.spotify.context.ContextPageOuterClass.ContextPageOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.spotify.context.ContextPageOuterClass.internal_static_spotify_player_proto_ContextPage_descriptor;
      }

      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMapField(
          int number) {
        switch (number) {
          case 3:
            return internalGetMetadata();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMutableMapField(
          int number) {
        switch (number) {
          case 3:
            return internalGetMutableMetadata();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.spotify.context.ContextPageOuterClass.internal_static_spotify_player_proto_ContextPage_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.spotify.context.ContextPageOuterClass.ContextPage.class, com.spotify.context.ContextPageOuterClass.ContextPage.Builder.class);
      }

      // Construct using com.spotify.context.ContextPageOuterClass.ContextPage.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getTracksFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        pageUrl_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        nextPageUrl_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        internalGetMutableMetadata().clear();
        if (tracksBuilder_ == null) {
          tracks_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
        } else {
          tracksBuilder_.clear();
        }
        loading_ = false;
        bitField0_ = (bitField0_ & ~0x00000010);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.spotify.context.ContextPageOuterClass.internal_static_spotify_player_proto_ContextPage_descriptor;
      }

      @java.lang.Override
      public com.spotify.context.ContextPageOuterClass.ContextPage getDefaultInstanceForType() {
        return com.spotify.context.ContextPageOuterClass.ContextPage.getDefaultInstance();
      }

      @java.lang.Override
      public com.spotify.context.ContextPageOuterClass.ContextPage build() {
        com.spotify.context.ContextPageOuterClass.ContextPage result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.spotify.context.ContextPageOuterClass.ContextPage buildPartial() {
        com.spotify.context.ContextPageOuterClass.ContextPage result = new com.spotify.context.ContextPageOuterClass.ContextPage(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          to_bitField0_ |= 0x00000001;
        }
        result.pageUrl_ = pageUrl_;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          to_bitField0_ |= 0x00000002;
        }
        result.nextPageUrl_ = nextPageUrl_;
        result.metadata_ = internalGetMetadata();
        result.metadata_.makeImmutable();
        if (tracksBuilder_ == null) {
          if (((bitField0_ & 0x00000008) != 0)) {
            tracks_ = java.util.Collections.unmodifiableList(tracks_);
            bitField0_ = (bitField0_ & ~0x00000008);
          }
          result.tracks_ = tracks_;
        } else {
          result.tracks_ = tracksBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.loading_ = loading_;
          to_bitField0_ |= 0x00000004;
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      private int bitField0_;

      private java.lang.Object pageUrl_ = "";
      /**
       * <code>optional string page_url = 1;</code>
       * @return Whether the pageUrl field is set.
       */
      public boolean hasPageUrl() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional string page_url = 1;</code>
       * @return The pageUrl.
       */
      public java.lang.String getPageUrl() {
        java.lang.Object ref = pageUrl_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            pageUrl_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string page_url = 1;</code>
       * @return The bytes for pageUrl.
       */
      public com.google.protobuf.ByteString
          getPageUrlBytes() {
        java.lang.Object ref = pageUrl_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          pageUrl_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string page_url = 1;</code>
       * @param value The pageUrl to set.
       * @return This builder for chaining.
       */
      public Builder setPageUrl(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        pageUrl_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string page_url = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearPageUrl() {
        bitField0_ = (bitField0_ & ~0x00000001);
        pageUrl_ = getDefaultInstance().getPageUrl();
        onChanged();
        return this;
      }
      /**
       * <code>optional string page_url = 1;</code>
       * @param value The bytes for pageUrl to set.
       * @return This builder for chaining.
       */
      public Builder setPageUrlBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        pageUrl_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object nextPageUrl_ = "";
      /**
       * <code>optional string next_page_url = 2;</code>
       * @return Whether the nextPageUrl field is set.
       */
      public boolean hasNextPageUrl() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>optional string next_page_url = 2;</code>
       * @return The nextPageUrl.
       */
      public java.lang.String getNextPageUrl() {
        java.lang.Object ref = nextPageUrl_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            nextPageUrl_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string next_page_url = 2;</code>
       * @return The bytes for nextPageUrl.
       */
      public com.google.protobuf.ByteString
          getNextPageUrlBytes() {
        java.lang.Object ref = nextPageUrl_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          nextPageUrl_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string next_page_url = 2;</code>
       * @param value The nextPageUrl to set.
       * @return This builder for chaining.
       */
      public Builder setNextPageUrl(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        nextPageUrl_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string next_page_url = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearNextPageUrl() {
        bitField0_ = (bitField0_ & ~0x00000002);
        nextPageUrl_ = getDefaultInstance().getNextPageUrl();
        onChanged();
        return this;
      }
      /**
       * <code>optional string next_page_url = 2;</code>
       * @param value The bytes for nextPageUrl to set.
       * @return This builder for chaining.
       */
      public Builder setNextPageUrlBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        nextPageUrl_ = value;
        onChanged();
        return this;
      }

      private com.google.protobuf.MapField<
          java.lang.String, java.lang.String> metadata_;
      private com.google.protobuf.MapField<java.lang.String, java.lang.String>
      internalGetMetadata() {
        if (metadata_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              MetadataDefaultEntryHolder.defaultEntry);
        }
        return metadata_;
      }
      private com.google.protobuf.MapField<java.lang.String, java.lang.String>
      internalGetMutableMetadata() {
        onChanged();;
        if (metadata_ == null) {
          metadata_ = com.google.protobuf.MapField.newMapField(
              MetadataDefaultEntryHolder.defaultEntry);
        }
        if (!metadata_.isMutable()) {
          metadata_ = metadata_.copy();
        }
        return metadata_;
      }

      public int getMetadataCount() {
        return internalGetMetadata().getMap().size();
      }
      /**
       * <code>map&lt;string, string&gt; metadata = 3;</code>
       */

      public boolean containsMetadata(
          java.lang.String key) {
        if (key == null) { throw new java.lang.NullPointerException(); }
        return internalGetMetadata().getMap().containsKey(key);
      }
      /**
       * Use {@link #getMetadataMap()} instead.
       */
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, java.lang.String> getMetadata() {
        return getMetadataMap();
      }
      /**
       * <code>map&lt;string, string&gt; metadata = 3;</code>
       */

      public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {
        return internalGetMetadata().getMap();
      }
      /**
       * <code>map&lt;string, string&gt; metadata = 3;</code>
       */

      public java.lang.String getMetadataOrDefault(
          java.lang.String key,
          java.lang.String defaultValue) {
        if (key == null) { throw new java.lang.NullPointerException(); }
        java.util.Map<java.lang.String, java.lang.String> map =
            internalGetMetadata().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       * <code>map&lt;string, string&gt; metadata = 3;</code>
       */

      public java.lang.String getMetadataOrThrow(
          java.lang.String key) {
        if (key == null) { throw new java.lang.NullPointerException(); }
        java.util.Map<java.lang.String, java.lang.String> map =
            internalGetMetadata().getMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }

      public Builder clearMetadata() {
        internalGetMutableMetadata().getMutableMap()
            .clear();
        return this;
      }
      /**
       * <code>map&lt;string, string&gt; metadata = 3;</code>
       */

      public Builder removeMetadata(
          java.lang.String key) {
        if (key == null) { throw new java.lang.NullPointerException(); }
        internalGetMutableMetadata().getMutableMap()
            .remove(key);
        return this;
      }
      /**
       * Use alternate mutation accessors instead.
       */
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, java.lang.String>
      getMutableMetadata() {
        return internalGetMutableMetadata().getMutableMap();
      }
      /**
       * <code>map&lt;string, string&gt; metadata = 3;</code>
       */
      public Builder putMetadata(
          java.lang.String key,
          java.lang.String value) {
        if (key == null) { throw new java.lang.NullPointerException(); }
        if (value == null) { throw new java.lang.NullPointerException(); }
        internalGetMutableMetadata().getMutableMap()
            .put(key, value);
        return this;
      }
      /**
       * <code>map&lt;string, string&gt; metadata = 3;</code>
       */

      public Builder putAllMetadata(
          java.util.Map<java.lang.String, java.lang.String> values) {
        internalGetMutableMetadata().getMutableMap()
            .putAll(values);
        return this;
      }

      private java.util.List<com.spotify.context.ContextTrackOuterClass.ContextTrack> tracks_ =
        java.util.Collections.emptyList();
      private void ensureTracksIsMutable() {
        if (!((bitField0_ & 0x00000008) != 0)) {
          tracks_ = new java.util.ArrayList<com.spotify.context.ContextTrackOuterClass.ContextTrack>(tracks_);
          bitField0_ |= 0x00000008;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.spotify.context.ContextTrackOuterClass.ContextTrack, com.spotify.context.ContextTrackOuterClass.ContextTrack.Builder, com.spotify.context.ContextTrackOuterClass.ContextTrackOrBuilder> tracksBuilder_;

      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public java.util.List<com.spotify.context.ContextTrackOuterClass.ContextTrack> getTracksList() {
        if (tracksBuilder_ == null) {
          return java.util.Collections.unmodifiableList(tracks_);
        } else {
          return tracksBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public int getTracksCount() {
        if (tracksBuilder_ == null) {
          return tracks_.size();
        } else {
          return tracksBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public com.spotify.context.ContextTrackOuterClass.ContextTrack getTracks(int index) {
        if (tracksBuilder_ == null) {
          return tracks_.get(index);
        } else {
          return tracksBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public Builder setTracks(
          int index, com.spotify.context.ContextTrackOuterClass.ContextTrack value) {
        if (tracksBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTracksIsMutable();
          tracks_.set(index, value);
          onChanged();
        } else {
          tracksBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public Builder setTracks(
          int index, com.spotify.context.ContextTrackOuterClass.ContextTrack.Builder builderForValue) {
        if (tracksBuilder_ == null) {
          ensureTracksIsMutable();
          tracks_.set(index, builderForValue.build());
          onChanged();
        } else {
          tracksBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public Builder addTracks(com.spotify.context.ContextTrackOuterClass.ContextTrack value) {
        if (tracksBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTracksIsMutable();
          tracks_.add(value);
          onChanged();
        } else {
          tracksBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public Builder addTracks(
          int index, com.spotify.context.ContextTrackOuterClass.ContextTrack value) {
        if (tracksBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTracksIsMutable();
          tracks_.add(index, value);
          onChanged();
        } else {
          tracksBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public Builder addTracks(
          com.spotify.context.ContextTrackOuterClass.ContextTrack.Builder builderForValue) {
        if (tracksBuilder_ == null) {
          ensureTracksIsMutable();
          tracks_.add(builderForValue.build());
          onChanged();
        } else {
          tracksBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public Builder addTracks(
          int index, com.spotify.context.ContextTrackOuterClass.ContextTrack.Builder builderForValue) {
        if (tracksBuilder_ == null) {
          ensureTracksIsMutable();
          tracks_.add(index, builderForValue.build());
          onChanged();
        } else {
          tracksBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public Builder addAllTracks(
          java.lang.Iterable<? extends com.spotify.context.ContextTrackOuterClass.ContextTrack> values) {
        if (tracksBuilder_ == null) {
          ensureTracksIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, tracks_);
          onChanged();
        } else {
          tracksBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public Builder clearTracks() {
        if (tracksBuilder_ == null) {
          tracks_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
          onChanged();
        } else {
          tracksBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public Builder removeTracks(int index) {
        if (tracksBuilder_ == null) {
          ensureTracksIsMutable();
          tracks_.remove(index);
          onChanged();
        } else {
          tracksBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public com.spotify.context.ContextTrackOuterClass.ContextTrack.Builder getTracksBuilder(
          int index) {
        return getTracksFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public com.spotify.context.ContextTrackOuterClass.ContextTrackOrBuilder getTracksOrBuilder(
          int index) {
        if (tracksBuilder_ == null) {
          return tracks_.get(index);  } else {
          return tracksBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public java.util.List<? extends com.spotify.context.ContextTrackOuterClass.ContextTrackOrBuilder> 
           getTracksOrBuilderList() {
        if (tracksBuilder_ != null) {
          return tracksBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(tracks_);
        }
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public com.spotify.context.ContextTrackOuterClass.ContextTrack.Builder addTracksBuilder() {
        return getTracksFieldBuilder().addBuilder(
            com.spotify.context.ContextTrackOuterClass.ContextTrack.getDefaultInstance());
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public com.spotify.context.ContextTrackOuterClass.ContextTrack.Builder addTracksBuilder(
          int index) {
        return getTracksFieldBuilder().addBuilder(
            index, com.spotify.context.ContextTrackOuterClass.ContextTrack.getDefaultInstance());
      }
      /**
       * <code>repeated .spotify.player.proto.ContextTrack tracks = 4;</code>
       */
      public java.util.List<com.spotify.context.ContextTrackOuterClass.ContextTrack.Builder> 
           getTracksBuilderList() {
        return getTracksFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.spotify.context.ContextTrackOuterClass.ContextTrack, com.spotify.context.ContextTrackOuterClass.ContextTrack.Builder, com.spotify.context.ContextTrackOuterClass.ContextTrackOrBuilder> 
          getTracksFieldBuilder() {
        if (tracksBuilder_ == null) {
          tracksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.spotify.context.ContextTrackOuterClass.ContextTrack, com.spotify.context.ContextTrackOuterClass.ContextTrack.Builder, com.spotify.context.ContextTrackOuterClass.ContextTrackOrBuilder>(
                  tracks_,
                  ((bitField0_ & 0x00000008) != 0),
                  getParentForChildren(),
                  isClean());
          tracks_ = null;
        }
        return tracksBuilder_;
      }

      private boolean loading_ ;
      /**
       * <code>optional bool loading = 5;</code>
       * @return Whether the loading field is set.
       */
      public boolean hasLoading() {
        return ((bitField0_ & 0x00000010) != 0);
      }
      /**
       * <code>optional bool loading = 5;</code>
       * @return The loading.
       */
      public boolean getLoading() {
        return loading_;
      }
      /**
       * <code>optional bool loading = 5;</code>
       * @param value The loading to set.
       * @return This builder for chaining.
       */
      public Builder setLoading(boolean value) {
        bitField0_ |= 0x00000010;
        loading_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional bool loading = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearLoading() {
        bitField0_ = (bitField0_ & ~0x00000010);
        loading_ = false;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:spotify.player.proto.ContextPage)
    }

    // @@protoc_insertion_point(class_scope:spotify.player.proto.ContextPage)
    private static final com.spotify.context.ContextPageOuterClass.ContextPage DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.spotify.context.ContextPageOuterClass.ContextPage();
    }

    public static com.spotify.context.ContextPageOuterClass.ContextPage getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser<ContextPage>
        PARSER = new com.google.protobuf.AbstractParser<ContextPage>() {
      @java.lang.Override
      public ContextPage 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 (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(
              e.getMessage()).setUnfinishedMessage(
                  builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser<ContextPage> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<ContextPage> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.spotify.context.ContextPageOuterClass.ContextPage getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_spotify_player_proto_ContextPage_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_spotify_player_proto_ContextPage_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_spotify_player_proto_ContextPage_MetadataEntry_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_spotify_player_proto_ContextPage_MetadataEntry_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\022context_page.proto\022\024spotify.player.pro" +
      "to\032\023context_track.proto\"\357\001\n\013ContextPage\022" +
      "\020\n\010page_url\030\001 \001(\t\022\025\n\rnext_page_url\030\002 \001(\t" +
      "\022A\n\010metadata\030\003 \003(\0132/.spotify.player.prot" +
      "o.ContextPage.MetadataEntry\0222\n\006tracks\030\004 " +
      "\003(\0132\".spotify.player.proto.ContextTrack\022" +
      "\017\n\007loading\030\005 \001(\010\032/\n\rMetadataEntry\022\013\n\003key" +
      "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\023com.spotify" +
      ".contextH\002"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.spotify.context.ContextTrackOuterClass.getDescriptor(),
        });
    internal_static_spotify_player_proto_ContextPage_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_spotify_player_proto_ContextPage_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_spotify_player_proto_ContextPage_descriptor,
        new java.lang.String[] { "PageUrl", "NextPageUrl", "Metadata", "Tracks", "Loading", });
    internal_static_spotify_player_proto_ContextPage_MetadataEntry_descriptor =
      internal_static_spotify_player_proto_ContextPage_descriptor.getNestedTypes().get(0);
    internal_static_spotify_player_proto_ContextPage_MetadataEntry_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_spotify_player_proto_ContextPage_MetadataEntry_descriptor,
        new java.lang.String[] { "Key", "Value", });
    com.spotify.context.ContextTrackOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
