public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec buildPartial() { org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec result = new org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec(this); if (chaincodeSpecBuilder_ == null) { result.chaincodeSpec_ = chaincodeSpec_; } else { result.chaincodeSpec_ = chaincodeSpecBuilder_.build(); } result.codePackage_ = codePackage_; result.execEnv_ = execEnv_; onBuilt(); return result; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeSpec()); } if (!codePackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, execEnv_); } 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.Chaincode.ChaincodeDeploymentSpec)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec) obj; boolean result = true; result = result && (hasChaincodeSpec() == other.hasChaincodeSpec()); if (hasChaincodeSpec()) { result = result && getChaincodeSpec() .equals(other.getChaincodeSpec()); } result = result && getCodePackage() .equals(other.getCodePackage()); result = result && execEnv_ == other.execEnv_; return result; }
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
@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.ChaincodeDeploymentSpec)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec) obj; boolean result = true; result = result && (hasChaincodeSpec() == other.hasChaincodeSpec()); if (hasChaincodeSpec()) { result = result && getChaincodeSpec() .equals(other.getChaincodeSpec()); } result = result && (hasEffectiveDate() == other.hasEffectiveDate()); if (hasEffectiveDate()) { result = result && getEffectiveDate() .equals(other.getEffectiveDate()); } result = result && getCodePackage() .equals(other.getCodePackage()); result = result && execEnv_ == other.execEnv_; 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.ChaincodeDeploymentSpec)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec) obj; boolean result = true; result = result && (hasChaincodeSpec() == other.hasChaincodeSpec()); if (hasChaincodeSpec()) { result = result && getChaincodeSpec() .equals(other.getChaincodeSpec()); } result = result && (hasEffectiveDate() == other.hasEffectiveDate()); if (hasEffectiveDate()) { result = result && getEffectiveDate() .equals(other.getEffectiveDate()); } result = result && getCodePackage() .equals(other.getCodePackage()); result = result && execEnv_ == other.execEnv_; return result; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeSpec()); } if (effectiveDate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEffectiveDate()); } if (!codePackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, execEnv_); } memoizedSize = size; return size; }
@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(); } if (hasEffectiveDate()) { hash = (37 * hash) + EFFECTIVE_DATE_FIELD_NUMBER; hash = (53 * hash) + getEffectiveDate().hashCode(); } hash = (37 * hash) + CODE_PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getCodePackage().hashCode(); hash = (37 * hash) + EXEC_ENV_FIELD_NUMBER; hash = (53 * hash) + execEnv_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeSpec()); } if (effectiveDate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEffectiveDate()); } if (!codePackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, execEnv_); } memoizedSize = size; return size; }
@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(); } if (hasEffectiveDate()) { hash = (37 * hash) + EFFECTIVE_DATE_FIELD_NUMBER; hash = (53 * hash) + getEffectiveDate().hashCode(); } hash = (37 * hash) + CODE_PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getCodePackage().hashCode(); hash = (37 * hash) + EXEC_ENV_FIELD_NUMBER; hash = (53 * hash) + execEnv_; 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.Chaincode.ChaincodeDeploymentSpec)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec) obj; boolean result = true; result = result && (hasChaincodeSpec() == other.hasChaincodeSpec()); if (hasChaincodeSpec()) { result = result && getChaincodeSpec() .equals(other.getChaincodeSpec()); } result = result && getCodePackage() .equals(other.getCodePackage()); result = result && execEnv_ == other.execEnv_; return result; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeSpec()); } if (!codePackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, execEnv_); } memoizedSize = size; return size; }
public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec buildPartial() { org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec result = new org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec(this); if (chaincodeSpecBuilder_ == null) { result.chaincodeSpec_ = chaincodeSpec_; } else { result.chaincodeSpec_ = chaincodeSpecBuilder_.build(); } if (effectiveDateBuilder_ == null) { result.effectiveDate_ = effectiveDate_; } else { result.effectiveDate_ = effectiveDateBuilder_.build(); } result.codePackage_ = codePackage_; result.execEnv_ = execEnv_; 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 = (37 * hash) + CODE_PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getCodePackage().hashCode(); hash = (37 * hash) + EXEC_ENV_FIELD_NUMBER; hash = (53 * hash) + execEnv_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec buildPartial() { org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec result = new org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec(this); if (chaincodeSpecBuilder_ == null) { result.chaincodeSpec_ = chaincodeSpec_; } else { result.chaincodeSpec_ = chaincodeSpecBuilder_.build(); } if (effectiveDateBuilder_ == null) { result.effectiveDate_ = effectiveDate_; } else { result.effectiveDate_ = effectiveDateBuilder_.build(); } result.codePackage_ = codePackage_; result.execEnv_ = execEnv_; onBuilt(); return result; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.getDefaultInstance()) return this; if (other.hasChaincodeSpec()) { mergeChaincodeSpec(other.getChaincodeSpec()); } if (other.hasEffectiveDate()) { mergeEffectiveDate(other.getEffectiveDate()); } if (other.getCodePackage() != com.google.protobuf.ByteString.EMPTY) { setCodePackage(other.getCodePackage()); } if (other.execEnv_ != 0) { setExecEnvValue(other.getExecEnvValue()); } onChanged(); return this; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chaincodeSpec_ != null) { output.writeMessage(1, getChaincodeSpec()); } if (effectiveDate_ != null) { output.writeMessage(2, getEffectiveDate()); } if (!codePackage_.isEmpty()) { output.writeBytes(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { output.writeEnum(4, execEnv_); } }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.getDefaultInstance()) return this; if (other.hasChaincodeSpec()) { mergeChaincodeSpec(other.getChaincodeSpec()); } if (other.hasEffectiveDate()) { mergeEffectiveDate(other.getEffectiveDate()); } if (other.getCodePackage() != com.google.protobuf.ByteString.EMPTY) { setCodePackage(other.getCodePackage()); } if (other.execEnv_ != 0) { setExecEnvValue(other.getExecEnvValue()); } onChanged(); return this; }