/** * Set the nickname of the user this item represents. * * @param nickname the nickname of the user. */ public void setNickname(String nickname) { if (nickname != null) { setExtension(new GphotoNickname(nickname)); } else { removeExtension(GphotoNickname.class); } }
/** * Set the quota limit for the user this item represents. * * @param quota the quota in bytes for the user. */ public void setQuotaLimit(Long quota) { if (quota != null) { setExtension(new GphotoQuotaLimit(quota)); } else { removeExtension(GphotoQuotaLimit.class); } }
/** * Set the used quota for the user. * * @param quota the quota usage in bytes for this user. */ public void setQuotaUsed(Long quota) { if (quota != null) { setExtension(new GphotoQuotaUsed(quota)); } else { removeExtension(GphotoQuotaUsed.class); } }
/** * Set the nickname of the user this item represents. * * @param nickname the nickname of the user. */ public void setNickname(String nickname) { if (nickname != null) { setExtension(new GphotoNickname(nickname)); } else { removeExtension(GphotoNickname.class); } }
/** * Set the quota limit for the user this item represents. * * @param quota the quota in bytes for the user. */ public void setQuotaLimit(Long quota) { if (quota != null) { setExtension(new GphotoQuotaLimit(quota)); } else { removeExtension(GphotoQuotaLimit.class); } }
/** * Set the maximum number of photos the user is allowed. * * @param max the number of photos the user is allowed. */ public void setMaxPhotos(Integer max) { if (max != null) { setExtension(new GphotoMaxPhotos(max)); } else { removeExtension(GphotoMaxPhotos.class); } } }
/** * Set the maximum number of photos the user is allowed. * * @param max the number of photos the user is allowed. */ public void setMaxPhotos(Integer max) { if (max != null) { setExtension(new GphotoMaxPhotos(max)); } else { removeExtension(GphotoMaxPhotos.class); } } }
/** * Set the username for the user this item represents. * * @param username the username of the user. */ public void setUsername(String username) { if (username != null) { setExtension(new GphotoUsername(username)); } else { removeExtension(GphotoUsername.class); } }
/** * Set the thumbnail for the user portrait. * * @param thumbnail the url to the user portrait image. */ public void setThumbnail(String thumbnail) { if (thumbnail != null) { setExtension(new GphotoThumbnail(thumbnail)); } else { removeExtension(GphotoThumbnail.class); } }
/** * Set the used quota for the user. * * @param quota the quota usage in bytes for this user. */ public void setQuotaUsed(Long quota) { if (quota != null) { setExtension(new GphotoQuotaUsed(quota)); } else { removeExtension(GphotoQuotaUsed.class); } }
/** * Set the username for the user this item represents. * * @param username the username of the user. */ public void setUsername(String username) { if (username != null) { setExtension(new GphotoUsername(username)); } else { removeExtension(GphotoUsername.class); } }
/** * Set the thumbnail for the user portrait. * * @param thumbnail the url to the user portrait image. */ public void setThumbnail(String thumbnail) { if (thumbnail != null) { setExtension(new GphotoThumbnail(thumbnail)); } else { removeExtension(GphotoThumbnail.class); } }