// Path: uber-core/src/main/java/com/uber/sdk/core/auth/Scope.java
// public enum Scope {
// 
//     /**
//      * Pull trip data of a user's historical pickups and drop-offs.
//      */
//     HISTORY(GENERAL, 1),
// 
//     /**
//      * Same as History without city information.
//      */
//     HISTORY_LITE(GENERAL, 2),
// 
//     /**
//      * Retrieve user's available registered payment methods.
//      */
//     PAYMENT_METHODS(GENERAL, 4),
// 
//     /**
//      * Save and retrieve user's favorite places.
//      */
//     PLACES(GENERAL, 8),
// 
//     /**
//      * Access basic profile information on a user's Uber account.
//      */
//     PROFILE(GENERAL, 16),
// 
//     /**
//      * Access the Ride Request Widget.
//      */
//     RIDE_WIDGETS(GENERAL, 32),
// 
//     /**
//      * Request ride on the behalf of an Uber account.
//      */
//     REQUEST(PRIVILEGED, 64),
// 
//     /**
//      * Request ride for a ride on the behalf of an Uber account.
//      */
//     REQUEST_RECEIPT(PRIVILEGED, 128),
// 
//     /**
//      * Request list of all trips belong to a user.
//      */
//     ALL_TRIPS(PRIVILEGED, 256);
// 
// 
//     private ScopeType mScopeType;
// 
//     /**
//      * Use powers of two to allow bit masking operation.
//      */
//     private int mBitValue;
// 
//     Scope(ScopeType scopeType, int bitValue) {
//         this.mScopeType = scopeType;
//         this.mBitValue = bitValue;
//     }
// 
//     /**
//      * Gets the {@link ScopeType} associated with this {@link Scope}.
//      *
//      * @return the type of scope.
//      */
//     public ScopeType getScopeType() {
//         return mScopeType;
//     }
// 
//     /**
//      * Gets the bit value that represents this.
//      *
//      * @return the int value that represents this’.
//      */
//     public int getBitValue() {
//         return mBitValue;
//     }
// 
//     /**
//      * Category of {@link Scope} that describes its level of access.
//      */
//     public enum ScopeType {
// 
//         /**
//          * {@link Scope}s that can be used without review.
//          */
//         GENERAL,
// 
//         /**
//          * {@link Scope}s that require approval before opened to your users in production.
//          */
//         PRIVILEGED
//     }
// 
//     public static Set<Scope> parseScopes(String concatenatedScopes) {
//         Set<Scope> scopes = new LinkedHashSet<>();
//         for (String scopeString : concatenatedScopes.split(" ")) {
//             try {
//                 Scope scope = Scope.valueOf(scopeString.toUpperCase());
//                 scopes.add(scope);
//             } catch (IllegalArgumentException ex) {
//             }
//         }
//         return scopes;
//     }
// 
//     public static Set<Scope> parseScopes(int bitValues) {
//         Set<Scope> scopes = new LinkedHashSet<>();
//         if (bitValues <= 0) {
//             return scopes;
//         }
// 
//         for (Scope scope : Scope.values()) {
//             if ((bitValues & scope.mBitValue) == scope.mBitValue) {
//                 scopes.add(scope);
//             }
//         }
// 
//         return scopes;
//     }
// 
//     public static String toStandardString(@Nonnull Collection<Scope> scopes) {
//         StringBuilder stringBuilder = new StringBuilder();
//         int i = 0;
//         for (Scope scope : scopes) {
//             stringBuilder.append(scope.toString().toLowerCase());
//             if (i < scopes.size() - 1) {
//                 stringBuilder.append(' ');
//             }
//             i++;
//         }
//         return stringBuilder.toString();
//     }
// }
// 
// Path: uber-core/src/main/java/com/uber/sdk/core/client/utils/Preconditions.java
// @Nonnull
// public static <T> T checkNotNull(T value, @Nonnull String errorMessage) {
//     if (value == null) {
//         throw new NullPointerException(errorMessage);
//     }
//     return value;
// }


