public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chaincodeSpec_ != null) { output.writeMessage(1, getChaincodeSpec()); } if (!codePackage_.isEmpty()) { output.writeBytes(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { output.writeEnum(4, execEnv_); } }
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 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 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 (!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; }
@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 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 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 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.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 (!codePackage_.isEmpty()) { output.writeBytes(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { output.writeEnum(4, execEnv_); } }
/** * <code>optional .protos.ChaincodeSpec chaincode_spec = 1;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpecOrBuilder getChaincodeSpecOrBuilder() { return getChaincodeSpec(); }
/** * <code>optional .protos.ChaincodeSpec chaincode_spec = 1;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpecOrBuilder getChaincodeSpecOrBuilder() { return getChaincodeSpec(); }
/** * <code>optional .protos.ChaincodeSpec chaincode_spec = 1;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpecOrBuilder getChaincodeSpecOrBuilder() { return getChaincodeSpec(); }
@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 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.getCodePackage() != com.google.protobuf.ByteString.EMPTY) { setCodePackage(other.getCodePackage()); } if (other.execEnv_ != 0) { setExecEnvValue(other.getExecEnvValue()); } onChanged(); return this; }
/** * <code>optional .protos.ChaincodeSpec chaincode_spec = 1;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpecOrBuilder getChaincodeSpecOrBuilder() { return getChaincodeSpec(); }