public String getIdGenerationAlg() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } return _chaincodeInvocationSpec.get().getIdGenerationAlg(); }
public String getIdGenerationAlg() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } return _chaincodeInvocationSpec.get().getIdGenerationAlg(); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasChaincodeSpec()) { hash = (37 * hash) + CHAINCODE_SPEC_FIELD_NUMBER; hash = (53 * hash) + getChaincodeSpec().hashCode(); } hash = (37 * hash) + ID_GENERATION_ALG_FIELD_NUMBER; hash = (53 * hash) + getIdGenerationAlg().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <pre> * This field can contain a user-specified ID generation algorithm * If supplied, this will be used to generate a ID * If not supplied (left empty), sha256base64 will be used * The algorithm consists of two parts: * 1, a hash function * 2, a decoding used to decode user (string) input to bytes * Currently, SHA256 with BASE64 is supported (e.g. idGenerationAlg='sha256base64') * </pre> * * <code>optional string id_generation_alg = 2;</code> */ public Builder clearIdGenerationAlg() { idGenerationAlg_ = getDefaultInstance().getIdGenerationAlg(); 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.Chaincode.ChaincodeInvocationSpec)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec) obj; boolean result = true; result = result && (hasChaincodeSpec() == other.hasChaincodeSpec()); if (hasChaincodeSpec()) { result = result && getChaincodeSpec() .equals(other.getChaincodeSpec()); } result = result && getIdGenerationAlg() .equals(other.getIdGenerationAlg()); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasChaincodeSpec()) { hash = (37 * hash) + CHAINCODE_SPEC_FIELD_NUMBER; hash = (53 * hash) + getChaincodeSpec().hashCode(); } hash = (37 * hash) + ID_GENERATION_ALG_FIELD_NUMBER; hash = (53 * hash) + getIdGenerationAlg().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <pre> * This field can contain a user-specified ID generation algorithm * If supplied, this will be used to generate a ID * If not supplied (left empty), sha256base64 will be used * The algorithm consists of two parts: * 1, a hash function * 2, a decoding used to decode user (string) input to bytes * Currently, SHA256 with BASE64 is supported (e.g. idGenerationAlg='sha256base64') * </pre> * * <code>optional string id_generation_alg = 2;</code> */ public Builder clearIdGenerationAlg() { idGenerationAlg_ = getDefaultInstance().getIdGenerationAlg(); 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.Chaincode.ChaincodeInvocationSpec)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec) obj; boolean result = true; result = result && (hasChaincodeSpec() == other.hasChaincodeSpec()); if (hasChaincodeSpec()) { result = result && getChaincodeSpec() .equals(other.getChaincodeSpec()); } result = result && getIdGenerationAlg() .equals(other.getIdGenerationAlg()); return result; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec.getDefaultInstance()) return this; if (other.hasChaincodeSpec()) { mergeChaincodeSpec(other.getChaincodeSpec()); } if (!other.getIdGenerationAlg().isEmpty()) { idGenerationAlg_ = other.idGenerationAlg_; onChanged(); } onChanged(); return this; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec.getDefaultInstance()) return this; if (other.hasChaincodeSpec()) { mergeChaincodeSpec(other.getChaincodeSpec()); } if (!other.getIdGenerationAlg().isEmpty()) { idGenerationAlg_ = other.idGenerationAlg_; onChanged(); } onChanged(); return this; }