public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.notebookDescription != null) { if (isSetNotebookDescription()) { oprot.writeFieldBegin(NOTEBOOK_DESCRIPTION_FIELD_DESC); oprot.writeString(this.notebookDescription); oprot.writeFieldEnd(); } } if (this.privilege != null) { if (isSetPrivilege()) { oprot.writeFieldBegin(PRIVILEGE_FIELD_DESC); oprot.writeI32(this.privilege.getValue()); oprot.writeFieldEnd(); } } if (isSetRecommended()) { oprot.writeFieldBegin(RECOMMENDED_FIELD_DESC); oprot.writeBool(this.recommended); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.notebookDescription != null) { if (isSetNotebookDescription()) { oprot.writeFieldBegin(NOTEBOOK_DESCRIPTION_FIELD_DESC); oprot.writeString(this.notebookDescription); oprot.writeFieldEnd(); } } if (this.privilege != null) { if (isSetPrivilege()) { oprot.writeFieldBegin(PRIVILEGE_FIELD_DESC); oprot.writeI32(this.privilege.getValue()); oprot.writeFieldEnd(); } } if (isSetRecommended()) { oprot.writeFieldBegin(RECOMMENDED_FIELD_DESC); oprot.writeBool(this.recommended); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
if (isSetPrivilege()) { oprot.writeFieldBegin(PRIVILEGE_FIELD_DESC); oprot.writeI32(this.privilege.getValue()); oprot.writeFieldEnd();
if (isSetPrivilege()) { oprot.writeFieldBegin(PRIVILEGE_FIELD_DESC); oprot.writeI32(this.privilege.getValue()); oprot.writeFieldEnd();