@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.ChaincodeEventOuterClass.ChaincodeEvent)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent other = (org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) obj; boolean result = true; result = result && getChaincodeId() .equals(other.getChaincodeId()); result = result && getTxId() .equals(other.getTxId()); result = result && getEventName() .equals(other.getEventName()); result = result && getPayload() .equals(other.getPayload()); return result; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getChaincodeIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chaincodeId_); } if (!getTxIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, txId_); } if (!getEventNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, eventName_); } if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, payload_); } memoizedSize = size; return size; }
case 3: result = result && getChaincodeEvent() .equals(other.getChaincodeEvent()); break; case 4:
case 3: result = result && getChaincodeEvent() .equals(other.getChaincodeEvent()); break; case 4:
/** * <code>optional .protos.ChaincodeEvent chaincode_event = 3;</code> */ public Builder mergeChaincodeEvent(org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent value) { if (chaincodeEventBuilder_ == null) { if (eventCase_ == 3 && event_ != org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance()) { event_ = org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.newBuilder((org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 3) { chaincodeEventBuilder_.mergeFrom(value); } chaincodeEventBuilder_.setMessage(value); } eventCase_ = 3; return this; } /**
/** * <code>optional .protos.ChaincodeEvent chaincode_event = 3;</code> */ public Builder mergeChaincodeEvent(org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent value) { if (chaincodeEventBuilder_ == null) { if (eventCase_ == 3 && event_ != org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance()) { event_ = org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.newBuilder((org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 3) { chaincodeEventBuilder_.mergeFrom(value); } chaincodeEventBuilder_.setMessage(value); } eventCase_ = 3; return this; } /**
/** * <code>optional .protos.ChaincodeEvent chaincode_event = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder> getChaincodeEventFieldBuilder() { if (chaincodeEventBuilder_ == null) { if (!(eventCase_ == 3)) { event_ = org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance(); } chaincodeEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder>( (org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 3; onChanged();; return chaincodeEventBuilder_; }
/** * <code>optional .protos.ChaincodeEvent chaincode_event = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder> getChaincodeEventFieldBuilder() { if (chaincodeEventBuilder_ == null) { if (!(eventCase_ == 3)) { event_ = org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance(); } chaincodeEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.Builder, org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEventOrBuilder>( (org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 3; onChanged();; return chaincodeEventBuilder_; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getChaincodeIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chaincodeId_); } if (!getTxIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, txId_); } if (!getEventNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, eventName_); } if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, payload_); } memoizedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getChaincodeIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chaincodeId_); } if (!getTxIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, txId_); } if (!getEventNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, eventName_); } if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, payload_); } memoizedSize = size; return size; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent other = (org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) obj; boolean result = true; result = result && getChaincodeId() .equals(other.getChaincodeId()); result = result && getTxId() .equals(other.getTxId()); result = result && getEventName() .equals(other.getEventName()); result = result && getPayload() .equals(other.getPayload()); return result; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent other) { if (other == org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance()) return this; if (!other.getChaincodeId().isEmpty()) { chaincodeId_ = other.chaincodeId_; onChanged(); } if (!other.getTxId().isEmpty()) { txId_ = other.txId_; onChanged(); } if (!other.getEventName().isEmpty()) { eventName_ = other.eventName_; onChanged(); } if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } onChanged(); return this; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent other) { if (other == org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance()) return this; if (!other.getChaincodeId().isEmpty()) { chaincodeId_ = other.chaincodeId_; onChanged(); } if (!other.getTxId().isEmpty()) { txId_ = other.txId_; onChanged(); } if (!other.getEventName().isEmpty()) { eventName_ = other.eventName_; onChanged(); } if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } 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) + CHAINCODE_ID_FIELD_NUMBER; hash = (53 * hash) + getChaincodeId().hashCode(); hash = (37 * hash) + TX_ID_FIELD_NUMBER; hash = (53 * hash) + getTxId().hashCode(); hash = (37 * hash) + EVENT_NAME_FIELD_NUMBER; hash = (53 * hash) + getEventName().hashCode(); hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().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 boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent other = (org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) obj; boolean result = true; result = result && getChaincodeId() .equals(other.getChaincodeId()); result = result && getTxId() .equals(other.getTxId()); result = result && getEventName() .equals(other.getEventName()); result = result && getPayload() .equals(other.getPayload()); 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; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + CHAINCODE_ID_FIELD_NUMBER; hash = (53 * hash) + getChaincodeId().hashCode(); hash = (37 * hash) + TX_ID_FIELD_NUMBER; hash = (53 * hash) + getTxId().hashCode(); hash = (37 * hash) + EVENT_NAME_FIELD_NUMBER; hash = (53 * hash) + getEventName().hashCode(); hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <code>optional .protos.ChaincodeEvent chaincode_event = 3;</code> */ public org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent getChaincodeEvent() { if (chaincodeEventBuilder_ == null) { if (eventCase_ == 3) { return (org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent) event_; } return org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance(); } else { if (eventCase_ == 3) { return chaincodeEventBuilder_.getMessage(); } return org.hyperledger.fabric.protos.peer.ChaincodeEventOuterClass.ChaincodeEvent.getDefaultInstance(); } } /**