text: ///
  /// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
  ///
  /// Auto-generated by Stone, do not modify.
  ///
  
  #import <Foundation/Foundation.h>
  
  #import "DBSerializableProtocol.h"
  
  @class DBFILESGetCopyReferenceError;
  @class DBFILESLookupError;
  
  #pragma mark - API Object
  
  ///
  /// The `GetCopyReferenceError` union.
  ///
  /// This class implements the `DBSerializable` protocol (serialize and
  /// deserialize instance methods), which is required for all Obj-C SDK API route
  /// objects.
  ///
  @interface DBFILESGetCopyReferenceError : NSObject <DBSerializable>
  
  #pragma mark - Instance fields
  
  /// The `DBFILESGetCopyReferenceErrorTag` enum type represents the possible tag
  /// states with which the `DBFILESGetCopyReferenceError` union can exist.
  typedef NS_ENUM(NSInteger, DBFILESGetCopyReferenceErrorTag) {
    /// (no description).
    DBFILESGetCopyReferenceErrorPath,
  
    /// (no description).
    DBFILESGetCopyReferenceErrorOther,
  
  };
  
  /// Represents the union's current tag state.
  @property (nonatomic, readonly) DBFILESGetCopyReferenceErrorTag tag;
  
  /// (no description). @note Ensure the `isPath` method returns true before
  /// accessing, otherwise a runtime exception will be raised.
  @property (nonatomic, readonly) DBFILESLookupError * _Nonnull path;
  
  #pragma mark - Constructors
  
  ///
  /// Initializes union class with tag state of "path".
  ///
  /// @param path (no description).
  ///
  /// @return An initialized instance.
  ///
  - (nonnull instancetype)initWithPath:(DBFILESLookupError * _Nonnull)path;
  
  ///
  /// Initializes union class with tag state of "other".
  ///
  /// @return An initialized instance.
  ///
  - (nonnull instancetype)initWithOther;
  
  #pragma mark - Tag state methods
  
  ///
  /// Retrieves whether the union's current tag state has value "path".
  ///
  /// @note Call this method and ensure it returns true before accessing the
  /// `path` property, otherwise a runtime exception will be thrown.
  ///
  /// @return Whether the union's current tag state has value "path".
  ///
  - (BOOL)isPath;
  
  ///
  /// 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 * _Nonnull)tagName;
  
  @end
  
  #pragma mark - Serializer Object
  
  ///
  /// The serialization class for the `DBFILESGetCopyReferenceError` union.
  ///
  @interface DBFILESGetCopyReferenceErrorSerializer : NSObject
  
  ///
  /// Serializes `DBFILESGetCopyReferenceError` instances.
  ///
  /// @param instance An instance of the `DBFILESGetCopyReferenceError` API
  /// object.
  ///
  /// @return A json-compatible dictionary representation of the
  /// `DBFILESGetCopyReferenceError` API object.
  ///
  + (NSDictionary * _Nonnull)serialize:(DBFILESGetCopyReferenceError * _Nonnull)instance;
  
  ///
  /// Deserializes `DBFILESGetCopyReferenceError` instances.
  ///
  /// @param dict A json-compatible dictionary representation of the
  /// `DBFILESGetCopyReferenceError` API object.
  ///
  /// @return An instantiation of the `DBFILESGetCopyReferenceError` object.
  ///
  + (DBFILESGetCopyReferenceError * _Nonnull)deserialize:(NSDictionary * _Nonnull)dict;
  
  @end
  