@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + TXID_FIELD_NUMBER; hash = (53 * hash) + getTxid().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + TX_VALIDATION_CODE_FIELD_NUMBER; hash = (53 * hash) + txValidationCode_; switch (dataCase_) { case 4: hash = (37 * hash) + TRANSACTION_ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getTransactionActions().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction other = (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction) obj; boolean result = true; result = result && getTxid() .equals(other.getTxid()); result = result && type_ == other.type_; result = result && txValidationCode_ == other.txValidationCode_; result = result && getDataCase().equals( other.getDataCase()); if (!result) return false; switch (dataCase_) { case 4: result = result && getTransactionActions() .equals(other.getTransactionActions()); break; case 0: default: } return result; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.getDefaultInstance()) return this; if (!other.getTxid().isEmpty()) { txid_ = other.txid_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.txValidationCode_ != 0) { setTxValidationCodeValue(other.getTxValidationCodeValue()); } switch (other.getDataCase()) { case TRANSACTION_ACTIONS: { mergeTransactionActions(other.getTransactionActions()); break; } case DATA_NOT_SET: { break; } } onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction other = (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction) obj; boolean result = true; result = result && getTxid() .equals(other.getTxid()); result = result && type_ == other.type_; result = result && txValidationCode_ == other.txValidationCode_; result = result && getDataCase().equals( other.getDataCase()); if (!result) return false; switch (dataCase_) { case 4: result = result && getTransactionActions() .equals(other.getTransactionActions()); break; case 0: default: } return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + TXID_FIELD_NUMBER; hash = (53 * hash) + getTxid().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + TX_VALIDATION_CODE_FIELD_NUMBER; hash = (53 * hash) + txValidationCode_; switch (dataCase_) { case 4: hash = (37 * hash) + TRANSACTION_ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getTransactionActions().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction other = (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction) obj; boolean result = true; result = result && getTxid() .equals(other.getTxid()); result = result && type_ == other.type_; result = result && txValidationCode_ == other.txValidationCode_; result = result && getDataCase().equals( other.getDataCase()); if (!result) return false; switch (dataCase_) { case 4: result = result && getTransactionActions() .equals(other.getTransactionActions()); break; case 0: default: } return result; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.getDefaultInstance()) return this; if (!other.getTxid().isEmpty()) { txid_ = other.txid_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.txValidationCode_ != 0) { setTxValidationCodeValue(other.getTxValidationCodeValue()); } switch (other.getDataCase()) { case TRANSACTION_ACTIONS: { mergeTransactionActions(other.getTransactionActions()); break; } case DATA_NOT_SET: { break; } } onChanged(); return this; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + TXID_FIELD_NUMBER; hash = (53 * hash) + getTxid().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + TX_VALIDATION_CODE_FIELD_NUMBER; hash = (53 * hash) + txValidationCode_; switch (dataCase_) { case 4: hash = (37 * hash) + TRANSACTION_ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getTransactionActions().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransaction.getDefaultInstance()) return this; if (!other.getTxid().isEmpty()) { txid_ = other.txid_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.txValidationCode_ != 0) { setTxValidationCodeValue(other.getTxValidationCodeValue()); } switch (other.getDataCase()) { case TRANSACTION_ACTIONS: { mergeTransactionActions(other.getTransactionActions()); break; } case DATA_NOT_SET: { break; } } onChanged(); return this; }
/** * The transaction ID * * @return the transaction id. */ public String getTransactionID() { return BlockInfo.this.isFiltered() ? filteredTx.getTxid() : headerDeserializer.getChannelHeader().getTxId(); }
/** * The transaction ID * * @return the transaction id. */ public String getTransactionID() { return BlockInfo.this.isFiltered() ? filteredTx.getTxid() : headerDeserializer.getChannelHeader().getTxId(); }
/** * <code>optional string txid = 1;</code> */ public Builder clearTxid() { txid_ = getDefaultInstance().getTxid(); onChanged(); return this; } /**
/** * <code>optional string txid = 1;</code> */ public Builder clearTxid() { txid_ = getDefaultInstance().getTxid(); onChanged(); return this; } /**
/** * The transaction ID * * @return the transaction id. */ public String getTransactionID() { return BlockInfo.this.isFiltered() ? filteredTx.getTxid() : headerDeserializer.getChannelHeader().getTxId(); }
/** * <code>optional string txid = 1;</code> */ public Builder clearTxid() { txid_ = getDefaultInstance().getTxid(); onChanged(); return this; } /**