import static com.uber.sdk.core.client.SessionConfiguration.EndpointRegion.DEFAULT;
import static com.uber.sdk.core.client.utils.Preconditions.checkNotNull;
import com.uber.sdk.core.auth.Scope;
import java.io.Serializable;
import java.util.Collection;
import java.util.HashSet;
import java.util.Locale;
import javax.annotation.Nonnull;

        /**
         * The Uber API can use a server token for some endpoints.
         *
         * @param serverToken to be used for identification
         * @return
         */
        public Builder setServerToken(@Nonnull String serverToken) {
            this.serverToken = serverToken;
            return this;
        }

        /**
         * Sets the redirect URI that is registered for this application.
         *
         * @param redirectUri the redirect URI {@link String} for this application.
         */
        public Builder setRedirectUri(@Nonnull String redirectUri) {
            this.redirectUri = redirectUri;
            return this;
        }

        /**
         * Sets the {@link Environment} to be used for API requests
         *
         * @param environment to be set
         * @return
         */
        public Builder setEnvironment(@Nonnull Environment environment) {
            this.environment = environment;
// Path: uber-core/src/main/java/com/uber/sdk/core/auth/Scope.java
// public enum Scope {
// 
//     /**
//      * Pull trip data of a user's historical pickups and drop-offs.
//      */
//     HISTORY(GENERAL, 1),
// 
//     /**
//      * Same as History without city information.
//      */
//     HISTORY_LITE(GENERAL, 2),
// 
//     /**
//      * Retrieve user's available registered payment methods.
//      */
//     PAYMENT_METHODS(GENERAL, 4),
// 
//     /**
//      * Save and retrieve user's favorite places.
//      */
//     PLACES(GENERAL, 8),
// 
//     /**
//      * Access basic profile information on a user's Uber account.
//      */
//     PROFILE(GENERAL, 16),
// 
//     /**
//      * Access the Ride Request Widget.
//      */
//     RIDE_WIDGETS(GENERAL, 32),
// 
//     /**
//      * Request ride on the behalf of an Uber account.
//      */
//     REQUEST(PRIVILEGED, 64),
// 
//     /**
//      * Request ride for a ride on the behalf of an Uber account.
//      */
//     REQUEST_RECEIPT(PRIVILEGED, 128),
// 
//     /**
//      * Request list of all trips belong to a user.
//      */
//     ALL_TRIPS(PRIVILEGED, 256);
// 
// 
//     private ScopeType mScopeType;
// 
//     /**
//      * Use powers of two to allow bit masking operation.
//      */
//     private int mBitValue;
// 
//     Scope(ScopeType scopeType, int bitValue) {
//         this.mScopeType = scopeType;
//         this.mBitValue = bitValue;
//     }
// 
//     /**
//      * Gets the {@link ScopeType} associated with this {@link Scope}.
//      *
//      * @return the type of scope.
//      */
//     public ScopeType getScopeType() {
//         return mScopeType;
//     }
// 
//     /**
//      * Gets the bit value that represents this.
//      *
//      * @return the int value that represents this’.
//      */
//     public int getBitValue() {
//         return mBitValue;
//     }
// 
//     /**
//      * Category of {@link Scope} that describes its level of access.
//      */
//     public enum ScopeType {
// 
//         /**
//          * {@link Scope}s that can be used without review.
//          */
//         GENERAL,
// 
//         /**
//          * {@link Scope}s that require approval before opened to your users in production.
//          */
//         PRIVILEGED
//     }
// 
//     public static Set<Scope> parseScopes(String concatenatedScopes) {
//         Set<Scope> scopes = new LinkedHashSet<>();
//         for (String scopeString : concatenatedScopes.split(" ")) {
//             try {
//                 Scope scope = Scope.valueOf(scopeString.toUpperCase());
//                 scopes.add(scope);
//             } catch (IllegalArgumentException ex) {
//             }
//         }
//         return scopes;
//     }
// 
//     public static Set<Scope> parseScopes(int bitValues) {
//         Set<Scope> scopes = new LinkedHashSet<>();
//         if (bitValues <= 0) {
//             return scopes;
//         }
// 
//         for (Scope scope : Scope.values()) {
//             if ((bitValues & scope.mBitValue) == scope.mBitValue) {
//                 scopes.add(scope);
//             }
//         }
// 
//         return scopes;
//     }
// 
//     public static String toStandardString(@Nonnull Collection<Scope> scopes) {
//         StringBuilder stringBuilder = new StringBuilder();
//         int i = 0;
//         for (Scope scope : scopes) {
//             stringBuilder.append(scope.toString().toLowerCase());
//             if (i < scopes.size() - 1) {
//                 stringBuilder.append(' ');
//             }
//             i++;
//         }
//         return stringBuilder.toString();
//     }
// }
// 
// Path: uber-core/src/main/java/com/uber/sdk/core/client/utils/Preconditions.java
// @Nonnull
// public static <T> T checkNotNull(T value, @Nonnull String errorMessage) {
//     if (value == null) {
//         throw new NullPointerException(errorMessage);
//     }
//     return value;
// }


// Path: uber-core/src/main/java/com/uber/sdk/core/client/SessionConfiguration.java
import static com.uber.sdk.core.client.SessionConfiguration.EndpointRegion.DEFAULT;
import static com.uber.sdk.core.client.utils.Preconditions.checkNotNull;
import com.uber.sdk.core.auth.Scope;
import java.io.Serializable;
import java.util.Collection;
import java.util.HashSet;
import java.util.Locale;
import javax.annotation.Nonnull;


        /**
         * The Uber API can use a server token for some endpoints.
         *
         * @param serverToken to be used for identification
         * @return
         */
        public Builder setServerToken(@Nonnull String serverToken) {
            this.serverToken = serverToken;
            return this;
        }

        /**
         * Sets the redirect URI that is registered for this application.
         *
         * @param redirectUri the redirect URI {@link String} for this application.
         */
        public Builder setRedirectUri(@Nonnull String redirectUri) {
            this.redirectUri = redirectUri;
            return this;
        }

        /**
         * Sets the {@link Environment} to be used for API requests
         *
         * @param environment to be set
         * @return
         */
        public Builder setEnvironment(@Nonnull Environment environment) {
            this.environment = environment;
            return this;