public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeEvent_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeEvent()); } memoizedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chaincodeEvent_ != null) { output.writeMessage(1, getChaincodeEvent()); } }
@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; }
@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 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; }
@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(); }
/** * 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 Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.getDefaultInstance()) return this; if (other.hasChaincodeEvent()) { mergeChaincodeEvent(other.getChaincodeEvent()); } onChanged(); return this; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chaincodeEvent_ != null) { output.writeMessage(1, getChaincodeEvent()); } }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chaincodeEvent_ != null) { output.writeMessage(1, getChaincodeEvent()); } }
/** * <code>optional .protos.ChaincodeEvent chaincode_event = 1;</code> */ public org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder getChaincodeEventOrBuilder() { return getChaincodeEvent(); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeEvent_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeEvent()); } memoizedSize = size; return size; }
/** * <code>optional .protos.ChaincodeEvent chaincode_event = 1;</code> */ public org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder getChaincodeEventOrBuilder() { return getChaincodeEvent(); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeEvent_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeEvent()); } memoizedSize = size; return size; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.getDefaultInstance()) return this; if (other.hasChaincodeEvent()) { mergeChaincodeEvent(other.getChaincodeEvent()); } 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.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; }
/** * 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(); }
/** * <code>optional .protos.ChaincodeEvent chaincode_event = 1;</code> */ public org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder getChaincodeEventOrBuilder() { return getChaincodeEvent(); }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.FilteredChaincodeAction.getDefaultInstance()) return this; if (other.hasChaincodeEvent()) { mergeChaincodeEvent(other.getChaincodeEvent()); } onChanged(); return this; }