KahaLocation convert(Location location) { KahaLocation rc = new KahaLocation(); rc.setLogId(location.getDataFileId()); rc.setOffset(location.getOffset()); return rc; }
public static KahaLocation parseUnframed(org.apache.activemq.protobuf.CodedInputStream data) throws org.apache.activemq.protobuf.InvalidProtocolBufferException, java.io.IOException { return new KahaLocation().mergeUnframed(data).checktInitialized(); }
public static KahaLocation parseFramed(org.apache.activemq.protobuf.Buffer data) throws org.apache.activemq.protobuf.InvalidProtocolBufferException { return new KahaLocation().mergeFramed(data).checktInitialized(); }
public void clear() { super.clear(); clearLogId(); clearOffset(); }
public KahaLocation clone() { return new KahaLocation().mergeFrom(this); }
public KahaTransactionInfo mergeFrom(KahaTransactionInfo other) { if (other.hasLocalTransactionId()) { if (hasLocalTransactionId()) { getLocalTransactionId().mergeFrom(other.getLocalTransactionId()); } else { setLocalTransactionId(other.getLocalTransactionId().clone()); } } if (other.hasXaTransactionId()) { if (hasXaTransactionId()) { getXaTransactionId().mergeFrom(other.getXaTransactionId()); } else { setXaTransactionId(other.getXaTransactionId().clone()); } } if (other.hasPreviousEntry()) { if (hasPreviousEntry()) { getPreviousEntry().mergeFrom(other.getPreviousEntry()); } else { setPreviousEntry(other.getPreviousEntry().clone()); } } return this; }
public boolean equals(Object obj) { if( obj==this ) return true; if( obj==null || obj.getClass()!=KahaLocation.class ) return false; return equals((KahaLocation)obj); }
case 26: if (hasPreviousEntry()) { getPreviousEntry().mergeFramed(input); } else { setPreviousEntry(new KahaLocation().mergeFramed(input));
public KahaLocation getPreviousEntry() { if( this.f_previousEntry == null ) { this.f_previousEntry = new KahaLocation(); } return this.f_previousEntry; }
public java.util.ArrayList<String> missingFields() { java.util.ArrayList<String> missingFields = super.missingFields(); if( hasLocalTransactionId() ) { try { getLocalTransactionId().assertInitialized(); } catch (org.apache.activemq.protobuf.UninitializedMessageException e){ missingFields.addAll(prefix(e.getMissingFields(),"local_transaction_id.")); } } if( hasXaTransactionId() ) { try { getXaTransactionId().assertInitialized(); } catch (org.apache.activemq.protobuf.UninitializedMessageException e){ missingFields.addAll(prefix(e.getMissingFields(),"xa_transaction_id.")); } } if( hasPreviousEntry() ) { try { getPreviousEntry().assertInitialized(); } catch (org.apache.activemq.protobuf.UninitializedMessageException e){ missingFields.addAll(prefix(e.getMissingFields(),"previous_entry.")); } } return missingFields; }
public static KahaLocation parseUnframed(java.io.InputStream data) throws org.apache.activemq.protobuf.InvalidProtocolBufferException, java.io.IOException { return new KahaLocation().mergeUnframed(data).checktInitialized(); }
public static KahaLocation parseFramed(java.io.InputStream data) throws org.apache.activemq.protobuf.InvalidProtocolBufferException, java.io.IOException { return new KahaLocation().mergeFramed(data).checktInitialized(); }
public void clear() { super.clear(); clearLogId(); clearOffset(); }
public KahaLocation clone() { return new KahaLocation().mergeFrom(this); }