@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()); } return result; }
public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec buildPartial() { org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec result = new org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec(this); if (chaincodeSpecBuilder_ == null) { result.chaincodeSpec_ = chaincodeSpec_; } else { result.chaincodeSpec_ = chaincodeSpecBuilder_.build(); } onBuilt(); 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
.build(); return ChaincodeInvocationSpec.newBuilder() .setChaincodeSpec(chaincodeSpec).build();
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
.build(); return ChaincodeInvocationSpec.newBuilder() .setChaincodeSpec(chaincodeSpec).build();
private void populateChaincodeInvocationSpec() { ChaincodeActionPayload chaincodeActionPayload = null; if(_chaincodeActionPayload != null) { chaincodeActionPayload = _chaincodeActionPayload.get(); } if(null == chaincodeActionPayload) { populateChaincodeActionPayload(); chaincodeActionPayload = _chaincodeActionPayload.get(); } ChaincodeInvocationSpec chaincodeInvocationSpec; try { ChaincodeProposalPayload chaincodeProposalPayload = ChaincodeProposalPayload .parseFrom(chaincodeActionPayload.getChaincodeProposalPayload()); chaincodeInvocationSpec = ChaincodeInvocationSpec.parseFrom(chaincodeProposalPayload.getInput()); } catch (Exception e) { throw new BlkchnException("Error creating object from ByteString", e); } _chaincodeInvocationSpec = new WeakReference<>(chaincodeInvocationSpec); }
@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; }
/** * <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; } /**
private void populateChaincodeInvocationSpec() { ChaincodeActionPayload chaincodeActionPayload = null; if(_chaincodeActionPayload != null) { chaincodeActionPayload = _chaincodeActionPayload.get(); } if(null == chaincodeActionPayload) { populateChaincodeActionPayload(); chaincodeActionPayload = _chaincodeActionPayload.get(); } ChaincodeInvocationSpec chaincodeInvocationSpec; try { ChaincodeProposalPayload chaincodeProposalPayload = ChaincodeProposalPayload .parseFrom(chaincodeActionPayload.getChaincodeProposalPayload()); chaincodeInvocationSpec = ChaincodeInvocationSpec.parseFrom(chaincodeProposalPayload.getInput()); } catch (Exception e) { throw new BlkchnException("Error creating object from ByteString", e); } _chaincodeInvocationSpec = new WeakReference<>(chaincodeInvocationSpec); }
/** * <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 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()); } 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; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
ChaincodeInvocationSpec getChaincodeInvocationSpec() { ChaincodeInvocationSpec ret = null; if (invocationSpec != null) { ret = invocationSpec.get(); } if (ret == null) { try { ret = ChaincodeInvocationSpec.parseFrom(byteString); } catch (InvalidProtocolBufferException e) { throw new InvalidProtocolBufferRuntimeException(e); } invocationSpec = new WeakReference<>(ret); } return ret; }
@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; }
ChaincodeInvocationSpec getChaincodeInvocationSpec() { ChaincodeInvocationSpec ret = null; if (invocationSpec != null) { ret = invocationSpec.get(); } if (ret == null) { try { ret = ChaincodeInvocationSpec.parseFrom(byteString); } catch (InvalidProtocolBufferException e) { throw new InvalidProtocolBufferRuntimeException(e); } invocationSpec = new WeakReference<>(ret); } return ret; }