public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions result = new org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions(this); int from_bitField0_ = bitField0_; if (chaincodeActionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { chaincodeActions_ = java.util.Collections.unmodifiableList(chaincodeActions_); bitField0_ = (bitField0_ & ~0x00000001); } result.chaincodeActions_ = chaincodeActions_; } else { result.chaincodeActions_ = chaincodeActionsBuilder_.build(); } onBuilt(); return result; }
@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; }
@Override public TransactionActionInfo next() { if (ci >= max) { throw new ArrayIndexOutOfBoundsException(format("Current index: %d. Max index: %d", ci, max)); } // return BlockInfo.this.isFiltered() ? new TransactionActionInfo(filteredTx.getFilteredAction(ci++)) return BlockInfo.this.isFiltered() ? new TransactionActionInfo(filteredTx.getTransactionActions().getChaincodeActions(ci++)) : getTransactionActionInfo(ci++); } }
chaincodeActions_ = java.util.Collections.unmodifiableList(chaincodeActions_); makeExtensionsImmutable();
chaincodeActions_ = java.util.Collections.unmodifiableList(chaincodeActions_); makeExtensionsImmutable();
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance()) return this; if (chaincodeActionsBuilder_ == null) { if (!other.chaincodeActions_.isEmpty()) {
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance()) return this; if (chaincodeActionsBuilder_ == null) { if (!other.chaincodeActions_.isEmpty()) {
@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 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; }
/** * <code>optional .protos.FilteredTransactionActions transaction_actions = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActionsOrBuilder> getTransactionActionsFieldBuilder() { if (transactionActionsBuilder_ == null) { if (!(dataCase_ == 4)) { data_ = org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance(); } transactionActionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActionsOrBuilder>( (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 4; onChanged();; return transactionActionsBuilder_; } public final Builder setUnknownFields(
/** * <code>optional .protos.FilteredTransactionActions transaction_actions = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActionsOrBuilder> getTransactionActionsFieldBuilder() { if (transactionActionsBuilder_ == null) { if (!(dataCase_ == 4)) { data_ = org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance(); } transactionActionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.Builder, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActionsOrBuilder>( (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) data_, getParentForChildren(), isClean()); data_ = null; } dataCase_ = 4; onChanged();; return transactionActionsBuilder_; } public final Builder setUnknownFields(
@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; }
/** * <code>optional .protos.FilteredTransactionActions transaction_actions = 4;</code> */ public Builder mergeTransactionActions(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions value) { if (transactionActionsBuilder_ == null) { if (dataCase_ == 4 && data_ != org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance()) { data_ = org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.newBuilder((org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 4) { transactionActionsBuilder_.mergeFrom(value); } transactionActionsBuilder_.setMessage(value); } dataCase_ = 4; return this; } /**
/** * <code>optional .protos.FilteredTransactionActions transaction_actions = 4;</code> */ public Builder mergeTransactionActions(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions value) { if (transactionActionsBuilder_ == null) { if (dataCase_ == 4 && data_ != org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance()) { data_ = org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.newBuilder((org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) data_) .mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { if (dataCase_ == 4) { transactionActionsBuilder_.mergeFrom(value); } transactionActionsBuilder_.setMessage(value); } dataCase_ = 4; return this; } /**
/** * <code>optional .protos.FilteredTransactionActions transaction_actions = 4;</code> */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions getTransactionActions() { if (transactionActionsBuilder_ == null) { if (dataCase_ == 4) { return (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) data_; } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance(); } else { if (dataCase_ == 4) { return transactionActionsBuilder_.getMessage(); } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance(); } } /**
/** * <code>optional .protos.FilteredTransactionActions transaction_actions = 4;</code> */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions getTransactionActions() { if (transactionActionsBuilder_ == null) { if (dataCase_ == 4) { return (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions) data_; } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance(); } else { if (dataCase_ == 4) { return transactionActionsBuilder_.getMessage(); } return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions.getDefaultInstance(); } } /**
public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions result = new org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions(this); int from_bitField0_ = bitField0_; if (chaincodeActionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { chaincodeActions_ = java.util.Collections.unmodifiableList(chaincodeActions_); bitField0_ = (bitField0_ & ~0x00000001); } result.chaincodeActions_ = chaincodeActions_; } else { result.chaincodeActions_ = chaincodeActionsBuilder_.build(); } onBuilt(); return result; }
public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions result = new org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionActions(this); int from_bitField0_ = bitField0_; if (chaincodeActionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { chaincodeActions_ = java.util.Collections.unmodifiableList(chaincodeActions_); bitField0_ = (bitField0_ & ~0x00000001); } result.chaincodeActions_ = chaincodeActions_; } else { result.chaincodeActions_ = chaincodeActionsBuilder_.build(); } onBuilt(); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getChaincodeActionsCount() > 0) { hash = (37 * hash) + CHAINCODE_ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getChaincodeActionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }