public override int GetHashCode()
        {
            int hash = 1;

            if (chaincodeSpec_ != null)
            {
                hash ^= ChaincodeSpec.GetHashCode();
            }
            if (CodePackage.Length != 0)
            {
                hash ^= CodePackage.GetHashCode();
            }
            if (ExecEnv != global::Protos.ChaincodeDeploymentSpec.Types.ExecutionEnvironment.Docker)
            {
                hash ^= ExecEnv.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public void MergeFrom(ChaincodeDeploymentSpec other)
 {
     if (other == null)
     {
         return;
     }
     if (other.chaincodeSpec_ != null)
     {
         if (chaincodeSpec_ == null)
         {
             ChaincodeSpec = new global::Protos.ChaincodeSpec();
         }
         ChaincodeSpec.MergeFrom(other.ChaincodeSpec);
     }
     if (other.CodePackage.Length != 0)
     {
         CodePackage = other.CodePackage;
     }
     if (other.ExecEnv != global::Protos.ChaincodeDeploymentSpec.Types.ExecutionEnvironment.Docker)
     {
         ExecEnv = other.ExecEnv;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }