public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(MYINT_FIELD_DESC); oprot.writeI32(this.myint); oprot.writeFieldEnd(); if (this.myString != null) { oprot.writeFieldBegin(MY_STRING_FIELD_DESC); oprot.writeString(this.myString); oprot.writeFieldEnd(); } oprot.writeFieldBegin(UNDERSCORE_INT_FIELD_DESC); oprot.writeI32(this.underscore_int); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeBinary(this.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(COUNT_FIELD_DESC); oprot.writeI32(this.count); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RESPONSE_CODE_FIELD_DESC); oprot.writeI32(this.responseCode); oprot.writeFieldEnd(); oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC); oprot.writeI64(this.transactionID); oprot.writeFieldEnd(); if (this.description != null) { oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC); oprot.writeString(this.description); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (isSetTimestamp()) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(this.timestamp); oprot.writeFieldEnd(); } oprot.writeFieldBegin(WHAT_FIELD_DESC); oprot.writeI32(this.what); oprot.writeFieldEnd(); if (this.why != null) { oprot.writeFieldBegin(WHY_FIELD_DESC); oprot.writeString(this.why); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.objectType != null) { oprot.writeFieldBegin(OBJECT_TYPE_FIELD_DESC); oprot.writeI32(this.objectType.getValue()); oprot.writeFieldEnd(); } if (this.dbName != null) { oprot.writeFieldBegin(DB_NAME_FIELD_DESC); oprot.writeString(this.dbName); oprot.writeFieldEnd(); } if (this.objectName != null) { oprot.writeFieldBegin(OBJECT_NAME_FIELD_DESC); oprot.writeString(this.objectName); oprot.writeFieldEnd(); } if (this.partValues != null) { oprot.writeFieldBegin(PART_VALUES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.partValues.size())); for (String _iter7 : this.partValues) { oprot.writeString(_iter7); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (this.columnName != null) { oprot.writeFieldBegin(COLUMN_NAME_FIELD_DESC); oprot.writeString(this.columnName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }