public NSNetServiceErrorCode getErrorCode() {
   if (has(Keys.ErrorCode())) {
     NSNumber val = (NSNumber) get(Keys.ErrorCode());
     return NSNetServiceErrorCode.valueOf(val.longValue());
   }
   return null;
 }
 public String getErrorDomain() {
   if (has(Keys.ErrorDomain())) {
     NSString val = (NSString) get(Keys.ErrorDomain());
     return val.toString();
   }
   return null;
 }
 /**
  * @since Available in iOS 3.2 and later.
  * @deprecated Deprecated in iOS 8.0.
  */
 @Deprecated
 public UIFont getFont() {
   if (has(Keys.Font())) {
     UIFont val = (UIFont) get(Keys.Font());
     return val;
   }
   return null;
 }
 /**
  * @since Available in iOS 3.2 and later.
  * @deprecated Deprecated in iOS 8.0.
  */
 @Deprecated
 public UIColor getTextColor() {
   if (has(Keys.Color())) {
     UIColor val = (UIColor) get(Keys.Color());
     return val;
   }
   return null;
 }
 /**
  * @since Available in iOS 3.2 and later.
  * @deprecated Deprecated in iOS 8.0.
  */
 @Deprecated
 public UIColor getBackgroundColor() {
   if (has(Keys.BackgroundColor())) {
     UIColor val = (UIColor) get(Keys.BackgroundColor());
     return val;
   }
   return null;
 }
 public NSNetServiceErrorUserInfo setErrorDomain(String errorDomain) {
   set(Keys.ErrorDomain(), new NSString(errorDomain));
   return this;
 }
 public NSNetServiceErrorUserInfo setErrorCode(NSNetServiceErrorCode errorCode) {
   set(Keys.ErrorCode(), NSNumber.valueOf(errorCode.value()));
   return this;
 }
 /**
  * @since Available in iOS 3.2 and later.
  * @deprecated Deprecated in iOS 8.0.
  */
 @Deprecated
 public UITextInputTextStyle setFont(UIFont font) {
   set(Keys.Font(), font);
   return this;
 }
 /**
  * @since Available in iOS 3.2 and later.
  * @deprecated Deprecated in iOS 8.0.
  */
 @Deprecated
 public UITextInputTextStyle setTextColor(UIColor textColor) {
   set(Keys.Color(), textColor);
   return this;
 }
 /**
  * @since Available in iOS 3.2 and later.
  * @deprecated Deprecated in iOS 8.0.
  */
 @Deprecated
 public UITextInputTextStyle setBackgroundColor(UIColor backgroundColor) {
   set(Keys.BackgroundColor(), backgroundColor);
   return this;
 }