@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
langType.name(), chaincodeID.getName(), chaincodeID.getPath(), chaincodeID.getVersion()));
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID) obj; boolean result = true; result = result && getPath() .equals(other.getPath()); result = result && getName() .equals(other.getName()); result = result && getVersion() .equals(other.getVersion()); return result; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } 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) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * get version of chaincode with this transaction action * * @return version of chaincode. Maybe null if no chaincode or if block is filtered. */ public String getChaincodeIDVersion() { if (isFiltered()) { return null; } String version = null; Chaincode.ChaincodeID ccid = transactionAction.getPayload().getAction().getProposalResponsePayload(). getExtension().getChaincodeID(); if (ccid != null) { version = ccid.getVersion(); } return version; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } onChanged(); return this; }
public String getVersion() { return fabricChaincodeID.getVersion(); }
/** * <pre> *user friendly version name for the chaincode * </pre> * * <code>optional string version = 3;</code> */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /**
public String getVersion() { return fabricChaincodeID.getVersion(); }
/** * <pre> *user friendly version name for the chaincode * </pre> * * <code>optional string version = 3;</code> */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /**
/** * <pre> *user friendly version name for the chaincode * </pre> * * <code>optional string version = 3;</code> */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /**
public String getChaincodeVersion() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } return _chaincodeInvocationSpec.get().getChaincodeSpec().getChaincodeId().getVersion(); }
public String getChaincodeVersion() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } return _chaincodeInvocationSpec.get().getChaincodeSpec().getChaincodeId().getVersion(); }
.append(chaincodeID.getPath()) .append(", version: ") .append(chaincodeID.getVersion());
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } onChanged(); return this; }
/** * get version of chaincode with this transaction action * * @return version of chaincode. Maybe null if no chaincode or if block is filtered. */ public String getChaincodeIDVersion() { if (isFiltered()) { return null; } String version = null; Chaincode.ChaincodeID ccid = transactionAction.getPayload().getAction().getProposalResponsePayload(). getExtension().getChaincodeID(); if (ccid != null) { version = ccid.getVersion(); } return version; }
/** * <pre> *user friendly version name for the chaincode * </pre> * * <code>optional string version = 3;</code> */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /**
public String getVersion() { return fabricChaincodeID.getVersion(); }