public PremiumInfo deepCopy() { return new PremiumInfo(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof PremiumInfo) return this.equals((PremiumInfo)that); return false; }
lastComparison = Boolean.valueOf(isSetCurrentTime()).compareTo(typedOther.isSetCurrentTime()); if (lastComparison != 0) { return lastComparison; if (isSetCurrentTime()) { lastComparison = TBaseHelper.compareTo(this.currentTime, typedOther.currentTime); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetPremium()).compareTo(typedOther.isSetPremium()); if (lastComparison != 0) { return lastComparison; if (isSetPremium()) { lastComparison = TBaseHelper.compareTo(this.premium, typedOther.premium); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetPremiumRecurring()).compareTo(typedOther.isSetPremiumRecurring()); if (lastComparison != 0) { return lastComparison; if (isSetPremiumRecurring()) { lastComparison = TBaseHelper.compareTo(this.premiumRecurring, typedOther.premiumRecurring); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetPremiumExpirationDate()).compareTo(typedOther.isSetPremiumExpirationDate()); if (lastComparison != 0) { return lastComparison; if (isSetPremiumExpirationDate()) { lastComparison = TBaseHelper.compareTo(this.premiumExpirationDate, typedOther.premiumExpirationDate);
public void validate() throws TException { // check for required fields if (!isSetCurrentTime()) { throw new TProtocolException("Required field 'currentTime' is unset! Struct:" + toString()); } if (!isSetPremium()) { throw new TProtocolException("Required field 'premium' is unset! Struct:" + toString()); } if (!isSetPremiumRecurring()) { throw new TProtocolException("Required field 'premiumRecurring' is unset! Struct:" + toString()); } if (!isSetPremiumExtendable()) { throw new TProtocolException("Required field 'premiumExtendable' is unset! Struct:" + toString()); } if (!isSetPremiumPending()) { throw new TProtocolException("Required field 'premiumPending' is unset! Struct:" + toString()); } if (!isSetPremiumCancellationPending()) { throw new TProtocolException("Required field 'premiumCancellationPending' is unset! Struct:" + toString()); } if (!isSetCanPurchaseUploadAllowance()) { throw new TProtocolException("Required field 'canPurchaseUploadAllowance' is unset! Struct:" + toString()); } }
boolean this_present_premiumExpirationDate = true && this.isSetPremiumExpirationDate(); boolean that_present_premiumExpirationDate = true && that.isSetPremiumExpirationDate(); if (this_present_premiumExpirationDate || that_present_premiumExpirationDate) { if (!(this_present_premiumExpirationDate && that_present_premiumExpirationDate)) boolean this_present_sponsoredGroupName = true && this.isSetSponsoredGroupName(); boolean that_present_sponsoredGroupName = true && that.isSetSponsoredGroupName(); if (this_present_sponsoredGroupName || that_present_sponsoredGroupName) { if (!(this_present_sponsoredGroupName && that_present_sponsoredGroupName)) boolean this_present_sponsoredGroupRole = true && this.isSetSponsoredGroupRole(); boolean that_present_sponsoredGroupRole = true && that.isSetSponsoredGroupRole(); if (this_present_sponsoredGroupRole || that_present_sponsoredGroupRole) { if (!(this_present_sponsoredGroupRole && that_present_sponsoredGroupRole)) boolean this_present_premiumUpgradable = true && this.isSetPremiumUpgradable(); boolean that_present_premiumUpgradable = true && that.isSetPremiumUpgradable(); if (this_present_premiumUpgradable || that_present_premiumUpgradable) { if (!(this_present_premiumUpgradable && that_present_premiumUpgradable))
case 0: // SUCCESS if (field.type == TType.STRUCT) { this.success = new com.evernote.edam.type.PremiumInfo(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, field.type);
boolean this_present_premiumExpirationDate = true && this.isSetPremiumExpirationDate(); boolean that_present_premiumExpirationDate = true && that.isSetPremiumExpirationDate(); if (this_present_premiumExpirationDate || that_present_premiumExpirationDate) { if (!(this_present_premiumExpirationDate && that_present_premiumExpirationDate)) boolean this_present_sponsoredGroupName = true && this.isSetSponsoredGroupName(); boolean that_present_sponsoredGroupName = true && that.isSetSponsoredGroupName(); if (this_present_sponsoredGroupName || that_present_sponsoredGroupName) { if (!(this_present_sponsoredGroupName && that_present_sponsoredGroupName)) boolean this_present_sponsoredGroupRole = true && this.isSetSponsoredGroupRole(); boolean that_present_sponsoredGroupRole = true && that.isSetSponsoredGroupRole(); if (this_present_sponsoredGroupRole || that_present_sponsoredGroupRole) { if (!(this_present_sponsoredGroupRole && that_present_sponsoredGroupRole)) boolean this_present_premiumUpgradable = true && this.isSetPremiumUpgradable(); boolean that_present_premiumUpgradable = true && that.isSetPremiumUpgradable(); if (this_present_premiumUpgradable || that_present_premiumUpgradable) { if (!(this_present_premiumUpgradable && that_present_premiumUpgradable))
public void validate() throws TException { // check for required fields if (!isSetCurrentTime()) { throw new TProtocolException("Required field 'currentTime' is unset! Struct:" + toString()); } if (!isSetPremium()) { throw new TProtocolException("Required field 'premium' is unset! Struct:" + toString()); } if (!isSetPremiumRecurring()) { throw new TProtocolException("Required field 'premiumRecurring' is unset! Struct:" + toString()); } if (!isSetPremiumExtendable()) { throw new TProtocolException("Required field 'premiumExtendable' is unset! Struct:" + toString()); } if (!isSetPremiumPending()) { throw new TProtocolException("Required field 'premiumPending' is unset! Struct:" + toString()); } if (!isSetPremiumCancellationPending()) { throw new TProtocolException("Required field 'premiumCancellationPending' is unset! Struct:" + toString()); } if (!isSetCanPurchaseUploadAllowance()) { throw new TProtocolException("Required field 'canPurchaseUploadAllowance' is unset! Struct:" + toString()); } }
case 0: // SUCCESS if (field.type == TType.STRUCT) { this.success = new com.evernote.edam.type.PremiumInfo(); this.success.read(iprot); } else { TProtocolUtil.skip(iprot, field.type);
lastComparison = Boolean.valueOf(isSetCurrentTime()).compareTo(typedOther.isSetCurrentTime()); if (lastComparison != 0) { return lastComparison; if (isSetCurrentTime()) { lastComparison = TBaseHelper.compareTo(this.currentTime, typedOther.currentTime); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetPremium()).compareTo(typedOther.isSetPremium()); if (lastComparison != 0) { return lastComparison; if (isSetPremium()) { lastComparison = TBaseHelper.compareTo(this.premium, typedOther.premium); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetPremiumRecurring()).compareTo(typedOther.isSetPremiumRecurring()); if (lastComparison != 0) { return lastComparison; if (isSetPremiumRecurring()) { lastComparison = TBaseHelper.compareTo(this.premiumRecurring, typedOther.premiumRecurring); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetPremiumExpirationDate()).compareTo(typedOther.isSetPremiumExpirationDate()); if (lastComparison != 0) { return lastComparison; if (isSetPremiumExpirationDate()) { lastComparison = TBaseHelper.compareTo(this.premiumExpirationDate, typedOther.premiumExpirationDate);
sb.append(this.premiumRecurring); first = false; if (isSetPremiumExpirationDate()) { if (!first) sb.append(", "); sb.append("premiumExpirationDate:"); sb.append(this.canPurchaseUploadAllowance); first = false; if (isSetSponsoredGroupName()) { if (!first) sb.append(", "); sb.append("sponsoredGroupName:"); if (isSetSponsoredGroupRole()) { if (!first) sb.append(", "); sb.append("sponsoredGroupRole:"); if (isSetPremiumUpgradable()) { if (!first) sb.append(", "); sb.append("premiumUpgradable:");
case 17: // PREMIUM_INFO if (field.type == TType.STRUCT) { this.premiumInfo = new PremiumInfo(); this.premiumInfo.read(iprot); } else { TProtocolUtil.skip(iprot, field.type);
public PremiumInfo deepCopy() { return new PremiumInfo(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof PremiumInfo) return this.equals((PremiumInfo)that); return false; }
sb.append(this.premiumRecurring); first = false; if (isSetPremiumExpirationDate()) { if (!first) sb.append(", "); sb.append("premiumExpirationDate:"); sb.append(this.canPurchaseUploadAllowance); first = false; if (isSetSponsoredGroupName()) { if (!first) sb.append(", "); sb.append("sponsoredGroupName:"); if (isSetSponsoredGroupRole()) { if (!first) sb.append(", "); sb.append("sponsoredGroupRole:"); if (isSetPremiumUpgradable()) { if (!first) sb.append(", "); sb.append("premiumUpgradable:");
case 17: // PREMIUM_INFO if (field.type == TType.STRUCT) { this.premiumInfo = new PremiumInfo(); this.premiumInfo.read(iprot); } else { TProtocolUtil.skip(iprot, field.type);
/** * Performs a deep copy on <i>other</i>. */ public getPremiumInfo_result(getPremiumInfo_result other) { if (other.isSetSuccess()) { this.success = new com.evernote.edam.type.PremiumInfo(other.success); } if (other.isSetUserException()) { this.userException = new com.evernote.edam.error.EDAMUserException(other.userException); } if (other.isSetSystemException()) { this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException); } }
if (!(this_present_premiumInfo && that_present_premiumInfo)) return false; if (!this.premiumInfo.equals(that.premiumInfo)) return false;
public void write(TProtocol oprot) throws TException { validate(); oprot.writeBool(this.premiumRecurring); oprot.writeFieldEnd(); if (isSetPremiumExpirationDate()) { oprot.writeFieldBegin(PREMIUM_EXPIRATION_DATE_FIELD_DESC); oprot.writeI64(this.premiumExpirationDate); oprot.writeFieldEnd(); if (this.sponsoredGroupName != null) { if (isSetSponsoredGroupName()) { oprot.writeFieldBegin(SPONSORED_GROUP_NAME_FIELD_DESC); oprot.writeString(this.sponsoredGroupName); if (isSetSponsoredGroupRole()) { oprot.writeFieldBegin(SPONSORED_GROUP_ROLE_FIELD_DESC); oprot.writeI32(this.sponsoredGroupRole.getValue()); if (isSetPremiumUpgradable()) { oprot.writeFieldBegin(PREMIUM_UPGRADABLE_FIELD_DESC); oprot.writeBool(this.premiumUpgradable);
/** * Performs a deep copy on <i>other</i>. */ public getPremiumInfo_result(getPremiumInfo_result other) { if (other.isSetSuccess()) { this.success = new com.evernote.edam.type.PremiumInfo(other.success); } if (other.isSetUserException()) { this.userException = new com.evernote.edam.error.EDAMUserException(other.userException); } if (other.isSetSystemException()) { this.systemException = new com.evernote.edam.error.EDAMSystemException(other.systemException); } }