public SavedSearchScope deepCopy() { return new SavedSearchScope(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof SavedSearchScope) return this.equals((SavedSearchScope)that); return false; }
public boolean equals(SavedSearchScope that) { if (that == null) return false; boolean this_present_includeAccount = true && this.isSetIncludeAccount(); boolean that_present_includeAccount = true && that.isSetIncludeAccount(); if (this_present_includeAccount || that_present_includeAccount) { if (!(this_present_includeAccount && that_present_includeAccount)) return false; if (this.includeAccount != that.includeAccount) return false; } boolean this_present_includePersonalLinkedNotebooks = true && this.isSetIncludePersonalLinkedNotebooks(); boolean that_present_includePersonalLinkedNotebooks = true && that.isSetIncludePersonalLinkedNotebooks(); if (this_present_includePersonalLinkedNotebooks || that_present_includePersonalLinkedNotebooks) { if (!(this_present_includePersonalLinkedNotebooks && that_present_includePersonalLinkedNotebooks)) return false; if (this.includePersonalLinkedNotebooks != that.includePersonalLinkedNotebooks) return false; } boolean this_present_includeBusinessLinkedNotebooks = true && this.isSetIncludeBusinessLinkedNotebooks(); boolean that_present_includeBusinessLinkedNotebooks = true && that.isSetIncludeBusinessLinkedNotebooks(); if (this_present_includeBusinessLinkedNotebooks || that_present_includeBusinessLinkedNotebooks) { if (!(this_present_includeBusinessLinkedNotebooks && that_present_includeBusinessLinkedNotebooks)) return false; if (this.includeBusinessLinkedNotebooks != that.includeBusinessLinkedNotebooks) return false; } return true; }
public void clear() { setIncludeAccountIsSet(false); this.includeAccount = false; setIncludePersonalLinkedNotebooksIsSet(false); this.includePersonalLinkedNotebooks = false; setIncludeBusinessLinkedNotebooksIsSet(false); this.includeBusinessLinkedNotebooks = false; }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (isSetIncludeAccount()) { oprot.writeFieldBegin(INCLUDE_ACCOUNT_FIELD_DESC); oprot.writeBool(this.includeAccount); oprot.writeFieldEnd(); } if (isSetIncludePersonalLinkedNotebooks()) { oprot.writeFieldBegin(INCLUDE_PERSONAL_LINKED_NOTEBOOKS_FIELD_DESC); oprot.writeBool(this.includePersonalLinkedNotebooks); oprot.writeFieldEnd(); } if (isSetIncludeBusinessLinkedNotebooks()) { oprot.writeFieldBegin(INCLUDE_BUSINESS_LINKED_NOTEBOOKS_FIELD_DESC); oprot.writeBool(this.includeBusinessLinkedNotebooks); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
if (field.type == TType.BOOL) { this.includeAccount = iprot.readBool(); setIncludeAccountIsSet(true); } else { TProtocolUtil.skip(iprot, field.type); if (field.type == TType.BOOL) { this.includePersonalLinkedNotebooks = iprot.readBool(); setIncludePersonalLinkedNotebooksIsSet(true); } else { TProtocolUtil.skip(iprot, field.type); if (field.type == TType.BOOL) { this.includeBusinessLinkedNotebooks = iprot.readBool(); setIncludeBusinessLinkedNotebooksIsSet(true); } else { TProtocolUtil.skip(iprot, field.type); validate();
SavedSearchScope scope = new SavedSearchScope(); scope.setIncludeAccount(includeAccount); if(includePersonalLinkedNotebooksStr!=null&&includePersonalLinkedNotebooksStr.trim().equalsIgnoreCase("")&&(includePersonalLinkedNotebooksStr.equalsIgnoreCase("true")||includePersonalLinkedNotebooksStr.equalsIgnoreCase("false"))){ boolean includePersonalLinkedNotebooks = Boolean.parseBoolean(includePersonalLinkedNotebooksStr); scope.setIncludePersonalLinkedNotebooks(includePersonalLinkedNotebooks); if(includeBusinessLinkedNotebooksStr!=null&&includeBusinessLinkedNotebooksStr.trim().equalsIgnoreCase("")&&(includeBusinessLinkedNotebooksStr.equalsIgnoreCase("true")||includeBusinessLinkedNotebooksStr.equalsIgnoreCase("false"))){ boolean includeBusinessLinkedNotebooks = Boolean.parseBoolean(includeBusinessLinkedNotebooksStr); scope.setIncludePersonalLinkedNotebooks(includeBusinessLinkedNotebooks);
case 6: // SCOPE if (field.type == TType.STRUCT) { this.scope = new SavedSearchScope(); this.scope.read(iprot); } else { TProtocolUtil.skip(iprot, field.type);
if(includeAccountStr!=null&&includeAccountStr.trim().equalsIgnoreCase("")&&(includeAccountStr.equalsIgnoreCase("true")||includeAccountStr.equalsIgnoreCase("false"))){ boolean includeAccount = Boolean.parseBoolean(includeAccountStr); scope.setIncludeAccount(includeAccount); if(includePersonalLinkedNotebooksStr!=null&&includePersonalLinkedNotebooksStr.trim().equalsIgnoreCase("")&&(includePersonalLinkedNotebooksStr.equalsIgnoreCase("true")||includePersonalLinkedNotebooksStr.equalsIgnoreCase("false"))){ boolean includePersonalLinkedNotebooks = Boolean.parseBoolean(includePersonalLinkedNotebooksStr); scope.setIncludePersonalLinkedNotebooks(includePersonalLinkedNotebooks); if(includeBusinessLinkedNotebooksStr!=null&&includeBusinessLinkedNotebooksStr.trim().equalsIgnoreCase("")&&(includeBusinessLinkedNotebooksStr.equalsIgnoreCase("true")||includeBusinessLinkedNotebooksStr.equalsIgnoreCase("false"))){ boolean includeBusinessLinkedNotebooks = Boolean.parseBoolean(includeBusinessLinkedNotebooksStr); scope.setIncludePersonalLinkedNotebooks(includeBusinessLinkedNotebooks);
public void setIncludeAccount(boolean includeAccount) { this.includeAccount = includeAccount; setIncludeAccountIsSet(true); }
public void setIncludeBusinessLinkedNotebooks(boolean includeBusinessLinkedNotebooks) { this.includeBusinessLinkedNotebooks = includeBusinessLinkedNotebooks; setIncludeBusinessLinkedNotebooksIsSet(true); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (isSetIncludeAccount()) { oprot.writeFieldBegin(INCLUDE_ACCOUNT_FIELD_DESC); oprot.writeBool(this.includeAccount); oprot.writeFieldEnd(); } if (isSetIncludePersonalLinkedNotebooks()) { oprot.writeFieldBegin(INCLUDE_PERSONAL_LINKED_NOTEBOOKS_FIELD_DESC); oprot.writeBool(this.includePersonalLinkedNotebooks); oprot.writeFieldEnd(); } if (isSetIncludeBusinessLinkedNotebooks()) { oprot.writeFieldBegin(INCLUDE_BUSINESS_LINKED_NOTEBOOKS_FIELD_DESC); oprot.writeBool(this.includeBusinessLinkedNotebooks); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
if (field.type == TType.BOOL) { this.includeAccount = iprot.readBool(); setIncludeAccountIsSet(true); } else { TProtocolUtil.skip(iprot, field.type); if (field.type == TType.BOOL) { this.includePersonalLinkedNotebooks = iprot.readBool(); setIncludePersonalLinkedNotebooksIsSet(true); } else { TProtocolUtil.skip(iprot, field.type); if (field.type == TType.BOOL) { this.includeBusinessLinkedNotebooks = iprot.readBool(); setIncludeBusinessLinkedNotebooksIsSet(true); } else { TProtocolUtil.skip(iprot, field.type); validate();
public void clear() { setIncludeAccountIsSet(false); this.includeAccount = false; setIncludePersonalLinkedNotebooksIsSet(false); this.includePersonalLinkedNotebooks = false; setIncludeBusinessLinkedNotebooksIsSet(false); this.includeBusinessLinkedNotebooks = false; }
case 6: // SCOPE if (field.type == TType.STRUCT) { this.scope = new SavedSearchScope(); this.scope.read(iprot); } else { TProtocolUtil.skip(iprot, field.type);
public void setIncludeAccount(boolean includeAccount) { this.includeAccount = includeAccount; setIncludeAccountIsSet(true); }
public void setIncludeBusinessLinkedNotebooks(boolean includeBusinessLinkedNotebooks) { this.includeBusinessLinkedNotebooks = includeBusinessLinkedNotebooks; setIncludeBusinessLinkedNotebooksIsSet(true); }
public boolean equals(SavedSearchScope that) { if (that == null) return false; boolean this_present_includeAccount = true && this.isSetIncludeAccount(); boolean that_present_includeAccount = true && that.isSetIncludeAccount(); if (this_present_includeAccount || that_present_includeAccount) { if (!(this_present_includeAccount && that_present_includeAccount)) return false; if (this.includeAccount != that.includeAccount) return false; } boolean this_present_includePersonalLinkedNotebooks = true && this.isSetIncludePersonalLinkedNotebooks(); boolean that_present_includePersonalLinkedNotebooks = true && that.isSetIncludePersonalLinkedNotebooks(); if (this_present_includePersonalLinkedNotebooks || that_present_includePersonalLinkedNotebooks) { if (!(this_present_includePersonalLinkedNotebooks && that_present_includePersonalLinkedNotebooks)) return false; if (this.includePersonalLinkedNotebooks != that.includePersonalLinkedNotebooks) return false; } boolean this_present_includeBusinessLinkedNotebooks = true && this.isSetIncludeBusinessLinkedNotebooks(); boolean that_present_includeBusinessLinkedNotebooks = true && that.isSetIncludeBusinessLinkedNotebooks(); if (this_present_includeBusinessLinkedNotebooks || that_present_includeBusinessLinkedNotebooks) { if (!(this_present_includeBusinessLinkedNotebooks && that_present_includeBusinessLinkedNotebooks)) return false; if (this.includeBusinessLinkedNotebooks != that.includeBusinessLinkedNotebooks) return false; } return true; }
public SavedSearchScope deepCopy() { return new SavedSearchScope(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof SavedSearchScope) return this.equals((SavedSearchScope)that); return false; }