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

package com.spotify.transfer;

public final class SessionOuterClass {
  private SessionOuterClass() {}
  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 SessionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:spotify.player.proto.transfer.Session)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional .spotify.player.proto.PlayOrigin play_origin = 1;</code>
     * @return Whether the playOrigin field is set.
     */
    boolean hasPlayOrigin();
    /**
     * <code>optional .spotify.player.proto.PlayOrigin play_origin = 1;</code>
     * @return The playOrigin.
     */
    com.spotify.context.PlayOriginOuterClass.PlayOrigin getPlayOrigin();
    /**
     * <code>optional .spotify.player.proto.PlayOrigin play_origin = 1;</code>
     */
    com.spotify.context.PlayOriginOuterClass.PlayOriginOrBuilder getPlayOriginOrBuilder();

    /**
     * <code>optional .spotify.player.proto.Context context = 2;</code>
     * @return Whether the context field is set.
     */
    boolean hasContext();
    /**
     * <code>optional .spotify.player.proto.Context context = 2;</code>
     * @return The context.
     */
    com.spotify.context.ContextOuterClass.Context getContext();
    /**
     * <code>optional .spotify.player.proto.Context context = 2;</code>
     */
    com.spotify.context.ContextOuterClass.ContextOrBuilder getContextOrBuilder();

    /**
     * <code>optional string current_uid = 3;</code>
     * @return Whether the currentUid field is set.
     */
    boolean hasCurrentUid();
    /**
     * <code>optional string current_uid = 3;</code>
     * @return The currentUid.
     */
    java.lang.String getCurrentUid();
    /**
     * <code>optional string current_uid = 3;</code>
     * @return The bytes for currentUid.
     */
    com.google.protobuf.ByteString
        getCurrentUidBytes();

    /**
     * <code>optional .spotify.player.proto.ContextPlayerOptionOverrides option_overrides = 4;</code>
     * @return Whether the optionOverrides field is set.
     */
    boolean hasOptionOverrides();
    /**
     * <code>optional .spotify.player.proto.ContextPlayerOptionOverrides option_overrides = 4;</code>
     * @return The optionOverrides.
     */
    com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides getOptionOverrides();
    /**
     * <code>optional .spotify.player.proto.ContextPlayerOptionOverrides option_overrides = 4;</code>
     */
    com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverridesOrBuilder getOptionOverridesOrBuilder();
  }
  /**
   * Protobuf type {@code spotify.player.proto.transfer.Session}
   */
  public  static final class Session extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:spotify.player.proto.transfer.Session)
      SessionOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Session.newBuilder() to construct.
    private Session(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Session() {
      currentUid_ = "";
    }

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

    @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.transfer.SessionOuterClass.internal_static_spotify_player_proto_transfer_Session_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.spotify.transfer.SessionOuterClass.internal_static_spotify_player_proto_transfer_Session_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.spotify.transfer.SessionOuterClass.Session.class, com.spotify.transfer.SessionOuterClass.Session.Builder.class);
    }

    private int bitField0_;
    public static final int PLAY_ORIGIN_FIELD_NUMBER = 1;
    private com.spotify.context.PlayOriginOuterClass.PlayOrigin playOrigin_;
    /**
     * <code>optional .spotify.player.proto.PlayOrigin play_origin = 1;</code>
     * @return Whether the playOrigin field is set.
     */
    public boolean hasPlayOrigin() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional .spotify.player.proto.PlayOrigin play_origin = 1;</code>
     * @return The playOrigin.
     */
    public com.spotify.context.PlayOriginOuterClass.PlayOrigin getPlayOrigin() {
      return playOrigin_ == null ? com.spotify.context.PlayOriginOuterClass.PlayOrigin.getDefaultInstance() : playOrigin_;
    }
    /**
     * <code>optional .spotify.player.proto.PlayOrigin play_origin = 1;</code>
     */
    public com.spotify.context.PlayOriginOuterClass.PlayOriginOrBuilder getPlayOriginOrBuilder() {
      return playOrigin_ == null ? com.spotify.context.PlayOriginOuterClass.PlayOrigin.getDefaultInstance() : playOrigin_;
    }

    public static final int CONTEXT_FIELD_NUMBER = 2;
    private com.spotify.context.ContextOuterClass.Context context_;
    /**
     * <code>optional .spotify.player.proto.Context context = 2;</code>
     * @return Whether the context field is set.
     */
    public boolean hasContext() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>optional .spotify.player.proto.Context context = 2;</code>
     * @return The context.
     */
    public com.spotify.context.ContextOuterClass.Context getContext() {
      return context_ == null ? com.spotify.context.ContextOuterClass.Context.getDefaultInstance() : context_;
    }
    /**
     * <code>optional .spotify.player.proto.Context context = 2;</code>
     */
    public com.spotify.context.ContextOuterClass.ContextOrBuilder getContextOrBuilder() {
      return context_ == null ? com.spotify.context.ContextOuterClass.Context.getDefaultInstance() : context_;
    }

    public static final int CURRENT_UID_FIELD_NUMBER = 3;
    private volatile java.lang.Object currentUid_;
    /**
     * <code>optional string current_uid = 3;</code>
     * @return Whether the currentUid field is set.
     */
    public boolean hasCurrentUid() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>optional string current_uid = 3;</code>
     * @return The currentUid.
     */
    public java.lang.String getCurrentUid() {
      java.lang.Object ref = currentUid_;
      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()) {
          currentUid_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string current_uid = 3;</code>
     * @return The bytes for currentUid.
     */
    public com.google.protobuf.ByteString
        getCurrentUidBytes() {
      java.lang.Object ref = currentUid_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        currentUid_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int OPTION_OVERRIDES_FIELD_NUMBER = 4;
    private com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides optionOverrides_;
    /**
     * <code>optional .spotify.player.proto.ContextPlayerOptionOverrides option_overrides = 4;</code>
     * @return Whether the optionOverrides field is set.
     */
    public boolean hasOptionOverrides() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * <code>optional .spotify.player.proto.ContextPlayerOptionOverrides option_overrides = 4;</code>
     * @return The optionOverrides.
     */
    public com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides getOptionOverrides() {
      return optionOverrides_ == null ? com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides.getDefaultInstance() : optionOverrides_;
    }
    /**
     * <code>optional .spotify.player.proto.ContextPlayerOptionOverrides option_overrides = 4;</code>
     */
    public com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverridesOrBuilder getOptionOverridesOrBuilder() {
      return optionOverrides_ == null ? com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides.getDefaultInstance() : optionOverrides_;
    }

    public static com.spotify.transfer.SessionOuterClass.Session parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.spotify.transfer.SessionOuterClass.Session parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.spotify.transfer.SessionOuterClass.Session parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.spotify.transfer.SessionOuterClass.Session 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.transfer.SessionOuterClass.Session parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.spotify.transfer.SessionOuterClass.Session parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.spotify.transfer.SessionOuterClass.Session parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.spotify.transfer.SessionOuterClass.Session 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.transfer.SessionOuterClass.Session parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.spotify.transfer.SessionOuterClass.Session 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.transfer.SessionOuterClass.Session parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.spotify.transfer.SessionOuterClass.Session 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.transfer.SessionOuterClass.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.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code spotify.player.proto.transfer.Session}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:spotify.player.proto.transfer.Session)
        com.spotify.transfer.SessionOuterClass.SessionOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.spotify.transfer.SessionOuterClass.internal_static_spotify_player_proto_transfer_Session_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.spotify.transfer.SessionOuterClass.internal_static_spotify_player_proto_transfer_Session_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.spotify.transfer.SessionOuterClass.Session.class, com.spotify.transfer.SessionOuterClass.Session.Builder.class);
      }

      // Construct using com.spotify.transfer.SessionOuterClass.Session.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getPlayOriginFieldBuilder();
          getContextFieldBuilder();
          getOptionOverridesFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (playOriginBuilder_ == null) {
          playOrigin_ = null;
        } else {
          playOriginBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        if (contextBuilder_ == null) {
          context_ = null;
        } else {
          contextBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        currentUid_ = "";
        bitField0_ = (bitField0_ & ~0x00000004);
        if (optionOverridesBuilder_ == null) {
          optionOverrides_ = null;
        } else {
          optionOverridesBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.spotify.transfer.SessionOuterClass.internal_static_spotify_player_proto_transfer_Session_descriptor;
      }

      @java.lang.Override
      public com.spotify.transfer.SessionOuterClass.Session getDefaultInstanceForType() {
        return com.spotify.transfer.SessionOuterClass.Session.getDefaultInstance();
      }

      @java.lang.Override
      public com.spotify.transfer.SessionOuterClass.Session build() {
        com.spotify.transfer.SessionOuterClass.Session result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.spotify.transfer.SessionOuterClass.Session buildPartial() {
        com.spotify.transfer.SessionOuterClass.Session result = new com.spotify.transfer.SessionOuterClass.Session(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          if (playOriginBuilder_ == null) {
            result.playOrigin_ = playOrigin_;
          } else {
            result.playOrigin_ = playOriginBuilder_.build();
          }
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          if (contextBuilder_ == null) {
            result.context_ = context_;
          } else {
            result.context_ = contextBuilder_.build();
          }
          to_bitField0_ |= 0x00000002;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          to_bitField0_ |= 0x00000004;
        }
        result.currentUid_ = currentUid_;
        if (((from_bitField0_ & 0x00000008) != 0)) {
          if (optionOverridesBuilder_ == null) {
            result.optionOverrides_ = optionOverrides_;
          } else {
            result.optionOverrides_ = optionOverridesBuilder_.build();
          }
          to_bitField0_ |= 0x00000008;
        }
        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 com.spotify.context.PlayOriginOuterClass.PlayOrigin playOrigin_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.spotify.context.PlayOriginOuterClass.PlayOrigin, com.spotify.context.PlayOriginOuterClass.PlayOrigin.Builder, com.spotify.context.PlayOriginOuterClass.PlayOriginOrBuilder> playOriginBuilder_;
      /**
       * <code>optional .spotify.player.proto.PlayOrigin play_origin = 1;</code>
       * @return Whether the playOrigin field is set.
       */
      public boolean hasPlayOrigin() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional .spotify.player.proto.PlayOrigin play_origin = 1;</code>
       * @return The playOrigin.
       */
      public com.spotify.context.PlayOriginOuterClass.PlayOrigin getPlayOrigin() {
        if (playOriginBuilder_ == null) {
          return playOrigin_ == null ? com.spotify.context.PlayOriginOuterClass.PlayOrigin.getDefaultInstance() : playOrigin_;
        } else {
          return playOriginBuilder_.getMessage();
        }
      }
      /**
       * <code>optional .spotify.player.proto.PlayOrigin play_origin = 1;</code>
       */
      public Builder setPlayOrigin(com.spotify.context.PlayOriginOuterClass.PlayOrigin value) {
        if (playOriginBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          playOrigin_ = value;
          onChanged();
        } else {
          playOriginBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .spotify.player.proto.PlayOrigin play_origin = 1;</code>
       */
      public Builder setPlayOrigin(
          com.spotify.context.PlayOriginOuterClass.PlayOrigin.Builder builderForValue) {
        if (playOriginBuilder_ == null) {
          playOrigin_ = builderForValue.build();
          onChanged();
        } else {
          playOriginBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .spotify.player.proto.PlayOrigin play_origin = 1;</code>
       */
      public Builder mergePlayOrigin(com.spotify.context.PlayOriginOuterClass.PlayOrigin value) {
        if (playOriginBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
              playOrigin_ != null &&
              playOrigin_ != com.spotify.context.PlayOriginOuterClass.PlayOrigin.getDefaultInstance()) {
            playOrigin_ =
              com.spotify.context.PlayOriginOuterClass.PlayOrigin.newBuilder(playOrigin_).mergeFrom(value).buildPartial();
          } else {
            playOrigin_ = value;
          }
          onChanged();
        } else {
          playOriginBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .spotify.player.proto.PlayOrigin play_origin = 1;</code>
       */
      public Builder clearPlayOrigin() {
        if (playOriginBuilder_ == null) {
          playOrigin_ = null;
          onChanged();
        } else {
          playOriginBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * <code>optional .spotify.player.proto.PlayOrigin play_origin = 1;</code>
       */
      public com.spotify.context.PlayOriginOuterClass.PlayOrigin.Builder getPlayOriginBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getPlayOriginFieldBuilder().getBuilder();
      }
      /**
       * <code>optional .spotify.player.proto.PlayOrigin play_origin = 1;</code>
       */
      public com.spotify.context.PlayOriginOuterClass.PlayOriginOrBuilder getPlayOriginOrBuilder() {
        if (playOriginBuilder_ != null) {
          return playOriginBuilder_.getMessageOrBuilder();
        } else {
          return playOrigin_ == null ?
              com.spotify.context.PlayOriginOuterClass.PlayOrigin.getDefaultInstance() : playOrigin_;
        }
      }
      /**
       * <code>optional .spotify.player.proto.PlayOrigin play_origin = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.spotify.context.PlayOriginOuterClass.PlayOrigin, com.spotify.context.PlayOriginOuterClass.PlayOrigin.Builder, com.spotify.context.PlayOriginOuterClass.PlayOriginOrBuilder> 
          getPlayOriginFieldBuilder() {
        if (playOriginBuilder_ == null) {
          playOriginBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.spotify.context.PlayOriginOuterClass.PlayOrigin, com.spotify.context.PlayOriginOuterClass.PlayOrigin.Builder, com.spotify.context.PlayOriginOuterClass.PlayOriginOrBuilder>(
                  getPlayOrigin(),
                  getParentForChildren(),
                  isClean());
          playOrigin_ = null;
        }
        return playOriginBuilder_;
      }

      private com.spotify.context.ContextOuterClass.Context context_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.spotify.context.ContextOuterClass.Context, com.spotify.context.ContextOuterClass.Context.Builder, com.spotify.context.ContextOuterClass.ContextOrBuilder> contextBuilder_;
      /**
       * <code>optional .spotify.player.proto.Context context = 2;</code>
       * @return Whether the context field is set.
       */
      public boolean hasContext() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>optional .spotify.player.proto.Context context = 2;</code>
       * @return The context.
       */
      public com.spotify.context.ContextOuterClass.Context getContext() {
        if (contextBuilder_ == null) {
          return context_ == null ? com.spotify.context.ContextOuterClass.Context.getDefaultInstance() : context_;
        } else {
          return contextBuilder_.getMessage();
        }
      }
      /**
       * <code>optional .spotify.player.proto.Context context = 2;</code>
       */
      public Builder setContext(com.spotify.context.ContextOuterClass.Context value) {
        if (contextBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          context_ = value;
          onChanged();
        } else {
          contextBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <code>optional .spotify.player.proto.Context context = 2;</code>
       */
      public Builder setContext(
          com.spotify.context.ContextOuterClass.Context.Builder builderForValue) {
        if (contextBuilder_ == null) {
          context_ = builderForValue.build();
          onChanged();
        } else {
          contextBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <code>optional .spotify.player.proto.Context context = 2;</code>
       */
      public Builder mergeContext(com.spotify.context.ContextOuterClass.Context value) {
        if (contextBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0) &&
              context_ != null &&
              context_ != com.spotify.context.ContextOuterClass.Context.getDefaultInstance()) {
            context_ =
              com.spotify.context.ContextOuterClass.Context.newBuilder(context_).mergeFrom(value).buildPartial();
          } else {
            context_ = value;
          }
          onChanged();
        } else {
          contextBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <code>optional .spotify.player.proto.Context context = 2;</code>
       */
      public Builder clearContext() {
        if (contextBuilder_ == null) {
          context_ = null;
          onChanged();
        } else {
          contextBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      /**
       * <code>optional .spotify.player.proto.Context context = 2;</code>
       */
      public com.spotify.context.ContextOuterClass.Context.Builder getContextBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getContextFieldBuilder().getBuilder();
      }
      /**
       * <code>optional .spotify.player.proto.Context context = 2;</code>
       */
      public com.spotify.context.ContextOuterClass.ContextOrBuilder getContextOrBuilder() {
        if (contextBuilder_ != null) {
          return contextBuilder_.getMessageOrBuilder();
        } else {
          return context_ == null ?
              com.spotify.context.ContextOuterClass.Context.getDefaultInstance() : context_;
        }
      }
      /**
       * <code>optional .spotify.player.proto.Context context = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.spotify.context.ContextOuterClass.Context, com.spotify.context.ContextOuterClass.Context.Builder, com.spotify.context.ContextOuterClass.ContextOrBuilder> 
          getContextFieldBuilder() {
        if (contextBuilder_ == null) {
          contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.spotify.context.ContextOuterClass.Context, com.spotify.context.ContextOuterClass.Context.Builder, com.spotify.context.ContextOuterClass.ContextOrBuilder>(
                  getContext(),
                  getParentForChildren(),
                  isClean());
          context_ = null;
        }
        return contextBuilder_;
      }

      private java.lang.Object currentUid_ = "";
      /**
       * <code>optional string current_uid = 3;</code>
       * @return Whether the currentUid field is set.
       */
      public boolean hasCurrentUid() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>optional string current_uid = 3;</code>
       * @return The currentUid.
       */
      public java.lang.String getCurrentUid() {
        java.lang.Object ref = currentUid_;
        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()) {
            currentUid_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string current_uid = 3;</code>
       * @return The bytes for currentUid.
       */
      public com.google.protobuf.ByteString
          getCurrentUidBytes() {
        java.lang.Object ref = currentUid_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          currentUid_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string current_uid = 3;</code>
       * @param value The currentUid to set.
       * @return This builder for chaining.
       */
      public Builder setCurrentUid(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        currentUid_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string current_uid = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearCurrentUid() {
        bitField0_ = (bitField0_ & ~0x00000004);
        currentUid_ = getDefaultInstance().getCurrentUid();
        onChanged();
        return this;
      }
      /**
       * <code>optional string current_uid = 3;</code>
       * @param value The bytes for currentUid to set.
       * @return This builder for chaining.
       */
      public Builder setCurrentUidBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        currentUid_ = value;
        onChanged();
        return this;
      }

      private com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides optionOverrides_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides, com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides.Builder, com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverridesOrBuilder> optionOverridesBuilder_;
      /**
       * <code>optional .spotify.player.proto.ContextPlayerOptionOverrides option_overrides = 4;</code>
       * @return Whether the optionOverrides field is set.
       */
      public boolean hasOptionOverrides() {
        return ((bitField0_ & 0x00000008) != 0);
      }
      /**
       * <code>optional .spotify.player.proto.ContextPlayerOptionOverrides option_overrides = 4;</code>
       * @return The optionOverrides.
       */
      public com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides getOptionOverrides() {
        if (optionOverridesBuilder_ == null) {
          return optionOverrides_ == null ? com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides.getDefaultInstance() : optionOverrides_;
        } else {
          return optionOverridesBuilder_.getMessage();
        }
      }
      /**
       * <code>optional .spotify.player.proto.ContextPlayerOptionOverrides option_overrides = 4;</code>
       */
      public Builder setOptionOverrides(com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides value) {
        if (optionOverridesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          optionOverrides_ = value;
          onChanged();
        } else {
          optionOverridesBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * <code>optional .spotify.player.proto.ContextPlayerOptionOverrides option_overrides = 4;</code>
       */
      public Builder setOptionOverrides(
          com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides.Builder builderForValue) {
        if (optionOverridesBuilder_ == null) {
          optionOverrides_ = builderForValue.build();
          onChanged();
        } else {
          optionOverridesBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * <code>optional .spotify.player.proto.ContextPlayerOptionOverrides option_overrides = 4;</code>
       */
      public Builder mergeOptionOverrides(com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides value) {
        if (optionOverridesBuilder_ == null) {
          if (((bitField0_ & 0x00000008) != 0) &&
              optionOverrides_ != null &&
              optionOverrides_ != com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides.getDefaultInstance()) {
            optionOverrides_ =
              com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides.newBuilder(optionOverrides_).mergeFrom(value).buildPartial();
          } else {
            optionOverrides_ = value;
          }
          onChanged();
        } else {
          optionOverridesBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * <code>optional .spotify.player.proto.ContextPlayerOptionOverrides option_overrides = 4;</code>
       */
      public Builder clearOptionOverrides() {
        if (optionOverridesBuilder_ == null) {
          optionOverrides_ = null;
          onChanged();
        } else {
          optionOverridesBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }
      /**
       * <code>optional .spotify.player.proto.ContextPlayerOptionOverrides option_overrides = 4;</code>
       */
      public com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides.Builder getOptionOverridesBuilder() {
        bitField0_ |= 0x00000008;
        onChanged();
        return getOptionOverridesFieldBuilder().getBuilder();
      }
      /**
       * <code>optional .spotify.player.proto.ContextPlayerOptionOverrides option_overrides = 4;</code>
       */
      public com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverridesOrBuilder getOptionOverridesOrBuilder() {
        if (optionOverridesBuilder_ != null) {
          return optionOverridesBuilder_.getMessageOrBuilder();
        } else {
          return optionOverrides_ == null ?
              com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides.getDefaultInstance() : optionOverrides_;
        }
      }
      /**
       * <code>optional .spotify.player.proto.ContextPlayerOptionOverrides option_overrides = 4;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides, com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides.Builder, com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverridesOrBuilder> 
          getOptionOverridesFieldBuilder() {
        if (optionOverridesBuilder_ == null) {
          optionOverridesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides, com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverrides.Builder, com.spotify.context.ContextPlayerOptionsOuterClass.ContextPlayerOptionOverridesOrBuilder>(
                  getOptionOverrides(),
                  getParentForChildren(),
                  isClean());
          optionOverrides_ = null;
        }
        return optionOverridesBuilder_;
      }
      @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.transfer.Session)
    }

    // @@protoc_insertion_point(class_scope:spotify.player.proto.transfer.Session)
    private static final com.spotify.transfer.SessionOuterClass.Session DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.spotify.transfer.SessionOuterClass.Session();
    }

    public static com.spotify.transfer.SessionOuterClass.Session getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.spotify.transfer.SessionOuterClass.Session getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_spotify_player_proto_transfer_Session_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_spotify_player_proto_transfer_Session_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\rsession.proto\022\035spotify.player.proto.tr" +
      "ansfer\032\rcontext.proto\032\034context_player_op" +
      "tions.proto\032\021play_origin.proto\"\323\001\n\007Sessi" +
      "on\0225\n\013play_origin\030\001 \001(\0132 .spotify.player" +
      ".proto.PlayOrigin\022.\n\007context\030\002 \001(\0132\035.spo" +
      "tify.player.proto.Context\022\023\n\013current_uid" +
      "\030\003 \001(\t\022L\n\020option_overrides\030\004 \001(\01322.spoti" +
      "fy.player.proto.ContextPlayerOptionOverr" +
      "idesB\030\n\024com.spotify.transferH\002"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.spotify.context.ContextOuterClass.getDescriptor(),
          com.spotify.context.ContextPlayerOptionsOuterClass.getDescriptor(),
          com.spotify.context.PlayOriginOuterClass.getDescriptor(),
        });
    internal_static_spotify_player_proto_transfer_Session_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_spotify_player_proto_transfer_Session_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_spotify_player_proto_transfer_Session_descriptor,
        new java.lang.String[] { "PlayOrigin", "Context", "CurrentUid", "OptionOverrides", });
    com.spotify.context.ContextOuterClass.getDescriptor();
    com.spotify.context.ContextPlayerOptionsOuterClass.getDescriptor();
    com.spotify.context.PlayOriginOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
