public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction buildPartial() { org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction result = new org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction(this); if (chaincodeEventBuilder_ == null) { result.chaincodeEvent_ = chaincodeEvent_; } else { result.chaincodeEvent_ = chaincodeEventBuilder_.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.FilteredChaincodeAction)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction other = (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction) obj; boolean result = true; result = result && (hasChaincodeEvent() == other.hasChaincodeEvent()); if (hasChaincodeEvent()) { result = result && getChaincodeEvent() .equals(other.getChaincodeEvent()); } return result; }
/** * <code>repeated .protos.FilteredChaincodeAction chaincode_actions = 1;</code> */ public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.Builder addChaincodeActionsBuilder( int index) { return getChaincodeActionsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.getDefaultInstance()); } /**
input.readMessage(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.parser(), extensionRegistry)); break;
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
input.readMessage(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.parser(), extensionRegistry)); break;
@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.FilteredChaincodeAction)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction other = (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction) obj; boolean result = true; result = result && (hasChaincodeEvent() == other.hasChaincodeEvent()); if (hasChaincodeEvent()) { result = result && getChaincodeEvent() .equals(other.getChaincodeEvent()); } 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.FilteredChaincodeAction)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction other = (org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction) obj; boolean result = true; result = result && (hasChaincodeEvent() == other.hasChaincodeEvent()); if (hasChaincodeEvent()) { result = result && getChaincodeEvent() .equals(other.getChaincodeEvent()); } return result; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.getDefaultInstance(); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasChaincodeEvent()) { hash = (37 * hash) + CHAINCODE_EVENT_FIELD_NUMBER; hash = (53 * hash) + getChaincodeEvent().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.getDefaultInstance(); }
public static Builder newBuilder(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasChaincodeEvent()) { hash = (37 * hash) + CHAINCODE_EVENT_FIELD_NUMBER; hash = (53 * hash) + getChaincodeEvent().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * Get chaincode events for this transaction. * * @return A chaincode event if the chaincode set an event otherwise null. */ public ChaincodeEvent getEvent() { if (isFiltered()) { final PeerEvents.FilteredChaincodeAction chaincodeActions = filteredAction; return new ChaincodeEvent(chaincodeActions.getChaincodeEvent().toByteString()); } return transactionAction.getPayload().getAction().getProposalResponsePayload() .getExtension().getEvent(); }
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction prototype) {
/** * Get chaincode events for this transaction. * * @return A chaincode event if the chaincode set an event otherwise null. */ public ChaincodeEvent getEvent() { if (isFiltered()) { final PeerEvents.FilteredChaincodeAction chaincodeActions = filteredAction; return new ChaincodeEvent(chaincodeActions.getChaincodeEvent().toByteString()); } return transactionAction.getPayload().getAction().getProposalResponsePayload() .getExtension().getEvent(); }
public static Builder newBuilder(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {