text: ///
  /// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
  ///
  /// Auto-generated by Stone, do not modify.
  ///
  
  #import <Foundation/Foundation.h>
  
  #import "DBSerializableProtocol.h"
  
  @class DBFILESMetadata;
  @class DBFILESRelocationBatchErrorEntry;
  @class DBFILESRelocationBatchResultEntry;
  
  NS_ASSUME_NONNULL_BEGIN
  
  #pragma mark - API Object
  
  ///
  /// The `RelocationBatchResultEntry` union.
  ///
  /// This class implements the `DBSerializable` protocol (serialize and
  /// deserialize instance methods), which is required for all Obj-C SDK API route
  /// objects.
  ///
  @interface DBFILESRelocationBatchResultEntry : NSObject <DBSerializable, NSCopying>
  
  #pragma mark - Instance fields
  
  /// The `DBFILESRelocationBatchResultEntryTag` enum type represents the possible
  /// tag states with which the `DBFILESRelocationBatchResultEntry` union can
  /// exist.
  typedef NS_ENUM(NSInteger, DBFILESRelocationBatchResultEntryTag) {
    /// (no description).
    DBFILESRelocationBatchResultEntrySuccess,
  
    /// (no description).
    DBFILESRelocationBatchResultEntryFailure,
  
    /// (no description).
    DBFILESRelocationBatchResultEntryOther,
  
  };
  
  /// Represents the union's current tag state.
  @property (nonatomic, readonly) DBFILESRelocationBatchResultEntryTag tag;
  
  /// (no description). @note Ensure the `isSuccess` method returns true before
  /// accessing, otherwise a runtime exception will be raised.
  @property (nonatomic, readonly) DBFILESMetadata *success;
  
  /// (no description). @note Ensure the `isFailure` method returns true before
  /// accessing, otherwise a runtime exception will be raised.
  @property (nonatomic, readonly) DBFILESRelocationBatchErrorEntry *failure;
  
  #pragma mark - Constructors
  
  ///
  /// Initializes union class with tag state of "success".
  ///
  /// @param success (no description).
  ///
  /// @return An initialized instance.
  ///
  - (instancetype)initWithSuccess:(DBFILESMetadata *)success;
  
  ///
  /// Initializes union class with tag state of "failure".
  ///
  /// @param failure (no description).
  ///
  /// @return An initialized instance.
  ///
  - (instancetype)initWithFailure:(DBFILESRelocationBatchErrorEntry *)failure;
  
  ///
  /// Initializes union class with tag state of "other".
  ///
  /// @return An initialized instance.
  ///
  - (instancetype)initWithOther;
  
  - (instancetype)init NS_UNAVAILABLE;
  
  #pragma mark - Tag state methods
  
  ///
  /// Retrieves whether the union's current tag state has value "success".
  ///
  /// @note Call this method and ensure it returns true before accessing the
  /// `success` property, otherwise a runtime exception will be thrown.
  ///
  /// @return Whether the union's current tag state has value "success".
  ///
  - (BOOL)isSuccess;
  
  ///
  /// Retrieves whether the union's current tag state has value "failure".
  ///
  /// @note Call this method and ensure it returns true before accessing the
  /// `failure` property, otherwise a runtime exception will be thrown.
  ///
  /// @return Whether the union's current tag state has value "failure".
  ///
  - (BOOL)isFailure;
  
  ///
  /// Retrieves whether the union's current tag state has value "other".
  ///
  /// @return Whether the union's current tag state has value "other".
  ///
  - (BOOL)isOther;
  
  ///
  /// Retrieves string value of union's current tag state.
  ///
  /// @return A human-readable string representing the union's current tag state.
  ///
  - (NSString *)tagName;
  
  @end
  
  #pragma mark - Serializer Object
  
  ///
  /// The serialization class for the `DBFILESRelocationBatchResultEntry` union.
  ///
  @interface DBFILESRelocationBatchResultEntrySerializer : NSObject
  
  ///
  /// Serializes `DBFILESRelocationBatchResultEntry` instances.
  ///
  /// @param instance An instance of the `DBFILESRelocationBatchResultEntry` API
  /// object.
  ///
  /// @return A json-compatible dictionary representation of the
  /// `DBFILESRelocationBatchResultEntry` API object.
  ///
  + (nullable NSDictionary<NSString *, id> *)serialize:(DBFILESRelocationBatchResultEntry *)instance;
  
  ///
  /// Deserializes `DBFILESRelocationBatchResultEntry` instances.
  ///
  /// @param dict A json-compatible dictionary representation of the
  /// `DBFILESRelocationBatchResultEntry` API object.
  ///
  /// @return An instantiation of the `DBFILESRelocationBatchResultEntry` object.
  ///
  + (DBFILESRelocationBatchResultEntry *)deserialize:(NSDictionary<NSString *, id> *)dict;
  
  @end
  
  NS_ASSUME_NONNULL_END
  